예제 #1
0
 public function show_item_form($item)
 {
     if (valid_input($item["id"], VALIDATE_NUMBERS, VALIDATE_NONEMPTY)) {
         if (($users = $this->model->get_users($item["id"])) !== false) {
             $this->output->open_tag("users");
             foreach ($users as $user) {
                 $this->output->record($user, "user");
             }
             $this->output->close_tag();
         }
     }
     parent::show_item_form($item);
 }
예제 #2
0
 protected function show_item_form($item)
 {
     if (is_true(DEBUG_MODE) == false && isset($item["id"])) {
         if (($current = $this->model->get_item($item["id"])) === false) {
             $this->output->add_tag("result", "Database error.");
             return false;
         }
         $this->output->add_javascript("cms/settings.js");
         $this->output->open_tag("label");
         $this->output->add_tag("key", $current["key"]);
         $this->output->add_tag("type", $current["type"]);
         $this->output->close_tag();
     }
     parent::show_item_form($item);
 }
예제 #3
0
파일: flag.php 프로젝트: shannara/banshee
 protected function show_item_form($item)
 {
     $this->output->add_javascript("cms/flag.js");
     parent::show_item_form($item);
 }