mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
modify manange page
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12347 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7c5c3a5d4f
commit
2e26ee83b1
5 changed files with 25 additions and 10 deletions
|
|
@ -54,7 +54,7 @@ class moduleAdminModel extends module
|
|||
return $output;
|
||||
}
|
||||
|
||||
function getSelectedManageHTML($grantList)
|
||||
function getSelectedManageHTML($grantList, $tabChoice = array())
|
||||
{
|
||||
// Grant virtual permission for access and manager
|
||||
$grantList->access->title = Context::getLang('grant_access');
|
||||
|
|
@ -85,6 +85,12 @@ class moduleAdminModel extends module
|
|||
$output = ModuleHandler::triggerCall('module.dispAdditionSetup', 'after', $content);
|
||||
Context::set('setup_content', $content);
|
||||
|
||||
if(count($tabChoice) == 0)
|
||||
{
|
||||
$tabChoice = array('tab1'=>1, 'tab2'=>1, 'tab3'=>1);
|
||||
}
|
||||
Context::set('tabChoice', $tabChoice);
|
||||
|
||||
// Get information of module_grants
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($this->module_path.'tpl', 'include.manage_selected.html');
|
||||
|
|
|
|||
|
|
@ -17,18 +17,18 @@
|
|||
</table>
|
||||
<div class="x_tabbable">
|
||||
<ul class="x_nav x_nav-tabs">
|
||||
<li class="x_active"><a href="#tab1">{$lang->bundle_setup}</a></li>
|
||||
<li><a href="#tab2">{$lang->bundle_addition_setup}</a></li>
|
||||
<li><a href="#tab3">{$lang->bundle_grant_setup}</a></li>
|
||||
<li class="x_active" cond="$tabChoice['tab1']"><a href="#tab1">{$lang->bundle_setup}</a></li>
|
||||
<li cond="$tabChoice['tab2']"><a href="#tab2">{$lang->bundle_addition_setup}</a></li>
|
||||
<li cond="$tabChoice['tab3']"><a href="#tab3">{$lang->bundle_grant_setup}</a></li>
|
||||
</ul>
|
||||
<div class="x_tab-content">
|
||||
<div class="x_tab-pane x_active" id="tab1">
|
||||
<div class="x_tab-pane x_active" id="tab1" cond="$tabChoice['tab1']">
|
||||
<include target="include.module_setup.html" />
|
||||
</div>
|
||||
<div class="x_tab-pane" id="tab2">
|
||||
<div class="x_tab-pane" id="tab2" cond="$tabChoice['tab2']">
|
||||
<include target="include.module_addition_setup.html" />
|
||||
</div>
|
||||
<div class="x_tab-pane" id="tab3">
|
||||
<div class="x_tab-pane" id="tab3" cond="$tabChoice['tab3']">
|
||||
<include target="include.module_grant_setup.html" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@
|
|||
<value xml:lang="ko"><![CDATA[내용이 없습니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[This is empty page.]]></value>
|
||||
</item>
|
||||
<item name="cmd_manage_selected_page">
|
||||
<value xml:lang="ko"><![CDATA[선택한 페이지 관리]]></value>
|
||||
<value xml:lang="en"><![CDATA[Manage Selected Page]]></value>
|
||||
</item>
|
||||
<item name="about_page">
|
||||
<value xml:lang="ko"><![CDATA[하나의 완성된 페이지를 제작할 수 있는 페이지 모듈입니다. 최근게시물이나 기타 위젯을 이용해서 동적인 페이지 생성이 가능하고 에디터 컴포넌트를 통해서 다양한 모습으로 꾸밀 수 있습니다. 접속 URL은 다른 모듈과 같이 mid=모듈이름 으로 접속 가능하며 기본으로 선택하면 접속 시 메인 페이지가 됩니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[It is a blog module where you can create a complete page. Using latest or other widgets, you can create a dynamic page. Through the editor component, you can also create a great variety of pages. Its URL is same as other module's such as mid=module name. If it is selected as a default, it will be the main page of the site.]]></value>
|
||||
|
|
|
|||
|
|
@ -67,6 +67,11 @@ class pageAdminView extends page
|
|||
$page_list = $oModuleModel->addModuleExtraVars($output->data);
|
||||
moduleModel::syncModuleToSite($page_list);
|
||||
|
||||
$oModuleAdminModel = &getAdminModel('module');
|
||||
$tabChoice = array('tab1'=>1, 'tab3'=>1);
|
||||
$selected_manage_content = $oModuleAdminModel->getSelectedManageHTML($this->xml_info->grant, $tabChoice);
|
||||
Context::set('selected_manage_content', $selected_manage_content);
|
||||
|
||||
// To write to a template context:: set
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
<i>|</i>
|
||||
<a href="{getUrl('act','dispPageAdminDelete','module_srl', $val->module_srl)}">{$lang->cmd_delete}</a>
|
||||
</td>
|
||||
<td><input type="checkbox" name="cart" value="{$val->module_srl}" /></td>
|
||||
<td><input type="checkbox" name="cart" value="{$val->module_srl}" class="selectedModule" data-mid="{$val->mid}" data-browser_title="{$val->browser_title}" /></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
|
|
@ -83,8 +83,7 @@
|
|||
|
||||
<div class="x_clearfix">
|
||||
<div class="x_btn-group x_pull-right">
|
||||
<a href="{getUrl('','module','module','act','dispModuleAdminModuleSetup')}" onclick="doCartSetup(this.href); return false;" class="x_btn">{$lang->cmd_setup}...</a>
|
||||
<a href="{getUrl('','module','module','act','dispModuleAdminModuleGrantSetup')}" onclick="doCartSetup(this.href); return false;" class="x_btn">{$lang->cmd_manage_grant}...</a>
|
||||
<a class="x_btn modalAnchor x_pull-right" href="#manageSelectedModule">{$lang->cmd_manage_selected_page}...</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -131,3 +130,4 @@
|
|||
</ul>
|
||||
</form>
|
||||
|
||||
{$selected_manage_content}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue