<?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=清空成功");
<?php require_once '../api/func.php'; if (!isLoginNow()) { goToPgae("./index.php"); } require "./header.htm"; ?> <body> <div id="top"> </div> <div id="left"> <?php require "./left.htm"; ?> </div> <div id="right"> <h2>欢迎进入后台管理中心</h2> 涵曦制作<br> 2012-9-19 </div> </body> <?php //根据传递的参数跳转菜单 switch ($_GET["page"]) { case 'add': jsFunc('addVote'); jsFunc('showMsg', $_GET["msg"]); jsFunc3('autoLabel', $_GET["auto"], $_GET["id"], $_GET["foc"]);
<?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_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=清空成功");