Location: PHPKode > projects > Esvon Personals > esvon-personals/inc/blocks/Ad_Row/block-Rating.php
<?php

// --------------------------------------------------------------------------
//
// Esvon Classifieds v.4.0
// Copyright(C), Esvon LTD, 2001-2010, All Rights Reserved.
// E-mail: hide@address.com
//
// All forms of reproduction, including, but not limited to, internet posting, 
// printing, e-mailing, faxing and recording are strictly prohibited.
// One license required per site running Esvon Classifieds. 
// To obtain a license for using Esvon Classifieds, please register at
// http://www.esvon.com/pg/products/p_classifieds/
//
// --------------------------------------------------------------------------

function block_Ad_Row_Rating(&$tpl){

  global $a_Ad;
  $z = array();
  $z['rate_avg'] = $a_Ad['rating'];
  $z['rate_int'] = intval($z['rate_avg']);
  if($z['rate_avg']-$z['rate_int']>=0.5) $z['rate_int'].='_5';
  $z['rate_votes'] = $a_Ad['num_votes'];
  $tpl->AddCell('b_Rating',$z);

}

?>
Return current item: Esvon Personals