mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
#18947823 : add an option to use mobile view
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7515 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6cfb2be953
commit
eb7322c4fa
11 changed files with 62 additions and 29 deletions
|
|
@ -7,23 +7,8 @@
|
||||||
|
|
||||||
class adminAdminView extends admin {
|
class adminAdminView extends admin {
|
||||||
|
|
||||||
/**
|
function loadSideBar()
|
||||||
* @brief Initilization
|
{
|
||||||
* @return none
|
|
||||||
**/
|
|
||||||
function init() {
|
|
||||||
$this->setTemplatePath($this->module_path.'tpl');
|
|
||||||
|
|
||||||
// forbit access if the user is not an administrator
|
|
||||||
$oMemberModel = &getModel('member');
|
|
||||||
$logged_info = $oMemberModel->getLoggedInfo();
|
|
||||||
if($logged_info->is_admin!='Y') return $this->stop("msg_is_not_administrator");
|
|
||||||
|
|
||||||
// change into administration layout
|
|
||||||
$this->setLayoutPath($this->getTemplatePath());
|
|
||||||
$this->setLayoutFile('layout.html');
|
|
||||||
|
|
||||||
// Retrieve the list of installed modules
|
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$installed_module_list = $oModuleModel->getModulesXmlInfo();
|
$installed_module_list = $oModuleModel->getModulesXmlInfo();
|
||||||
|
|
||||||
|
|
@ -64,6 +49,32 @@
|
||||||
if(count($package_modules)) $package_modules[count($package_modules)-1]->position = 'end';
|
if(count($package_modules)) $package_modules[count($package_modules)-1]->position = 'end';
|
||||||
Context::set('package_modules', $package_modules);
|
Context::set('package_modules', $package_modules);
|
||||||
Context::set('installed_modules', $installed_modules);
|
Context::set('installed_modules', $installed_modules);
|
||||||
|
Context::setBrowserTitle("XE Admin Page");
|
||||||
|
|
||||||
|
// add javascript tooltip plugin - gony
|
||||||
|
Context::loadJavascriptPlugin('qtip');
|
||||||
|
Context::loadJavascriptPlugin('watchinput');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Initilization
|
||||||
|
* @return none
|
||||||
|
**/
|
||||||
|
function init() {
|
||||||
|
|
||||||
|
// forbit access if the user is not an administrator
|
||||||
|
$oMemberModel = &getModel('member');
|
||||||
|
$logged_info = $oMemberModel->getLoggedInfo();
|
||||||
|
if($logged_info->is_admin!='Y') return $this->stop("msg_is_not_administrator");
|
||||||
|
|
||||||
|
// change into administration layout
|
||||||
|
$this->setTemplatePath($this->module_path.'tpl');
|
||||||
|
$this->setLayoutPath($this->getTemplatePath());
|
||||||
|
$this->setLayoutFile('layout.html');
|
||||||
|
|
||||||
|
$this->loadSideBar();
|
||||||
|
|
||||||
|
// Retrieve the list of installed modules
|
||||||
|
|
||||||
$db_info = Context::getDBInfo();
|
$db_info = Context::getDBInfo();
|
||||||
|
|
||||||
|
|
@ -78,11 +89,6 @@
|
||||||
if($db_info->http_port) Context::set('http_port', $db_info->http_port);
|
if($db_info->http_port) Context::set('http_port', $db_info->http_port);
|
||||||
if($db_info->https_port) Context::set('https_port', $db_info->https_port);
|
if($db_info->https_port) Context::set('https_port', $db_info->https_port);
|
||||||
|
|
||||||
Context::setBrowserTitle("XE Admin Page");
|
|
||||||
|
|
||||||
// add javascript tooltip plugin - gony
|
|
||||||
Context::loadJavascriptPlugin('qtip');
|
|
||||||
Context::loadJavascriptPlugin('watchinput');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -268,6 +274,8 @@
|
||||||
Context::set('langs', Context::loadLangSupported());
|
Context::set('langs', Context::loadLangSupported());
|
||||||
|
|
||||||
Context::set('lang_selected', Context::loadLangSelected());
|
Context::set('lang_selected', Context::loadLangSelected());
|
||||||
|
|
||||||
|
Context::set('use_mobile_view', $db_info->use_mobile_view=="Y"?'Y':'N');
|
||||||
|
|
||||||
$ftp_info = Context::getFTPInfo();
|
$ftp_info = Context::getFTPInfo();
|
||||||
Context::set('ftp_info', $ftp_info);
|
Context::set('ftp_info', $ftp_info);
|
||||||
|
|
|
||||||
|
|
@ -82,5 +82,7 @@
|
||||||
$lang->ftp_get_list = "Get List";
|
$lang->ftp_get_list = "Get List";
|
||||||
$lang->ftp_remove_info = 'Remove FTP Info.';
|
$lang->ftp_remove_info = 'Remove FTP Info.';
|
||||||
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Please restart Memcached or cache daemon.';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -84,5 +84,7 @@
|
||||||
$lang->ftp_get_list = "Get List";
|
$lang->ftp_get_list = "Get List";
|
||||||
$lang->ftp_remove_info = 'Remove FTP Info.';
|
$lang->ftp_remove_info = 'Remove FTP Info.';
|
||||||
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Please restart Memcached or cache daemon.';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -83,5 +83,7 @@
|
||||||
$lang->ftp_get_list = "Get List";
|
$lang->ftp_get_list = "Get List";
|
||||||
$lang->ftp_remove_info = 'Remove FTP Info.';
|
$lang->ftp_remove_info = 'Remove FTP Info.';
|
||||||
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Please restart Memcached or cache daemon.';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -82,5 +82,7 @@
|
||||||
$lang->ftp_get_list = "Get List";
|
$lang->ftp_get_list = "Get List";
|
||||||
$lang->ftp_remove_info = 'Remove FTP Info.';
|
$lang->ftp_remove_info = 'Remove FTP Info.';
|
||||||
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Please restart Memcached or cache daemon.';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -83,4 +83,6 @@
|
||||||
$lang->ftp_remove_info = 'FTP 정보 삭제';
|
$lang->ftp_remove_info = 'FTP 정보 삭제';
|
||||||
$lang->msg_ftp_invalid_path = 'FTP Path를 읽을 수 없습니다.';
|
$lang->msg_ftp_invalid_path = 'FTP Path를 읽을 수 없습니다.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
||||||
|
$lang->mobile_view = '모바일 뷰 사용';
|
||||||
|
$lang->about_mobile_view = '스마트폰 등을 이용하여 접속할 때 모바일 화면에 최적화된 레이아웃을 이용하도록 합니다.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -81,5 +81,7 @@
|
||||||
$lang->ftp_get_list = 'Get List';
|
$lang->ftp_get_list = 'Get List';
|
||||||
$lang->ftp_remove_info = 'Remove FTP Info';
|
$lang->ftp_remove_info = 'Remove FTP Info';
|
||||||
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Please restart Memcached or cache daemon.';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -84,5 +84,7 @@
|
||||||
$lang->ftp_get_list = "Get List";
|
$lang->ftp_get_list = "Get List";
|
||||||
$lang->ftp_remove_info = 'Remove FTP Info.';
|
$lang->ftp_remove_info = 'Remove FTP Info.';
|
||||||
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Please restart Memcached or cache daemon.';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -82,5 +82,7 @@
|
||||||
$lang->ftp_get_list = "Get List";
|
$lang->ftp_get_list = "Get List";
|
||||||
$lang->ftp_remove_info = 'Remove FTP Info.';
|
$lang->ftp_remove_info = 'Remove FTP Info.';
|
||||||
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
$lang->msg_ftp_invalid_path = 'Failed to read the specified FTP Path.';
|
||||||
$lang->msg_self_restart_cache_engine = 'Memcached 또는 캐쉬데몬을 재시작 해주세요.';
|
$lang->msg_self_restart_cache_engine = 'Please restart Memcached or cache daemon.';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -83,4 +83,6 @@
|
||||||
$lang->ftp_remove_info = '移除 FTP 資料';
|
$lang->ftp_remove_info = '移除 FTP 資料';
|
||||||
$lang->msg_ftp_invalid_path = '指定的 FTP 路徑讀取失敗。';
|
$lang->msg_ftp_invalid_path = '指定的 FTP 路徑讀取失敗。';
|
||||||
$lang->msg_self_restart_cache_engine = '請重新啟動 Memcached 快取程式。';
|
$lang->msg_self_restart_cache_engine = '請重新啟動 Memcached 快取程式。';
|
||||||
|
$lang->mobile_view = 'Use Mobile View';
|
||||||
|
$lang->about_mobile_view = 'If accessing with a smartphone, display content with mobile layout.';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,13 @@
|
||||||
<p>{$lang->about_server_ports}</p>
|
<p>{$lang->about_server_ports}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><div>{$lang->mobile_view}</div></th>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" name="use_mobile_view" value="Y" <!--@if($use_mobile_view=='Y')-->checked="checked"<!--@end--> />
|
||||||
|
<p>{$lang->about_mobile_view}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2" class="button">
|
<th colspan="2" class="button">
|
||||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" /></span>
|
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" /></span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue