예제 #1
0
파일: User.php 프로젝트: ttym7993/Linger
 public function edit_info()
 {
     $this->theme->setBreadcrumb("编辑信息");
     $this->theme->setTitle("编辑信息");
     $this->theme->header_add($this->theme->css(get_bootstrap_plugin_url("markdown/markdown.min.css")));
     $this->theme->header_add($this->theme->js(['src' => get_bootstrap_plugin_url("markdown/markdown.js")]));
     $this->__view("User/header.php");
     $this->__view("User/edit_info.php");
     $this->__view("User/footer.php");
 }
예제 #2
0
파일: Photo.php 프로젝트: ttym7993/Linger
 public function edit_gallery()
 {
     lib()->load('Gallery');
     $gallery = new Gallery(req()->_plain()->get('id'), login_user()->getId());
     $this->theme->setBreadcrumb("编辑图集");
     $this->theme->setTitle("编辑图集信息");
     $this->theme->header_add($this->theme->css(get_bootstrap_plugin_url("markdown/markdown.min.css")));
     $this->theme->header_add($this->theme->js(['src' => get_bootstrap_plugin_url("markdown/markdown.js")]));
     $this->__view("User/header.php");
     $this->__view("Photo/edit_gallery.php", ['info' => $gallery->getInfo(), 'gallery' => $gallery]);
     $this->__view("User/footer.php");
 }
예제 #3
0
파일: Posts.php 프로젝트: ttym7993/Linger
 public function edit()
 {
     l_h('html_tag.php');
     $this->theme->setBreadcrumb("编辑文章");
     $this->theme->setTitle("编辑文章");
     $id = intval(req()->get('id'));
     $this->__lib('Post');
     $post = new Post($id);
     $info = $post->getInfo(login_user()->getId());
     $this->theme->header_add($this->theme->css(get_bootstrap_plugin_url("markdown/markdown.min.css")));
     $this->theme->header_add($this->theme->js(['src' => get_bootstrap_plugin_url("markdown/markdown.js")]));
     if (!isset($info['post_id']) || $info['post_id'] != $id) {
         $this->__view("User/header.php");
         $this->__view("Posts/not_found.php");
     } else {
         $this->__view("User/header.php");
         $this->__view("Posts/edit.php", ['info' => $info, 'post' => $post]);
     }
     $this->__view("User/footer.php");
 }