PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/training/trainingcentreschedule.php

https://bitbucket.org/molusc/sma-website
PHP | 152 lines | 142 code | 10 blank | 0 comment | 11 complexity | e80b046f729c1d28d4141209eb54e1c4 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php session_start(); ?>
  2. <?php require_once('../Connections/bryanmadge.php'); ?>
  3. <?php
  4. if (!isset($_GET["club"]))
  5. $_GET["club"] = "cf";
  6. $clubprefix = $_GET["club"];
  7. if (!isset($_GET["orderby"]))
  8. $_GET["orderby"] = "course_date";
  9. $sortorder = $_GET["orderby"];
  10. $colname_ClubInfo = "cf";
  11. if (isset($HTTP_GET_VARS['club'])) {
  12. $colname_ClubInfo = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['club'] : addslashes($HTTP_GET_VARS['club']);
  13. }
  14. mysql_select_db($database_bryanmadge, $bryanmadge);
  15. $query_ClubInfo = sprintf("SELECT trainingclubs.clubid, trainingclubs.clubname, trainingclubs.clubprefix, trainingclubs.standardfees, trainingclubs.clubfees, UNIX_TIMESTAMP(trainingclubs.feesfixeduntilend) AS feesfixeduntilend, trainingclubs.coursetime, trainingclubs.description FROM trainingclubs WHERE clubprefix = '%s'", $clubprefix);
  16. $ClubInfo = mysql_query($query_ClubInfo, $bryanmadge) or die(mysql_error());
  17. $row_ClubInfo = mysql_fetch_assoc($ClubInfo);
  18. $totalRows_ClubInfo = mysql_num_rows($ClubInfo);
  19. mysql_select_db($database_bryanmadge, $bryanmadge);
  20. $query_TrainingClub = "SELECT schedule.course_id, schedule.course_title_id, catalog.title, UNIX_TIMESTAMP(schedule.course_date) AS course_date, schedule.course_town, schedule.course_venue_id, schedule.course_classification
  21. FROM schedule INNER JOIN catalog ON schedule.course_title_id = catalog.catalog_id
  22. WHERE catalog.categoryid NOT IN(21) AND schedule.course_classification Like '$clubprefix%' ORDER BY $sortorder";
  23. $TrainingClub = mysql_query($query_TrainingClub, $bryanmadge) or die(mysql_error());
  24. $row_TrainingClub = mysql_fetch_assoc($TrainingClub);
  25. $totalRows_TrainingClub = mysql_num_rows($TrainingClub);
  26. ?>
  27. <html><!-- InstanceBegin template="/Templates/general.dwt" codeOutsideHTMLIsLocked="false" -->
  28. <head>
  29. <LINK REL="SHORTCUT ICON" HREF="../favicon.ico">
  30. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  31. <meta name="GENERATOR" content="Dreamweaver MX">
  32. <meta name="keywords" content="CDM Regulations, CESMM, civil engineering, construction management, contract administration, contract procedures, courses, environmental awareness, geotechnical, Health and safety, ICE Conditions of Contract, ICE Professional Review, JCT Form of Contract, Method of Measurement for Highway Works, MMHW, NEC New Engineering and Construction Contract, Project management, report writing, site supervision, Standard Forms of Contract, training, AMPR, CET, CPD, TMPR, Eurocodes">
  33. <!-- #BeginEditable "doctitle" -->
  34. <title><?php echo $row_ClubInfo['clubname']; ?> Training Club Schedule - Symmons Madge Associates Ltd</title>
  35. <!-- #EndEditable -->
  36. <link rel="stylesheet" href="../bma.css" type="text/css">
  37. <link rel="stylesheet" href="../print.css" type="text/css" media="print" />
  38. <!-- InstanceParam name="OptionalPageTitle" type="boolean" value="true" --><!-- InstanceParam name="OptionalBreadcrumbs" type="boolean" value="true" --><!-- InstanceParam name="Google Analytics Code" type="boolean" value="true" -->
  39. </head>
  40. <body><div class="printhide"><!-- #BeginLibraryItem "/Library/Masthead.lbi" -->
  41. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  42. <tr>
  43. <td width="150" rowspan="2"><a href="../home.html" target="_top">
  44. <!-- <img src="../images/smalogo_sml_party_hat.gif" ALT="Symmons Madge Associates Ltd home" width="124" height="90" border="0">
  45. -->
  46. <img src="../images/smalogo_sml.gif" ALT="Symmons Madge Associates Ltd home" width="124" height="64" border="0"> </a></td>
  47. <td><p class="tagline"><font size="4">Training for a Successful Future</font></p></td>
  48. </tr>
  49. <tr>
  50. <td valign="bottom"><table class="masthead" width="100%" height=25 border="0" cellpadding="0" cellspacing="0">
  51. <tr>
  52. <!-- <td width="5%" bgcolor="#FFFFFF">&nbsp;</td>-->
  53. <td align="left" valign="top"><img src="/images/corner_TL.gif" width="15" height="25"></td>
  54. <td>&nbsp;&nbsp;<a
  55. href="../courses/index.php" target="_top">Courses</a> &nbsp;<FONT color=#909090>:</FONT>&nbsp;&nbsp;<a
  56. href="../diary/diary.php" target="_top">Course&nbsp;Diary</a> &nbsp;<FONT color=#909090>:</FONT>&nbsp;&nbsp;<a
  57. href="training-club.php" target="_top">Regional Training</a> &nbsp;<FONT color=#909090>:</FONT>&nbsp;&nbsp;<a
  58. href="../consultancy/index.html" target="_top">Consultancy</a> &nbsp;<FONT color=#909090>:</FONT>&nbsp;&nbsp;<a
  59. href="../search/index.php" target="_top">Search</a> &nbsp;<FONT color=#909090>:</FONT>&nbsp;&nbsp;<a
  60. href="../links.html" target="_top">Links</a> &nbsp;<FONT color=#909090>:</FONT>&nbsp;&nbsp;<a
  61. href="../company/about.html" target="_top">About us</a> &nbsp;<FONT color=#909090>:</FONT>&nbsp;&nbsp;<a
  62. href="../contact.html" target="_top">Contact</a>&nbsp;&nbsp;</td>
  63. </tr>
  64. </table></td>
  65. </tr>
  66. </table>
  67. <!-- #EndLibraryItem --></div>
  68. <div class="printonly">
  69. <div align="right"><img src="../images/smalogo_sml.gif" width="124" height="64" class="floatright"></div>
  70. </div>
  71. <div id="main">
  72. <p class="breadcrumbs printhide"><!-- #BeginEditable "breadcrumbs" --><a href="/home.html" target="_top">Home</a>&nbsp;&gt;&nbsp;<a href="index.html">Training</a>&nbsp;&gt;&nbsp;<a href="trainingcentre.php">Regional
  73. Training Centres</a>&nbsp;&gt;&nbsp;<?php echo $row_ClubInfo['clubname']; ?><!-- #EndEditable --></p>
  74. <h1 class="bmapagetitle"><!-- #BeginEditable "title" --> <?php echo $row_ClubInfo['clubname']; ?> Training Centre schedule <!-- #EndEditable --></h1>
  75. <!-- #BeginEditable "body" -->
  76. <div class="bmabody">
  77. <p>
  78. <?php // echo $query_TrainingClub ?>
  79. </p>
  80. <h2>We welcome both members and external delegates on all Training Centre courses</h2>
  81. <p><?php echo $row_ClubInfo['description']; ?></p>
  82. <table BORDER="0" CELLPADDING="2" CELLSPACING="3">
  83. <tr>
  84. <td COLSPAN=2><div align="right" class="bmabody"><font size="-1">Sort by: <a href="training-club-schedule.php?orderby=course_date&club=<? echo $clubprefix ?>">Date</a> or <a href="training-club-schedule.php?orderby=title&club=<? echo $clubprefix ?>">Course Title</a></font></div></td>
  85. </tr>
  86. <tr bgcolor="#000066"><td class="bmatableheaderlink"><div align="left"><font color="#FFFFFF" SIZE="-1"><strong><a href="training-club-schedule.php?orderby=course_date&club=<? echo $clubprefix ?>">Date</a></strong></font></div></td>
  87. <td class="bmatableheaderlink"><div align="left"><font color="#FFFFFF" SIZE="-1"><strong><a href="training-club-schedule.php?orderby=title&club=<? echo $clubprefix ?>">Course Title </a></strong></font></div></td>
  88. </tr>
  89. <?php do { ?>
  90. <tr bgcolor="#E5E5E5"><td><div align="right"><font size="-1">
  91. <?php $dt = $row_TrainingClub['course_date'];
  92. echo date('jS F Y', $dt);
  93. ?>
  94. </font></div></td>
  95. <td><font size="-1"><?php echo "<a href=\"/courses/course-details.php?id=",$row_TrainingClub['course_title_id'],"\">",$row_TrainingClub['title'],"</a>"; ?></font></td>
  96. </tr>
  97. <?php } while ($row_TrainingClub = mysql_fetch_assoc($TrainingClub)); ?>
  98. </table>
  99. <p>The course time for this Training Centre is <strong><?php echo $row_ClubInfo['coursetime']; ?>.</strong></p>
  100. <h3>Fees (to end
  101. <?php $dt = $row_ClubInfo['feesfixeduntilend'];
  102. echo date('M Y', $dt); ?>)
  103. </h3>
  104. <?php
  105. if(isset($_SESSION['company']))
  106. echo '<p style="color: #FF0000"><strong>Discounted rate for '.$_SESSION['company'].' Employees: &pound;'.$_SESSION['companyrate'].' per day + VAT.</strong></p><p>&nbsp;</p.';
  107. else {
  108. ?>
  109. <p>Standard Rate &pound;<?php echo $row_ClubInfo['standardfees']; ?> + VAT per day.<br>
  110. Club Members &pound;<?php echo $row_ClubInfo['clubfees']; ?> + VAT per day.</p>
  111. <ul>
  112. <li>If your organisation has already, or decides to commit to a minimum of 12 places over the training year, you would qualify for the members&rsquo; discounted rate - please ask for details</li>
  113. <li> Payment - we invoice after each course</li>
  114. </ul>
  115. <?php } ?>
  116. <p><strong>For further information</strong> please contact Sue Chatfield:<br>
  117. Tel 01446 775959 - Fax 01446 775758<br>
  118. Email <a href="mailto:sue.chatfield@symmonsmadge.co.uk">sue.chatfield@symmonsmadge.co.uk</a></p>
  119. </div>
  120. <!-- #EndEditable --></div>
  121. <div class="printhide"><!-- #BeginLibraryItem "/Library/Full Footer.lbi" --><hr width="65%">
  122. <p align="center"><!-- #BeginLibraryItem "/Library/Footer.lbi" --><!-- #EndLibraryItem --></p>
  123. <!-- #EndLibraryItem --><!-- #BeginLibraryItem "/Library/Legal footer.lbi" --><div align="center" class="bmabody"><font size="1"><a href="../company/legal.html">Legal
  124. Notice</a><br>
  125. Copyright &copy; Symmons Madge Associates Ltd, All Rights Reserved</font></div>
  126. <!-- #EndLibraryItem --><!-- Start of StatCounter Code -->
  127. <script type="text/javascript" language="javascript">
  128. var sc_project=337750;
  129. var sc_partition=1;
  130. </script>
  131. <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript>
  132. <a href="http://www.statcounter.com/" target="_blank"><img src="http://c2.statcounter.com/counter.php?sc_project=337750&amp;java=0" alt="counter stats" border="0"></a>
  133. </noscript>
  134. <!-- End of StatCounter Code -->
  135. <!-- InstanceBeginEditable name="EditRegion1" --><!-- #BeginLibraryItem "/Library/Google Analytics PHP Include.lbi" -->
  136. <?php include_once($_SERVER['DOCUMENT_ROOT'] . "/analyticstracking.php"); ?><!-- #EndLibraryItem --><!-- InstanceEndEditable --></div>
  137. </body>
  138. <!-- InstanceEnd --></html>
  139. <?php
  140. mysql_free_result($ClubInfo);
  141. mysql_free_result($TrainingClub);
  142. ?>