mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
issue 46 Validator apply
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8478 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b17464e1c1
commit
4a50363cb1
5 changed files with 31 additions and 9 deletions
|
|
@ -8,7 +8,7 @@
|
|||
<action name="dispIntegration_searchAdminGrantInfo" type="view" />
|
||||
<action name="dispIntegration_searchAdminSkinInfo" type="view" />
|
||||
|
||||
<action name="procIntegration_searchAdminInsertConfig" type="controller" />
|
||||
<action name="procIntegration_searchAdminInsertConfig" type="controller" ruleset="insertConfig" />
|
||||
<action name="procIntegration_searchAdminInsertSkin" type="controller" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,14 @@
|
|||
$args->skin_vars = $config->skin_vars;
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
return $oModuleController->insertModuleConfig('integration_search',$args);
|
||||
$output = $oModuleController->insertModuleConfig('integration_search',$args);
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispIntegration_searchAdminContent');
|
||||
header('location:'.$returnUrl);
|
||||
return;
|
||||
}
|
||||
else return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -97,7 +104,14 @@
|
|||
$args->skin_vars = serialize($obj);
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
return $oModuleController->insertModuleConfig('integration_search',$args);
|
||||
$output = $oModuleController->insertModuleConfig('integration_search',$args);
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispIntegration_searchAdminSkinInfo');
|
||||
header('location:'.$returnUrl);
|
||||
return;
|
||||
}
|
||||
else $output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
7
modules/integration_search/ruleset/insertConfig.xml
Normal file
7
modules/integration_search/ruleset/insertConfig.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
</customrules>
|
||||
<fields>
|
||||
</fields>
|
||||
</ruleset>
|
||||
|
|
@ -1,8 +1,10 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("filter/insert_config.xml")-->
|
||||
<!--%import("../../widget/tpl/js/widget_admin.js")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form ruleset="insertConfig" action="./" method="post">
|
||||
<input type="hidden" name="act" value="procIntegration_searchAdminInsertConfig" />
|
||||
<input type="hidden" name="module" value="admin" />
|
||||
<input type="hidden" name="target_module_srl" id="target_module_srl" value="{$config->target_module_srl}" />
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr class="row2">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<!--#include("./header.html")-->
|
||||
|
||||
<form action="{Context::getRequestUri()}" method="post" enctype="multipart/form-data" target="hidden_iframe">
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form action="{Context::getRequestUri()}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="module" value="integration_search" />
|
||||
<input type="hidden" name="act" value="procIntegration_searchAdminInsertSkin" />
|
||||
|
||||
|
|
@ -139,5 +140,3 @@
|
|||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<iframe name="hidden_iframe" frameborder="0" style="display:none"></iframe>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue