Page 1 of 1

How to ? on CSS implementation on PHP page

Posted: Thu Jun 29, 2006 1:37 pm
by texasrenegade
My question is how can I set up the following:

First off, I have only used PHP for about a week now, so I am a total newbie. That said, here is what I created thus far and will follow this with questions...

If one were to go to

http://www.geikiedesigns.com/Client_dur ... isplay.php

You would see the final display which is derived from the following:

http://www.geikiedesigns.com/Client_dur ... n_home.php

The client goes in and creates a user name/password for those allowed to post to the web in this area. Also, the client can add a category which is dynamically passed to a drop down menu for the add records page. Basically, the user is creating the menu of drop down selections to add the records to.

When the client goes to add the records to the created catagories, they log in using the user name and password that their boss created. So really, the boss creates the categories but this is because he wants it that way.

So here is where his employees log on


http://www.geikiedesigns.com/Client_dur ... _logon.php

Now, all the categories that were created are in the drop down menu. From there, they can add records. This way the client creates basically his own pages, kinda like a CMS system.

But my question is how can I do the following:

1. I want the add category to also add a check box from a selection of CSS styles to go with the category so when the user or viewer presses the links on the display page, the first link I showed here, the pages will appear to be different by using different colors and CSS.

2. How can I add functionality to the user add-records page so they can do things like use BOLD text or ITALIC or select a CSS style, like one would here using the bullentin board functions?

For now, I have a way of doing the first question's part, but it is not the correct way - by adding categories and pages for those categories.

This example would be:

http://www.geikiedesigns.com/Client_kayakingbear/

If you press on the links on the last two lines, you will see examples of different pages, but as I stated, I am creating these pages without the client being able to select the CSS they would like to use.

Thanks for any input. These pages are on a test server but if you want to try them, please don't use profanity. Otherwise, feel free to give them a go....


Randal

Posted: Fri Jun 30, 2006 1:48 am
by texasrenegade
Ok, to get the same page that calls up all the different categories and records to use different css sheets, I found I can use

<link href="/Client_durys/<?php echo $row_rs_dBcatagories['row_CSS']; ?>.css" rel="stylesheet" type="text/css" />
</head>


and add a drop down of all the css sheets to choose from in the Admin section where they create the categories to begin with.


So the only thing left to do is figure out how to add buttons by the input text boxes on that page where the recordsets are added that will allow the user to:

Bold text
Italicize text

and create
  • *listed items
Can anyone tell me how to go about this, then my mini-CMS section will be done. Thanks.


Randal