CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Modify Output Based on Group

Print topic Send  topic

Author Message
Damian Hupfeld
Posted: 01/20/2005, 8:18 PM

I am building a directory for a customer. There are three levels of
directory listings:
full listing (paid)
multiline listing (paid)
basic listing (free)

I have created a search page that lists all businesses that match the search
criteria and lists them in order of
FULL
MULTILINE
FREE
so that those businesses who are paying shoudl get seen more easily.

Additionally the search results just displays the business name.

You click on the business name and are taken to more info.

The Free Listings should only display name and phone number
The Multiline will also contain address, email, web etc
The Full Listings can also contain logos, description and services offered.

All businesses can input all this information but it will only display the
extra info if you pay.

On the details page how should I check the business advertiser_level before
displaying the info, and then only displaying the right info.

Damian


Martin K.
Posted: 01/23/2005, 2:52 AM

Hello.
If you want that
full listing (paid)
multiline listing (paid)
only shown to paid(login) User you have an GroupID from the login User.
In the Detail Page you can hide Values like:
if(CCGetGroupID() <> 2)
$form->field->SetValue("");
OR
if(CCGetGroupID() < 1)
$form->field->Visible = false;

greets martin
Martin K.
Posted: 01/23/2005, 2:53 AM

Hello.
If you want that
full listing (paid)
multiline listing (paid)
only shown to paid(login) User you have an GroupID from the login User.
In the Detail Page you can hide Values like:
if(CCGetGroupID() <> 2)
$form->field->SetValue("");
OR
if(CCGetGroupID() < 1)
$form->field->Visible = false;

greets martin

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.