Location: PHPKode > scripts > Create Your Own Directory > cms/HRAS/users/getrating.php
<html>
<head>
<title>HIOX FREE SCRIPTS - Link to us Page</title>

<?php
include "../login/A-header.php";

?>

<br>
<div align=right class="centerbox">

<table width=85% align=center cellpadding=0 cellspacing=0>
<tr><td  class="abouttabletext" ><br>
<br>
<b>Code: [ Please copy the below code to give rating to this site]</b><br>

<div class="copybox2">
<?php
$host = $_SERVER['SERVER_NAME'];
$cntid=$_GET['rid'];
//$url=$_GET['url'];
$rip=$_GET['ip'];
?>
&lt;Script language=javascript&gt;<br>
function selstar(val){<br>
	for(var x=1;x<=val;x++)<br>
	
		document['i'+x].src="http://codingcoding.com/HRS/images/star2.gif";<br>
	
}<br>
function remstar(val){<br>
	for(var x=1;x<=val;x++)<br>
	
		document['i'+x].src="http://codingcoding.com/HRS/images/star1.gif";<br>
}<br>

function setrate(val)

{<br>
	document.rate.rating.value=val;<br>
	document.rate.submit();<br>
}<br>
&lt;/script&gt;<br>
&lt;form name=rate method=post action='http://codingcoding.com/HRS/addrating.php'&gt;<br>
&lt;img name=i1 class=star onmouseover="selstar(1)" onmouseout="remstar(1)" onclick="setrate(1)" src="<?php echo($home);?>HRS/images/star1.gif"&gt;<br>
&lt;img name=i2 class=star onmouseover="selstar(2)" onmouseout="remstar(2)" onclick="setrate(2)" src="'<?php echo($home);?>HRS//images/star1.gif"&gt;<br>
&lt;img name=i3 class=star onmouseover="selstar(3)" onmouseout="remstar(3)" onclick="setrate(3)" src="'<?php echo($home);?>HRS/images/star1.gif"&gt;<br>
&lt;img name=i4 class=star onmouseover="selstar(4)" onmouseout="remstar(4)" onclick="setrate(4)" src="'<?php echo($home);?>HRS/images/star1.gif"&gt;<br>
&lt;img name=i5 class=star onmouseover="selstar(5)" onmouseout="remstar(5)" onclick="setrate(5)" src="'<?php echo($home);?>HRS/images/star1.gif"&gt;<br>
&lt;input type=hidden name="rating"&gt;<br>
&lt;input type=hidden value=<?php echo "http://www.codingcoding.com/detailcnt.php?id=$cntid"; ?> name=url &gt;<br>
&lt;input type=hidden value=<?php echo "$rip"; ?> name=ip&gt;<br>
&lt;input type=hidden value=<?php echo "$cntid"; ?> name=rid&gt;<br>
&lt;input type=submit&gt;<br>
&lt;/form&gt;<br>
</div>
<br><br>
<?php
include "../login/A-footer.php";
?>



Return current item: Create Your Own Directory