Exemple #1
0
 protected function CreateHtml()
 {
     // 레이아웃 미리보기
     // 임시로 다른 레이아웃을 적용하여 보여줌
     $preview = GV::String('preview_layout');
     if ($preview) {
         $this->Skin($preview);
     }
     $this->Init();
     ob_start();
     echo PageElement::Inst('header')->html();
     include $this->path_view($this->CurrentState() . '.php');
     $this->html = ob_get_contents();
     ob_end_clean();
     $this->html = $this->Parse($this->html);
 }
Exemple #2
0
<?php if(!defined("__MAGIC__")) exit; 

$tags = array();
foreach(Tag::Inst()->Sql('group', $this->bo_no) as $v) {
  $tags[] = $v['tag_name'];
}
$this->tags = $tags;

// meta keywords
PageElement::Inst('head')->SetConfig('keywords', '', implode(',',$this->tags));

Exemple #3
0
<?php

if (!defined('__MAGIC__')) {
    exit;
}
$gnb = PageElement::Inst('gnb')->html();
$side = PageElement::Inst('side')->html();
$menu = PageElement::Inst('menu')->html();
$footer = PageElement::Inst('footer')->html();
$head = PageElement::Inst('head')->html();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><?php 
echo $head;
?>
</head>
<body>
  <div id="header">
    <div id="gnb">
      <?php 
echo $gnb;
?>
    </div>
    <div id="menu">
      <?php 
echo $menu;
?>
    </div>
  </div>
  <div id="container">
Exemple #4
0
<?php

if (!defined('__MAGIC__')) {
    exit;
}
$head = PageElement::Inst('head')->SetConfig('title', '0', '매직보드 설치')->html();
include $this->path_controller('install_script/config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><?php 
echo $head;
?>
</head>
<body>

<div id="top">
<h1><img src="<?php 
echo $this->path_img('logo.png');
?>
"></h1>
</div><!-- #top -->

<form method="post" action="<?php 
echo $this->Link('install');
?>
">
<div id="tabs" class="ui-form">
	<ul>
		<li><a href="#tab-1">라이센스 동의</a></li>
		<li><a href="#tab-2">데이터베이스 정보</a></li>
Exemple #5
0
<?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');

Exemple #6
0
<?php

if (!defined('__MAGIC__')) {
    exit;
}
$data = $this->view;
if (!$data) {
    $data = Widget::Inst()->Action('data_explode', $this->wg_no);
}
/*
 * 다른 위젯에서 넘어오는 스킨명의 오류를 방지하기 위해 검사함
 */
$skin_list = PageElement::Inst()->SkinList();
$pass = false;
foreach ($skin_list as $v) {
    if ($v['skin'] == $data['skin']) {
        $pass = true;
    }
}
if ($pass) {
    echo PageElement::Inst($data['skin'])->html();
}
Exemple #7
0
 public function __construct(BrowserSession $session, PageElement $container = NULL)
 {
     parent::__construct($session);
     $this->container = $container;
 }
 public function __construct()
 {
     global $auth;
     global $PH;
     $this->children = array();
     /**
      * NOTE:
      * - adding the edit_request_time as form hidden field would
      *   cause additional entries in the from-handle file. So we
      *   add it as a none checked field.
      *
      */
     ### user might not be defined for anonymus pages like login
     if (isset($auth->cur_user)) {
         $this->add(new Form_HiddenField('edit_request_time', '', time()));
         $this->add(new Form_HiddenField('edit_request_token', '', createRandomString()));
     }
     $this->button_submit = __("Submit");
     parent::__construct();
 }
Exemple #9
0
<?php

if (!defined('__MAGIC__')) {
    exit;
}
$key_name = $this->KN();
$key = GV::Number($key_name);
$action = $this->Link('insert');
if ($key) {
    $action = $this->Link('update');
}
$view = $this->view;
$skin_list = PageElement::Inst()->SkinList();
?>

<form id="widgetWrite" method="post" action="<?php 
echo $action;
?>
">

<table class="table_widget">
<tbody>
<tr>
	<th>위젯 너비</th>
	<td class="left">
	<input type="text" name="wg_width" size="4" value="<?php 
echo $view['wg_width'];
?>
"/>&nbsp;
	<input type="radio" name="wg_width_unit" value="px" id="unit1" <?php 
echo $view['wg_width_unit'] == 'px' ? 'checked' : '';
 public function __construct($args = NULL)
 {
     parent::__construct($args);
     ### be sure id is present ###
     if (!$this->id) {
         $this->id = strToLower(preg_replace("/[^\\w\\d]/", "", $this->title));
         # remove all special chars
     } else {
         if (preg_match("/[^\\w\\d]/s", $this->id)) {
             trigger_error("removed invalid characters in blockid '{$this->id}'");
             $this->id = preg_replace("/[^\\w\\d]/", "", $this->id);
         }
     }
     $this->css_classes[] = $this->id;
     ### add current page id to id to make block unique for storing toggle-state as cookie ###
     global $PH;
     $this->id = $PH->cur_page->id . "_" . $this->id;
 }