PageRenderTime 24ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/registration/delegate/conference/moreinfo.php

https://github.com/damanlovett/SEAHO
PHP | 145 lines | 134 code | 11 blank | 0 comment | 13 complexity | 4cf8c9712447303c4461f77d947fda6f MD5 | raw file
  1. <?php require_once('../../../Connections/CMS.php'); ?>
  2. <?php require_once('../../includefiles/initDelegates.php'); ?>
  3. <?php
  4. if (!function_exists("GetSQLValueString")) {
  5. function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  6. {
  7. $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  8. $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  9. switch ($theType) {
  10. case "text":
  11. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  12. break;
  13. case "long":
  14. case "int":
  15. $theValue = ($theValue != "") ? intval($theValue) : "NULL";
  16. break;
  17. case "double":
  18. $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
  19. break;
  20. case "date":
  21. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  22. break;
  23. case "defined":
  24. $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
  25. break;
  26. }
  27. return $theValue;
  28. }
  29. }
  30. $colname_rsConference = "-1";
  31. if (isset($_GET['conferenceID'])) {
  32. $colname_rsConference = $_GET['conferenceID'];
  33. }
  34. mysql_select_db($database_CMS, $CMS);
  35. $query_rsConference = sprintf("SELECT * FROM conference WHERE conference.deleted = 0 AND conference.conference_id = %s", GetSQLValueString($colname_rsConference, "text"));
  36. $rsConference = mysql_query($query_rsConference, $CMS) or die(mysql_error());
  37. $row_rsConference = mysql_fetch_assoc($rsConference);
  38. $totalRows_rsConference = mysql_num_rows($rsConference);
  39. $colname_rsItems = "-1";
  40. if (isset($_GET['conferenceID'])) {
  41. $colname_rsItems = $_GET['conferenceID'];
  42. }
  43. mysql_select_db($database_CMS, $CMS);
  44. $query_rsItems = sprintf("SELECT * FROM delegate_invoice WHERE delegate_invoice.conference_id=%s AND delegate_invoice.deleted = 0 AND delegate_invoice.type != 'registration' ORDER BY delegate_invoice.label", GetSQLValueString($colname_rsItems, "text"));
  45. $rsItems = mysql_query($query_rsItems, $CMS) or die(mysql_error());
  46. $row_rsItems = mysql_fetch_assoc($rsItems);
  47. $totalRows_rsItems = mysql_num_rows($rsItems);
  48. $colname_rsFees = "-1";
  49. if (isset($_GET['conferenceID'])) {
  50. $colname_rsFees = $_GET['conferenceID'];
  51. }
  52. mysql_select_db($database_CMS, $CMS);
  53. $query_rsFees = sprintf("SELECT * FROM delegate_invoice WHERE delegate_invoice.conference_id=%s AND delegate_invoice.deleted = 0 AND delegate_invoice.type = 'registration' ORDER BY delegate_invoice.amount", GetSQLValueString($colname_rsFees, "text"));
  54. $rsFees = mysql_query($query_rsFees, $CMS) or die(mysql_error());
  55. $row_rsFees = mysql_fetch_assoc($rsFees);
  56. $totalRows_rsFees = mysql_num_rows($rsFees);
  57. ?>
  58. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  59. <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/second.dwt.php" codeOutsideHTMLIsLocked="false" -->
  60. <head>
  61. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  62. <!-- InstanceBeginEditable name="doctitle" -->
  63. <title>Current Conference More Info</title>
  64. <!-- InstanceEndEditable -->
  65. <link href="../../../stylesheets/mainsheet.css" rel="stylesheet" type="text/css" />
  66. <!-- InstanceBeginEditable name="head" -->
  67. <link href="../../styles/cmsMain.css" rel="stylesheet" type="text/css" />
  68. <style type="text/css">
  69. <!--
  70. .textheader #contentmain strong {
  71. font-weight: bold;
  72. font-size: 11px;
  73. }
  74. -->
  75. </style>
  76. <!-- InstanceEndEditable -->
  77. </head>
  78. <body>
  79. <!-- DO NOT MOVE! The following AllWebMenus code must always be placed right AFTER the BODY tag-->
  80. <!-- ******** BEGIN ALLWEBMENUS CODE FOR mainnav ******** -->
  81. <span id='xawmMenuPathImg-mainnav' style='position:absolute;top:-50px;left:0px'><img name='awmMenuPathImg-mainnav' id='awmMenuPathImg-mainnav' src='../../../menu/awmmenupath.gif' alt=''></span>
  82. <script type='text/javascript'>var MenuLinkedBy='AllWebMenus [4]', awmBN='626'; awmAltUrl='';</script>
  83. <script charset='UTF-8' src='../../../menu/mainnav.js' language='JavaScript1.2' type='text/javascript'></script>
  84. <script type='text/javascript'>awmBuildMenu();</script>
  85. <!-- ******** END ALLWEBMENUS CODE FOR mainnav ******** -->
  86. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="textheader">
  87. <?php require_once('../../../includefiles/header.inc.php'); ?>
  88. <tr>
  89. <td colspan="2" bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="pageBanner" -->
  90. <?php require_once('../../includefiles/header.php'); ?>
  91. <!-- InstanceEndEditable --></td>
  92. </tr>
  93. <tr>
  94. <td colspan="2" class="texttop">&nbsp;</td>
  95. </tr>
  96. <tr>
  97. <td width="182" valign="top" id="contentleftmain"><!-- InstanceBeginEditable name="leftNav" -->
  98. <?php require_once('../../includefiles/leftNavDelegates.php'); ?>
  99. <!-- InstanceEndEditable --><img src="../../../images/dropshadowlogo.jpg" alt="Seaho Logo" /></td>
  100. <td width="582" valign="top" id="contentmain"><!-- InstanceBeginEditable name="mainContent" -->
  101. <h3><strong><?php echo $row_rsConference['conference_name']; ?></strong></h3>
  102. <p><?php echo $row_rsConference['conference_theme']; ?><br />
  103. <?php echo $row_rsConference['location']; ?>, <?php echo $row_rsConference['start_date']; ?> - <?php echo $row_rsConference['end_date']; ?></p>
  104. <p>Registration begins <strong><?php echo formatDate($row_rsConference['start_date'],'M. d, Y'); ?></strong> and ends <strong><?php echo formatDate($row_rsConference['registration_deadline'],'M. d, Y'); ?></strong>. Late registration begins on <strong><?php echo $row_rsConference['registration_late']; ?></strong>.</p>
  105. <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  106. <tr>
  107. <td width="50%" align="left" valign="top"><p><strong>Registration</strong></p>
  108. <ul>
  109. <?php do { ?>
  110. <li><?php echo $row_rsFees['label']; ?> - <?php echo DoFormatCurrency($row_rsFees['amount'], 2, '.', ',', '$'); ?></li>
  111. <?php } while ($row_rsFees = mysql_fetch_assoc($rsFees)); ?></ul></td>
  112. <td align="left" valign="top"><p><strong>Items</strong></p>
  113. <ol>
  114. <?php do { ?>
  115. <li><?php echo $row_rsItems['label']; ?> - <?php echo DoFormatCurrency($row_rsItems['amount'], 2, '.', ',', '$'); ?></li>
  116. <?php } while ($row_rsItems = mysql_fetch_assoc($rsItems)); ?></ol></td>
  117. </tr>
  118. </table></td>
  119. </tr>
  120. </table>
  121. <p><br />
  122. </p>
  123. <p>&nbsp;</p>
  124. <!-- InstanceEndEditable --></td>
  125. </tr>
  126. <?php require_once('../../../includefiles/footer.inc.php'); ?>
  127. </table>
  128. </body>
  129. <!-- InstanceEnd --></html>
  130. <?php
  131. mysql_free_result($rsConference);
  132. mysql_free_result($rsItems);
  133. mysql_free_result($rsFees);
  134. ?>