Файловый менеджер - Редактировать - /home/umudio/public_html/repo/newsdetail.php.tar
Назад
home/umudio/public_html/OLD/newsdetail.php 0000644 00000004634 14773626204 0014610 0 ustar 00 <?php include("Connecter/dataconn.php"); ?> <?php if (isset($_GET['tab'])) { unset($temp); if(isset($_GET['tab'])){ $_GET['tab']=trim($_GET['tab']); if(preg_match('/^[0-9]/u',$_GET['tab'])){ settype($_GET['tab'], 'int'); $temp=(int)$_GET['tab']; } } if(!isset($temp)){echo "Sorry! Wrong Data!"; exit();} $id=$temp; $query_dio = "SELECT * FROM news where sn=$id"; $dio = mysql_query($query_dio, $csn) or die(mysql_error()); $row_dio = mysql_fetch_assoc($dio); $totalRows_dio = mysql_num_rows($dio); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php include("head.php"); ?> </head> <body> <?php include("top.php"); ?> <?php include("titlebar.php"); ?> <?php include("mast.php"); ?> <?php include("navbar.php"); ?> <?php include("contenttop.php"); ?> <?php include("sidebar.php"); ?> <?php include("mainbartop.php"); ?> <!--Content Goes here--> <div class="headingbiggest">News & Events…</div><hr /> <div class="headingbigger"> <?php echo $row_dio['titler']; ?> </div> <div class="textnormal"> <?php $query_dio1 = "SELECT * FROM newsphotos where whose=" . $row_dio['sn']; $dio1 = mysql_query($query_dio1, $csn) or die(mysql_error()); $row_dio1 = mysql_fetch_assoc($dio1); $totalRows_dio1 = mysql_num_rows($dio1); ?> <?php if ($totalRows_dio1>0) { ?> <?php $nott=1; do { $nottt=$nott%2; if($nottt==0){ ?> <img src="<?php echo $row_dio1['photo']; ?>" style="float:left; padding:10px 15px 10px 0px;" /> <?php } else { ?> <img src="<?php echo $row_dio1['photo']; ?>" style="float:left; padding:10px 15px 10px 0px;" /> <?php } $nott++; } while ($row_dio1 = mysql_fetch_assoc($dio1)); ?> <?php } ?> <div style="text-align:left; padding-top:10px;"> <?php echo $row_dio['contenter']; ?> </div> </div> <p style="clear:both;"> </p> <hr /> <a href="news.php">See Other News & Events »</a> <p> </p><!--Content Ends here--> <?php include("mainbarbottom.php"); ?> <?php include("contentbottom.php"); ?> <?php include("footbar.php"); ?> <?php include("bottom.php"); ?> </body> </html> <?php } else { include("news.php"); } ?>