묻고답하기
그누사용하다 xe왔습니다, 게시물 작성시 시간도 임의로 넣고싶습니다
2014.10.23 15:44
게시판 글 작성시 날짜 까지 입력하고싶습니다.
자동으로 날짜는 입력이되지면 게시물 글 쓰면서 임의로 수정하고싶습니다,
xe는 처음이라 검색도해밨지만 무지한 능력으로 질문 드립니다.
게시판 해당 스킨소스 입니다
<? include_once($boardpath."/gmEditor/func_editor.php"); ?>
<script type="text/javascript" src='/ckeditor/ckeditor.js' charset="utf-8"></script>
<script type="text/javascript" src="file/default.js" charset="utf-8"></script>
<div id="boardWrap">
<form action="{boardpath}/write.php?{parametapage}" method="post" enctype="multipart/form-data" name="form1" >
<table cellspacing="0" border="0" class="boardDetail mWrite">
<input type="hidden" name="dep" value="{dep}"/>
<input type="hidden" name="ogid" value="{ogid}"/>
<input type="hidden" name="html" value="y"/>
<input type="hidden" name="ef_1" value="<?=$ef_1?>">
<input type="hidden" name="ef_2" value="<?=$ef_2?>">
<input type="hidden" name="ef_3" value="<?=$ef_3?>">
<input type="hidden" name="ef_4" value="<?=$ef_4?>">
<input type="hidden" name="ef_5" value="<?=$ef_5?>">
<thead>
<tr>
<th scope="row">Title</th>
<td class="title"><input type="text" class="i_text" name="title" value="{title}" style="width:90%" /></td>
</tr>
</thead>
<tbody>
<!--NoUserLoginStart-->
<tr>
<th scope="row" >Writer</th>
<td><input type="text" name="writer" id="writer"/></td>
</tr>
<tr>
<th scope="row" >Password</th>
<td><input name="passwd" type="password" id="passwd" /></td>
</tr>
<!--NoUserLoginEnd-->
<!--UserLoginStart-->
<input type="hidden" name="writer" value="{writer}"/>
<input type="hidden" name="userid" value="{userid}"/>
<input type="hidden" name="passwd" size="27" value="{userid}"/>
<input type="hidden" name="email" value="{email}"/>
<input type="hidden" name="home"value="{home}"/>
<!--UserLoginEnd-->
<!--noticeWriteStart-->
<tr>
<th scope="row">Notice</th>
<td><input type="checkbox" class="i_check" id="noticeOn" name="notice" value="y" /><label for="noticeOn">Priority</label></td>
</tr>
<!--noticeWriteEnd-->
<tr>
<th scope="row" rowspan="3">File</th>
<td><input name="upfile0" type="file" id="file" /></td>
</tr>
<tr>
<td><input name="upfile1" type="file" id="file" /></td>
</tr>
<tr>
<td><input name="upfile2" type="file" id="file" /></td>
</tr>
<tr>
<td colspan="2" class="cont">
<textarea class="textarea" cols="50" rows="40" name="content" id="editor1"></textarea>
<script>
CKEDITOR.replace( 'editor1', {
language: 'en',
toolbar: [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ], items: [ 'NumberedList', 'BulletedList','-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
{ name: 'insert', items: [ 'Image', 'Iframe' ] },
'/',
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] },
{ name: 'tools', items: [ 'Maximize', 'ShowBlocks' ] },
{ name: 'others', items: [ '-' ] },
{ name: 'about', items: [ 'About' ] }
]
} );
</script>
</td>
</tr>
</tbody>
</table>
<div class="btn_area ac">
<span class="btns big1"><a href="javascript:write_formck1()">Write</a></span>
<span class="btns big1"><a href="<?=$boardpage?>">List</a></span>
</div>
</form>
</div>
<script>
function write_formck1(){
if (write_formck()){
document.form1.submit();
}
}
</script>
제목밑에 날자 입력하고싶습니다..(현재 날자가 떠있어서 수정하지않으면 바로 입력이되도록..)
도움 부탁드리겠습니다