Location: PHPKode > projects > PHP Enter > www/templates/default/news.php
<!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>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
<meta http-equiv="Pragma" content="cache">
<meta name="ROBOTS" content="All">
<meta name="keywords" content="latest news, news, article, story, top story, blog, links, link, directory, free, seo">
<meta name="description" content="php news script powered by phpenter.net">
<link href="templates/default/images/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="templates/default/style.css">
<title>{section name="newser" loop=$newser}{$newser[newser].btexty|stripslashes}{/section} - {$title}</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
{literal}
$(document).ready(function(){$("[id^=rating_]").hover(function(){rid=$(this).attr("id").split("_")[1];$("#rating_"+rid).children("[class^=star_]").children('img').hover(function(){
$("#rating_"+rid).children("[class^=star_]").children('img').removeClass("hover");var hovered=$(this).parent().attr("class").split("_")[1];while(hovered>0){
$("#rating_"+rid).children(".star_"+hovered).children('img').addClass("hover");hovered--;}});});
$("[id^=rating_]").children("[class^=star_]").click(function(){var current_star=$(this).attr("class").split("_")[1];var rid=$(this).parent().attr("id").split("_")[1];$('#rating_'+rid).load('send.php',{rating:current_star,id:rid});});});
{/literal}
</script>
</head> 
<body>
<div id="content">
<table width="100%" id="header"  height="56px" cellSpacing=0 cellPadding=1 align="center" border="0">
 <tr>
  <td height="46px">
<div id="logo"><a href="{$path}">{$title}</a></div>
<div style="float:right;line-height:46px;">
<div id="sestext">
<form action="{$path}/search.php" method="GET">
<input id="intext" class="txt" type="text" name="id" value="" validate="required">
<button class="b-search" value="go" type="submit">Search</button>
</form>
</div>
</div>
  </td>
 </tr>
</table>
<table height="26px" cellSpacing=0 cellPadding=1 align="center" border=0>
 <tr>
  <td id="tedis">
  <li style="margin:0px;padding:1px;"><a href="{$path}"><img src="templates/default/images/homes.png" border="0"></a></li>{section name=categori loop=$categori}<center><li>
<a href="categories.php?id={$categori[categori].catid}">{$categori[categori].name}</a></li>
</center>{/section}
   </td>
  </tr>
</table>
<table id="ccnav" height="26px" cellSpacing=0 cellPadding=1 width="100%" align="center" border=0>
 <tr>
  <td align="middle" id="medis">
  <li><a href="link.php">Submit Story</a></li>
  <li><a href="gallery.php">Gallery</a></li>
  <li style="float:right;"><a href="rss.php" target="_blank"><img style="padding:0px" src="templates/{$temp}/images/rss.gif" width="26px" height="14px" border="0"></a></li>
  </td>
 </tr>
</table>
<table cellSpacing=7 cellPadding=0 border="0">
 <tr>
  <td vAlign="top">
{section name="newser" loop=$newser}
<div id="rating_{$newser[newser].blogid}">
			<span class="star_1"><img src="templates/{$temp}/images/star_blank.png" alt="" {if $newser[newser].rating > 0} class="hover"{/if} /></span>
			<span class="star_2"><img src="templates/{$temp}/images/star_blank.png" alt="" {if $newser[newser].rating > 1.5} class="hover"{/if} /></span>
			<span class="star_3"><img src="templates/{$temp}/images/star_blank.png" alt="" {if $newser[newser].rating > 2.5} class="hover"{/if} /></span>
			<span class="star_4"><img src="templates/{$temp}/images/star_blank.png" alt="" {if $newser[newser].rating > 3.5} class="hover"{/if} /></span>
			<span class="star_5"><img src="templates/{$temp}/images/star_blank.png" alt="" {if $newser[newser].rating > 4.5} class="hover"{/if} /></span>
{if $newser[newser].badress eq true}
<a href="{$newser[newser].badress}" target="_blank" title="{$newser[newser].badress}"><span class="ha2">{$newser[newser].btexty|stripslashes}</span></a>
{else}
<span class="ha2">{$newser[newser].btexty|stripslashes}</span>
{/if}
</div>
<div class="featuredcontainer">
 <div class="featuredinner">
  <div class="thumb-image-wrapper"><a href="uploads/{$newser[newser].images}" title="{$newser[newser].btexty}">
  <img src="maxthumb/{$newser[newser].images}" alt="{$newser[newser].btexty}" width="270px" height="250px"></a>
  </div>
    <img src="maxthumb/{$newser[newser].bimgs}" alt="{$newser[newser].buser}" width="50px" height="50px">
    <a href="profile.php?id={$newser[newser].buserid}">{$newser[newser].buser}</a> on {$newser[newser].bdate} comments [{$newser[newser].commno}]<br /><br />
    {$newser[newser].bamess|stripslashes|regex_replace:"/[\r]/":"<br />"}
     <div>
      <div class="thumb-image-wrapper" style="float:left;line-height:30px;"><a href="uploads/{$newser[newser].bimgs}" title="{$newser[newser].buser}"></a></div>
       <div style="clear:both"></div>
      </div>
     </div>
   </div>
<div class="icons" style="padding-top:4px;margin:0px auto">
&nbsp;<a title="submit to Google Buzz" href="http://www.google.com/buzz" onclick="window.open('http://www.google.com/buzz/post?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/buzz.png" border="0" width="16px" height="16px"></a>
&nbsp;<a title="submit to Twitter" href="http://twitter.com" onclick="window.open('http://twitter.com/home?status=Currently reading'+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/twitter.png" border="0" width="16px" height="16px"></a>
&nbsp;<a title="submit to Stumbleupon" href="http://www.stumbleupon.com" onclick="window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/stumbleupon.png" border="0" width="16px" height="16px"></a>
&nbsp;<a title="submit to Del.icio.us" href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=2&amp;url='+encodeURIComponent(location.href)+'&amp;notes=&amp;title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/delicious.png" border="0" width="16px" height="16px"></a>
&nbsp;<a title="submit to Reddit" href="http://reddit.com" onclick="window.open('http://reddit.com/submit?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/reddit.png" border="0" width="16px" height="16px"></a> 
&nbsp;<a title="submit to Facebook" href="http://www.facebook.com"  onclick="window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/facebook.png" border="0" width="16px" height="16px"></a>
&nbsp;<a title="submit to Technorati" href="http://www.technorati.com" onclick="window.open('http://www.technorati.com/faves?add='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/technorati.png" border="0" width="16px" height="16px"></a>
&nbsp;<a title="submit to Digg" href="http://digg.com"  onclick="window.open('http://digg.com/submit?phase=2&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/digg.png" border="0" width="16px" height="16px"></a>
&nbsp;<a title="submit to yahoo" href="http://myweb2.search.yahoo.com" onclick="window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title));return false;"><img src="{$path}/templates/default/images/bookicons/yahoo.png" border="0" width="16px" height="16px"></a>
&nbsp;&nbsp;&nbsp;<a href="#section"><img src="{$path}/templates/default/images/bookicons/comment.png" border="0" width="16px" height="16px"></a>
&nbsp;&nbsp;<a href="{$path}/print.php?name={$newser[newser].univer}" target="_blank"><img src="{$path}/templates/default/images/bookicons/print.png" border="0" width="16px" height="16px"></a>
</div>  
{/section}
<div id="ads" style="margin-left:4px">{include file='admin/horad.php'}</div>
<div id="comments">
<span class="ha3">Comments</span>
 {section name="reviews" loop=$reviews}
  <div class="featuredcontainer"> 
   <div class="featurecat">
    <div class="thumb-image-wrapper">
      <a href="uploads/{$reviews[reviews].comimage}" title="{$reviews[reviews].comenter}">
      <img src="maxthumb/{$reviews[reviews].comimage}" alt="{$reviews[reviews].comenter}" width="50px" height="50px"></a>
     </div>
      <span class="ha3">{$reviews[reviews].comenter}</span>
      {if $reviews[reviews].chomes == true}
      <a href="{$reviews[reviews].chomes}"><b>{$reviews[reviews].chomes}</b></a>
      {/if}
      {$reviews[reviews].ctexte|stripslashes}&nbsp;&nbsp;
      <i>{$reviews[reviews].rdate}</i>
    </div> 
   </div>
 {/section}
</div>
<a name="section"></a>
Return current item: PHP Enter