게시판 스킨의 상단에 스킨 정보 노출 아이콘 추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2248 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-08 01:27:38 +00:00
parent 6acfb459f9
commit fb0ceb7d0e
16 changed files with 97 additions and 0 deletions

View file

@ -6,6 +6,8 @@
<action name="dispModuleAdminCategory" type="view" standalone="true" />
<action name="dispModuleAdminInfo" type="view" standalone="true" />
<action name="dispModuleSkinInfo" type="view" standalone="true" />
<action name="procModuleAdminInsertCategory" type="controller" standalone="true" />
<action name="procModuleAdminUpdateCategory" type="controller" standalone="true" />
</actions>

View file

@ -0,0 +1,41 @@
<?php
/**
* @class moduleView
* @author zero (zero@nzeo.com)
* @brief module 모듈의 view class
**/
class moduleView extends module {
/**
* @brief 초기화
**/
function init() {
// template path 지정
$this->setTemplatePath($this->module_path.'tpl');
}
/**
* @brief 스킨 정보 출력
**/
function dispModuleSkinInfo() {
$selected_module = Context::get('selected_module');
$skin = Context::get('skin');
// 모듈/스킨 정보를 구함
$module_path = sprintf("./modules/%s/", $selected_module);
if(!is_dir($module_path)) $this->stop("msg_invalid_request");
$skin_info_xml = sprintf("%sskins/%s/skin.xml", $module_path, $skin);
if(!file_exists($skin_info_xml)) $this->stop("msg_invalid_request");
$oModuleModel = &getModel('module');
$skin_info = $oModuleModel->loadSkinInfo($module_path, $skin);
Context::set('skin_info',$skin_info);
$this->setLayoutFile("popup_layout");
$this->setTemplateFile("skin_info");
}
}
?>

View file

@ -0,0 +1,35 @@
<!--%import("../../admin/tpl/css/admin.css")-->
<div id="popHeadder">
<h1>{$skin_info->title}</h1>
</div>
<div id="popBody">
<table cellspacing="0" class="tableType5">
<col width="100" />
<col />
<tr>
<th scope="row"><label for="textfield1">{$lang->title}</label></th>
<td>{$skin_info->title}</td>
</tr>
<tr>
<th scope="row"><label for="textfield2">{$lang->author}</label></th>
<td class="blue"><a href="mailto:{$skin_info->maker->email_address}">{$skin_info->maker->name}</a></td>
</tr>
<tr>
<th scope="row"><label for="textfield2">{$lang->homepage}</label></th>
<td class="blue"><a href="{$skin_info->maker->homepage}" onclick="window.open(this.href);return false;">{$skin_info->maker->homepage}</a></td>
</tr>
<tr>
<th scope="row"><label for="textfield2">{$lang->regdate}</label></th>
<td>{$skin_info->maker->date}<td>
</tr>
<tr>
<th scope="row" class="borderBottomNone">{$lang->description}</th>
<td class="borderBottomNone">{nl2br($skin_info->maker->description)}</td>
</tr>
</table>
</div>
<div id="popFooter" class="tCenter">
<a href="#" onclick="window.close(); return false;" class="button"><span>{$lang->cmd_close}</span></a>
</div>