mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +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();
|
||||
if($logged_info->is_admin=='Y') {
|
||||
$orig_module->loadSideBar();
|
||||
$orig_module->makeGnbUrl($forward->module);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("layout.html");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,12 +23,11 @@
|
|||
$this->setLayoutPath($this->getTemplatePath());
|
||||
$this->setLayoutFile('layout.html');
|
||||
|
||||
$this->loadSideBar();
|
||||
$this->makeGnbUrl($this->module);
|
||||
|
||||
// Retrieve the list of installed modules
|
||||
|
||||
$db_info = Context::getDBInfo();
|
||||
$this->_makeGnbUrl();
|
||||
|
||||
Context::set('time_zone_list', $GLOBALS['time_zone']);
|
||||
Context::set('time_zone', $GLOBALS['_time_zone']);
|
||||
|
|
@ -47,49 +46,18 @@
|
|||
|
||||
}
|
||||
|
||||
function _makeGnbUrl()
|
||||
function makeGnbUrl($module)
|
||||
{
|
||||
$gnbUrlList = array(
|
||||
'site' => getUrl(''),
|
||||
'user' => getUrl(''),
|
||||
'content' => getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList'),
|
||||
'theme' => getUrl(''),
|
||||
'extensions' => getUrl(''),
|
||||
'configuration' => getUrl('')
|
||||
);
|
||||
$gnbSubUrlList = array(
|
||||
'site' => array(),
|
||||
'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);
|
||||
require_once(_XE_PATH_.'modules/admin/model/AdminCategory.php');
|
||||
$oAdminCategory = new AdminCategory($module);
|
||||
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$menu_info = $oMenuAdminModel->getMenuByTitle('__XE_ADMIN__');
|
||||
debugPrint($menu_info);
|
||||
|
||||
Context::set('gnbUrlList', $oAdminCategory->getCategoryList());
|
||||
Context::set('gnbSubUrlList', $oAdminCategory->getSubCategoryList());
|
||||
Context::set('category', $oAdminCategory->getCategory());
|
||||
}
|
||||
|
||||
function loadSideBar()
|
||||
|
|
|
|||
|
|
@ -19,6 +19,13 @@
|
|||
* @brief if update is necessary it returns true
|
||||
**/
|
||||
function checkUpdate() {
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$output = $oMenuAdminModel->getMenuByTitle('__XE_ADMIN__');
|
||||
if(!$output->menu_srl)
|
||||
{
|
||||
$this->_createXeAdminMenu();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -55,5 +62,88 @@
|
|||
}
|
||||
$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' => '시스템 관리',
|
||||
);
|
||||
$lang->menu_gnb = array(
|
||||
'dashboard' => '대쉬보드',
|
||||
'site' => '사이트',
|
||||
'user' => '유저',
|
||||
'content' => '콘텐츠',
|
||||
|
|
@ -37,7 +38,7 @@ $lang->menu_gnb = array(
|
|||
$lang->menu_gnb_sub = array(
|
||||
'site' => array(),
|
||||
'user' => array('userList'=>'유저 목록', 'setting'=>'설정', 'point'=>'포인트'),
|
||||
'content' => array('document'=>'문서', 'comment'=>'댓글', 'trackback'=>'트랙백', 'file'=>'파일', 'poll'=>'투표', 'accusation'=>'신고', 'dataMigration'=>'데이터 이전'),
|
||||
'content' => array('document'=>'문서', 'comment'=>'댓글', 'trackback'=>'트랙백', 'file'=>'파일', 'poll'=>'투표', 'dataMigration'=>'데이터 이전'),
|
||||
'theme' => array(),
|
||||
'extensions' => array('easyInstaller'=>'쉬운설치', 'installedLayout'=>'레이아웃', 'installedModule'=>'모듈', 'installedWidget'=>'위젯', 'installedAddon'=>'애드온', 'WYSIWYGEditor'=>'에디터', 'spamFilter'=>'스팸필터'),
|
||||
'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 class="gnb jx">
|
||||
<ul>
|
||||
<li class="activeOn"><a href="#">Dashboard</a></li>
|
||||
<!--li class="activeOn"><a href="#">Dashboard</a></li-->
|
||||
<!--@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)-->
|
||||
<ul>
|
||||
<!--@foreach($lang->menu_gnb_sub[$key] AS $key2=>$value2)-->
|
||||
|
|
|
|||
|
|
@ -1,13 +1,10 @@
|
|||
<div class="lnb">
|
||||
<h2 class="h2">Content</h2>
|
||||
<h2 class="h2">{$lang->menu_gnb[$category]}</h2>
|
||||
<ul>
|
||||
<li class="active"><a href="#">Document</a></li>
|
||||
<li><a href="#">Content</a></li>
|
||||
<li><a href="#">Trackback</a></li>
|
||||
<li><a href="#">File</a></li>
|
||||
<li><a href="#">Poll</a></li>
|
||||
<li><a href="#">Accusation</a></li>
|
||||
<li><a href="#">Trash</a></li>
|
||||
<li><a href="#">Data Migration</a></li>
|
||||
<!--@if(count($gnbSubUrlList[$category]) > 0)-->
|
||||
<!--@foreach($gnbSubUrlList[$category] AS $key=>$value)-->
|
||||
<li><a href="#">{$lang->menu_gnb_sub[$category][$key]}</a></li>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,138 +1,6 @@
|
|||
<!--#include("./_spHeader.html")-->
|
||||
<div class="content" id="content">
|
||||
<form action="" class="form">
|
||||
<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>
|
||||
{$content}
|
||||
</div>
|
||||
<!--#include("./_spLnb.content.html")-->
|
||||
<!--#include("./_spFooter.html")-->
|
||||
|
|
|
|||
|
|
@ -1,102 +1,136 @@
|
|||
<!--%import("filter/delete_checked.xml")-->
|
||||
<!--%import("filter/manage_checked_document.xml")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
|
||||
<!-- 검색 -->
|
||||
<div class="fl">
|
||||
<form action="./" method="get" class="adminSearch">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||
|
||||
<fieldset>
|
||||
<select name="search_target">
|
||||
<option value="">{$lang->search_target}</option>
|
||||
<!--@foreach($lang->search_target_list as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
|
||||
<span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
|
||||
<a href="{getUrl('','module',$module,'act',$act)}" class="button black"><span>{$lang->cmd_cancel}</span></a>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
|
||||
<form id="fo_list" action="./" method="get">
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
|
||||
<!-- 모듈 선택 -->
|
||||
<div class="fr">
|
||||
<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>
|
||||
<a href="{getUrl('','module','document','act','dispDocumentManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button blue"><span>{$lang->cmd_manage_document}</span></a>
|
||||
</div>
|
||||
|
||||
<!-- 목록 -->
|
||||
<table cellspacing="0" class="rowTable clear">
|
||||
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
|
||||
<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>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><div>{$lang->no}</div></th>
|
||||
<th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" /></div></th>
|
||||
<th scope="col" class="wide"><div>{$lang->document}</div></th>
|
||||
<th scope="col"><div>{$lang->status}</div></th>
|
||||
<th scope="col"><div>{$lang->nick_name}</div></th>
|
||||
<th scope="col"><div>{$lang->readed_count}</div></th>
|
||||
<th scope="col"><div>{$lang->voted_count}</div></th>
|
||||
<th scope="col"><div>{$lang->date}</div></th>
|
||||
<th scope="col"><div>{$lang->ipaddress}</div></th>
|
||||
<th scope="col"><div>{$lang->alias}</div></th>
|
||||
<th scope="col" class="title">{$lang->title}</th>
|
||||
<th scope="col">{$lang->author}</th>
|
||||
<th scope="col">{$lang->readed_count}</th>
|
||||
<th scope="col">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col">{$lang->date}</th>
|
||||
<th scope="col">{$lang->ipaddress}</th>
|
||||
<th scope="col">{$lang->status}</th>
|
||||
<th scope="col"><input type="checkbox" title="Check All" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!--@foreach($document_list as $no => $oDocument)-->
|
||||
<tr>
|
||||
<td class="number center">{$no}</td>
|
||||
<td class="center"><input type="checkbox" name="cart" value="{$oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($oDocument->isCarted())-->checked="checked"<!--@end-->/></td>
|
||||
<td class="left subject">
|
||||
<!--@if($oDocument->get('module_srl') != 0)-->
|
||||
<!--@if($oDocument->get('module_srl')==$oDocument->get('member_srl'))-->
|
||||
{$lang->cmd_save}
|
||||
<!--@else-->
|
||||
<a href="{getUrl('','document_srl',$oDocument->document_srl)}" onclick="window.open(this.href);return false">{$oDocument->getTitle()}</a>
|
||||
<!--@end-->
|
||||
<!--@else-->
|
||||
[{$lang->in_trash}] {$oDocument->getTitle()}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
[{$oDocument->getCommentCount()}]
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($oDocument->getTrackbackCount())-->
|
||||
[{$oDocument->getTrackbackCount()}]
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td class="nowrap">{$status_name_list[$oDocument->get('status')]}</td>
|
||||
<td class="nowrap"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></td>
|
||||
<td class="number center">{$oDocument->get('readed_count')}</td>
|
||||
<td class="number center">{$oDocument->get('voted_count')} / {$oDocument->get('blamed_count')}</td>
|
||||
<td class="date center nowrap">{$oDocument->getRegdate("Y-m-d H:i:s")}</td>
|
||||
<td class="number center nowrap"><a href="{getUrl('search_target','ipaddress','search_keyword',$oDocument->get('ipaddress'))}">{$oDocument->get('ipaddress')}</a></td>
|
||||
<td class="center"><a href="{getUrl('act','dispDocumentAdminAlias','document_srl',$oDocument->document_srl)}">{$lang->alias}</a>
|
||||
<td class="title"><a href="{getUrl('','document_srl',$oDocument->document_srl)}" target="_blank">{$oDocument->getTitle()}</a></td>
|
||||
<td><a href="#popup_menu_area"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></a></td>
|
||||
<td>{$oDocument->get('readed_count')}</td>
|
||||
<td>{$oDocument->get('voted_count')}/{$oDocument->get('blamed_count')}</td>
|
||||
<td>{$oDocument->getRegdate("Y-m-d H:i")}</td>
|
||||
<td><a href="{getUrl('search_target','ipaddress','search_keyword',$oDocument->get('ipaddress'))}">{$oDocument->get('ipaddress')}</a></td>
|
||||
<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>
|
||||
<!--@end-->
|
||||
<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>
|
||||
|
||||
</form>
|
||||
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pagination a1">
|
||||
<a href="{getUrl('page','','module_srl',$module_srl)}" class="prevEnd">{$lang->first_page}</a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<!--@if($page == $page_no)-->
|
||||
<strong>{$page_no}</strong>
|
||||
<!--@else-->
|
||||
<a href="{getUrl('page',$page_no,'module_srl',$module_srl)}">{$page_no}</a>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'module_srl',$module_srl)}" class="nextEnd">{$lang->last_page}</a>
|
||||
</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>
|
||||
|
|
|
|||
|
|
@ -695,5 +695,22 @@
|
|||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
* 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