本文整理汇总了PHP中Editor::Inst方法的典型用法代码示例。如果您正苦于以下问题:PHP Editor::Inst方法的具体用法?PHP Editor::Inst怎么用?PHP Editor::Inst使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Editor
的用法示例。
在下文中一共展示了Editor::Inst方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ob_start
)->width($this->Config('editor', 'width')
)->height($height
)->html(
);
$data = $v;
ob_start();
include($this->path_view('write.php'));
$v['content'] = ob_get_contents();
ob_end_clean();
} else {
$v['content'] = Widget::Inst()->Parse(
$this->TBN(),
'wr_no',
$v['wr_no'],
'wr_content',
Editor::Inst('', $this->Config('editor', 'name'))->db_out($v['wr_content'])
);
if($v['wr_subject']) {
if($v['wr_category']) $v['content'] = "<div class=\"{$v['wr_category']}\"></div>".$v['content'];
$v['content'] = "<h2>{$v['wr_subject']}</h2>".$v['content'];
}
if(!$key && $mode!='write' && $this->Config('mb','admin') && Widget::Inst()->Config('is_page')) {
$v['content'].= '<input class="order" type="hidden" name="order[]" value="'.$v['wr_no'].'"/>';
$v['href_modify'] = $this->Link('modify', $v['wr_no']);
$v['href_delete'] = $this->Link('delete', $v['wr_no']);
}
}
$this->list[$k] = $v;
}
示例2: if
<?php if(!defined('__MAGIC__')) exit;
$v = $this->Sql('fetch', $this->wr_no);
$editor = Editor::Inst('wr_content',$this->Config('editor', 'name')
)->db_edit($v['wr_content']
)->width($this->Config('editor', 'width')
)->height($this->Config('editor', 'height')
)->html(
);
?>
<form method="post" class="page" action="<?php echo $this->Link('update')?>">
<input type="hidden" name="wr_no" value="<?php echo $v['wr_no']?>"/>
<input type="hidden" name="wr_writer" value="페이지"/>
<div><?php echo $editor?></div>
<div class="center">
<input type="image" class="adjust_button_line" src="<?php echo $this->path_img('btn_modify.gif')?>" value="수정"/>
<a href="<?php echo $this->Link('list')?>"><img src="<?php echo $this->path_img('btn_cancel.gif')?>" alt="취소"/></a>
</div>
</form>
示例3: if
<?php if(!defined("__MAGIC__")) exit;
$tbn = $this->TBN();
$key = GV::Number($this->KN());
$board = Board::Inst()->bo_no($this->bo_no);
$bo_no = $board->bo_no;
$clear = $this->Clear();
$clear['wr_content'] = Editor::Inst('',$board->bo_editor)->db_in($_POST['wr_content']);
$clear['wr_state'] = 0;
if($_POST['opt_notice']) {
$clear['wr_state'] = $clear['wr_state']|$this->Config('state', 'notice');
}
if($_POST['opt_secret']) {
$clear['wr_state'] = $clear['wr_state']|$this->Config('state', 'secret');
}
// 비회원일 경우에 비밀번호 검사를 함
if(!$this->Config('mb','login')) {
$clear['mb_no'] = 0;
if($clear['wr_password']!=$_POST['wr_password_check'])
Dialog::alert('[비밀번호/비밀번호확인]이 일치하지 않습니다.');
if(!$clear['wr_password'])
Dialog::alert('비밀번호를 입력해 주세요.');
$clear['wr_password'] = $this->Sql('password', $clear['wr_password']);
} else {
$clear['wr_writer'] = Member::Inst()->mb_nick;
}
// 최근게시글을 위해 게시글이 출력되는 아이디를 저장함
示例4: if
<?php if(!defined("__MAGIC__")) exit;
// 게시판 설정
$this->config = Board::Inst()->bo_no($this->bo_no);
// 현재위치 출력 모듈
$this->breadcrumb = PageElement::Inst('breadcrumb')->html();
// 에디터
$this->editor = Editor::Inst('wr_content', $this->config->bo_editor)->html();
// 파일관련 모듈
$this->file = File::Inst()->wr_no($key)->Protection();
// 업데이트 주소
$this->action = $this->Link('insert');
// 목록으로 가기 주소
$this->link_list = $this->Link('list');
示例5: array
$data['editor_width'] = $view['editor_width'];
}
if (!$data['editor_width']) {
$data['editor_width'] = $this->Config('editor_width');
}
// 에디터 높이
$data['editor_height'] = GV::String('editor_height');
if (!$data['editor_height']) {
$data['editor_height'] = $view['editor_height'];
}
if (!$data['editor_height']) {
$data['editor_height'] = $this->Config('editor_height');
}
$this->data = $data;
// 에디터 목록
$this->editor_list = Editor::Inst('')->SkinList();
$this->action = $this->Link('insert');
if ($this->wg_no) {
$this->action = $this->Link('update', $this->wg_no);
}
/*
* 페이지 게시판 스킨 목록
*/
$skin_list = array();
$skin_list[] = array('name' => '스킨 선택');
foreach (Write::Inst()->SkinList('page') as $v) {
if ($data['skin'] == $v['skin']) {
$v['selected'] = 'selected';
}
$skin_list[] = $v;
}
示例6: if
<?php if(!defined("__MAGIC__")) exit;
// 게시글 조회수 업데이트
$key = GV::Number($this->KN());
$this->wr_no = $key;
// 세션이 끊어 졌을때만 다시 업데이트 함
if(!$_SESSION[$this->Config('hit_check').$key]) {
$this->Sql('update_hit',$key);
$_SESSION[$this->Config('hit_check').$key] = true;
}
$data = $this->Sql('fetch', $key);
$data['wr_content'] = Editor::Inst(Board::Inst()->bo_no($this->bo_no)->bo_editor)->db_out($data['wr_content']);
$this->sql['fetch'.$key] = $data;
// 태그 가져오기
$tags = array();
foreach(Tag::Inst()->Sql('list', $this->bo_no, $key) as $v) {
$tags[] = array(
'name'=>$v['tag_name'],
'link'=>Url::Get(array('tag'=>$v['tag_name']),array('ca1','ca2','wr_no','pg'))
);
}
$this->tags = $tags;
// 홈페이지 타이틀 설정
$title = array_merge(
array($data['wr_subject']),
array($data['wr_category']),
PageElement::Inst('head')->Config('title')
);
示例7: if
<?php if(!defined("__MAGIC__")) exit;
// 게시판 설정
$this->config = Board::Inst()->bo_no($this->bo_no);
// 현재위치 출력 모듈
$this->breadcrumb = PageElement::Inst('breadcrumb')->html();
// 파일관련 모듈
$this->file = File::Inst()->wr_no($key)->Protection();
// 업데이트 주소
$this->action = $this->Link('update');
// 목록으로 가기 주소
$this->link_list = $this->Link('list');
// 게시글 데이터
$this->key = GV::Number($this->KN());
$this->data = $this->Sql('fetch', $key);
// 에디터
$this->editor = Editor::Inst('wr_content', $this->config->bo_editor)->db_edit($this->data['wr_content'])->html();
// 태그
$tags = array();
foreach(Tag::Inst()->Sql('list', $this->bo_no, $this->key) as $v) {
$tags[] = $v['tag_name'];
}
$this->tags = implode(',', $tags);
示例8:
<?php
if (!defined('__MAGIC__')) {
exit;
}
$table = $this->Table();
$key_name = $table['pri_key'];
$key = GV::Number($key_name);
if ($key) {
$v = $this->FetchByKey($key);
}
$skinlist = Editor::Inst('basic')->SkinList();
?>
<form method="post" action="<?php
echo $this->Link('update');
?>
">
<input type="hidden" name="bo_no" value="<?php
echo $v['bo_no'];
?>
"/>
<table class="table_admin2">
<colgroup>
<col width="170px">
<col>
</colgroup>
<thead class="type2">
<tr><th colspan="2">기본설정</th></tr>
</thead>
<tbody>