<?php include('RatingManager.inc.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Star Rating</title>
<script type="text/javascript" src="js.js"></script>
<link rel="stylesheet" type="text/css" href="stars.css" />
</head>
<body>
<?php
$ratingManager = RatingManager::getInstance();
echo $ratingManager->drawStars(1);
print "<br>";
echo $ratingManager->drawStars(2);
print "<br>";
echo $ratingManager->drawStars(3);
?>
<div id="comments" style="display:none;position:absolute;z-index:50;background:#ffffff;">
<textarea name="comment" id="comment"></textarea><br />
<input type="submit" id="postcomment" value="Save"><input type="button" id="cancelcomment" value="Cancel">
</div>
</body>
</html>
|