mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@38 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7d75638cfe
commit
fedaeabed9
10 changed files with 6 additions and 6 deletions
22
modules/admin/tpl/css/admin.css
Normal file
22
modules/admin/tpl/css/admin.css
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#admin_title {
|
||||
font-weight:bold;
|
||||
float:left;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
#admin_info {
|
||||
float:right;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
#admin_module_list {
|
||||
clear:both;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#admin_module_content {
|
||||
position:relative;
|
||||
margin-left:150px;
|
||||
left:0px;
|
||||
top:30px;
|
||||
}
|
||||
1
modules/admin/tpl/error.html
Normal file
1
modules/admin/tpl/error.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{$error_msg}
|
||||
10
modules/admin/tpl/filter/filter.login.xml
Normal file
10
modules/admin/tpl/filter/filter.login.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<filter id="login">
|
||||
<field>
|
||||
<item target="user_id" required="true" filter="user_id"/>
|
||||
<item target="password" required="true" />
|
||||
</field>
|
||||
<response>
|
||||
<item name="error" />
|
||||
<item name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
12
modules/admin/tpl/filter/filter.logout.xml
Normal file
12
modules/admin/tpl/filter/filter.logout.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<filter id="logout">
|
||||
<field>
|
||||
<item target="act" required="true" />
|
||||
</field>
|
||||
<parameter>
|
||||
<item param="act" target="act" />
|
||||
</parameter>
|
||||
<response>
|
||||
<item name="error" />
|
||||
<item name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
1
modules/admin/tpl/index.html
Normal file
1
modules/admin/tpl/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
haha
|
||||
27
modules/admin/tpl/js/admin.js
Normal file
27
modules/admin/tpl/js/admin.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* @file : modules/admin/js/admin.js
|
||||
* @author : zero <zero@nzeo.com>
|
||||
* @desc : admin 모듈의 javascript
|
||||
**/
|
||||
|
||||
// 현재 페이지 reload
|
||||
function procReload(ret_obj, response_tags) {
|
||||
var error = ret_obj['error'];
|
||||
var message = ret_obj['message'];
|
||||
|
||||
location.href = location.href;
|
||||
}
|
||||
|
||||
// 로그아웃
|
||||
function procLogout(ret_obj, response_tags) {
|
||||
var error = ret_obj['error'];
|
||||
var message = ret_obj['message'];
|
||||
|
||||
location.href = "./admin.php";
|
||||
}
|
||||
|
||||
// 로그인폼에서 아이디 포커스
|
||||
function procAdminLoginFocus() {
|
||||
var fo = xGetElementById('user_id');
|
||||
if(fo) fo.focus();
|
||||
}
|
||||
21
modules/admin/tpl/layout.html
Normal file
21
modules/admin/tpl/layout.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!--%import("css/admin.css")-->
|
||||
<!--%import("js/admin.js")-->
|
||||
|
||||
<!--#include("./common/tpl/common_header.html")-->
|
||||
|
||||
<div id="admin_title"><a href="./admin.php">zeroboard5</a></div>
|
||||
<div id="admin_info">
|
||||
<a href="{getUrl('act','dispLogout')}">{$lang->cmd_logout}</a>
|
||||
</div>
|
||||
<div id="admin_module_list">
|
||||
<!--@foreach($module_list as $module_name => $module_title)-->
|
||||
<div <!--@if($module_name==$sid)-->style="font-weight:bold;"<!--@end-->>
|
||||
<a href="{getUrl('sid',$module_name,'act','','module_srl','','page','')}">{$module_title}</a>
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<div id="admin_module_content">
|
||||
{$content}
|
||||
</div>
|
||||
|
||||
<!--#include("./common/tpl/common_footer.html")-->
|
||||
30
modules/admin/tpl/login_form.html
Normal file
30
modules/admin/tpl/login_form.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<!--%import("filter/filter.login.xml")-->
|
||||
<!--%import("js/admin.js")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFormFilter(this, login, procReload)">
|
||||
<input type="hidden" name="sid" value="{$sid}" />
|
||||
<input type="hidden" name="act" value="procLogin" />
|
||||
<table>
|
||||
<col width="120" />
|
||||
<col width="*" />
|
||||
<tr>
|
||||
<th>{$lang->user_id}</th>
|
||||
<td><input type="text" name="user_id" id="user_id" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->password}</th>
|
||||
<td><input type="password" name="password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{@getUrl('act','')}'" />
|
||||
<input type="submit" value="{$lang->cmd_login}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
xAddEventListener(window, 'load', procAdminLoginFocus);
|
||||
</script>
|
||||
21
modules/admin/tpl/logout.html
Normal file
21
modules/admin/tpl/logout.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!--%import("filter/filter.logout.xml")-->
|
||||
<!--%import("js/admin.js")-->
|
||||
|
||||
<form action="./admin.php" method="get" onsubmit="return procFormFilter(this, logout, procLogout)">
|
||||
<input type="hidden" name="act" value="procLogout" />
|
||||
<table>
|
||||
<tr>
|
||||
<th>{$lang->cmd_logout}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->confirm_logout}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{@getUrl('act','')}'" />
|
||||
<input type="submit" value="{$lang->cmd_logout}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue