mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 70 rss module admin UI/UX developement, yet not completed
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8819 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2d6da41a4e
commit
eee0e538c3
8 changed files with 217 additions and 94 deletions
|
|
@ -276,7 +276,7 @@
|
|||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->is_admin=='Y'){
|
||||
$oAdminView = &getView('admin');
|
||||
$oAdminView = &getAdminView('admin');
|
||||
$oAdminView->makeGnbUrl($forward->module);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("layout.html");
|
||||
|
|
|
|||
|
|
@ -404,4 +404,32 @@
|
|||
$returnObject->add('list', $list);
|
||||
return $returnObject;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return site list
|
||||
**/
|
||||
function getSiteAllList()
|
||||
{
|
||||
if(Context::get('domain')) $args->domain = Context::get('domain');
|
||||
$columnList = array('domain', 'site_srl');
|
||||
|
||||
$siteList = array();
|
||||
$output = executeQueryArray('admin.getSiteAllList', $args, $columnList);
|
||||
if($output->toBool()) $siteList = $output->data;
|
||||
|
||||
$this->add('site_list', $siteList);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return site count
|
||||
**/
|
||||
function getSiteCountByDate($date = '')
|
||||
{
|
||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||
|
||||
$output = executeQuery('admin.getSiteCountByDate', $args);
|
||||
if(!$output->toBool()) return 0;
|
||||
|
||||
return $output->data->count;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,9 +171,9 @@
|
|||
$today = date("Ymd");
|
||||
|
||||
// Site Status
|
||||
$oSiteModel = &getModel('site');
|
||||
$status->site->todayCount = $oSiteModel->getSiteCountByDate($today);
|
||||
$status->site->totalCount = $oSiteModel->getSiteCountByDate();
|
||||
$oAdminAdminModel = &getAdminModel('admin');
|
||||
$status->site->todayCount = $oAdminAdminModel->getSiteCountByDate($today);
|
||||
$status->site->totalCount = $oAdminAdminModel->getSiteCountByDate();
|
||||
|
||||
// Member Status
|
||||
$oMemberAdminModel = &getAdminModel('member');
|
||||
|
|
|
|||
|
|
@ -141,46 +141,50 @@
|
|||
'subMenu'=>array('poll'),
|
||||
),
|
||||
8=>array(
|
||||
'module'=>'rss',
|
||||
'subMenu'=>array('rss'),
|
||||
),
|
||||
9=>array(
|
||||
'module'=>'importer',
|
||||
'subMenu'=>array('importer'),
|
||||
),
|
||||
9=>array(
|
||||
10=>array(
|
||||
'module'=>'admin',
|
||||
'subMenu'=>array('theme'),
|
||||
),
|
||||
10=>array(
|
||||
11=>array(
|
||||
'module'=>'autoinstall',
|
||||
'subMenu'=>array('easyInstall'),
|
||||
),
|
||||
11=>array(
|
||||
12=>array(
|
||||
'module'=>'layout',
|
||||
'subMenu'=>array('installedLayout'),
|
||||
),
|
||||
12=>array(
|
||||
13=>array(
|
||||
'module'=>'module',
|
||||
'subMenu'=>array('installedModule'),
|
||||
),
|
||||
13=>array(
|
||||
14=>array(
|
||||
'module'=>'widget',
|
||||
'subMenu'=>array('installedWidget'),
|
||||
),
|
||||
14=>array(
|
||||
15=>array(
|
||||
'module'=>'addon',
|
||||
'subMenu'=>array('installedAddon'),
|
||||
),
|
||||
15=>array(
|
||||
16=>array(
|
||||
'module'=>'editor',
|
||||
'subMenu'=>array('editor'),
|
||||
),
|
||||
16=>array(
|
||||
17=>array(
|
||||
'module'=>'spamfilter',
|
||||
'subMenu'=>array('spamFilter'),
|
||||
),
|
||||
17=>array(
|
||||
18=>array(
|
||||
'module'=>'admin',
|
||||
'subMenu'=>array('adminConfiguration', 'adminMenuSetup'),
|
||||
),
|
||||
18=>array(
|
||||
19=>array(
|
||||
'module'=>'file',
|
||||
'subMenu'=>array('fileUpload'),
|
||||
),
|
||||
|
|
@ -241,6 +245,7 @@
|
|||
case 'trackback':
|
||||
case 'file':
|
||||
case 'poll':
|
||||
case 'rss':
|
||||
case 'importer':
|
||||
return 'content';
|
||||
break;
|
||||
|
|
|
|||
12
modules/admin/queries/getSiteAllList.xml
Normal file
12
modules/admin/queries/getSiteAllList.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="getSiteAllList" action="select">
|
||||
<tables>
|
||||
<table name="sites" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="site_srl" var="siteSrls" />
|
||||
<condition operation="like" column="domain" var="domain" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
11
modules/admin/queries/getSiteCountByDate.xml
Normal file
11
modules/admin/queries/getSiteCountByDate.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getSiteCountByDate" action="select">
|
||||
<tables>
|
||||
<table name="sites" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="like_prefix" column="regdate" var="regDate" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -3,11 +3,26 @@
|
|||
<grants />
|
||||
<permissions />
|
||||
<actions>
|
||||
<action name="dispRssAdminIndex" type="view" index="true" standalone="true" admin_index="true" />
|
||||
<action name="dispRssAdminIndex" type="view" index="true" standalone="true" admin_index="true" menu_name="rss" menu_index="true" />
|
||||
<action name="rss" type="view" standalone="true" />
|
||||
<action name="atom" type="view" standalone="true" />
|
||||
<action name="procRssAdminToggleActivate" type="controller" standalone="true" />
|
||||
<action name="procRssAdminInsertConfig" type="controller" standalone="true" ruleset="insertRssConfig" />
|
||||
<action name="procRssAdminInsertModuleConfig" type="controller" standalone="true" ruleset="insertRssModuleConfig" />
|
||||
</actions>
|
||||
<menus>
|
||||
<menu name="rss">
|
||||
<title xml:lang="en">RSS</title>
|
||||
<title xml:lang="ko">RSS</title>
|
||||
<title xml:lang="zh-CN">RSS</title>
|
||||
<title xml:lang="jp">RSS</title>
|
||||
<title xml:lang="es">RSS</title>
|
||||
<title xml:lang="ru">RSS</title>
|
||||
<title xml:lang="fr">RSS</title>
|
||||
<title xml:lang="zh-TW">RSS</title>
|
||||
<title xml:lang="vi">RSS</title>
|
||||
<title xml:lang="mn">RSS</title>
|
||||
<title xml:lang="tr">RSS</title>
|
||||
</menu>
|
||||
</menus>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -1,83 +1,135 @@
|
|||
<!--%import("js/rss.js")-->
|
||||
<h3 class="xeAdmin">{$lang->total_feed} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
|
||||
<div class="content" id="content">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form ruleset="insertRssConfig" id="fo_layout" action="./" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="module" value="rss" />
|
||||
<input type="hidden" name="act" value="procRssAdminInsertConfig" />
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->total_feed}</div></th>
|
||||
<td class="wide">
|
||||
<select name="use_total_feed" class="w200">
|
||||
<option value="Y" <!--@if(!$total_config->use_total_feed || $total_config->use_total_feed == 'Y')-->selected="selected"<!--@end-->>{$lang->use}</option>
|
||||
<option value="N" <!--@if($total_config->use_total_feed == 'N')-->selected="selected"<!--@end-->>{$lang->notuse}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->title}</div></th>
|
||||
<td class="wide">
|
||||
<input type="text" class="inputTypeText" name="feed_title" value="{htmlspecialchars($total_config->feed_title)}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->description}</div></th>
|
||||
<td class="wide">
|
||||
<textarea name="feed_description" class="inputTypeTextArea">{$total_config->feed_description}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->feed_image}</div></th>
|
||||
<td class="wide">
|
||||
<!--@if($total_config->image)-->
|
||||
<div>
|
||||
<img src="../../../{$total_config->image}" alt="image" /><br />
|
||||
<input type="checkbox" name="del_image" value="Y" id="del_image" class="checkbox" />
|
||||
<label for="del_image">{$lang->cmd_delete}</label>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<input type="file" name="image" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->feed_copyright}</div></th>
|
||||
<td class="wide">
|
||||
<input type="text" class="inputTypeText" name="feed_copyright" value="{htmlspecialchars($total_config->feed_copyright)}" />
|
||||
<p>{$lang->about_feed_copyright}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->feed_document_count}</div></th>
|
||||
<td class="wide">
|
||||
<input type="text" class="inputTypeText" name="feed_document_count" value="{$total_config->feed_document_count}" />
|
||||
<p>{$lang->about_feed_document_count}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th class="button" colspan="2"><span class="button strong black"><input type="submit" value="{$lang->cmd_save}"/></span></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<h3 class="xeAdmin">{$lang->feed} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
<table cellspacing="0" class="crossTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{$lang->mid}</td>
|
||||
<th scope="col">{$lang->open_rss}</td>
|
||||
<th scope="col">{$lang->open_feed_to_total}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!--@foreach($feed_config as $module_srl => $config)-->
|
||||
<tr>
|
||||
<th><!--@if($config['url'])--><a href="{$config['url']}"><!--@endif-->{$config['mid']}<!--@if($config['url'])--></a><!--@endif--></th>
|
||||
<td>{$lang->open_rss_types[$config['open_feed']]}</td>
|
||||
<td><a id="dotogglerss_{$module_srl}" onclick="doToggleRss('{$module_srl}')" <!--@if($config['open_total_feed'] == 'T_N')-->class="buttonSet buttonDisable"><span>{$lang->notuse}<!--@else-->class="buttonSet buttonActive"><span>{$lang->use}<!--@end--></span></a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
<h1 class="h1">RSS</h1>
|
||||
<form ruleset="insertRssConfig" id="fo_layout" action="./" method="post" enctype="multipart/form-data" class="form">
|
||||
<input type="hidden" name="module" value="rss" />
|
||||
<input type="hidden" name="act" value="procRssAdminInsertConfig" />
|
||||
<h2 class="h2">{$lang->total_feed} {$lang->cmd_management}</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<p class="q">{$lang->total_feed}</p>
|
||||
<p class="a">
|
||||
<input type="radio" name="use_total_feed" value="Y" id="use_total_feed_yes" <!--@if(!$total_config->use_total_feed || $total_config->use_total_feed == 'Y')-->checked="checked"<!--@end--> /> <label for="use_total_feed_yes">{$lang->use}</label>
|
||||
<input type="radio" name="use_total_feed" value="N" id="use_total_feed_no" <!--@if($total_config->use_total_feed == 'N')-->checked="checked"<!--@end--> /> <label for="use_total_feed_no">{$lang->notuse}</label>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q"><label for="feed_title">{$lang->title}</label></p>
|
||||
<p class="a"><input type="text" name="feed_title" value="{htmlspecialchars($total_config->feed_title)}" id="feed_title" /></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q"><label for="feed_description">{$lang->description}</label></p>
|
||||
<p class="a"><textarea name="feed_description" id="feed_description" cols="42" rows="5">{$total_config->feed_description}</textarea></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q"><label for="image">{$lang->feed_image}</label></p>
|
||||
<!--@if($total_config->image)-->
|
||||
<p class="a">
|
||||
<img src="../../../{$total_config->image}" alt="image" />
|
||||
<input type="checkbox" name="del_image" value="Y" id="del_image" class="checkbox" />
|
||||
<label for="del_image">{$lang->cmd_delete}</label>
|
||||
</p>
|
||||
<!--@end-->
|
||||
<p class="a"><input type="file" name="image" value="" id="image" /></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q"><label for="feed_copyright">{$lang->feed_copyright}</label></p>
|
||||
<p class="a"><input type="text" name="feed_copyright" value="{htmlspecialchars($total_config->feed_copyright)}" id="feed_copyright" /></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q"><label for="feed_document_count">{$lang->feed_document_count}</label></p>
|
||||
<p class="a"><input type="text" name="feed_document_count" value="{$total_config->feed_document_count}" id="feed_document_count" /></p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btnArea">
|
||||
<span class="btn small"><input type="submit" value="{$lang->cmd_save}" /></span>
|
||||
</div>
|
||||
</form>
|
||||
<form action="" class="form">
|
||||
<h2 class="h2">Each Feed</h2>
|
||||
<div class="table">
|
||||
<table width="100%" border="1" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Module ID</th>
|
||||
<th scope="col" class="title">Title/Description</th>
|
||||
<th scope="col">
|
||||
<input type="radio" name="feed_open" id="feed_open_all" /> <label for="feed_open_all">전문</label>
|
||||
<input type="radio" name="feed_open" id="feed_open_summary" /> <label for="feed_open_summary">요약</label>
|
||||
<input type="radio" name="feed_open" id="feed_open_not" /> <label for="feed_open_not">공개 안함</label>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<input type="checkbox" name="feed_integration" id="feed_integration" checked="checked" />
|
||||
<label for="feed_integration">통합 피드에 포함</label>
|
||||
</th>
|
||||
<th scope="col">저장</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><a href="#" target="_blank">freeBoard</a></th>
|
||||
<td class="title"> </td>
|
||||
<td>
|
||||
<input type="radio" name="feed_open_freeBoard" id="feed_open_freeBoard_all" checked="checked" /> <label for="feed_open_freeBoard_all">전문</label>
|
||||
<input type="radio" name="feed_open_freeBoard" id="feed_open_freeBoard_summary" /> <label for="feed_open_freeBoard_summary">요약</label>
|
||||
<input type="radio" name="feed_open_freeBoard" id="feed_open_freeBoard_not" /> <label for="feed_open_freeBoard_not">공개 안함</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="feed_integration" id="feed_integration_freeBoard" checked="checked" />
|
||||
<label for="feed_integration_freeBoard">통합 피드에 포함</label>
|
||||
</td>
|
||||
<td><input type="submit" value="Save" class="text" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><a href="#" target="_blank">userForum</a></th>
|
||||
<td class="title"> </td>
|
||||
<td>
|
||||
<input type="radio" name="feed_open_userForum" id="feed_open_userForum_all" checked="checked" /> <label for="feed_open_userForum_all">전문</label>
|
||||
<input type="radio" name="feed_open_userForum" id="feed_open_userForum_summary" /> <label for="feed_open_userForum_summary">요약</label>
|
||||
<input type="radio" name="feed_open_userForum" id="feed_open_userForum_not" /> <label for="feed_open_userForum_not">공개 안함</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="feed_integration" id="feed_integration_userForum" checked="checked" />
|
||||
<label for="feed_integration_userForum">통합 피드에 포함</label>
|
||||
</td>
|
||||
<td><input type="submit" value="Save" class="text" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<div class="search">
|
||||
<form action="" class="pagination">
|
||||
<a href="#" class="direction">« FIRST</a>
|
||||
<a href="#">9</a>
|
||||
<a href="#">10</a>
|
||||
<strong>11</strong>
|
||||
<a href="#">12</a>
|
||||
<a href="#goTo" class="tgAnchor">...</a>
|
||||
<span id="goTo" class="tgContent" style="display: none; "><button type="button" class="tgBlur"></button>
|
||||
<input title="Go to Page">
|
||||
<button type="submit">GO</button>
|
||||
<button type="button" class="tgBlur"></button></span>
|
||||
<a href="#">99</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue