예제 #1
0
파일: add.php 프로젝트: luengzeegin/voting
<?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=添加成功");