Issue 2383:Admin UI Refactoring - Advanced - Modules

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11616 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-10-08 07:04:59 +00:00
parent c67e8ffa36
commit e8dc9e135f
6 changed files with 125 additions and 113 deletions

View file

@ -332,6 +332,10 @@ html[lang="mn"] .x .g11n.active>[disabled],
/* ---------- Deprecated UI supports - Please do not use this CSS styles below. It will be removed as soon as possible. ---------- */ /* ---------- Deprecated UI supports - Please do not use this CSS styles below. It will be removed as soon as possible. ---------- */
/* ---------- Deprecated UI supports - Please do not use this CSS styles below. It will be removed as soon as possible. ---------- */ /* ---------- Deprecated UI supports - Please do not use this CSS styles below. It will be removed as soon as possible. ---------- */
/* Favorite On | Off */
.x .fvOff,
.x .fvOn{display:inline-block;width:16px;height:16px;overflow:hidden;text-indent:16px;background:transparent url(../img/iconFavorite.gif) no-repeat;border:0}
.x .fvOn{background-position:0 -16px}
/* Up-Down Dragable */ /* Up-Down Dragable */
.x .uDrag .wrap{position:relative;padding-left:20px} .x .uDrag .wrap{position:relative;padding-left:20px}
.x .uDrag li>.wrap{margin:0 0 0 8px} .x .uDrag li>.wrap{margin:0 0 0 8px}

View file

@ -112,13 +112,13 @@
<caption><strong>{$lang->total_count}({$component_count})</strong></caption> <caption><strong>{$lang->total_count}({$component_count})</strong></caption>
<thead> <thead>
<tr> <tr>
<th style="width:30px">{$lang->cmd_move}</th> <th class="nowr">{$lang->cmd_move}</th>
<th>{$lang->component_name}</th> <th>{$lang->component_name}</th>
<th style="width:30px">{$lang->version}</th> <th class="nowr">{$lang->version}</th>
<th>{$lang->author}</th> <th class="nowr">{$lang->author}</th>
<th>{$lang->path}</th> <th class="nowr">{$lang->path}</th>
<th style="width:30px">{$lang->use}</th> <th class="nowr">{$lang->use}</th>
<th style="width:30px">{$lang->cmd_delete}</th> <th class="nowr">{$lang->cmd_delete}</th>
</tr> </tr>
</thead> </thead>
<tbody class="uDrag"> <tbody class="uDrag">

View file

@ -11,35 +11,32 @@
<input type="hidden" name="act" value="procModuleAdminDeleteCategory" /> <input type="hidden" name="act" value="procModuleAdminDeleteCategory" />
<input type="hidden" name="module_category_srl" value="" /> <input type="hidden" name="module_category_srl" value="" />
</form> </form>
<div class="table"> <table class="x_table x_table-striped x_table-hover">
<table width="100%" border="1" cellspacing="0"> <thead>
<thead> <tr>
<tr> <th class="title">{$lang->category_title}</th>
<th scope="col" class="title">{$lang->category_title}</th> <th class="nowr">{$lang->regdate}</th>
<th scope="col" class="nowr">{$lang->regdate}</th> <th class="nowr">&nbsp;</th>
<th scope="col" class="nowr">&nbsp;</th> </tr>
</tr> </thead>
</thead> <tbody>
<tbody> <!--@if(!count($category_list))-->
<!--@if(!count($category_list))--> <tr>
<tr> <td colspan="3">{$lang->msg_category_is_null}</td>
<td colspan="3">{$lang->msg_category_is_null}</td> </tr>
</tr> <!--@end-->
<!--@end--> <!--@foreach($category_list as $key => $val)-->
<!--@foreach($category_list as $key => $val)--> <tr>
<tr> <td class="title">{$val->title}</td>
<td class="title">{$val->title}</td> <td class="nowr">{zdate($val->regdate,"Y-m-d")}</td>
<td class="nowr">{zdate($val->regdate,"Y-m-d")}</td> <td class="nowr">
<td class="nowr"> <a class="x_btn x_btn-link" href="{getUrl('module_category_srl',$val->module_category_srl)}">{$lang->cmd_modify}</a> |
<a href="{getUrl('module_category_srl',$val->module_category_srl)}">{$lang->cmd_modify}...</a> <button type="button" class="x_btn x_btn-link" onclick="doUpdateCategory('{$val->module_category_srl}','{$lang->confirm_delete}');return false;">{$lang->cmd_delete}</button>
<button type="button" class="text" onclick="doUpdateCategory('{$val->module_category_srl}','{$lang->confirm_delete}');return false;">{$lang->cmd_delete}</button> </td>
</td> </tr>
</tr> <!--@end-->
<!--@end--> </tbody>
</tbody> </table>
</table>
</div>
<!-- 카테고리 추가 --> <!-- 카테고리 추가 -->
<form ruleset="insertCategory" action="./" method="post" class="form"> <form ruleset="insertCategory" action="./" method="post" class="form">
<input type="hidden" name="module" value="module" /> <input type="hidden" name="module" value="module" />
@ -47,9 +44,10 @@
<input type="hidden" name="page" value="{$page}" /> <input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" /> <input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="module_category_srl" value="" /> <input type="hidden" name="module_category_srl" value="" />
<div class="btnArea"> <div class="x_clearfix" style="margin-top:-12px">
<label for="category_title">{$lang->category_title}</label> <div class="x_btn-group x_pull-right">
<input type="text" name="title" id="category_title" /> <label for="category_title" class="x_inline" style="margin-right:5px">{$lang->category_title} : <input type="text" name="title" id="category_title" style="width:200px" /></label>
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span> <label class="x_inline"><button type="submit" class="x_btn x_btn-primary" style="margin-right:5px">{$lang->cmd_registration}</button></label>
</div>
</div> </div>
</form> </form>

View file

@ -4,19 +4,24 @@
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}"> <div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p> <p>{$XE_VALIDATOR_MESSAGE}</p>
</div> </div>
<form ruleset="updateCategory" action="./" method="post" enctype="multipart/form-data" class="form"> <section class="section">
<form ruleset="updateCategory" action="./" method="post" enctype="multipart/form-data" class="x_form-horizontal">
<input type="hidden" name="module" value="module" /> <input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminUpdateCategory" /> <input type="hidden" name="act" value="procModuleAdminUpdateCategory" />
<input type="hidden" name="module_category_srl" value="{$selected_category->module_category_srl}" /> <input type="hidden" name="module_category_srl" value="{$selected_category->module_category_srl}" />
<input type="hidden" name="mode" value="update" /> <input type="hidden" name="mode" value="update" />
<ul> <div class="x_control-group">
<li> <label class="x_control-label" for="category_title">{$lang->category_title}</label>
<p class="q"><label for="category_title">{$lang->category_title}</label></p> <div class="x_controls">
<p class="a"><input type="text" name="title" id="category_title" value="{$selected_category->title}" /></p> <input type="text" name="title" id="category_title" value="{$selected_category->title}" />
</li> </div>
</ul> </div>
<div class="btnArea"> <div class="x_clearfix btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span> <div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_registration}</button>
</div>
</div> </div>
</form> </form>
</section>
<!--@end--> <!--@end-->

View file

@ -5,10 +5,15 @@
xe.lang.favorite_off = '{$lang->favorite}({$lang->off})'; xe.lang.favorite_off = '{$lang->favorite}({$lang->off})';
</script> </script>
<h1 class="h1">{$lang->installed_modules}</h1> <div class="x_page-header">
<h1>{$lang->installed_modules}</h1>
<div class="cnb">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminContent')}" class="active"|cond="$act=='dispModuleAdminContent'">{$lang->installed_modules}</a>
|
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminCategory')}" class="active"|cond="$act=='dispModuleAdminCategory'">{$lang->module_category}</a>
</div> </div>
<ul class="x_nav x_nav-tabs">
<li class="x_active"|cond="$act=='dispModuleAdminContent'">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminContent')}">{$lang->installed_modules}</a>
</li>
<li class="x_active"|cond="$act=='dispModuleAdminCategory'">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminCategory')}">{$lang->module_category}</a>
</li>
</ul>

View file

@ -1,62 +1,62 @@
<include target="header.html" /> <include target="header.html" />
<table class="x_table x_table-striped x_table-hover dsTg">
<div class="table even easyList dsTg"> <caption>
<table width="100%" border="1" cellspacing="0"> <strong>All({count($module_list)})</strong>
<caption> <div class="x_pull-right x_btn-group">
All({count($module_list)}) <button class="x_btn x_btn-mini x_active __simple">{$lang->simple_view}</button>
<span class="side"><button type="button" class="text"><span class="hide">{$lang->simple_view}</span><span class="show">{$lang->detail_view}</span></button></span> <button class="x_btn x_btn-mini __detail">{$lang->detail_view}</button>
</caption> </div>
<thead> </caption>
<tr> <thead>
<th scope="col" class="nowr">{$lang->favorite}</th> <tr>
<th scope="col" class="title">{$lang->module_name}</th> <th class="nowr">{$lang->favorite}</th>
<th scope="col" class="nowr">{$lang->version}</th> <th class="title">{$lang->module_name}</th>
<th scope="col" class="nowr">{$lang->author}</th> <th class="nowr">{$lang->version}</th>
<th scope="col" class="nowr">{$lang->path}</th> <th class="nowr">{$lang->author}</th>
<th scope="col" class="nowr">{$lang->cmd_delete}</th> <th class="nowr">{$lang->path}</th>
</tr> <th class="nowr">{$lang->cmd_delete}</th>
</thead> </tr>
<tbody> </thead>
<!--@foreach($module_list as $key => $val)--> <tbody>
<tr> <!--@foreach($module_list as $key => $val)-->
<td class="nowr"> <tr>
<!--@if(in_array($val->module,$favoriteModuleList))--> <td class="nowr">
<button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->on})</button> <!--@if(in_array($val->module,$favoriteModuleList))-->
<button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->on})</button>
<!--@else-->
<button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->off})</button>
<!--@end-->
</td>
<td class="title">
<p>
<!--@if($val->admin_index_act)-->
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a>
<!--@else--> <!--@else-->
<button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->off})</button> <strong>{$val->title}</strong>
<!--@end--> <!--@end-->
</td> </p>
<td class="title"> <p>{$val->description}</p>
<p> <p cond="$val->need_install" class="update">{$lang->msg_avail_install} <button class="text" type="button" onclick="doInstallModule('{$val->module}')">{$lang->msg_do_you_like_install}</button></p>
<!--@if($val->admin_index_act)--> <p cond="$val->need_update" class="update">{$lang->msg_avail_update} <button class="text" type="button" onclick="doUpdateModule('{$val->module}')">{$lang->msg_do_you_like_update}</button></p>
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a> <p cond="$val->need_autoinstall_update == 'Y'" class="update">{$lang->msg_avail_easy_update}<a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a></p>
<!--@else--> </td>
<strong>{$val->title}</strong> <td class="nowr">{$val->version}</td>
<!--@end--> <td class="nowr">
</p> <!--@foreach($val->author as $author)-->
<p>{$val->description}</p> <!--@if($author->homepage)-->
<p cond="$val->need_install" class="update">{$lang->msg_avail_install} <button class="text" type="button" onclick="doInstallModule('{$val->module}')">{$lang->msg_do_you_like_install}</button></p> <a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">{$author->name}</a>
<p cond="$val->need_update" class="update">{$lang->msg_avail_update} <button class="text" type="button" onclick="doUpdateModule('{$val->module}')">{$lang->msg_do_you_like_update}</button></p> <!--@else-->
<p cond="$val->need_autoinstall_update == 'Y'" class="update">{$lang->msg_avail_easy_update}<a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a></p> {$author->name}
</td> <!--@endif-->
<td class="nowr">{$val->version}</td> <!--@endforeach-->
<td class="nowr"> </td>
<!--@foreach($val->author as $author)--> <td class="nowr">{$val->path}</td>
<!--@if($author->homepage)--> <td class="nowr">
<a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">{$author->name}</a> <!--@if($val->delete_url)-->
<!--@else--> <a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
{$author->name} <!--@end-->
<!--@endif--> </td>
<!--@endforeach--> </tr>
</td> <!--@end-->
<td class="nowr">{$val->path}</td> </tbody>
<td class="nowr"> </table>
<!--@if($val->delete_url)-->
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
<!--@end-->
</td>
</tr>
<!--@end-->
</tbody>
</table>
</div>