public function edit(HttpRequest $request)
 {
     parent::edit($request);
     //获取app配置文档
     $wepApp = WebApplication::getInstance();
     $groups = $wepApp->getConfig('system.config.group');
     $this->assign('groups', $groups);
     $this->setView('system/config_edit');
 }
 /**
  * 频道编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     $id = $request->getParameter("id", "trim");
     parent::edit($request);
     $chanels = $this->chanelService->getItems("pid = 0", "id,name");
     if (!empty($id)) {
         $sub = $this->chanelService->getItem("id={$id}", "id,pid,name");
         $this->assign("pid", $sub["pid"]);
     }
     $this->assign("chanels", $chanels);
     $this->setView('admin/chanel_edit');
 }
 /**
  * 频道编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     $fid = $request->getParameter("id", "trim");
     parent::edit($request);
     $chanelService = Beans::get("admin.chanel.service");
     $friendlink = $this->friendlink->getItem("id={$fid}", "chanel_id");
     $chanels = $chanelService->getItems("pid = 0", "id,name");
     $strIds = "";
     foreach ($chanels as $key => $val) {
         $strIds .= $val["id"] . ",";
     }
     $str = trim($strIds, ",");
     $subChanels = $chanelService->getItems("pid in ({$str})", "id,pid,name");
     $this->assign("subChanels", $subChanels);
     $this->assign("friendlink", $friendlink);
     $this->setView('admin/friendlink_edit');
 }
 /**
  * 媒体推荐位编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     //获取推荐位置的媒体
     $item = $this->getTemplateVar('item');
     if ($item['media_ids']) {
         $service = Beans::get('media.media.service');
         $medias = $service->getItems(explode(',', $item['media_ids']), 'id,name');
         $this->assign('medias', $medias);
         //组建js对象
         $data = "{";
         foreach ($medias as $value) {
             if ($data == '{') {
                 $data .= "'{$value['id']}' : '{$value['name']}'";
             } else {
                 $data .= ", '{$value['id']}' : '{$value['name']}'";
             }
         }
         $data .= '}';
         $this->assign('data', $data);
     }
     $this->setView('media/mediaRec_edit');
 }
 /**
  * 显示位编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $item = $this->getTemplateVar('item');
     //获取当前位置包含的文章
     if ($item['aids']) {
         $articleService = Beans::get('artone.artone.service');
         $articles = $articleService->getItems(explode(',', $item['aids']), 'id,title');
         $this->assign('articles', $articles);
         //组建js对象
         $data = "{";
         foreach ($articles as $value) {
             if ($data == '{') {
                 $data .= "'{$value['id']}' : '{$value['title']}'";
             } else {
                 $data .= ", '{$value['id']}' : '{$value['title']}'";
             }
         }
         $data .= '}';
         $this->assign('data', $data);
     }
     $this->setView('artone/position_edit');
 }
Exemplo n.º 6
0
 /**
  * 角色编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('admin/role_edit');
 }
 /**
  * 菜单分组编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('system/menuGroup_edit');
 }
 /**
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     //初始化文章推荐位置
     $this->setView('article/article_edit');
     $item = $this->getTemplateVar('item');
     //初始化文章标签
     $tagsId = explode(',', $item['tags']);
     $tagService = Beans::get('article.tags.service');
     $tags = $tagService->getItems($tagsId, 'id, name');
     $tags = ArrayUtils::changeArrayKey($tags, 'id');
     $__tags = array();
     foreach ($tagsId as $value) {
         $__tags[] = $tags[$value]['name'];
     }
     $item['tags'] = implode(',', $__tags);
     $this->assign('item', $item);
     //注册图片空间的用户id
     if ($item['userid'] > 0) {
         $this->assign('userid', $item['userid']);
         $this->assign('mediaId', $item['media_id']);
         $_SESSION['front_userid'] = $item['userid'];
         $_SESSION['front_mediaId'] = $item['media_id'];
     }
 }
Exemplo n.º 9
0
 /**
  * 媒体编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     $TypeService = Beans::get("media.type.service");
     $RecService = Beans::get("media.rec.service");
     $rec = $RecService->getItems();
     $this->assign("rec", $rec);
     $mediaType = $TypeService->getItems();
     $this->assign("mediaType", $mediaType);
     parent::edit($request);
     $this->setView('media/media_edit');
 }
Exemplo n.º 10
0
 /**
  * 管理员编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('admin/admin_edit');
     $this->assginRoles();
 }
Exemplo n.º 11
0
 /**
  * 标签编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('article/tags_edit');
 }
 /**
  * 会员编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('media/mediaType_edit');
 }
 /**
  * 编辑保留字
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('system/keywords_edit');
 }
Exemplo n.º 14
0
 /**
  * 会员编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('user/user_edit');
 }
 /**
  * 模板编辑
  * @param HttpRequest $request
  */
 public function edit(HttpRequest $request)
 {
     parent::edit($request);
     $this->setView('system/template_edit');
 }