Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Booking System help :(

Status
Not open for further replies.

StuartHenry

Technical User
Apr 27, 2006
1
GB
Hi, can anyone help?

Im trying to create an online booking system for a learning centre. Ive created an xml webpage which is for the booking table. This is complete and can hold information (manually put in). Along with this is an xsl stylesheet.

I also made a website using Html. Im trying to use this page as the input method. This website includes drop down boxes, message boxes and a submit button (removed due to errors).

Can anyone help me with merging these 2 together so that when I submit the information, the booking table gets updated and the information gets added to the table.

All I need is something simple, nothing flashy or colourful, just a system that will update the table. Ive done reading into VB and Javascripting but am finding it difficult to underatand. Also, I need to use ASP in order to do this.

I would much appreciate it if anyone can help?




Below is the code that I currently have.


booking table XML:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="booking.xsl"?>
<booking>
<event>
<person>Michael</person>
<resource>bncgvhc</resource>
<activity>Academic Writing</activity>
<place>G317</place>
<start_date>29/03/06</start_date>
<start_time>15:00</start_time>
<end_date>29/03/06</end_date>
<end_time>16:00</end_time>
</event>
<event>
<person>gdfsbtjfdgbnfesgchjrs</person>
<resource>bncgvhc</resource>
<activity>Academic Writing</activity>
<place>G317</place>
<start_date>29/03/06</start_date>
<start_time>15:00</start_time>
<end_date>29/03/06</end_date>
<end_time>16:00</end_time>
</event>
</booking>




bookingtable XSL:

<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
xmlns:xsl=" match="/">
<html>
<body>
<h2>Bookings</h2>
<table border="1">
<tr bgcolor="#9acd36">
<th>Person</th>
<th>Resource</th>
<th>Activity</th>
<th>Place</th>
<th>Start Date</th>
<th>Start Time</th>
<th>End Data</th>
<th>End Time</th>
</tr>
<xsl:for-each select="booking/event">
<tr>
<td><xsl:value-of select="person"/></td>
<td><xsl:value-of select="resource"/></td>
<td><xsl:value-of select="activity"/></td>
<td><xsl:value-of select="place"/></td>
<td><xsl:value-of select="start_date"/></td>
<td><xsl:value-of select="start_time"/></td>
<td><xsl:value-of select="end_date"/></td>
<td><xsl:value-of select="end_time"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>



Html Webpage:

<html>
<head>
<script type="text/javascript">
function learning centre()
{
var mylist=document.getElementById("myList")
document.getElementById("learning centre").value=mylist.options[mylist.selectedIndex].text
}
</script>
</head>
<body>
<form>
Which Workshops?:
<select id="myList" onchange="workshop()">
<option>Academic Writing</option>
<option>Active Reading</option>
<option>Case Studies</option>
<option>Critical Analysis</option>
<option>Exam Preperation</option>
<option>Group Work</option>
<option>Interview Question Design</option>
<option>Note Taking</option>
<option>Personal Development Planning (PDP)</option>
<option>Poster Presentation 1</option>
<option>Poster Presentation 2</option>
<option>Presentation Skills</option>
<option>Referencing</option>
<option>Report Writing</option>
<option>Study Strategy</option>
<option>Sumz</option>
<option>Time Management</option>
</select>
</form>
</body>
<br>
<body>
<form>
Resources Available?:
<select id="myList" onchange="resources()">
<option>Personal Progress File</option>
<option>Essay Writing</option>
<option>Study Skills</option>
<option>Inspiration Mind Map</option>
<option>Co-writer Word Prediction Tool</option>
<option>Visual Thesaurus</option>
<option>Student Guide to Oral Presentation</option>
<option>Interviewer Interactive</option>
<option>SNAP Questionnaire</option>
<option>SPSS Questionnaire</option>
<option>Statistics for the Terrified</option>
</select>
</form>
</body>
<br>
<body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top