<!--%import("filter/insert_board.xml")-->
<!--%import("js/board_admin.js")-->
<!--#include("header.html")-->

<form action="./" method="post" onsubmit="return procFilter(this, insert_board)" enctype="multipart/form-data">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />

    <table cellspacing="0" class="rowTable">

    <!--@if($logged_info->is_admin!='Y')-->
    <input type="hidden" name="mid" value="{$module_info->mid}" />
    <!--@else-->
    <tr>
        <th scope="row"><div>{$lang->mid}</div></th>
        <td>
            <input type="text" name="mid" value="{$module_info->mid}" class="inputTypeText w200" />
            <p>{$lang->about_mid}</p>
        </td>
    </tr>
    <!--@end-->
    <tr>
        <th scope="row"><div>{$lang->module_category}</div></th>
        <td>
            <select name="module_category_srl">
                <option value="0">{$lang->notuse}</option>
                <!--@foreach($module_category as $key => $val)-->
                <option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
                <!--@end-->
            </select>
            <p>{$lang->about_module_category}</p>
        </td>
    </tr>

    <tr>
        <th scope="row"><div>{$lang->browser_title}</div></th>
        <td>
            <input type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}"  class="inputTypeText w400" id="browser_title"/>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','browser_title')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_browser_title}</p>
        </td>
    </tr>

    <tr>
        <th scope="row"><div>{$lang->layout}</div></th>
        <td>
            <select name="layout_srl">
            <option value="0">{$lang->notuse}</option>
            <!--@foreach($layout_list as $key => $val)-->
            <option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
            <!--@end-->
            </select>
            <p>{$lang->about_layout}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->skin}</div></th>
        <td>
            <select name="skin">
                <!--@foreach($skin_list as $key=>$val)-->
                <option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='xe_sboard'))-->selected="selected"<!--@end-->>{$val->title}</option>
                <!--@end-->
            </select>
            <p>{$lang->about_skin}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->use_category}</div></th>
        <td>
            <input type="checkbox" name="use_category" value="Y" <!--@if($module_info->use_category=='Y')-->checked="checked"<!--@end-->  class="checkbox" id="fld_for_category" />
            <label for="fld_for_category">{$lang->about_use_category}</label>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->order_target}</div></th>
        <td>
            <select name="order_target">
                <!--@foreach($order_target as $key => $val)-->
                <option value="{$key}" <!--@if($module_info->order_target == $key)-->selected="selected"<!--@end-->>{$val}</option>
                <!--@end-->
            </select>

        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->order_type}</div></th>
        <td>
            <select name="order_type">
                <option value="asc" <!--@if($module_info->order_type != 'desc')-->selected="selected"<!--@end-->>{$lang->order_asc}</option>
                <option value="desc" <!--@if($module_info->order_type == 'desc')-->selected="selected"<!--@end-->>{$lang->order_desc}</option>
            </select>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->list_count}</div></th>
        <td>
            <input type="text" name="list_count" value="{$module_info->list_count?$module_info->list_count:20}"  class="inputTypeText" />
            <p>{$lang->about_list_count}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->search_list_count}</div></th>
        <td>
            <input type="text" name="search_list_count" value="{$module_info->search_list_count?$module_info->search_list_count:20}"  class="inputTypeText" />
            <p>{$lang->about_search_list_count}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->page_count}</div></th>
        <td>
            <input type="text" name="page_count" value="{$module_info->page_count?$module_info->page_count:10}"  class="inputTypeText" />
            <p>{$lang->about_page_count}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->except_notice}</div></th>
        <td>
            <input type="checkbox" name="except_notice" value="Y" <!--@if($module_info->except_notice!='N')-->checked="checked"<!--@end--> />
            <p>{$lang->about_except_notice}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->use_anonymous}</div></th>
        <td>
            <input type="checkbox" name="use_anonymous" value="Y" <!--@if($module_info->use_anonymous=='Y')-->checked="checked"<!--@end--> />
            <p>{$lang->about_use_anonymous}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->consultation}</div></th>
        <td>
            <input type="checkbox" name="consultation" value="Y" <!--@if($module_info->consultation=='Y')-->checked="checked"<!--@end--> />
            <p>{nl2br($lang->about_consultation)}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->secret}</div></th>
        <td>
            <input type="checkbox" name="secret" value="Y" <!--@if($module_info->secret=='Y')-->checked="checked"<!--@end--> />
            <p>{nl2br($lang->about_secret)}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->admin_mail}</div></th>
        <td>
            <input type="text" name="admin_mail" value="{$module_info->admin_mail}"  class="inputTypeText w400" />
            <p>{$lang->about_admin_mail}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->description}</div></th>
        <td>
            <textarea name="description" class="inputTypeTextArea fullWidth">{htmlspecialchars($module_info->description)}</textarea>
            <p>{$lang->about_description}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->header_text}</div></th>
        <td>
            <textarea name="header_text" class="inputTypeTextArea fullWidth" id="header_text">{htmlspecialchars($module_info->header_text)}</textarea>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','header_text')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_header_text}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->footer_text}</div></th>
        <td>
            <textarea name="footer_text" class="inputTypeTextArea fullWidth" id="footer_text">{htmlspecialchars($module_info->footer_text)}</textarea>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','footer_text')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_footer_text}</p>
        </td>
    </tr>
<!--// muhak start -->
    <tr>
        <th scope="row"><div>음력표시</div></th>
        <td>
            <input type="radio" name="plan_lunar" value="A" <!--@if($module_info->plan_lunar=='A')-->checked="checked"<!--@end--> />
            음력 전부 표시
			<br/>
            <input type="radio" name="plan_lunar" value="1" <!--@if($module_info->plan_lunar=='1')-->checked="checked"<!--@end--> />
            음력 표시(1,10,20일)
			<br/>
            <input type="radio" name="plan_lunar" value="N" <!--@if($module_info->plan_lunar=='N')-->checked="checked"<!--@end--> />
            음력 표시 하지 않음
        </td>
    </tr>
    <tr>
        <th scope="row"><div>휴일표시</div></th>
        <td>
            <input type="checkbox" name="plan_holi" value="Y" <!--@if($module_info->plan_holi=='Y')-->checked="checked"<!--@end--> />
            <p>휴일 표시 여부를 선택합니다.</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>기념일표시</div></th>
        <td>
            <input type="checkbox" name="plan_memorial" value="Y" <!--@if($module_info->plan_memorial=='Y')-->checked="checked"<!--@end--> />
            <p>기념일 표시 여부를 선택합니다.</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>절기표시</div></th>
        <td>
            <input type="checkbox" name="plan_jeolki" value="Y" <!--@if($module_info->plan_jeolki=='Y')-->checked="checked"<!--@end--> />
            <p>24절기와 한식, 단오, 초,중,말복 표시 여부를 선택합니다.</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>휴일등록</div></th>
        <td>
            <textarea name="plan_holi_text" class="inputTypeTextArea fullWidth" id="plan_holi_text">{htmlspecialchars($module_info->plan_holi_text)}</textarea>
            <p>휴일을 등록합니다. 형식은 '-'는 음력, 월/일:휴일명 ';'는 휴일 구분.</p>
			예) <font color='blue'>5/5:어린이날;12/25:성탄절;-4/8:석가탄신일</font> <br/>
			휴일등록에서 등록한 휴일은 휴일 표시 여부와 관계없이 표시됩니다.
        </td>
    </tr>
    <tr>
        <th scope="row"><div>기념일등록</div></th>
        <td>
            <textarea name="plan_memo_text" class="inputTypeTextArea fullWidth" id="plan_memo_text">{htmlspecialchars($module_info->plan_memo_text)}</textarea>
            <p>기념일을 등록합니다. 형식은 휴일과 같습니다.</p>
			기념일등록에서 등록한 기념일은 기념일 표시 여부와 관계없이 표시됩니다.
        </td>
    </tr>
    <tr>
			<th scope="row"><div>자식보드등록</div></th>
			<td>
<?php
            $args->sort_index = "module_srl";
            $args->page = 1;
            $args->list_count = 20;
            $args->page_count = 10;
            $args->order_index = 'module_srl';
            $args->order_type = 'desc';
            $output = executeQueryArray('sboard.getSboardList', $args);
			if($output->data)
			{
				$modules = explode('|@|',$__Context->module_info->plan_board);
				foreach($output->data as $val)
				{
					if($__Context->module_info->module_srl == $val->module_srl)
						 continue;
            		echo "<input type='checkbox' name='plan_board' value='";
					echo $val->module_srl."'";
					if(in_array($val->module_srl,$modules))
						echo " checked ";
					echo ">".$val->mid."[".$val->browser_title."]<br/>\n";
				}
			}
?>
		<p>함께 표시할 자식 보드를 선택합니다.
		여기에서 선택된 board는 planner에 함께 표시됩니다.</p>
			</td>
    </tr>
<!--// muhak end -->
    <tr>
        <th colspan="2" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
            <span class="button"><input type="button" value="{$lang->cmd_back}" onclick="history.back(); return false;" /></span>
        </th>
	</tr>
    </table>

</form>
