AAAAhome/academiac/www/components/com_virtuemart/views/productdetails/tmpl/default_reviews.php000060400000017560151466104530026506 0ustar00allowRating || $this->showReview) { $maxrating = VmConfig::get ('vm_maximum_rating_scale', 5); $ratingsShow = VmConfig::get ('vm_num_ratings_show', 3); // TODO add vm_num_ratings_show in vmConfig $stars = array(); $showall = JRequest::getBool ('showall', FALSE); $ratingWidth = $maxrating * 24; for ($num = 0; $num <= $maxrating; $num++) { $stars[] = ' '; } ?>
showReview) { ?>

rating_reviews) { foreach ($this->rating_reviews as $review) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } /* Check if user already commented */ // if ($review->virtuemart_userid == $this->user->id ) { if ($review->created_by == $this->user->id && !$review->review_editable) { $review_editable = FALSE; } ?> rating_reviews) && $review->published) { $reviews_published++; ?>
created_on, JText::_ ('DATE_FORMAT_LC')); ?> review_rating] ?>
comment; ?>
customer ?>
= $ratingsShow) { $attribute = array('class'=> 'details', 'title'=> JText::_ ('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link ($this->more_reviews, JText::_ ('COM_VIRTUEMART_MORE_REVIEWS'), $attribute); } break; } } } else { // "There are no reviews for this product" ?>
allowReview) { ?>
" . VmConfig::get ('reviews_maximum_comment_length', 2000) . ") { alert('" . addslashes (JText::sprintf ('COM_VIRTUEMART_REVIEW_ERR_COMMENT2_JS', VmConfig::get ('reviews_maximum_comment_length', 2000))) . "'); return false; } else { return true; } } function refresh_counter() { var form = document.getElementById('reviewform'); form.counter.value= form.comment.value.length; } jQuery(function($) { var steps = " . $maxrating . "; var parentPos= $('.write-reviews .ratingbox').position(); var boxWidth = $('.write-reviews .ratingbox').width();// nbr of total pixels var starSize = (boxWidth/steps); var ratingboxPos= $('.write-reviews .ratingbox').offset(); $('.write-reviews .ratingbox').mousemove( function(e){ var span = $(this).children(); var dif = e.pageX-ratingboxPos.left; // nbr of pixels difRatio = Math.floor(dif/boxWidth* steps )+1; //step span.width(difRatio*starSize); $('#vote').val(difRatio); //console.log('note = ', difRatio); }); }); //]]> "; $document = JFactory::getDocument (); $document->addScriptDeclaration ($reviewJavascript); if ($this->showRating) { if ($this->allowRating && $review_editable) { ?>





' . JText::_ ('COM_VIRTUEMART_DEAR') . $this->user->name . ',
'; echo JText::_ ('COM_VIRTUEMART_REVIEW_ALREADYDONE'); } ?>
allowRating || $this->showReview) { ?>
allowRating || $this->showReview) { $maxrating = VmConfig::get ('vm_maximum_rating_scale', 5); $ratingsShow = VmConfig::get ('vm_num_ratings_show', 3); // TODO add vm_num_ratings_show in vmConfig $stars = array(); $showall = JRequest::getBool ('showall', FALSE); $ratingWidth = $maxrating * 24; for ($num = 0; $num <= $maxrating; $num++) { $stars[] = ' '; } ?>
showReview) { ?>

rating_reviews) { foreach ($this->rating_reviews as $review) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } /* Check if user already commented */ // if ($review->virtuemart_userid == $this->user->id ) { if ($review->created_by == $this->user->id && !$review->review_editable) { $review_editable = FALSE; } ?> rating_reviews) && $review->published) { $reviews_published++; ?>
created_on, JText::_ ('DATE_FORMAT_LC')); ?> review_rating] ?>
comment; ?>
customer ?>
= $ratingsShow) { $attribute = array('class'=> 'details', 'title'=> JText::_ ('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link ($this->more_reviews, JText::_ ('COM_VIRTUEMART_MORE_REVIEWS'), $attribute); } break; } } } else { // "There are no reviews for this product" ?>
allowReview) { ?>
" . VmConfig::get ('reviews_maximum_comment_length', 2000) . ") { alert('" . addslashes (JText::sprintf ('COM_VIRTUEMART_REVIEW_ERR_COMMENT2_JS', VmConfig::get ('reviews_maximum_comment_length', 2000))) . "'); return false; } else { return true; } } function refresh_counter() { var form = document.getElementById('reviewform'); form.counter.value= form.comment.value.length; } jQuery(function($) { var steps = " . $maxrating . "; var parentPos= $('.write-reviews .ratingbox').position(); var boxWidth = $('.write-reviews .ratingbox').width();// nbr of total pixels var starSize = (boxWidth/steps); var ratingboxPos= $('.write-reviews .ratingbox').offset(); $('.write-reviews .ratingbox').mousemove( function(e){ var span = $(this).children(); var dif = e.pageX-ratingboxPos.left; // nbr of pixels difRatio = Math.floor(dif/boxWidth* steps )+1; //step span.width(difRatio*starSize); $('#vote').val(difRatio); //console.log('note = ', difRatio); }); }); //]]> "; $document = JFactory::getDocument (); $document->addScriptDeclaration ($reviewJavascript); if ($this->showRating) { if ($this->allowRating && $review_editable) { ?>





' . JText::_ ('COM_VIRTUEMART_DEAR') . $this->user->name . ',
'; echo JText::_ ('COM_VIRTUEMART_REVIEW_ALREADYDONE'); } ?>
allowRating || $this->showReview) { ?>