示例#1
0
文件: poll.php 项目: shannara/banshee
 public function show_active_poll()
 {
     $poll = new poll($this->db, $this->output);
     if ($_SERVER["REQUEST_METHOD"] == "POST") {
         $poll->vote($_POST["vote"]);
     }
     $poll->to_output();
 }
示例#2
0
文件: poll.php 项目: shannara/banshee
 public function execute()
 {
     $this->output->title = "Poll demo";
     $poll = new poll($this->db, $this->output);
     if ($_SERVER["REQUEST_METHOD"] == "POST") {
         $poll->vote($_POST["vote"]);
     }
     $poll->to_output();
 }