mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
issue 70 menu working. Not yet completed source
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8590 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d803e8b89d
commit
683f041593
12 changed files with 393 additions and 292 deletions
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
$logged_info = $oMemberModel->getLoggedInfo();
|
$logged_info = $oMemberModel->getLoggedInfo();
|
||||||
if($logged_info->is_admin=='Y') {
|
if($logged_info->is_admin=='Y') {
|
||||||
$orig_module->loadSideBar();
|
$orig_module->makeGnbUrl($forward->module);
|
||||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||||
$oModule->setLayoutFile("layout.html");
|
$oModule->setLayoutFile("layout.html");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,11 @@
|
||||||
$this->setLayoutPath($this->getTemplatePath());
|
$this->setLayoutPath($this->getTemplatePath());
|
||||||
$this->setLayoutFile('layout.html');
|
$this->setLayoutFile('layout.html');
|
||||||
|
|
||||||
$this->loadSideBar();
|
$this->makeGnbUrl($this->module);
|
||||||
|
|
||||||
// Retrieve the list of installed modules
|
// Retrieve the list of installed modules
|
||||||
|
|
||||||
$db_info = Context::getDBInfo();
|
$db_info = Context::getDBInfo();
|
||||||
$this->_makeGnbUrl();
|
|
||||||
|
|
||||||
Context::set('time_zone_list', $GLOBALS['time_zone']);
|
Context::set('time_zone_list', $GLOBALS['time_zone']);
|
||||||
Context::set('time_zone', $GLOBALS['_time_zone']);
|
Context::set('time_zone', $GLOBALS['_time_zone']);
|
||||||
|
|
@ -47,49 +46,18 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function _makeGnbUrl()
|
function makeGnbUrl($module)
|
||||||
{
|
{
|
||||||
$gnbUrlList = array(
|
require_once(_XE_PATH_.'modules/admin/model/AdminCategory.php');
|
||||||
'site' => getUrl(''),
|
$oAdminCategory = new AdminCategory($module);
|
||||||
'user' => getUrl(''),
|
|
||||||
'content' => getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList'),
|
$oMenuAdminModel = &getAdminModel('menu');
|
||||||
'theme' => getUrl(''),
|
$menu_info = $oMenuAdminModel->getMenuByTitle('__XE_ADMIN__');
|
||||||
'extensions' => getUrl(''),
|
debugPrint($menu_info);
|
||||||
'configuration' => getUrl('')
|
|
||||||
);
|
Context::set('gnbUrlList', $oAdminCategory->getCategoryList());
|
||||||
$gnbSubUrlList = array(
|
Context::set('gnbSubUrlList', $oAdminCategory->getSubCategoryList());
|
||||||
'site' => array(),
|
Context::set('category', $oAdminCategory->getCategory());
|
||||||
'user' => array(
|
|
||||||
'userList'=>getUrl(''),
|
|
||||||
'setting'=>getUrl(''),
|
|
||||||
'point'=>getUrl('')
|
|
||||||
),
|
|
||||||
'content' => array(
|
|
||||||
'document'=>getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList'),
|
|
||||||
'comment'=>getUrl(''),
|
|
||||||
'trackback'=>getUrl(''),
|
|
||||||
'file'=>getUrl(''),
|
|
||||||
'poll'=>getUrl(''),
|
|
||||||
'accusation'=>getUrl(''),
|
|
||||||
'dataMigration'=>getUrl('')
|
|
||||||
),
|
|
||||||
'theme' => array(),
|
|
||||||
'extensions' => array(
|
|
||||||
'easyInstaller'=>getUrl(''),
|
|
||||||
'installedLayout'=>getUrl(''),
|
|
||||||
'installedModule'=>getUrl(''),
|
|
||||||
'installedWidget'=>getUrl(''),
|
|
||||||
'installedAddon'=>getUrl(''),
|
|
||||||
'WYSIWYGEditor'=>getUrl(''),
|
|
||||||
'spamFilter'=>getUrl('')
|
|
||||||
),
|
|
||||||
'configuration' => array(
|
|
||||||
'general'=>getUrl(''),
|
|
||||||
'fileUpload'=>getUrl('')
|
|
||||||
),
|
|
||||||
);
|
|
||||||
Context::set('gnbUrlList', $gnbUrlList);
|
|
||||||
Context::set('gnbSubUrlList', $gnbSubUrlList);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadSideBar()
|
function loadSideBar()
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,13 @@
|
||||||
* @brief if update is necessary it returns true
|
* @brief if update is necessary it returns true
|
||||||
**/
|
**/
|
||||||
function checkUpdate() {
|
function checkUpdate() {
|
||||||
|
$oMenuAdminModel = &getAdminModel('menu');
|
||||||
|
$output = $oMenuAdminModel->getMenuByTitle('__XE_ADMIN__');
|
||||||
|
if(!$output->menu_srl)
|
||||||
|
{
|
||||||
|
$this->_createXeAdminMenu();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -55,5 +62,88 @@
|
||||||
}
|
}
|
||||||
$directory->close();
|
$directory->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief regenerate xe admin default menu
|
||||||
|
* @return none
|
||||||
|
**/
|
||||||
|
function _createXeAdminMenu()
|
||||||
|
{
|
||||||
|
//insert menu
|
||||||
|
$args->title = '__XE_ADMIN__';
|
||||||
|
$args->menu_srl = getNextSequence();
|
||||||
|
$args->listorder = $args->menu_srl * -1;
|
||||||
|
$output = executeQuery('menu.insertMenu', $args);
|
||||||
|
|
||||||
|
$adminUrl = getUrl('', 'module', 'admin');
|
||||||
|
$gnbList = array(
|
||||||
|
'dashboard'=>array(
|
||||||
|
'url'=>$adminUrl,
|
||||||
|
'lnbList'=>array()
|
||||||
|
),
|
||||||
|
'site'=>array(
|
||||||
|
'url'=>$adminUrl,
|
||||||
|
'lnbList'=>array()
|
||||||
|
),
|
||||||
|
'user'=>array(
|
||||||
|
'url'=>$adminUrl,
|
||||||
|
'lnbList'=>array('userList', 'setting', 'point')
|
||||||
|
),
|
||||||
|
'content'=>array(
|
||||||
|
'url'=>$adminUrl,
|
||||||
|
'lnbList'=>array('document', 'comment', 'trackback', 'file', 'poll', 'dataMigration')
|
||||||
|
),
|
||||||
|
'theme'=>array(
|
||||||
|
'url'=>$adminUrl,
|
||||||
|
'lnbList'=>array()
|
||||||
|
),
|
||||||
|
'extensions'=>array(
|
||||||
|
'url'=>$adminUrl,
|
||||||
|
'lnbList'=>array('easyInstaller', 'installedLayout', 'installedModule', 'installedWidget', 'installedAddon', 'WYSIWYGEditor', 'spamFilter')
|
||||||
|
),
|
||||||
|
'configuration'=>array(
|
||||||
|
'url'=>$adminUrl,
|
||||||
|
'lnbList'=>array('general', 'fileUpload')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$oMemberModel = &getModel('member');
|
||||||
|
$output = $oMemberModel->getAdminGroup(array('group_srl'));
|
||||||
|
$adminGroupSrl = $output->group_srl;
|
||||||
|
|
||||||
|
// common argument setting
|
||||||
|
$args->open_window = 'N';
|
||||||
|
$args->expand = 'N';
|
||||||
|
$args->normal_btn = '';
|
||||||
|
$args->hover_btn = '';
|
||||||
|
$args->active_btn = '';
|
||||||
|
$args->group_srls = $adminGroupSrl;
|
||||||
|
|
||||||
|
foreach($gnbList AS $key=>$value)
|
||||||
|
{
|
||||||
|
//insert menu item
|
||||||
|
$args->menu_item_srl = getNextSequence();
|
||||||
|
$args->name = '$lang->menu_gnb[\''.$key.'\']';
|
||||||
|
$args->url = $value['url'];
|
||||||
|
$args->listorder = -1*$args->menu_item_srl;
|
||||||
|
$output = executeQuery('menu.insertMenuItem', $args);
|
||||||
|
|
||||||
|
if(is_array($value) && count($value)>0)
|
||||||
|
{
|
||||||
|
unset($parentSrl);
|
||||||
|
$parentSrl = $args->menu_item_srl;
|
||||||
|
foreach($value AS $key2=>$value2)
|
||||||
|
{
|
||||||
|
//insert menu item
|
||||||
|
$args->menu_item_srl = getNextSequence();
|
||||||
|
$args->parent_srl = $parentSrl;
|
||||||
|
$args->name = '$lang->menu_gnb_sub[\''.$key.'\'][\''.$key2.'\']';
|
||||||
|
$args->url = $value2['url'];
|
||||||
|
$args->listorder = -1*$args->menu_item_srl;
|
||||||
|
$output = executeQuery('menu.insertMenuItem', $args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ $lang->module_category_title = array(
|
||||||
'system' => '시스템 관리',
|
'system' => '시스템 관리',
|
||||||
);
|
);
|
||||||
$lang->menu_gnb = array(
|
$lang->menu_gnb = array(
|
||||||
|
'dashboard' => '대쉬보드',
|
||||||
'site' => '사이트',
|
'site' => '사이트',
|
||||||
'user' => '유저',
|
'user' => '유저',
|
||||||
'content' => '콘텐츠',
|
'content' => '콘텐츠',
|
||||||
|
|
@ -37,7 +38,7 @@ $lang->menu_gnb = array(
|
||||||
$lang->menu_gnb_sub = array(
|
$lang->menu_gnb_sub = array(
|
||||||
'site' => array(),
|
'site' => array(),
|
||||||
'user' => array('userList'=>'유저 목록', 'setting'=>'설정', 'point'=>'포인트'),
|
'user' => array('userList'=>'유저 목록', 'setting'=>'설정', 'point'=>'포인트'),
|
||||||
'content' => array('document'=>'문서', 'comment'=>'댓글', 'trackback'=>'트랙백', 'file'=>'파일', 'poll'=>'투표', 'accusation'=>'신고', 'dataMigration'=>'데이터 이전'),
|
'content' => array('document'=>'문서', 'comment'=>'댓글', 'trackback'=>'트랙백', 'file'=>'파일', 'poll'=>'투표', 'dataMigration'=>'데이터 이전'),
|
||||||
'theme' => array(),
|
'theme' => array(),
|
||||||
'extensions' => array('easyInstaller'=>'쉬운설치', 'installedLayout'=>'레이아웃', 'installedModule'=>'모듈', 'installedWidget'=>'위젯', 'installedAddon'=>'애드온', 'WYSIWYGEditor'=>'에디터', 'spamFilter'=>'스팸필터'),
|
'extensions' => array('easyInstaller'=>'쉬운설치', 'installedLayout'=>'레이아웃', 'installedModule'=>'모듈', 'installedWidget'=>'위젯', 'installedAddon'=>'애드온', 'WYSIWYGEditor'=>'에디터', 'spamFilter'=>'스팸필터'),
|
||||||
'configuration' => array('general'=>'일반', 'fileUpload'=>'파일 업로드'),
|
'configuration' => array('general'=>'일반', 'fileUpload'=>'파일 업로드'),
|
||||||
|
|
|
||||||
99
modules/admin/model/AdminCategory.php
Normal file
99
modules/admin/model/AdminCategory.php
Normal file
|
|
@ -0,0 +1,99 @@
|
||||||
|
<?php
|
||||||
|
class AdminCategory
|
||||||
|
{
|
||||||
|
var $module;
|
||||||
|
var $category;
|
||||||
|
var $categoryList;
|
||||||
|
var $subCategoryList;
|
||||||
|
var $categoryListForSearchWithModule;
|
||||||
|
|
||||||
|
function AdminCategory($module = 'admin')
|
||||||
|
{
|
||||||
|
$this->module = $module;
|
||||||
|
$this->category = 'dashboard';
|
||||||
|
$this->_makeCategoryList();
|
||||||
|
$this->_makeSubCategoryList();
|
||||||
|
$this->_makeCategoryListForSearchWithModule();
|
||||||
|
}
|
||||||
|
|
||||||
|
function getCategoryList()
|
||||||
|
{
|
||||||
|
return $this->categoryList;
|
||||||
|
}
|
||||||
|
function getSubCategoryList()
|
||||||
|
{
|
||||||
|
return $this->subCategoryList;
|
||||||
|
}
|
||||||
|
function getCategory()
|
||||||
|
{
|
||||||
|
foreach($this->categoryList AS $key=>$value)
|
||||||
|
{
|
||||||
|
if(in_array($this->module, $this->categoryListForSearchWithModule[$key]))
|
||||||
|
{
|
||||||
|
$this->category = $key;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $this->category;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _makeCategoryList()
|
||||||
|
{
|
||||||
|
$this->categoryList = array(
|
||||||
|
'dashboard'=>getUrl('', 'module', 'admin'),
|
||||||
|
'site'=>getUrl(''),
|
||||||
|
'user'=>getUrl(''),
|
||||||
|
'content'=>getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList'),
|
||||||
|
'theme'=>getUrl(''),
|
||||||
|
'extensions'=>getUrl(''),
|
||||||
|
'configuration'=>getUrl('')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _makeSubCategoryList()
|
||||||
|
{
|
||||||
|
$this->subCategoryList['dashboard'] = array();
|
||||||
|
$this->subCategoryList['site'] = array();
|
||||||
|
$this->subCategoryList['user'] = array(
|
||||||
|
'userList'=>getUrl(''),
|
||||||
|
'setting'=>getUrl(''),
|
||||||
|
'point'=>getUrl('')
|
||||||
|
);
|
||||||
|
$this->subCategoryList['content'] = array(
|
||||||
|
'document'=>getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList'),
|
||||||
|
'comment'=>getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList'),
|
||||||
|
'trackback'=>getUrl(''),
|
||||||
|
'file'=>getUrl(''),
|
||||||
|
'poll'=>getUrl(''),
|
||||||
|
'dataMigration'=>getUrl('')
|
||||||
|
);
|
||||||
|
$this->subCategoryList['theme'] = array();
|
||||||
|
$this->subCategoryList['extensions'] = array(
|
||||||
|
'easyInstaller'=>getUrl(''),
|
||||||
|
'installedLayout'=>getUrl(''),
|
||||||
|
'installedModule'=>getUrl(''),
|
||||||
|
'installedWidget'=>getUrl(''),
|
||||||
|
'installedAddon'=>getUrl(''),
|
||||||
|
'WYSIWYGEditor'=>getUrl(''),
|
||||||
|
'spamFilter'=>getUrl('')
|
||||||
|
);
|
||||||
|
$this->subCategoryList['configuration'] = array(
|
||||||
|
'general'=>getUrl(''),
|
||||||
|
'fileUpload'=>getUrl('')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _makeCategoryListForSearchWithModule()
|
||||||
|
{
|
||||||
|
$this->categoryListForSearchWithModule = array(
|
||||||
|
'dashboard'=>array('admin'),
|
||||||
|
'site'=>array(),
|
||||||
|
'user'=>array('member'),
|
||||||
|
'content'=>array('document', 'comment', 'trackback', 'file', 'poll', 'importer'),
|
||||||
|
'theme'=>array(),
|
||||||
|
'extensions'=>array(),
|
||||||
|
'configuration'=>array()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
@ -29,9 +29,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="gnb jx">
|
<div class="gnb jx">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="activeOn"><a href="#">Dashboard</a></li>
|
<!--li class="activeOn"><a href="#">Dashboard</a></li-->
|
||||||
<!--@foreach($lang->menu_gnb AS $key=>$value)-->
|
<!--@foreach($lang->menu_gnb AS $key=>$value)-->
|
||||||
<li><a href="{$gnbUrlList[$key]}">{$value}</a>
|
<li <!--@if($category == $key)-->class="activeOn"<!--@end-->><a href="{$gnbUrlList[$key]}">{$value}</a>
|
||||||
<!--@if(count($lang->menu_gnb_sub[$key]) > 0)-->
|
<!--@if(count($lang->menu_gnb_sub[$key]) > 0)-->
|
||||||
<ul>
|
<ul>
|
||||||
<!--@foreach($lang->menu_gnb_sub[$key] AS $key2=>$value2)-->
|
<!--@foreach($lang->menu_gnb_sub[$key] AS $key2=>$value2)-->
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,10 @@
|
||||||
<div class="lnb">
|
<div class="lnb">
|
||||||
<h2 class="h2">Content</h2>
|
<h2 class="h2">{$lang->menu_gnb[$category]}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="active"><a href="#">Document</a></li>
|
<!--@if(count($gnbSubUrlList[$category]) > 0)-->
|
||||||
<li><a href="#">Content</a></li>
|
<!--@foreach($gnbSubUrlList[$category] AS $key=>$value)-->
|
||||||
<li><a href="#">Trackback</a></li>
|
<li><a href="#">{$lang->menu_gnb_sub[$category][$key]}</a></li>
|
||||||
<li><a href="#">File</a></li>
|
<!--@end-->
|
||||||
<li><a href="#">Poll</a></li>
|
<!--@end-->
|
||||||
<li><a href="#">Accusation</a></li>
|
|
||||||
<li><a href="#">Trash</a></li>
|
|
||||||
<li><a href="#">Data Migration</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,138 +1,6 @@
|
||||||
<!--#include("./_spHeader.html")-->
|
<!--#include("./_spHeader.html")-->
|
||||||
<div class="content" id="content">
|
<div class="content" id="content">
|
||||||
<form action="" class="form">
|
{$content}
|
||||||
<h1 class="h1">Document</h1>
|
|
||||||
<div class="table even">
|
|
||||||
<table width="100%" border="1" cellspacing="0">
|
|
||||||
<caption>All(789) <span class="side">All(789) | <a href="#">Public(456)</a> | <a href="#">Secret(8)</a> | <a href="#">Private(9)</a> | <a href="#">Temp(12)</a> | <a href="#">Trash(4)</a></span></caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th scope="col" class="title">Title</th>
|
|
||||||
<th scope="col">Author</th>
|
|
||||||
<th scope="col">Read</th>
|
|
||||||
<th scope="col">Vote(+/-)</th>
|
|
||||||
<th scope="col">Date</th>
|
|
||||||
<th scope="col">IP</th>
|
|
||||||
<th scope="col">Status</th>
|
|
||||||
<th scope="col"><input type="checkbox" title="Check All" /></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="title"><a href="#" target="_blank">The quick brown fox jumps over the lazy dog.</a></td>
|
|
||||||
<td><a href="#popup_menu_area">홍길동</a></td>
|
|
||||||
<td>2</td>
|
|
||||||
<td>0/0</td>
|
|
||||||
<td>2010-12-24 15:59</td>
|
|
||||||
<td>123.456.789.0</td>
|
|
||||||
<td>Public</td>
|
|
||||||
<td><input type="checkbox" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="title"><a href="#" target="_blank">The quick brown fox jumps over the lazy dog.</a></td>
|
|
||||||
<td><a href="#popup_menu_area">홍길동</a></td>
|
|
||||||
<td>2</td>
|
|
||||||
<td>1/-1</td>
|
|
||||||
<td>2010-12-24 15:59</td>
|
|
||||||
<td>123.456.789.0</td>
|
|
||||||
<td>Trash</td>
|
|
||||||
<td><input type="checkbox" /></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="btnArea">
|
|
||||||
<span class="btn"><a href="#listManager" class="modalAnchor">선택한 글 관리...</a></span>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<div class="modal" id="listManager">
|
|
||||||
<form action="" class="fg form">
|
|
||||||
<h2 class="h2">선택한 글 관리</h2>
|
|
||||||
<div class="table even">
|
|
||||||
<table width="100%" border="1" cellspacing="0">
|
|
||||||
<caption>선택한 글 <strong>8</strong></caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th scope="col" class="title">Title</th>
|
|
||||||
<th scope="col">Author</th>
|
|
||||||
<th scope="col">Status</th>
|
|
||||||
<th scope="col"><input type="checkbox" title="Check All" checked="checked" /></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="title">The quick brown fox jumps over the lazy dog.</td>
|
|
||||||
<td>홍길동</td>
|
|
||||||
<td>Public</td>
|
|
||||||
<td><input type="checkbox" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="title">The quick brown fox jumps over the lazy dog.</td>
|
|
||||||
<td>홍길동</td>
|
|
||||||
<td>Trash</td>
|
|
||||||
<td><input type="checkbox" /></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<p class="q"><label for="midUrl">선택한 글을 다음 위치로 옮기거나 복사할 수 있습니다.</label></p>
|
|
||||||
<div class="a">
|
|
||||||
<input type="text" id="midUrl" />
|
|
||||||
<span class="desc"><a href="#midSuggestion" class="tgFade">Find Module ID</a></span>
|
|
||||||
<div id="midSuggestion" class="tgContent">
|
|
||||||
<ul>
|
|
||||||
<li><button type="button">SiteID.ModuleID.Category</button></li>
|
|
||||||
<li><button type="button">naradesign.freeBoard</button></li>
|
|
||||||
<li><button type="button">naradesign.userForum.technique</button></li>
|
|
||||||
<li><button type="button">mygony.freeBoard</button></li>
|
|
||||||
<li><button type="button">mygony.userForum.technique</button></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p class="q"><label for="message">저작자에게 쪽지를 발송해서 이 사실을 알립니다. 작성하지 않으면 발송하지 않습니다.</label></p>
|
|
||||||
<p>
|
|
||||||
<textarea cols="42" rows="3" id="message" style="width:98%"></textarea>
|
|
||||||
</p>
|
|
||||||
<div class="btnArea">
|
|
||||||
<span class="btn"><input type="submit" value="Move" /></span>
|
|
||||||
<span class="btn"><input type="submit" value="Copy" /></span>
|
|
||||||
<span class="btn"><input type="submit" value="Trash" /></span>
|
|
||||||
<span class="btn"><input type="submit" value="Delete" class="delete" /></span>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="search">
|
|
||||||
<form action="" class="pagination">
|
|
||||||
<a href="#" class="direction">« FIRST</a>
|
|
||||||
<a href="#" class="direction">‹ PREV</a>
|
|
||||||
<strong>11</strong>
|
|
||||||
<a href="#">12</a>
|
|
||||||
<a href="#">13</a>
|
|
||||||
<a href="#goTo" class="tgSimple">...</a>
|
|
||||||
<span id="goTo" class="tgContent">
|
|
||||||
<input title="Go to Page" />
|
|
||||||
<button type="submit">GO</button>
|
|
||||||
</span>
|
|
||||||
<a href="#">99</a>
|
|
||||||
<a href="#" class="direction">NEXT ›</a>
|
|
||||||
<a href="#" class="direction">LAST »</a>
|
|
||||||
</form>
|
|
||||||
<form action="">
|
|
||||||
<select>
|
|
||||||
<option>제목</option>
|
|
||||||
<option>내용</option>
|
|
||||||
<option>닉네임</option>
|
|
||||||
<option>아이디</option>
|
|
||||||
<option>사용자 이름</option>
|
|
||||||
<option>공지사항</option>
|
|
||||||
<option>IP 주소</option>
|
|
||||||
<option>모듈 아이디</option>
|
|
||||||
</select>
|
|
||||||
<input title="Search" />
|
|
||||||
<input type="submit" value="Search" />
|
|
||||||
<a href="#">Cancel</a>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!--#include("./_spLnb.content.html")-->
|
<!--#include("./_spLnb.content.html")-->
|
||||||
<!--#include("./_spFooter.html")-->
|
<!--#include("./_spFooter.html")-->
|
||||||
|
|
|
||||||
|
|
@ -1,102 +1,136 @@
|
||||||
<!--%import("filter/delete_checked.xml")-->
|
<form id="fo_list" action="./" method="get">
|
||||||
<!--%import("filter/manage_checked_document.xml")-->
|
<input type="hidden" name="page" value="{$page}" />
|
||||||
<!--#include("header.html")-->
|
<h1 class="h1">Document</h1>
|
||||||
|
<div class="table even">
|
||||||
|
<table width="100%" border="1" cellspacing="0">
|
||||||
<!-- 검색 -->
|
<caption>All({number_format($total_count)}) <span class="side">All({number_format($total_count)}) | <a href="#">Public(456)</a> | <a href="#">Secret(8)</a> | <a href="#">Private(9)</a> | <a href="#">Temp(12)</a> | <a href="#">Trash(4)</a></span></caption>
|
||||||
<div class="fl">
|
<thead>
|
||||||
<form action="./" method="get" class="adminSearch">
|
<tr>
|
||||||
<input type="hidden" name="module" value="{$module}" />
|
<th scope="col" class="title">{$lang->title}</th>
|
||||||
<input type="hidden" name="act" value="{$act}" />
|
<th scope="col">{$lang->author}</th>
|
||||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
<th scope="col">{$lang->readed_count}</th>
|
||||||
|
<th scope="col">{$lang->cmd_vote}(+/-)</th>
|
||||||
<fieldset>
|
<th scope="col">{$lang->date}</th>
|
||||||
<select name="search_target">
|
<th scope="col">{$lang->ipaddress}</th>
|
||||||
<option value="">{$lang->search_target}</option>
|
<th scope="col">{$lang->status}</th>
|
||||||
<!--@foreach($lang->search_target_list as $key => $val)-->
|
<th scope="col"><input type="checkbox" title="Check All" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" /></th>
|
||||||
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
|
</tr>
|
||||||
<!--@end-->
|
</thead>
|
||||||
</select>
|
<tbody>
|
||||||
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
|
<!--@foreach($document_list as $no => $oDocument)-->
|
||||||
<span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
|
<tr>
|
||||||
<a href="{getUrl('','module',$module,'act',$act)}" class="button black"><span>{$lang->cmd_cancel}</span></a>
|
<td class="title"><a href="{getUrl('','document_srl',$oDocument->document_srl)}" target="_blank">{$oDocument->getTitle()}</a></td>
|
||||||
</fieldset>
|
<td><a href="#popup_menu_area"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></a></td>
|
||||||
</form>
|
<td>{$oDocument->get('readed_count')}</td>
|
||||||
</div>
|
<td>{$oDocument->get('voted_count')}/{$oDocument->get('blamed_count')}</td>
|
||||||
|
<td>{$oDocument->getRegdate("Y-m-d H:i")}</td>
|
||||||
<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
|
<td><a href="{getUrl('search_target','ipaddress','search_keyword',$oDocument->get('ipaddress'))}">{$oDocument->get('ipaddress')}</a></td>
|
||||||
<input type="hidden" name="page" value="{$page}" />
|
<td>{$status_name_list[$oDocument->get('status')]}</td>
|
||||||
|
<td><input type="checkbox" name="cart" value="{$oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($oDocument->isCarted())-->checked="checked"<!--@end--> /></td>
|
||||||
<!-- 모듈 선택 -->
|
</tr>
|
||||||
<div class="fr">
|
<!--@end-->
|
||||||
<a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_find_module}</span></a>
|
<tr>
|
||||||
<a href="{getUrl('','module','document','act','dispDocumentManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button blue"><span>{$lang->cmd_manage_document}</span></a>
|
<td class="title"><a href="#" target="_blank">The quick brown fox jumps over the lazy dog.</a></td>
|
||||||
</div>
|
<td><a href="#popup_menu_area">홍길동</a></td>
|
||||||
|
<td>2</td>
|
||||||
<!-- 목록 -->
|
<td>1/-1</td>
|
||||||
<table cellspacing="0" class="rowTable clear">
|
<td>2010-12-24 15:59</td>
|
||||||
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
|
<td>123.456.789.0</td>
|
||||||
<thead>
|
<td>Trash</td>
|
||||||
<tr>
|
<td><input type="checkbox" /></td>
|
||||||
<th scope="col"><div>{$lang->no}</div></th>
|
</tr>
|
||||||
<th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" /></div></th>
|
</tbody>
|
||||||
<th scope="col" class="wide"><div>{$lang->document}</div></th>
|
</table>
|
||||||
<th scope="col"><div>{$lang->status}</div></th>
|
</div>
|
||||||
<th scope="col"><div>{$lang->nick_name}</div></th>
|
<div class="btnArea">
|
||||||
<th scope="col"><div>{$lang->readed_count}</div></th>
|
<span class="btn"><a href="#listManager" class="modalAnchor">선택한 글 관리...</a></span>
|
||||||
<th scope="col"><div>{$lang->voted_count}</div></th>
|
</div>
|
||||||
<th scope="col"><div>{$lang->date}</div></th>
|
</form>
|
||||||
<th scope="col"><div>{$lang->ipaddress}</div></th>
|
<div class="modal" id="listManager">
|
||||||
<th scope="col"><div>{$lang->alias}</div></th>
|
<form action="" class="fg form">
|
||||||
</tr>
|
<h2 class="h2">선택한 글 관리</h2>
|
||||||
</thead>
|
<div class="table even">
|
||||||
<tbody>
|
<table width="100%" border="1" cellspacing="0">
|
||||||
<!--@foreach($document_list as $no => $oDocument)-->
|
<caption>선택한 글 <strong>8</strong></caption>
|
||||||
<tr>
|
<thead>
|
||||||
<td class="number center">{$no}</td>
|
<tr>
|
||||||
<td class="center"><input type="checkbox" name="cart" value="{$oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($oDocument->isCarted())-->checked="checked"<!--@end-->/></td>
|
<th scope="col" class="title">Title</th>
|
||||||
<td class="left subject">
|
<th scope="col">Author</th>
|
||||||
<!--@if($oDocument->get('module_srl') != 0)-->
|
<th scope="col">Status</th>
|
||||||
<!--@if($oDocument->get('module_srl')==$oDocument->get('member_srl'))-->
|
<th scope="col"><input type="checkbox" title="Check All" checked="checked" /></th>
|
||||||
{$lang->cmd_save}
|
</tr>
|
||||||
<!--@else-->
|
</thead>
|
||||||
<a href="{getUrl('','document_srl',$oDocument->document_srl)}" onclick="window.open(this.href);return false">{$oDocument->getTitle()}</a>
|
<tbody>
|
||||||
<!--@end-->
|
<tr>
|
||||||
<!--@else-->
|
<td class="title">The quick brown fox jumps over the lazy dog.</td>
|
||||||
[{$lang->in_trash}] {$oDocument->getTitle()}
|
<td>홍길동</td>
|
||||||
<!--@end-->
|
<td>Public</td>
|
||||||
|
<td><input type="checkbox" /></td>
|
||||||
<!--@if($oDocument->getCommentCount())-->
|
</tr>
|
||||||
[{$oDocument->getCommentCount()}]
|
<tr>
|
||||||
<!--@end-->
|
<td class="title">The quick brown fox jumps over the lazy dog.</td>
|
||||||
|
<td>홍길동</td>
|
||||||
<!--@if($oDocument->getTrackbackCount())-->
|
<td>Trash</td>
|
||||||
[{$oDocument->getTrackbackCount()}]
|
<td><input type="checkbox" /></td>
|
||||||
<!--@end-->
|
</tr>
|
||||||
</td>
|
</tbody>
|
||||||
<td class="nowrap">{$status_name_list[$oDocument->get('status')]}</td>
|
</table>
|
||||||
<td class="nowrap"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></td>
|
</div>
|
||||||
<td class="number center">{$oDocument->get('readed_count')}</td>
|
<p class="q"><label for="midUrl">선택한 글을 다음 위치로 옮기거나 복사할 수 있습니다.</label></p>
|
||||||
<td class="number center">{$oDocument->get('voted_count')} / {$oDocument->get('blamed_count')}</td>
|
<div class="a">
|
||||||
<td class="date center nowrap">{$oDocument->getRegdate("Y-m-d H:i:s")}</td>
|
<input type="text" id="midUrl" />
|
||||||
<td class="number center nowrap"><a href="{getUrl('search_target','ipaddress','search_keyword',$oDocument->get('ipaddress'))}">{$oDocument->get('ipaddress')}</a></td>
|
<span class="desc"><a href="#midSuggestion" class="tgFade">Find Module ID</a></span>
|
||||||
<td class="center"><a href="{getUrl('act','dispDocumentAdminAlias','document_srl',$oDocument->document_srl)}">{$lang->alias}</a>
|
<div id="midSuggestion" class="tgContent">
|
||||||
</tr>
|
<ul>
|
||||||
<!--@end-->
|
<li><button type="button">SiteID.ModuleID.Category</button></li>
|
||||||
</tbody>
|
<li><button type="button">naradesign.freeBoard</button></li>
|
||||||
</table>
|
<li><button type="button">naradesign.userForum.technique</button></li>
|
||||||
|
<li><button type="button">mygony.freeBoard</button></li>
|
||||||
</form>
|
<li><button type="button">mygony.userForum.technique</button></li>
|
||||||
|
</ul>
|
||||||
<!-- 페이지 네비게이션 -->
|
</div>
|
||||||
<div class="pagination a1">
|
</div>
|
||||||
<a href="{getUrl('page','','module_srl',$module_srl)}" class="prevEnd">{$lang->first_page}</a>
|
<p class="q"><label for="message">저작자에게 쪽지를 발송해서 이 사실을 알립니다. 작성하지 않으면 발송하지 않습니다.</label></p>
|
||||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
<p>
|
||||||
<!--@if($page == $page_no)-->
|
<textarea cols="42" rows="3" id="message" style="width:98%"></textarea>
|
||||||
<strong>{$page_no}</strong>
|
</p>
|
||||||
<!--@else-->
|
<div class="btnArea">
|
||||||
<a href="{getUrl('page',$page_no,'module_srl',$module_srl)}">{$page_no}</a>
|
<span class="btn"><input type="submit" value="Move" /></span>
|
||||||
<!--@end-->
|
<span class="btn"><input type="submit" value="Copy" /></span>
|
||||||
<!--@end-->
|
<span class="btn"><input type="submit" value="Trash" /></span>
|
||||||
<a href="{getUrl('page',$page_navigation->last_page,'module_srl',$module_srl)}" class="nextEnd">{$lang->last_page}</a>
|
<span class="btn"><input type="submit" value="Delete" class="delete" /></span>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="search">
|
||||||
|
<form action="" class="pagination">
|
||||||
|
<a href="#" class="direction">« FIRST</a>
|
||||||
|
<a href="#" class="direction">‹ PREV</a>
|
||||||
|
<strong>11</strong>
|
||||||
|
<a href="#">12</a>
|
||||||
|
<a href="#">13</a>
|
||||||
|
<a href="#goTo" class="tgSimple">...</a>
|
||||||
|
<span id="goTo" class="tgContent">
|
||||||
|
<input title="Go to Page" />
|
||||||
|
<button type="submit">GO</button>
|
||||||
|
</span>
|
||||||
|
<a href="#">99</a>
|
||||||
|
<a href="#" class="direction">NEXT ›</a>
|
||||||
|
<a href="#" class="direction">LAST »</a>
|
||||||
|
</form>
|
||||||
|
<form action="">
|
||||||
|
<select>
|
||||||
|
<option>제목</option>
|
||||||
|
<option>내용</option>
|
||||||
|
<option>닉네임</option>
|
||||||
|
<option>아이디</option>
|
||||||
|
<option>사용자 이름</option>
|
||||||
|
<option>공지사항</option>
|
||||||
|
<option>IP 주소</option>
|
||||||
|
<option>모듈 아이디</option>
|
||||||
|
</select>
|
||||||
|
<input title="Search" />
|
||||||
|
<input type="submit" value="Search" />
|
||||||
|
<a href="#">Cancel</a>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -695,5 +695,22 @@
|
||||||
return $output->data->member_srl;
|
return $output->data->member_srl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getAdminGroupSrl($site_srl = 0)
|
||||||
|
{
|
||||||
|
$groupSrl = 0;
|
||||||
|
$output = $this->getGroups($site_srl);
|
||||||
|
if(is_array($output))
|
||||||
|
{
|
||||||
|
foreach($output AS $key=>$value)
|
||||||
|
{
|
||||||
|
if($value->is_admin == 'Y')
|
||||||
|
{
|
||||||
|
$groupSrl = $value->group_srl;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $groupSrl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,22 @@
|
||||||
return $menu_info;
|
return $menu_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get information of a new menu from the DB, search condition is menu title
|
||||||
|
* Return DB and XML information of the menu
|
||||||
|
**/
|
||||||
|
function getMenuByTitle($title) {
|
||||||
|
// Get information from the DB
|
||||||
|
$args->title = $title;
|
||||||
|
$output = executeQuery('menu.getMenuByTitle', $args);
|
||||||
|
if(!$output->data) return;
|
||||||
|
|
||||||
|
$menu_info = $output->data;
|
||||||
|
$menu_info->xml_file = sprintf('./files/cache/menu/%s.xml.php',$menu_info->menu_srl);
|
||||||
|
$menu_info->php_file = sprintf('./files/cache/menu/%s.php',$menu_info->menu_srl);
|
||||||
|
return $menu_info;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Return item information of the menu_srl
|
* @brief Return item information of the menu_srl
|
||||||
* group_srls uses a seperator with comma(,) and converts to an array by explode
|
* group_srls uses a seperator with comma(,) and converts to an array by explode
|
||||||
|
|
|
||||||
11
modules/menu/queries/getMenuByTitle.xml
Normal file
11
modules/menu/queries/getMenuByTitle.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<query id="getMenuByTitle" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="menu" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="*" />
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="equal" column="title" var="title" notnull="notnull" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue