<?php require_once '../api/func.php'; if (!isLoginNow()) { goToPgae("./index.php"); } require_once '../api/OperatorVotingDB.php'; $ovdb = new OperatorVotingDB(); $ovdb->clearTables(); goToPgae("./admin.php?page=cleanAll&msg=清空成功");
<meta http-equiv="Refresh" content="3; url=index.php"> <?php // $selectName = $_POST["vote"]; // var_dump($selectName); /** * 处理投票提交的信息 */ require_once './api/func.php'; require_once './api/OperatorVotingDB.php'; require "./header.html"; $ovdb = new OperatorVotingDB(); $ip = getClientIP(); $loc = getIpfrom123cha($ip); // $ovdb->vote($ip, $loc, $selectName); $users = $_POST['vote']; $ovdb->vote($ip, $loc, $users); // if(isset($_POST['vote'])){ // $users = $_POST['vote']; // foreach($users as $key=>$val){ // echo 'user ',$key,' = ',$val,'<br />'; // $ovdb->vote($ip, $loc, $val); // echo "投票成功!"; // } // } // echo "投票成功!"; echo "<br>3秒后自动返回..."; // goToPgae('./index.php');
<?php require_once '../api/func.php'; if (!isLoginNow()) { goToPgae("./index.php"); } $name = $_GET["cSelectName"]; $label = $_GET["cLabelName"]; //echo $name."<br>".$label; require_once '../api/OperatorVotingDB.php'; $ovdb = new OperatorVotingDB(); $ovdb->addSelectName($name, $label); require './header.htm'; goToPgae("./admin.php?page=add&auto=" . "{$label}" . "&id=cLabelName&foc=cSelectName&msg=添加成功");
<?php require "./header.htm"; require_once './api/OperatorVotingDB.php'; $ovdb = new OperatorVotingDB(); //获取前20名 $row20 = $ovdb->getVotesSortByCount(20); $rowAll = $ovdb->getVotesGroupByLabel(); ?> <script language="javascript"> function checkfrom() { return confirm('提交投票结果?'); } </script> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>CSS | Scrolling Sidebar from CSS-Tricks</title> <style type="text/css"> #sidebar { width: 190px; position: fixed; left: 27%; top: 90%; margin: 0 0 0 110px; } </style> <!--[if IE 6]> <style type="text/css"> html, body { height: 100%; overflow: auto; } #sidebar { position: absolute; } #page-wrap { margin-top: -5px; } #ie6-wrap { position: relative; height: 100%; overflow: auto; width: 100%; }
<meta http-equiv="Refresh" content="3; url=index.php"> <?php $selectName = $_POST["witchSelect"]; /** * 处理投票提交的信息 */ require_once './api/func.php'; require_once './api/OperatorVotingDB.php'; require "./header.htm"; $ovdb = new OperatorVotingDB(); $ip = getClientIP(); $loc = getIpfrom123cha($ip); $ovdb->vote($ip, $loc, $selectName); //echo "投票成功!"; echo "<br>3秒后自动返回..."; //goToPgae('./index.php');
<?php require_once '../api/func.php'; if (!isLoginNow()) { goToPgae("./index.php"); } require_once '../api/OperatorVotingDB.php'; $ovdb = new OperatorVotingDB(); $ovdb->resetCountValues(); goToPgae("./admin.php?page=cleanVote&msg=清空成功");