<?php /* Smarty version Smarty-3.1.13, created on 2017-01-02 07:07:47
         compiled from "project\modules\default\view\script\index\rate.tpl.php" */ ?>
<?php /*%%SmartyHeaderCode:95645869ee336ed627-54832830%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5961e9978f96ed19d7c7b3c86c4f14dd12249dd2' => 
    array (
      0 => 'project\\modules\\default\\view\\script\\index\\rate.tpl.php',
      1 => 1463469285,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '95645869ee336ed627-54832830',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5869ee33700ea8_41651578',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5869ee33700ea8_41651578')) {function content_5869ee33700ea8_41651578($_smarty_tpl) {?><div id="starring">
 <!--  <div style="float:right; width:350px; border:1px solid #ccc; padding:1em;">
     <strong>Server response:</strong> 
      <ul id="response">       
      </ul> 
     </div> -->
<!-- <input type="range" min="0" max="5" value="0" step="1" id="backing2" >
 RateIt: <div class="rateit" data-rateit-backingfld="#backing2" data-productid="312"></div> data-rateit-readonly="true" --> 
<!--  Rating :  -->
 <div class="rateit" id="rateit" data-rateit-value="" data-rateit-flag="" data-rateit-ispreset="true" data-rateit-id="" data-rateit-type="" data-rateit-typeid="" data-rateit-step=1 data-rateit-resetable="false">
 </div>
 </div>
 <script type ="text/javascript">
     
// $('#starring .rateit').bind('rated', function (e) {
//     alert("hello");
//     var ri = $(this);
//     var status = true;
//     var ratetype = ri.rateit('type');
//     var ratetypeid = ri.rateit('typeid');     
//     var rateflag = ri.rateit('flag');
//     //if the use pressed reset, it will get value: 0 (to be compatible with the HTML range control), we could check if e.type == 'reset', and then set the value to  null .
//     var ratevalue = ri.rateit('value');
//    // alert("hi "+ratevalue);
//     var userid = ri.rateit('id'); // if the product id was in some hidden field: ri.closest('li').find('input[name="productid"]').val()
//     if(rateflag == 1 && userid <= 0){ //alert("2");
//	    	status = checkLogin1(ratetype,ratetypeid,'rate');	    	
//	     }	 
//	 if(status != false){
//		// alert("here");
//	    	checkRated();	    
//	 }
//	 
// });

 </script><?php }} ?>