mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Rename dispFileAdminConfig to dispFileAdminUploadConfig
This commit is contained in:
parent
d9118289fb
commit
280bdeb470
5 changed files with 11 additions and 11 deletions
|
|
@ -14,12 +14,12 @@
|
|||
<action name="procFileGetList" type="controller" permission="root" />
|
||||
|
||||
<action name="dispFileAdminList" type="view" admin_index="true" menu_name="file" menu_index="true" />
|
||||
<action name="dispFileAdminConfig" type="view" menu_name="file" />
|
||||
<action name="dispFileAdminUploadConfig" type="view" menu_name="file" />
|
||||
<action name="dispFileAdminDownloadConfig" type="view" menu_name="file" />
|
||||
|
||||
<action name="procFileAdminAddCart" type="controller" />
|
||||
<action name="procFileAdminDeleteChecked" type="controller" ruleset="deleteChecked" />
|
||||
<action name="procFileAdminInsertConfig" type="controller" ruleset="insertConfig" />
|
||||
<action name="procFileAdminInsertUploadConfig" type="controller" ruleset="insertConfig" />
|
||||
<action name="procFileAdminInsertDownloadConfig" type="controller" />
|
||||
<action name="procFileAdminInsertModuleConfig" type="controller" permission="manager" check_var="target_module_srl" ruleset="fileModuleConfig" />
|
||||
</actions>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class fileAdminController extends file
|
|||
*
|
||||
* @return Object
|
||||
*/
|
||||
function procFileAdminInsertConfig()
|
||||
function procFileAdminInsertUploadConfig()
|
||||
{
|
||||
// Update configuration
|
||||
$oFileModel = getModel('file');
|
||||
|
|
@ -81,7 +81,7 @@ class fileAdminController extends file
|
|||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('file',$config);
|
||||
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispFileAdminConfig');
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispFileAdminUploadConfig');
|
||||
return $this->setRedirectUrl($returnUrl, $output);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ class fileAdminView extends file
|
|||
*
|
||||
* @return Object
|
||||
*/
|
||||
function dispFileAdminConfig()
|
||||
function dispFileAdminUploadConfig()
|
||||
{
|
||||
$oFileModel = getModel('file');
|
||||
$config = $oFileModel->getFileConfig();
|
||||
|
|
@ -222,7 +222,7 @@ class fileAdminView extends file
|
|||
|
||||
// Set a template file
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('adminConfig');
|
||||
$this->setTemplateFile('upload_config');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
<li class="x_active"|cond="$act == 'dispFileAdminList'">
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList')}">{$lang->file_list}</a>
|
||||
</li>
|
||||
<li class="x_active"|cond="$act == 'dispFileAdminConfig'">
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminConfig')}">{$lang->file_upload_config}</a>
|
||||
<li class="x_active"|cond="$act == 'dispFileAdminUploadConfig'">
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminUploadConfig')}">{$lang->file_upload_config}</a>
|
||||
</li>
|
||||
<li class="x_active"|cond="$act == 'dispFileAdminDownloadConfig'">
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminDownloadConfig')}">{$lang->file_download_config}</a>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<include target="header.html" />
|
||||
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/file/tpl/adminConfig/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/file/tpl/upload_config/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
||||
<form ruleset="insertConfig" action="./" method="post" class="x_form-horizontal section">
|
||||
<input type="hidden" name="module" value="file" />
|
||||
<input type="hidden" name="act" value="procFileAdminInsertConfig" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/file/tpl/adminConfig/1" />
|
||||
<input type="hidden" name="act" value="procFileAdminInsertUploadConfig" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/file/tpl/upload_config/1" />
|
||||
<div class="x_control-group">
|
||||
<label for="allowed_filesize" class="x_control-label">{$lang->allowed_filesize}</label>
|
||||
<div class="x_controls">
|
||||
Loading…
Add table
Add a link
Reference in a new issue