PDA

View Full Version : Help with $tableWidth


gastric
01-10-2004, 08:53 PM
I seem to be unable to control the tablewidth of the calendar itself as seen on this page http://breakdown.cgraham.com/schedule.htm

I've loaded the calendar files to http://breakdown.cgraham.com/calendar/

I'm using a flatfile for now and have that stored at http://breakdown.cgraham.com/esdates.txt in the same directory as the HTML file the calendar is located on.

My issue is with the calendar table width. As you can see it's enormous, and that's using the default $tableWidth setting. Editing the $tableWidth setting in escalConfig.php does nothing, though editing the other settings in that file do affect the calendar. I've even tried manually replacing $tableWidth references with hardcoded values in escal.php with no results.

This is the first week I've worked with PHP at all and today is the first day trying to implement something "fancy" using code from the internet so bear with my noobi-ness. :)

gastric
01-10-2004, 09:11 PM
Also, I'm having issues with the popups not displaying the content. I'm sure it's related to schedule.htm being in a different directory than the calendar files. Hopefully I'll figure it out before someone replies.

Brian
01-10-2004, 10:42 PM
Does the demo.php file work correctly with the table width?

gastric
01-10-2004, 11:52 PM
Apparently.

http://breakdown.cgraham.com/calendar/demo.php

I'll look at the CSS sheet being used for the site. I'm guessing that's the culprit.

gastric
01-10-2004, 11:58 PM
Bingo!

I had a class in my other CSS called .maintable and escal.php was calling a maintable which was pulling my CSS which has tablewidth: 800px

I was cutting code from the page earlier in an attempt to process-of-elimination the issue and didn't try my other CSS page for some reason.

Thanks! :)

gastric
01-11-2004, 12:04 AM
Any thoughts on the popup not functioning? I'm expecting it to open some sort of page that looks the same as the schedule.htm but with the event details displayed.