Checkbox Selection

Author Message

Philip K.

Monday 09 January 2006 6:31:56 am

Hi.

There is a little problem:
In my website I want to list some pdf files.
A user should have 2 alternatives to get some of these pdf files:

First way:
The user clicks on the pdf file to downoad it.

Second way:
There is a checkbox in front of each row where the user can make his selection which pdf files he want to get.

after that he must fill out a contact form an send it.
how can I check, which checkboxes were checked by the user??

thanks a lot - I hope you understood my problem - if not: ask :)

Linux is like a wigwam; no windows, now gates, and apache inside!

Siw Helen Thorslund

Monday 09 January 2006 12:26:20 pm

<b>First way:</b>

Use this code to get a link to the pdf for download:

To open pdf in same window:

	{def $attribute=$node.object.data_map.file}
	<a href={$attribute.content.filepath|ezroot()}>{$node.name}</a>

To open a box that will ask where to download pdf to:

	{attribute_view_gui attribute=$node.object.data_map.file icon_size='small' icon_title=$node.name}

<b>Second way:</b>

I would override the products and modify this with checkboxes. Then use the order loop from the shop to collect what files and by who they are downloaded.

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:40:57
Script start
Timing: Jan 18 2025 22:40:57
Module start 'layout'
Timing: Jan 18 2025 22:40:57
Module start 'content'
Timing: Jan 18 2025 22:40:57
Module end 'content'
Timing: Jan 18 2025 22:40:57
Script end

Main resources:

Total runtime0.0230 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.4688154.2656
Module start 'layout' 0.00670.0033 743.734439.3594
Module start 'content' 0.01000.0106 783.093889.5547
Module end 'content' 0.02070.0023 872.648434.3047
Script end 0.0230  906.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002912.3941140.0002
Check MTime0.00135.6137140.0001
Mysql Total
Database connection0.00062.792310.0006
Mysqli_queries0.004117.704430.0014
Looping result0.00000.061110.0000
Template Total0.00187.810.0018
Template load0.00104.308110.0010
Template processing0.00083.512910.0008
Override
Cache load0.00073.122610.0007
General
dbfile0.00031.125480.0000
String conversion0.00000.043540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs