모듈 목록이 나타나는 선택된 게시글 관리 팝업/ 위젯 코드 생성/ 통합검색 관리페이지에서 모듈을 모듈 카테고리로 나눠서 보다 보기 좋게 출력되도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3804 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-25 22:11:15 +00:00
parent 2b84ce71fc
commit 657ae432bc
13 changed files with 118 additions and 31 deletions

View file

@ -34,9 +34,22 @@
$skin_list = $oModuleModel->getSkins($this->module_path);
Context::set('skin_list',$skin_list);
// 모듈 카테고리 목록을 구함
$module_categories = $oModuleModel->getModuleCategories();
// 생성된 mid목록을 구함
$mid_list = $oModuleModel->getMidList();
Context::set('mid_list',$mid_list);
// module_category와 module의 조합
if($module_categories) {
foreach($mid_list as $module_srl => $module) {
$module_categories[$module->module_category_srl]->list[$module_srl] = $module;
}
} else {
$module_categories[0]->list = $mid_list;
}
Context::set('mid_list',$module_categories);
// 샘플코드
Context::set('sample_code', htmlspecialchars('<form action="{getUrl()}" method="get"><input type="hidden" name="mid" value="{$mid}" /><input type="hidden" name="act" value="IS" /><input type="text" name="is_keyword" class="inputTypeText" value="{$is_keyword}" /><span class="button"><input type="submit" value="{$lang->cmd_search}" /></span></form>') );

View file

@ -4,17 +4,18 @@
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table cellspacing="0" class="adminTable">
<col width="150" />
<col width="150" />
<col />
<tr>
<th scope="row">{$lang->sample_code}</th>
<td>
<td colspan="2">
<textarea class="inputTypeTextArea w400" readonly="readonly">{$sample_code}</textarea>
<p>{$lang->about_sample_code}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->skin}</th>
<td>
<td colspan="2">
<select name="skin">
<!--@foreach($skin_list as $key=>$val)-->
<option value="{$key}" <!--@if($config->skin==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
@ -24,16 +25,30 @@
</td>
</tr>
<tr>
<th scope="row">{$lang->module}</th>
<th colspan="3"><input type="checkbox" onclick="checkboxSelectAll(this.form,'target_mid'); return false;" /> {$lang->about_target_module}</th>
</tr>
<!--@foreach($mid_list as $module_category_srl => $modules)-->
<!--@if($modules->title)-->
<tr>
<th rowspan="{count($modules->list)+1}">{$modules->title}</th>
</tr>
<!--@else-->
<tr>
<th rowspan="{count($modules->list)+1}">&nbsp;</th>
</tr>
<!--@end-->
<!--@foreach($modules->list as $key => $val)-->
<tr>
<td>{$val->module}</td>
<td>
<p><input type="checkbox" onclick="checkboxSelectAll(this.form,'target_mid'); return false;" /> {$lang->about_target_module}</p>
<!--@foreach($mid_list as $key => $val)-->
<p><input type="checkbox" name="target_mid" value="{$key}" id="target_mid_{$key}" <!--@if(in_array($key,$config->target_mid))-->checked="checked"<!--@end--> /> <label for="target_mid_{$key}">{$val->browser_title} ({$val->mid})</label></p>
<!--@end-->
<input type="checkbox" name="target_mid" value="{$key}" id="target_mid_{$key}" <!--@if(in_array($key,$config->target_mid))-->checked="checked"<!--@end--> />
<label for="target_mid_{$key}">{$val->browser_title} ({$val->mid})</label>
</td>
</tr>
<!--@end-->
<!--@end-->
<tr>
<th scope="row" class="button" colspan="2">
<th scope="row" class="button" colspan="3">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</th>
</tr>