묻고답하기
write_form.html에서 테이블 문제 질문입니다..
2009.09.22 20:08
소스
-------------------------------------------------
<!--#include("header.html")-->
<!-- 게시물 작성 폼 --><style type="text/css">
<!--
body,td,th {
font-family: 돋움;
font-size: 11px;
}
-->
</style>
<form action="./" method="post" onsubmit="return procFilter(this, insert)" id="fo_write">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
<input type="hidden" name="document_srl" value="{$document_srl}" />
<div class="boardWrite">
<!--@if(!$is_logged)-->
<!--@end-->
<dl class="option">
<!--@if($grant->manager)-->
{@ $_color = array('555555','222288','226622','2266EE','8866CC','88AA66','EE2222','EE6622','EEAA22','EEEE22') }
<dd><select name="title_color" id="title_color" <!--@if($oDocument->get('title_color'))-->style="background-color:#{$oDocument->get('title_color')};"<!--@end--> onchange="this.style.backgroundColor=this.options[this.selectedIndex].style.backgroundColor;">
<option value="" style="background-color:#FFFFFF;">{$lang->title_color}</option>
<!--@foreach($_color as $_col)-->
<option value="{$_col}" style="background-color:#{$_col}" <!--@if($oDocument->get('title_color')==$_col)-->selected="selected"<!--@end-->>{$lang->title_color}</option>
<!--@endforeach-->
</select></dd>
<dd>
<input type="checkbox" name="title_bold" id="title_bold" value="Y" <!--@if($oDocument->get('title_bold')=='Y')-->checked="checked"<!--@end--> />
<label for="title_bold">{$lang->title_bold}</label>
</dd>
<dd>
<input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="checked"<!--@end--> id="is_notice" />
<label for="is_notice">{$lang->notice}</label>
</dd>
<dd>
<input type="checkbox" name="lock_comment" value="Y" <!--@if($oDocument->isLocked())-->checked="checked"<!--@end--> id="lock_comment" />
<label for="lock_comment">{$lang->lock_comment}</label>
</dd>
<!--@endif-->
<!--@if($module_info->secret=="Y")-->
<dd>
<input type="hidden" name="is_secret" value="Y" checked="checked" id="is_secret" />
</dd>
<!--@end-->
<dd>
<input type="hidden" name="allow_comment" value="Y" checked="checked" id="allow_comment" />
</dd>
<dd>
<input type="hidden" name="allow_trackback" value="Y" checked="checked" id="allow_trackback" />
</dd>
<!--@if($is_logged)-->
<dd>
<input type="hidden" name="notify_message" value="Y" checked="checked" id="notify_message" />
</dd>
<!--@end-->
</dl>
<!--@if(count($extra_keys))-->
<table cellspacing="0" summary="" class="extraVarsList">
<tr>
<th>
분류
</th>
<td>
<select name="category_srl" class="category">
<option value="">{$lang->category}</option>
<!--@foreach($category_list as $val)-->
<option <!--@if(!$val->grant)-->disabled="disabled"<!--@endif--> value="{$val->category_srl}" <!--@if($val->grant&&$val->selected||$val->category_srl==$oDocument->get('category_srl'))-->selected="selected"<!--@endif-->>
{str_repeat(" ",$val->depth)} {$val->title}
</option>
<!--@endforeach-->
</select>
</td>
</tr>
<tr>
<th width="250">
<label for="userName">{$lang->writer}</label>
</th>
<td style = "padding : 0px;" >
<table cellspacing = 0 cellpadding = 0 border = 0>
<tr>
<th style = "padding-top : 0px; Border-bottom-color : white" width = 217>
<input style = "height:20px" type="text" name="nick_name" value="{$oDocument->getNickName()}" class="title inputTypeText" id="userName"/>
</th>
<th style = "padding-right : 10px; Border-bottom-color : white; text-align:left" width = 73>
<label for="userPw">{$lang->password}</label>
</th>
<td style = "padding-top : 0px; Border-bottom-color : white" width = 180>
<input style = "height:20px" type="password" name="password" value="" id="userPw" class="title inputTypeText" />
</td>
</tr>
</table>
</td>
</tr>
<col width="100" />
<col />
<!--@foreach($extra_keys as $key => $val)-->
<tr>
<th scope="row">{$val->name} <!--@if($val->is_required=='Y')-->*<!--@end--></th>
<td>{$val->getFormHTML()}</td>
</tr>
<!--@endforeach-->
<col width="150" />
<col />
<tr>
<th width="150">
제목
</th>
<td style = "padding-top: 0px;">
<!--div class="title"-->
<!--@if($module_info->use_category=="Y")-->
<!--@else-->
<label class="title">{$lang->title}</label>
<!--@endif-->
<input style = "height:20px;width:440px" type="text" name="title" class="title inputTypeText" value="{htmlspecialchars($oDocument->getTitleText())}" />
<!--/div-->
</td>
</tr>
</table>
<!--@endif-->
<div class="editor">{$oDocument->getEditor()}</div>
</div>
<div class="fl gap1">
<!--@if($is_logged)-->
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_temp_save}" onclick="doDocumentSave(this); return false;" /></span>
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_load}" onclick="doDocumentLoad(this); return false;" /></span>
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','')}'" /></span>
<!--@end-->
</div>
<div class="fr gap1">
<span class="button {$btn_class}"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act',''+
'+
')}'" /></span>
</div>
<div class="clear"></div>
</form>
<!--#include("footer.html")-->
---------------------------------------------------------------------------------------
<select name="title_color" id="title_color" <!--@if($oDocument->get('title_color'))-->style="background-color:#{$oDocument->get('title_color')};!--@end--> onchange="this.style.backgroundColor=this.options[this.selectedIndex].style.backgroundColor;
위에 소스에서 이 부분 지우면 않되나여?