mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
issue 46 apply validator to page module.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8541 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9885e98591
commit
db14f45898
16 changed files with 130 additions and 23 deletions
|
|
@ -31,11 +31,11 @@
|
|||
<action name="procModuleAdminInsertCategory" type="controller" standalone="true" ruleset="insertCategory" />
|
||||
<action name="procModuleAdminUpdateCategory" type="controller" standalone="true" ruleset="updateCategory" />
|
||||
<action name="procModuleAdminDeleteCategory" type="controller" standalone="true" ruleset="deleteCategory" />
|
||||
<action name="procModuleAdminCopyModule" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminCopyModule" type="controller" standalone="true" ruleset="copyModule" />
|
||||
<action name="procModuleAdminInsertGrant" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminUpdateSkinInfo" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminModuleSetup" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminModuleGrantSetup" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminModuleSetup" type="controller" standalone="true" ruleset="insertModuleSetup" />
|
||||
<action name="procModuleAdminModuleGrantSetup" type="controller" standalone="true" ruleset="insertModulesGrant" />
|
||||
<action name="procModuleAdminInsertLang" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminDeleteLang" type="controller" standalone="true" />
|
||||
|
||||
|
|
|
|||
|
|
@ -131,6 +131,13 @@
|
|||
|
||||
$oDB->commit();
|
||||
$this->setMessage('success_registed');
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
global $lang;
|
||||
alertScript($lang->success_registed);
|
||||
reload(true);
|
||||
closePopupScript();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -317,10 +324,16 @@
|
|||
$module_info->description = $vars->description;
|
||||
$module_info->header_text = $vars->header_text;
|
||||
$module_info->footer_text = $vars->footer_text;
|
||||
$oModuleController->updateModule($module_info);
|
||||
$output = $oModuleController->updateModule($module_info);
|
||||
}
|
||||
|
||||
$this->setMessage('success_registed');
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
global $lang;
|
||||
alertScript($lang->success_registed);
|
||||
closePopupScript();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -385,6 +398,12 @@
|
|||
}
|
||||
}
|
||||
$this->setMessage('success_registed');
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
global $lang;
|
||||
alertScript($lang->success_registed);
|
||||
closePopupScript();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
18
modules/module/ruleset/copyModule.xml
Normal file
18
modules/module/ruleset/copyModule.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
</customrules>
|
||||
<fields>
|
||||
<field name="module_srl" required="true" />
|
||||
<field name="mid_1" rule="alpha_number" />
|
||||
<field name="mid_2" rule="alpha_number" />
|
||||
<field name="mid_3" rule="alpha_number" />
|
||||
<field name="mid_4" rule="alpha_number" />
|
||||
<field name="mid_5" rule="alpha_number" />
|
||||
<field name="mid_6" rule="alpha_number" />
|
||||
<field name="mid_7" rule="alpha_number" />
|
||||
<field name="mid_8" rule="alpha_number" />
|
||||
<field name="mid_9" rule="alpha_number" />
|
||||
<field name="mid_10" rule="alpha_number" />
|
||||
</fields>
|
||||
</ruleset>
|
||||
11
modules/module/ruleset/insertModuleSetup.xml
Normal file
11
modules/module/ruleset/insertModuleSetup.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
</customrules>
|
||||
<fields>
|
||||
<field name="module_srls" required="true" />
|
||||
<field name="module_category_srl" rule="number" />
|
||||
<field name="layout_srl" rule="number" />
|
||||
<field name="skin" required="true" />
|
||||
</fields>
|
||||
</ruleset>
|
||||
8
modules/module/ruleset/insertModulesGrant.xml
Normal file
8
modules/module/ruleset/insertModulesGrant.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
</customrules>
|
||||
<fields>
|
||||
<field name="module_srls" required="true" />
|
||||
</fields>
|
||||
</ruleset>
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
<!--%import("js/module_admin.js")-->
|
||||
<!--%import("filter/copy_module.xml")-->
|
||||
|
||||
<div id="popHeader" class="wide">
|
||||
<h3 class="xeAdmin">{$lang->module_copy}</h3>
|
||||
</div>
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, copy_module)" >
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form rule="copyModule" action="./" method="post">
|
||||
<input type="hidden" name="act" value="procModuleAdminCopyModule" />
|
||||
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
|
||||
|
||||
<div id="popBody">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<!--%import("js/module_admin.js")-->
|
||||
<!--%import("filter/insert_modules_grant.xml")-->
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery( function() { jQuery('.grant_default').change( function(event) { doShowGrantZone(); } ); doShowGrantZone() } );
|
||||
|
|
@ -10,7 +9,9 @@
|
|||
<h3 class="xeAdmin">{$lang->bundle_grant_setup}</h3>
|
||||
</div>
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_modules_grant)" id="fo_obj">
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form ruleset="insertModulesGrant" action="./" method="post" id="fo_obj">
|
||||
<input type="hidden" name="act" value="procModuleAdminModuleGrantSetup" />
|
||||
<input type="hidden" name="module_srls" value="{$module_srls}" />
|
||||
|
||||
<div id="popBody">
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
<!--%import("./filter/insert_module_setup.xml")-->
|
||||
<!--%import("./js/module_admin.js")-->
|
||||
|
||||
<div id="popHeader" class="wide">
|
||||
<h3 class="xeAdmin">{$lang->bundle_setup}</h3>
|
||||
</div>
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_module_setup)" enctype="multipart/form-data">
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form ruleset="insertModuleSetup" action="./" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="act" value="procModuleAdminModuleSetup" />
|
||||
<input type="hidden" name="module_srls" value="{$module_srls}" />
|
||||
<div id="popBody">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue