Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
require "config.php";
?>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Демо</title>
<?php
if ($display_rating) {
?>
<script src="vote_star.js" type="text/javascript"></script>
<script type="text/javascript">
function star_vote(id) {
for (i=1;i<=<?=STARS?>;i++) {
if (i <= id) {
document[i].src="starvoted.png";
}
else {
document[i].src="starunvoted.png";
}}}
function normal() {
<?php
for ($i=0,$i2=1;$i<STARS;$i++,$i2++) {
echo "document[$i2].src=\"".$votes[$i]."\";\n";
}
?>
}
</script>
<?php
}
?>
</head>
<body>
<?php
if ($display_rating) {
?>
<b>Гласувай:</b>
<div id="star_votes">
<?php
for ($i=0,$i2=1;$i<STARS;$i++,$i2++) {
?>
<?php if ($vote_allow) {
?><a href="javascript:void(null)" onMouseOver="star_vote('<?=$i2?>')" onMouseOut="normal()" onClick="vote_star('<?=$id?>', '<?=$i2?>')"><?php } ?><img id="<?=$i2?>" src="<?=$votes[$i]?>" border="0"><?php if ($vote_allow) { ?></a>
<?php
}}
?><br />
Гласували: <?=$row -> glasuvali?>
</div>
<?php
}
else echo "<b>Невалидно ID!</b>";
?>
</body>
</html>
Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in D:\xampp\htdocs\Templates\vote\index.php on line 2
Fatal error: require() [function.require]: Failed opening required 'config.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\Templates\vote\index.php on line 2