示例#1
0
文件: crud.php 项目: netserva/www
 public function __construct(View $t)
 {
     error_log(__METHOD__);
     util::acl($this->acl);
     $this->t = $t;
     $this->g = $t->g;
     $this->o = $t->g->in['o'];
     $this->in = util::esc($this->in);
     db::$tbl = $this->o;
     $this->b = $this->{$t->g->in['m']}();
     //        $this->b .= $this->{$t->g->in['m']}();
 }
示例#2
0
文件: form.php 项目: netserva/www
<?php

declare (strict_types=1);
error_log(__FILE__);
// w/notes/form.php 20151030 (C) 2015-2016 Mark Constable <*****@*****.**> (AGPL-3.0)
util::acl(1);
return '
      <form action="" method="POST">
        <p>
          <label for="title">Title</label>
          <input type="text" name="title" id="title" value="' . $title . '">
        </p>
        <p>
          <label for="author">Author</label>
          <input type="text" name="author" id="author" value="' . $author . '">
        </p>
        <p>
          <label for="content">Content</label>
          <textarea rows="7" name="content" id="content">' . $content . '</textarea>
        </p>
        <p style="text-align:right">' . $this->button($submit, 'submit', 'primary') . '
        </p>
        <input type="hidden" name="o" value="' . $this->g->in['o'] . '">
        <input type="hidden" name="m" value="' . $this->g->in['m'] . '">
        <input type="hidden" name="i" value="' . $this->g->in['i'] . '">
      </form>';
示例#3
0
文件: news.php 项目: netserva/www
 public function delete()
 {
     error_log(__METHOD__);
     util::acl(1);
     parent::delete();
 }