mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 01:23:32 +09:00
issue 92 page type 'ARTICLE' pages of 'skin fix' column to 'Y' is updated
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8655 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4b09d1118a
commit
5a60bfa3d6
5 changed files with 33 additions and 1 deletions
|
|
@ -48,14 +48,23 @@
|
||||||
|
|
||||||
// old page module instance update
|
// old page module instance update
|
||||||
$output = executeQueryArray('page.pageTypeNullCheck');
|
$output = executeQueryArray('page.pageTypeNullCheck');
|
||||||
|
$skin_update_srls = array();
|
||||||
if ($output->toBool() && $output->data){
|
if ($output->toBool() && $output->data){
|
||||||
foreach($output->data as $val){
|
foreach($output->data as $val){
|
||||||
$args->module_srl = $val->module_srl;
|
$args->module_srl = $val->module_srl;
|
||||||
$args->name = 'page_type';
|
$args->name = 'page_type';
|
||||||
$args->value= 'WIDGET';
|
$args->value= 'WIDGET';
|
||||||
$in_out = executeQuery('page.insertPageType', $args);
|
$in_out = executeQuery('page.insertPageType', $args);
|
||||||
|
|
||||||
|
$skin_update_srls[] = $val->module_srl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count($skin_update_srls)>0){
|
||||||
|
$skin_args->module_srls = implode(',',$skin_update_srls);
|
||||||
|
$skin_args->is_skin_fix = "Y";
|
||||||
|
$ouput = executeQuery('page.updateSkinFix', $skin_args);
|
||||||
|
}
|
||||||
return new Object(0,'success_updated');
|
return new Object(0,'success_updated');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
12
modules/page/queries/getArticlePageSrls.xml
Normal file
12
modules/page/queries/getArticlePageSrls.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<query id="getArticlePageSrls" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="module_extra_vars" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="module_srl" />
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="equal" column="name" default="page_type" />
|
||||||
|
<condition operation="equal" column="value" default="ARTICLE" pipe="and" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
</tables>
|
</tables>
|
||||||
<columns>
|
<columns>
|
||||||
<column name="module" default="page" notnull="notnull" />
|
<column name="module" default="page" notnull="notnull" />
|
||||||
|
<column name="is_skin_fix" default="Y" notnull="notnull" />
|
||||||
</columns>
|
</columns>
|
||||||
<conditions>
|
<conditions>
|
||||||
<condition operation="equal" column="module" default="opage" />
|
<condition operation="equal" column="module" default="opage" />
|
||||||
|
|
|
||||||
11
modules/page/queries/updateSkinFix.xml
Normal file
11
modules/page/queries/updateSkinFix.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<query id="updateSkinFix" action="update">
|
||||||
|
<tables>
|
||||||
|
<table name="modules" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="is_skin_fix" var="is_skin_fix" notnull="notnull" />
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="in" column="module_srl" var="module_srls" notnull="notnull" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
<div>{$page_content}</div>
|
<div>{$page_content}</div>
|
||||||
|
|
||||||
<!--@if($grant->manager)-->
|
<!--@if($grant->manager)-->
|
||||||
<!--%import("./js/page_admin.js")-->
|
<!--%import("./js/page_admin.js")-->
|
||||||
<div class="tRight gap1 clear">
|
<div class="tRight gap1 clear">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue