PK

ADDRLIN : /home/anibklip/ldhcgewc.org/
FLL :
Current File : /home/anibklip/ldhcgewc.org/events.php

<?php
$query = "select * from content where page_id='$_GET[id]'";
$query = mysql_query($query) or die(mysql_error());
if($cont=mysql_fetch_array($query)){
	if($cont[parent_id]){
		$parent_id=$cont[parent_id];
	}else{
		$parent_id=$cont[page_id];
	}
}
?>
<section class="page-header">
	<div class="container">		
		<h1><?php echo $cont[titl]?></h1>
	</div><!--/ .container-->
</section><!--/ .page-header-->

<!-- - - - - - - - - - - - - - Main - - - - - - - - - - - - - - - - -->		

<section class="main container sbr clearfix">
	<!-- - - - - - - - - - Breadcrumbs - - - - - - - - - - - - -->
	<div class="breadcrumbs">
		<a title="Home" href="index.php">Home</a>
		<span><?php echo $cont[titl]?></span>
	</div><!--/ .breadcrumbs-->
	<!-- - - - - - - - - end Breadcrumbs - - - - - - - - - - - -->	

	<!-- <div class="bordered">
		<figure class="add-border">
			<img src="images/temp/full-width.jpg" alt="" />
		</figure>
	</div> --> <!--/ .bordered-->
	
	<section id="content" class="twelwe columns">
		<?php
		$query = "select * from cgoffice order by name desc limit 2";
		//echo "$query<br />";
		$query = mysql_query($query) or die (mysql_error());
		while($row = mysql_fetch_array($query)){
			?>	
			<article class="entry event">
				<div class="entry-body">
					<div class="entry-title">
						<h2 class="title" style="margin-bottom: 6px;"><?php echo $row[name]?></h2>
						<div class="p_row">
							<span class="p_title"><b>Address : </b></span>
							<?php echo $row[address]?>, <?php echo $row[city]?>, <?php echo $row[pincode]?>
						</div>

						<div class="p_row">
							<span class="p_title"><b>Telephone : </b></span>
							<?php echo $row[phone]?>
						</div>
						<div class="p_row">
							<span class="p_title"><b>Fax : </b></span>
							<?php echo $row[fax]?>
						</div>
						<div class="p_row">
							<span class="p_title"><b>Email : </b></span>
							<?php echo $row[email]?>
						</div>
						<div class="p_row">
							<span class="p_title"><b>Name of the Head : </b></span>
							<?php echo $row[head_name]?>
						</div>
						<div class="p_row">
							<span class="p_title"><b>Designation : </b></span>
							<?php echo $row[desig]?>
						</div>
						<div class="p_row">
							<span class="p_title"><b>Tel/Mobile : </b></span>
							<?php echo $row[des_phone]?>
						</div>
						<div class="p_row">
							<span class="p_title"><b>Website : </b></span>
							<?php echo $row[website]?>
						</div>
					</div><!--/ .entry-title-->
				</div><!--/ .entry-body -->
			</article><!--/ .entry-->
			<?php
		}
		?>

		
		<article class="entry event">
			
			<div class="entry-meta">
				
				<span class="date">24</span>
				<span class="month">sep</span>

			</div><!--/ .entry-meta-->

			<div class="entry-body">
				
				<div class="entry-title">

					<h2 class="title"><a href="event-single-without-image.html">Event Repeating Every Sunday</a></h2>
					
					<span class="e-date"><b>September 23, 2012 &ndash; September 24, 2012</b>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;
						<strong>09:00 am &ndash; 11:00 am </strong>
					</span>
					<span class="place"><b>Place: </b>Los Angeles Olympic Stadium</span>
					
				</div><!--/ .entry-title-->					

				<p>
					Donec tellus nunc, sollicitudin eu congue tempor, dapibus et metus. 
					Fusce ac ipsum at magna accumsan scelerisque sedon dolor. 
				</p>
				
				<a href="event-single-without-image.html" class="button default small">Event Details</a>

			</div><!--/ .entry-body -->

		</article><!--/ .entry-->

	</section>
		
</section><!--/ .main -->


PK 99