묻고답하기
게시판 스킨 write_form.html 일부 수정
2013.03.03 14:00
xe v3 default 의 write form 인데요..
제목 과 내용에 미리 내용을 삽입 하고픈데,, 어디를 손 봐야 되는지요?
제목 안에는 " 신청 합니다"
내용에느 " 추가 내용 입력 하세요"
이렇게 하고픈데요....
아시는분 알려 주시면 고맙겠습니다.
<include target="_header.html" />
<form action="./" method="post" onsubmit="return procFilter(this, window.insert)" class="board_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="write_header">
<select name="category_srl" cond="$module_info->use_category=='Y'">
<option value="">{$lang->category}</option>
<option loop="$category_list => $val" disabled="disabled"|cond="!$val->grant" value="{$val->category_srl}" selected="selected"|cond="$val->grant&&$val->selected||$val->category_srl==$oDocument->get('category_srl')">
{str_repeat(" ",$val->depth)} {$val->title} ({$val->document_count})
</option>
</select>
<input cond="$oDocument->getTitleText()" type="text" name="title" class="iText" title="{$lang->title}" value="{htmlspecialchars($oDocument->getTitleText())}" />
<input cond="!$oDocument->getTitleText()" type="text" name="title" class="iText" title="{$lang->title}" />
<input cond="$grant->manager" type="checkbox" name="is_notice" value="Y" class="iCheck" checked="checked"|cond="$oDocument->isNotice()" id="is_notice" />
<label cond="$grant->manager" for="is_notice">{$lang->notice}</label>
</div>
<div class="exForm" cond="count($extra_keys)">
<table cond="count($extra_keys)" border="1" cellspacing="0" summary="Extra Form">
<caption><em>*</em> : {$lang->is_required}</caption>
<tr loop="$extra_keys=>$key,$val">
<th scope="row"><em cond="$val->is_required=='Y'">*</em> {$val->name}</th>
<td>{$val->getFormHTML()}</td>
</tr>
</table>
</div>
<div class="write_editor">
{$oDocument->getEditor()}
</div>
<div class="write_footer">
<div class="write_option">
<block cond="$grant->manager">
<input type="checkbox" name="title_bold" id="title_bold" class="iCheck" value="Y" checked="checked"|cond="$oDocument->get('title_bold')=='Y'" />
<label for="title_bold">{$lang->title_bold}</label>
</block>
<input cond="$module_info->secret=='Y'" type="checkbox" name="is_secret" class="iCheck" value="Y" checked="checked"|cond="$oDocument->isSecret()" id="is_secret" />
<label cond="$module_info->secret=='Y'" for="is_secret">{$lang->secret}</label>
<input type="checkbox" name="comment_status" class="iCheck" value="ALLOW" checked="checked"|cond="$oDocument->allowComment()" id="comment_status" />
<label for="comment_status">{$lang->allow_comment}</label>
<input type="checkbox" name="allow_trackback" class="iCheck" value="Y" checked="checked"|cond="$oDocument->allowTrackback()" id="allow_trackback" />
<label for="allow_trackback">{$lang->allow_trackback}</label>
<block cond="$is_logged">
<input type="checkbox" name="notify_message" class="iCheck" value="Y" checked="checked"|cond="$oDocument->useNotify()" id="notify_message" />
<label for="notify_message">{$lang->notify}</label>
</block>
<!--@if(is_array($status_list))-->
<!--@foreach($status_list AS $key=>$value)-->
<input type="radio" name="status" value="{$key}" id="{$key}" <!--@if($oDocument->get('status') == $key || ($key == 'PUBLIC' && !$document_srl))-->checked="checked"<!--@end--> />
<label for="{$key}">{$value}</label>
<!--@end-->
<!--@end-->
</div>
<div class="write_author">
<span class="item" cond="!$is_logged">
<label for="userName" class="iLabel">{$lang->writer}</label>
<input type="text" name="nick_name" id="userName" class="iText userName" style="width:80px" value="{htmlspecialchars($oDocument->get('nick_name'))}" />
</span>
<span class="item" cond="!$is_logged">
<label for="userPw" class="iLabel">{$lang->password}</label>
<input type="password" name="password" id="userPw" class="iText userPw" style="width:80px" />
</span>
<span class="item" cond="!$is_logged">
<label for="homePage" class="iLabel">{$lang->homepage}</label>
<input type="text" name="homepage" id="homePage" class="iText homePage" style="width:140px"value="{htmlspecialchars($oDocument->get('homepage'))}" />
</span>
<span class="item">
<label for="tags" class="iLabel">{$lang->tag}: {$lang->about_tag}</label>
<input type="text" name="tags" id="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="iText" style="width:300px" title="Tag" />
</span>
</div>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
<!--@if(!$oDocument->isExists() || $oDocument->get('status') == 'TEMP')-->
<span cond="$is_logged" class="btn"><button type="button" onclick="doDocumentSave(this);">{$lang->cmd_temp_save}</button></span>
<span cond="$is_logged" class="btn"><button type="button" onclick="doDocumentLoad(this);">{$lang->cmd_load}</button></span>
<!--@end-->
</div>
</div>
</form>
<include target="_footer.html" />
댓글 1
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
도훈 | 초보가 최근 문서 출력 위젯을 사용하려합니다. [10] | 2008.01.03 by 도훈 |
팔공산 | 최근이미지출력 위젯에서 확장변수 나타나게 하는 방법은? | |
제임쓰 | sulinux에서 한글 깨지는 문제 [4] | 2008.01.03 by 제임쓰 |
고건영898 | 상단 메뉴 가운데 정렬 | |
핑~~ | 제로보드XE 로그인 스트립트, 부탁드립니다. [2] | 2008.01.03 by 핑~~ |
김진오 | 최근 문서 출력 xe 기본제공 위젯 그림 바꾸고 싶어요 [3] | 2008.01.03 by 김진오 |
coni | 이미지 링크 클릭시 주위 점선 안보이게 할수 없나요? ㅠ.ㅠ | |
히히히힛 | 간단한 배경음악 질문이요 초보라서 ㅠ;; [5] | 2008.01.03 by 이창훈785 |
쪼냐 |
통합검색을 했을때 이것이 짤립니다.
![]() | |
문병조 |
페이지 삭제가 안되요.
[3]
![]() | 2008.01.03 by 세바스챤_™ |
서진성 | 자바스크립트/외부HTML을 원본 웹페이지로 불러오기 [1] | 2008.01.03 by white_eye |
오메가 |
게시물 아이콘이 다른게 나와요
[1]
![]() | 2008.01.03 by 이창훈785 |
hong''gun | [급함] 회사 홈페이지인데 context/Context.class.php [5] | 2008.01.04 by 비나무 |
허찬 | 새로운 쪽지가 왔을때 확인창이 계속 떠있게할려면?? | |
박천수834 | 제로보드 최신버전 업그레이드 후 안되는 위젯이 생겼습니다. [3] | 2008.01.04 by John704 |
박천수834 |
다음 사진과 같은 현상은 왜 생길까요?
[1]
![]() | 2008.01.04 by John704 |
fldfkero |
흠페이지를 만드는 고등학생1학년입니다
[2]
![]() | 2008.01.04 by 비나무 |
홍이만세^^ | 회원가입시 약관 | |
드래곤 | 홈피 도메인 변경 문의 [1] | 2008.01.04 by RulruRalra |
정동희576 |
초보가 급질문 드립니다. 레이아웃 편집 그림넣기
[2]
![]() | 2008.01.04 by 제로보둥 |
line 14
<input cond="!$oDocument->getTitleText()" type="text" name="title" class="iText" title="{$lang->title}" value="message" onClick="if(this.value=='message') this.value=''" />
붉은 색이 추가된 내용......
본문에 입력하는 것은
http://www.xpressengine.com/tip/20957035
여기참고
주의:
write_form의 encoding 타입이 ansi 이기 때문에
한글을 사용하면 깨져서 나옵니다.
언어코드를 사용하거나
아니면 타입을 utf-8로 바꿔야 합니다........