Frazer Posted April 18, 2001 Posted April 18, 2001 Hi Guys, I've managed to hit a brick wall almost from the beginning in developing an online timetable system for our students to query. What I want them to do is select the classes they attend and press 'submit' to get a table they can printout which lays out their timetable as below: Monday Tuesday .... 0800 FY3501 Room 2 Dr. X 0900 FY3501 FY3520 Room 2 Room 7 Dr. X Dr. W 1000 etc. I can set it up so they get a big long list of entries for their mulitple search however I'm really stuck in trying to visualise the cdml codes in the html table and how to pull data from a database and insert it into the correct cells in the table, depending on the student's course search. If anyone can help or know of an existing solution I'd be very greatful. Thanks Frazer
Frazer Posted April 18, 2001 Author Posted April 18, 2001 Hi Guys, Cracked it: Each cell in my table has code resembling the following entered: [fmp-record][FMP-If:start_time.eq.0800][FMP-If:day.eq.Mon][fmp-field:Course] [fmp-field:location] [fmp-field:type] [/FMP-IF][/FMP-IF][/fmp-record] By varying the if statements I can display different results from the search. Cheers, Frazer
Keith M. Davie Posted April 20, 2001 Posted April 20, 2001 Frazer has provided a very good example of the power to be found in the conditional [fmp-if] when used wisely as a solution on the format file. If you are learning this stuff, pay attention. SIMPLIFY ... Keith
Recommended Posts
This topic is 8687 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now