PHP Classes

File: events_detail.php

Recommend this page to a friend!
  Classes of Md. Aminul Islam   Event calendar   events_detail.php   Download  
File: events_detail.php
Role: Example script
Content type: text/plain
Description: Details of a Particular Event
Class: Event calendar
Draw Month Calendar Including Events
Author: By
Last change:
Date: 18 years ago
Size: 3,448 bytes
 

Contents

Class file image Download
<?php
   
//To Get Values by their Name from Query String
   
if (!isset($_GET)) { $_GET = &$HTTP_GET_VARS;}
    if (!isset(
$_POST)) { $_POST = &$HTTP_POST_VARS;}
    if (isset(
$_GET)) { extract($_GET); }
    if (isset(
$_POST)) { extract($_POST); }
   
    echo
"<style>\n";
       
//Event Dates of Clender Color
       
echo ".event_cls {background-color: #04ADFF;color:#FFFFDD; font-weight: bold; text-decoration: none; cursor: hand;}\n";
       
//Event Head (Head of Col) Sun, Mon, Tue.....
       
echo ".event_head{background-color: #99CC00;font-weight:bold;FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;FONT-SIZE: 11px;}\n";
        echo
".event_col{background-color:#A8E4FF;color:#000095;FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;FONT-SIZE: 11px;height:25px;text-decoration: none;}\n";
        echo
".event_link {TEXT-DECORATION: none; color:#0DB0FF; }\n";
        echo
".a {TEXT-DECORATION: none; color:#0DB0FF; }\n";
        echo
".Links { font-family: Tahoma, Sylfaen; font-size: 13px; color: #FFFFFF; font-weight: bolder; Text-decoration:none; }\n";
        echo
".event_cal_heading{ font-family: 'Courier New', Courier, mono; font-size: 18px; color: #FFFFFF; font-weight:bold; background-color: #0000FF;}";
    echo
"</style>";
   
    include(
"ClsConnection.cls.php");

   
$host="localhost";
   
$user="root";
   
$password="";
   
$database="class_test";

   
//Create Object for Calender Event.
   
$ObjEventDetail=new ClsConnection();
   
$ObjEventDetail->UserDefineConnection($host,$user,$password,$database);
   
   
$SelQuery=mysql_query("select * from events where EventId=$EventId")or die("Error in Events Detail Page. Database Error");
   
$CurEvent=mysql_fetch_object($SelQuery);

?>
<htmL>

<body>
Created By: Md. Aminul Islam (aminulsumon@yahoo.com) <br>
<br>
<br>
<table width="55%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#006600" bgcolor="#8AD9FF">
  <tr class="event_col">
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr align="center">
        <td height="30" colspan="3" class="event_cal_heading">Event Detail </td>
      </tr>
      <tr bgcolor="#99CC00">
        <td colspan="3"><img src="space.gif" width="1" height="7"></td>
      </tr>
      <tr class="event_col">
        <td width="14%">&nbsp;Date</td>
        <td width="2%"><strong>:</strong></td>
        <td width="84%"><?=$CurEvent->EventDate?></td>
      </tr>
      <tr bgcolor="#99CC00">
        <td colspan="3"><img src="space.gif" width="1" height="3"></td>
        </tr>
      <tr class="event_col">
        <td>&nbsp;Title</td>
        <td><strong>:</strong></td>
        <td><?=$CurEvent->EventTitle?></td>
      </tr>
      <tr bgcolor="#99CC00">
        <td colspan="3"><img src="space.gif" width="1" height="3"></td>
        </tr>
      <tr class="event_col">
        <td >&nbsp;Vanue</td>
        <td ><strong>:</strong></td>
        <td ><?=$CurEvent->EventVanue?></td>
      </tr>
      <tr bgcolor="#99CC00">
        <td colspan="3"><img src="space.gif" width="1" height="3"></td>
        </tr>
      <tr class="event_col">
        <td valign="top">&nbsp;Detail</td>
        <td valign="top"><strong>:</strong></td>
        <td><? echo nl2br($CurEvent->EventDetail);?></td>
      </tr>
      <tr bgcolor="#99CC00">
        <td colspan="3"><img src="space.gif" width="1" height="5"></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</htmL>