<div class = "row"> <div class="col-md-8"> <div id="wrapper"> <h3> Hints: </h3> <p>Click <a href="javascript:void(0)" onclick="toggle_visibility('popupBoxOnePosition');">here</a> to see the first hint.</p> <p>Click <a href="javascript:void(0)" onclick="toggle_visibility('popupBoxTwoPosition');">here</a> to see the second hint.</p> <p>Click <a href="javascript:void(0)" onclick="toggle_visibility('popupBoxThreePosition');">here</a> to see the final hint.</p> </div><!-- wrapper end --> </div> <div class="col-md-4"> <h3> Quiz: </h3> Click <a href="startActivity1Quiz.php">here</a> for a quiz related to this activity. <br> <h3> Rate Activity: </h3> <?php rate("invariantgeometryactivity"); ?> </div> </div> </div> </div> </div> </div> </div> </body> </html> <?php include 'includes/overall/footer.php';
/* Visit a URL */ case "visit": visit($link_id, $cf_id); break; /* Reviews */ /* Reviews */ case "writereview": writereview($link_id, $option); break; case "addreview": addreview($link_id, $option); break; /* Ratings */ /* Ratings */ case "rate": rate($link_id, $option); break; case "addrating": addrating($link_id, $option); break; /* Favourite */ /* Favourite */ case "fav": $action = JRequest::getInt('action', 1); fav($link_id, $action, $option); break; /* Vote review */ /* Vote review */ case 'votereview': $rev_vote = JRequest::getInt('vote', 0); $rev_id = JRequest::getInt('rev_id', 0);
$address = $_POST['address']; $rcon = $_POST['rcon']; $address = explode(':', $address); $ip = gethostbyname($address[0]); $port = $address[1]; $region = ''; $map = $_POST['map']; $division = ''; if (isset($_POST['address'])) { $sid = newServer($ip, $port, $rcon); } else { $sid = 1; } $lastInsertId = newLobby($name, $type, $region, $map, $division, $uid, $sid); joinLobby($uid, $lastInsertId); if ($lastInsertId) { echo $lastInsertId; } } else { echo '0'; } break; case "rate": $lid = $_POST['lid']; $id = getLPid($uid, $lid); $target = $_POST['userid']; $value = $_POST['value']; rate($id, $target, $value); break; } }
<?php include 'includes/overall/header.php'; include 'core/init.php'; rate(); /* $find_data = mysql_query("SELECT * FROM rates"); while($row = mysql_fetch_assoc($find_data)) { $id = $row['id']; $name_of_activity = $row['nameofactivity']; $activity = $row['activity']; $current_rating = $row['rating']; $current_hits = $row['hits']; echo " <center><h3>Rate Activity!</h3><form action = 'rate.php' method= 'POST'> $name_of_activity: <select name = 'rating'> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> <option>10</option> </select>
$dad = $currentPopulation[$i]['dna']; break; } } $rouletteFemale = rand(0, 100) / 100; for ($i = $population - 1; $i >= 0; $i--) { if ($currentPopulation[$i]['floor'] < $rouletteFemale) { $mom = $currentPopulation[$i]['dna']; break; } } //$child = mate($mom, $dad); //$initialPopulation[] = $child; } } echo "<div>The best solution : <strong>{$currentPopulation[0]['dna']}</strong> with a path cost of <strong>" . rate($currentPopulation[0]['dna'], $distances) . "</strong> which took <strong>'" . ($k - 1) . "'</strong> generations.</div>\n"; } ?> </div> </body> </html> <?php function converging($pop) { $items = count(array_unique($pop)); if ($items == 1) { return true; } else { return false; } }
<DOCTYPE! HTML> <html lang="da"> <head> <meta charset="UTF8"> <title></title> </head> <body> <?php include_once "includes/functions.php"; $display_button_name = "add"; $display_button_value = "add"; if (isset($_POST['add'])) { rate($_POST['user_id'], $_POST['beer_id'], $_POST['rating']); } ?> <?php beer_header(); ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post"> <!-- Bruger: <input type="number" name="user_id"><br> --> <?php $result = get_users(); echo "<select name='user_id'>";
?> </div> <div class="lang"><span>CSS</span> <?php rate(2); ?> </div> <br/> <div class="lang"><span>Linux</span> <?php rate(4); ?> </div> <div class="lang"><span>MacOS</span> <?php rate(4); ?> </div> <div class="lang"><span>Windows</span> <?php rate(3); ?> </div> </div> <div id="experience" class="grid"> <h2><i class="fa fa-history"></i> Experience</h2> <p style="line-height:2;"> Bac Littéraire <br/> Arts Plastiques Paris 8<br/> Magasin de la Harpe (conseil/vente)<br/> Regisseuse de plateau <br/>(court-métrage et plateau photo) <br/> Assistante photo <br/> 42 </p> </div> </div>
<?php include_once "../database.php"; $json = file_get_contents('php://input'); $request = json_decode($json, true); $userid = isset($request["userid"]) ? $request["userid"] : ""; $agencyid = isset($request["agencyid"]) ? $request["agencyid"] : ""; $rate = isset($request["rate"]) ? $request["rate"] : 2; rate($userid, $agencyid, $rate);
echo ' <div class="modal fade bs-example-modal-lg" id="subormodal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title">' . $datas["down_name"] . '</h4> </div> <div class="modal-body"> <a href="' . $datas["down_imgview"] . '"><img src="' . $datas["down_imgview"] . '" alt="nahlad" class="img-thumbnail" style="width:100%;"/></a> <table class="table table-bordered" style="margin-top:10px;"> <tr><td>Popis:</td><td>' . $datas["down_txt"] . '</td></tr> <tr><td>Typ súboru:</td><td>' . $datas["down_filetype"] . '</td></tr> <tr><td>Veľkosť:</td><td>' . $datas["down_filesize"] . '</td></tr> <tr><td>Dátum pridania:</td><td>' . date("j. n. Y", $datas["down_date"]) . '</td></tr> <tr><td>Autor:</td><td>' . $datas["down_author"] . '</td></tr> <tr><td>Počet stiahnutí:</td><td>' . $datas["down_reads"] . 'x</td></tr> </table> </div> <div class="modal-footer"> <span class="pull-left hodnotesubor"><span class="pull-left">' . rate($datas["down_id"], "S") . '</span> <span class="pull-left hodnotenietext">Hodnotili ' . $hodnotilox . ' ' . uzivateliasklonuj($hodnotilox) . '</span></span> ' . ($datas["down_demo"] ? '<a href="' . $datas["down_demo"] . '" class="btn btn-info">Zobraziť demo</a>' : '') . ' ' . (MEMBER ? '<a href="/stiahnut/' . $datas["down_id"] . '" class="btn btn-success" id="loading-example-btn" data-loading-text="Načítavam súbor...">Stiahnuť súbor</a>' : '') . ' </div> </div> </div> </div> '; } require "inc/footer.php";
<input type="hidden" name="prodId" value="<?php echo mysql_result($result, $i, 'productId'); ?> "> <input type="hidden" id="quantity" name="quantity" value="1"> <input class="button" type="submit" value="BUY"> </form> <form action="?p=comment" method="post"> <input type="hidden" name="prodId" value="<?php echo mysql_result($result, $i, 'productId'); ?> "> <input class="button" type="submit" value="COMMENTS"> </form><br> <?php /** Function from commentsRatings/, to show and make rate-monkeys clickable. **/ rate($result, $i); ?> </div> <?php } ?>