/php/reu-page.php
PHP | 265 lines | 161 code | 83 blank | 21 comment | 17 complexity | 49e2f78ae8bb3cdb3a216ac6135884e6 MD5 | raw file
- <?php
- //Start session
- session_start();
- $date=$_POST["date"];
- if($date == '')
- {
- ?>
- <script>
- //window.location.reload();
- </script>
- <?php
- $_SESSION['date'] = $date;
- }
- else
- {
- $_SESSION['date']="wrong";
- }
- /* $date=$_GET["date"];
- if($date == '')
- {
- ?>
- <script>
- window.location.reload();
- </script>
- <?php
- $_SESSION['date'] = $date;
- }
- else
- {
- $_SESSION['date']="wrong";
- } */
- //include("connect.php");
- require_once('connect.php');
- $id=$_GET["id"];
- $qry="SELECT * from reu where id='$id'";
- $result=@mysql_query($qry);
- if($result)
- {
-
- $row=mysql_fetch_assoc($result)
-
- ?>
- <!-- Put IE into quirks mode -->
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title> <?php echo ' '.$row['title'].' '; ?> </title>
- <link href="new.css" rel="stylesheet" type="text/css" />
- <meta name="Author" content="Isatou" />
- <script type="text/javascript">
- function getTime()
- {
- var d = new Date();
- var c_hour = d.getHours();
- var c_min = d.getMinutes();
- var c_sec = d.getSeconds();
- var month = d.getMonth();
- var day = d.getDay();
- var year = d.getFullYear();
- //var t = d + ":" + c_hour + ":" + c_min + ":" + c_sec;
- var t= month + ' ' + day + ' ' + year;
- document.getElementById("demo").innerHTML=t;
- return t;
- }
- function getMonth()
- {
- var d=new Date();
- var month=new Array();
- month[0]="January";
- month[1]="February";
- month[2]="March";
- month[3]="April";
- month[4]="May";
- month[5]="June";
- month[6]="July";
- month[7]="August";
- month[8]="September";
- month[9]="October";
- month[10]="November";
- month[11]="December";
- var n = month[d.getMonth()];
- document.getElementById("demo").innerHTML=n;
- return n;
- }
- function getDay()
- {
- var d=new Date();
- var day= d.getDay();
- return day;
- }
- </script>
- </head>
- <body>
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
- <div id="maincontainer">
- <div id="topsection"><div class="innertube">
- <?php
- include('menu.php');
- ?>
- </div></div>
- <div id="contentwrapper">
- <div id="contentcolumn">
- <div class="innertube">
- <?php
- if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
- echo '<ul class="err">';
- foreach($_SESSION['ERRMSG_ARR'] as $msg) {
- echo '<li>',$msg,'</li>';
- }
- echo '</ul>';
- unset($_SESSION['ERRMSG_ARR']);
- }
- ?>
- <?php
- /*<div style="background:url("pin.jpg") #FFFF00; background-repeat: no-repeat;">
- </div> */
- echo '
- <IMG SRC="pin.jpg" HEIGHT="20" WIDTH="20" BORDER="0" style="margin-left: 200px;">
- <h1 align="center">'.$row['title'].'</h1>
- '.$row['details'].'
- <br/>
- <br/>';
- if( $row['month'] != '')
- {
- echo '<p><b>Deadline:</b> '.$row['month'].' '.$row['day'].','.$row['year'].' </p>';
- }
- if( $row['website'] != '')
- {
- echo '<p><b>Website:</b> <a href= " '.$row['website'].' " > '.$row['website'].' </p>';
- }
-
-
- if($row['name'] != '')
- {
- echo '<p><b>Contact Person: </b> '.$row['name'].' </p>' ;
- }
- if($row['phone'] != '')
- {
- echo ' <p><b> Phone: </b>'.$row['phone'].' </p>';
- }
- if($row['contact_email'] != '')
- {
- echo '<p><b> Email: </b>'.$row['contact_email'].'. </p>';
- }
-
- }
- else
- {
- die("Query failed!");
- }
- ?>
- <div class="fb-like" data-href="http://dagenda.phpfogapp.com/event_page.php?id=<?php echo ' '.$id.' ';?>" data-send="false" data-width="450" data-show-faces="true"></div>
- <?php
- include('side_bar_classified_admin.php');
- ?>
- </div>
- </div>
- </div>
- <div id="leftcolumn">
- <div class="innertube">
- <?php
- include('side_bar_classified.php');
- ?>
- </div>
- </div>
- <div id="rightcolumn">
- <div class="innertube">
- <?php
- include('adverts.php');
- ?>
- </div>
- </div>
- <div id="footer"><a href="http://www.dynamicdrive.com/style/">Copyright 2013</a></div>
- </div>
-
- </body></html>