유창화썸네일 사용한 모닝스케쥴 정보
게시판 유창화썸네일 사용한 모닝스케쥴관련링크
첨부파일
본문
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=101762&sca=&sfl=wr_subject%7C%7Cwr_content&stx=schedule&sop=and
의 스케줄을 그누새버전과 유창화님의 썸네일 새버전에 맞춘 것입니다.
그누보드 4.34.19 (2012.01.17)버전베직게시판기반입니다.
그누보드/lib 에 링크1의 유창화썸네일이 설치되어있어야 합니다.
스케줄기능 속에,
구글맵을 넣었습니다.(저는 네이비가 없어서...)
그리고 자기마음대로 글을 넣는 과정에서 유창화썸네일을 사용하게 했습니다.
그림설정은 하나뿐입니다.
필드사용은
스케줄에서 wr_1~4, 구글맵에서 wr_8~10, 유창화썸네일에서 wr_5~7을 사용합니다.
맨 아래그림의 일정표보기를 누르면 가운데그림달력으로 이동합니다.
카테고리만들어져있지 않다면
심방|개인|단체|행사 로 자동으로 만들어집니다.
---------------
유창화썸네일 새버전에 맞춘 모닝웹진
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=121554&page=10
모닝웹진의 html버전
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123656&page=2
로고스웹
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123921
모닝스케쥴
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=124057&page=1
소규모에 적합한 간편장부
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=118815&page=18
RSS 뉴스리더기
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123538&page=3
모닝웹진의 html형 최신글
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123657&page=2
모닝최신글 3종세트
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123127&page=4
사용예
http://ongga.kr
이로써 제게 필요한 게시판은 모두 완료인 것 같습니다.
뿌듯합니다.
의 스케줄을 그누새버전과 유창화님의 썸네일 새버전에 맞춘 것입니다.
그누보드 4.34.19 (2012.01.17)버전베직게시판기반입니다.
그누보드/lib 에 링크1의 유창화썸네일이 설치되어있어야 합니다.
스케줄기능 속에,
구글맵을 넣었습니다.(저는 네이비가 없어서...)
그리고 자기마음대로 글을 넣는 과정에서 유창화썸네일을 사용하게 했습니다.
그림설정은 하나뿐입니다.
필드사용은
스케줄에서 wr_1~4, 구글맵에서 wr_8~10, 유창화썸네일에서 wr_5~7을 사용합니다.
맨 아래그림의 일정표보기를 누르면 가운데그림달력으로 이동합니다.
카테고리만들어져있지 않다면
심방|개인|단체|행사 로 자동으로 만들어집니다.
---------------
유창화썸네일 새버전에 맞춘 모닝웹진
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=121554&page=10
모닝웹진의 html버전
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123656&page=2
로고스웹
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123921
모닝스케쥴
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=124057&page=1
소규모에 적합한 간편장부
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=118815&page=18
RSS 뉴스리더기
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123538&page=3
모닝웹진의 html형 최신글
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123657&page=2
모닝최신글 3종세트
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=123127&page=4
사용예
http://ongga.kr
이로써 제게 필요한 게시판은 모두 완료인 것 같습니다.
뿌듯합니다.
추천
8
8
댓글 전체
수고 많으셨습니다. ^^
좋은 아이디어 입니다. 감사 합니다.
좋은 아이디어 입니다. 감사 합니다.
늘 저에게 힘을 주시는 헌이님에게 감사드립니다.
스토커들이 좋아하겠네요 ㅎ
감사합니다..
감사합니다..
사실은 제가 스토커....
감사합니다^^ 추천드리고 갑니다 ㅎㅎ
감사합니다.
추천드립니다.
추천감사드립니다.
달력 날자 선택메뉴가 (자바) 나오지 않는데 방법은 어떻게 하는지요
제가 알기로는 달력은 그누보드에 기본으로 포함된 것으로 압니다.
해당부분을
<input type='text' class=ed size=20 name='wr_2' itemname='날자' value='<?=$write[wr_2]?>'> 예) <?=date("Y-m-d");?>
이런 식으로 해보세요.
해당부분을
<input type='text' class=ed size=20 name='wr_2' itemname='날자' value='<?=$write[wr_2]?>'> 예) <?=date("Y-m-d");?>
이런 식으로 해보세요.
감사합니다.
감사합니다.
문의 2가지 드립니다
1)달력 날자 선택메뉴가 (자바) 나오지 않는데 방법은 어떻게 하는지요
2) wr_id 메세지 글쓰기 안됨
------------------초보자 문의 write.skin.php 수정 부분 부탁 드립니다 -------------
<?
// v1.1 map api http://www.neosoft.co.kr/map/
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 썸네일소스는 유창화님자료.
// http://sir.co.kr/bbs/board.php?bo_table=tip_php&wr_id=985
// http://sir.co.kr/bbs/board.php?bo_table=tip_php&wr_id=1087
// 위 두 소스를 아래 링크의 자료로 통폐합 간단화 한것이 image_proc.function.php
// http://sir.co.kr/bbs/board.php?bo_table=pg_php&wr_id=1204&sca=&sfl=&stx=&spt=0&page=1
// 응용방식은 플록님의 것.
// 섬네일의 위치방식은 오달수님의 방식.
// 뷰썸네일설정 단순화는 관리자님 지도.
// 프린트기능은 션션님자료
// 뷰썸네일그림설정은 3개까지. 4부터는 3설정따름
///////////////////////////////////////////////////////////////////////////////////
/////
///// 유창화썸네일의 모든 옵션을 사용가능하게 함
///// 썸네일부위,썸네일넓이,썸네일높이,워터마크위치,워터마크선명도,언샵기능....
///// 중간에 그림문서 아닌 것이 삽입되어도 상관없이 썸네일화
///// 리스트에서 에딛그림(웹그림)도 썸네일화
/////
///////////////////////////////////////////////////////////////////////////////////
$apikey=$board['bo_1']; // 실제로는 사용치 않음
$map_width="600";
$map_height="350";
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
<div style="height:14px; line-height:1px; font-size:1px;"> </div>
<style type="text/css">
.write_head { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
</style>
<script type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=wr_9 value="<?=$write['wr_9']?>"> <!--지도 x좌표-->
<input type=hidden name=wr_10 value="<?=$write['wr_10']?>"> <!--지도 y좌표-->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
<div style="font-weight:bold; font-size:14px; margin:7px 0 0 10px;">:: <?=$title_msg?> ::</div>
</div>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=90>
<colgroup width=''>
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td></tr>
<? if ($is_name) { ?>
<tr>
<td class=write_head>이 름</td>
<td><input class='ed' maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_password) { ?>
<tr>
<td class=write_head>패스워드</td>
<td><input class='ed' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_email) { ?>
<tr>
<td class=write_head>이메일</td>
<td><input class='ed' maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_homepage) { ?>
<tr>
<td class=write_head>홈페이지</td>
<td><input class='ed' size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
if ($is_notice) {
$option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "<input type=hidden value='html1' name='html'>";
} else {
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
} else {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
}
}
if ($is_mail) {
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
}
}
echo $option_hidden;
if ($option) {
?>
<tr>
<td class=write_head>옵 션</td>
<td><?=$option?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_category) { ?>
<tr>
<td class=write_head>분 류</td>
<td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<tr>
<td class=write_head>제 목</td>
<td><input class='ed' style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>">
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head>지 도</td>
<td>
<div>
<?
if($write[wr_8] != '미사용') {
echo "<input type='radio' id=r1 name='wr_8' value='사용' checked>지도 사용";
echo "<input type='radio' id=r2 name='wr_8' value='미사용'>지도 미사용";
} else {
echo "<input type='radio' id=r1 name='wr_8' value='사용'>지도 사용";
echo "<input type='radio' id=r2 name='wr_8' value='미사용' checked>지도 미사용";
}
?>
</div>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=ko"></script>
<?
if ($write['wr_9']=='') $write['wr_9']='37.566535';
if ($write['wr_10']=='') $write['wr_10']='126.977969';
?>
<script type="text/javascript">
// 구글지도
var map;
var geocoder;
var centerChangedLast;
var reverseGeocodedLast;
var currentReverseGeocodeResponse;
function initialize() {
var latlng = new google.maps.LatLng(<?=$write['wr_9']?>, <?=$write['wr_10']?>);
var myOptions = {
zoom: 12,
scaleControl: true,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
geocoder = new google.maps.Geocoder();
// 리스너 Listener ////////////////////////////////////////////////////
google.maps.event.addListener(map, 'zoom_changed', function() {
document.getElementById("zoom_level").innerHTML = map.getZoom();
zoomLevel = map.getZoom();
if (zoomLevel > 19) {
map.setZoom(19);
}
if (zoomLevel < 1) {
map.setZoom(1);
}
});
setupEvents();
centerChanged();
}
function setupEvents() {
reverseGeocodedLast = new Date();
centerChangedLast = new Date();
setInterval(function() {
if((new Date()).getSeconds() - centerChangedLast.getSeconds() > 1) {
if(reverseGeocodedLast.getTime() < centerChangedLast.getTime())
reverseGeocode();
}
}, 1000);
google.maps.event.addListener(map, 'center_changed', centerChanged);
google.maps.event.addDomListener(document.getElementById('crosshair'),'dblclick', function() {
map.setZoom(map.getZoom() + 1);
});
}
function getCenterLatLngText() {
var nn = 1000000;
var tmpLat = Math.round(map.getCenter().lat()*nn)/nn;
var tmpLng = Math.round(map.getCenter().lng()*nn)/nn;
document.fwrite.wr_9.value = tmpLat;
document.fwrite.wr_10.value = tmpLng;
return tmpLat +', '+ tmpLng;
}
function centerChanged() {
centerChangedLast = new Date();
var latlng = getCenterLatLngText();
document.getElementById('latlng').innerHTML = latlng;
document.getElementById('formatedAddress').innerHTML = '';
currentReverseGeocodeResponse = null;
}
function reverseGeocode() {
reverseGeocodedLast = new Date();
geocoder.geocode({latLng:map.getCenter()},reverseGeocodeResult);
}
function reverseGeocodeResult(results, status) {
currentReverseGeocodeResponse = results;
if(status == 'OK') {
if(results.length == 0) {
document.getElementById('formatedAddress').innerHTML = 'None';
} else {
document.getElementById('formatedAddress').innerHTML = results[0].formatted_address;
}
} else {
document.getElementById('formatedAddress').innerHTML = 'Error';
}
}
function geocode() {
var address = document.getElementById("address").value;
geocoder.geocode({
'address': address,
'partialmatch': true}, geocodeResult);
}
function geocodeResult(results, status) {
if (status == 'OK' && results.length > 0) {
map.fitBounds(results[0].geometry.viewport);
} else {
alert("Info: " + status);
}
}
</script>
Find Place: <input type="text" id="address" size="40" onKeyDown="if(event.keyCode==13){geocode();}" />
<input type="button" style = "cursor: pointer;" value=" Go " onclick="geocode()">
<div id="map">
<div id="map_canvas" style="width:<?=$map_width?>; height:<?=$map_height?>;"></div>
<div id="crosshair"></div>
</div>
<table>
<tr><td>Lat/Lng:</td><td><div id="latlng"></div></td></tr>
<tr><td>Address:</td><td><div id="formatedAddress"></div></td></tr>
<tr><td>Zoom:</td><td><div id="zoom_level">12</div></td></tr>
</table>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td class=write_head>사람/행사명</td>
<td><input type='text' class=ed size=20 name='wr_1' itemname='행사명' value='<?=$write[wr_1]?>'> 사람이름 또는 행사명 </td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<TR>
<TD class=write_head>날자/장소</TD>
<TD >
<div id="bodyWrap" style="margin-left:auto;margin-right:auto;text-align:left;">
<div style="float:left;margin-right:15px;">
<input type=text class=ed name='wr_2' value='<?=$write[wr_2]?>' onclick="win_calendar('wr_2', '<?=$write[wr_2]?>','');"
readonly title='여기 클릭하면 달력이 나와요.'> 날자
</div>
<div style="float:left;margin-right:12px;">
<input type='text' class=ed size=10 name='wr_3' itemname='시간' value='<?=$write[wr_3]?>'> 예) <?=date("H:i");?>
</div>
<div style="float:right;">
<input type='text' class=ed size=20 name='wr_4' itemname='행사장소' value='<?=$write[wr_4]?>'> 장소
</div>
</div>
</TD>
</TR>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr height="30">
<td class=write_head> 사용법</td>
<td class=write_head2 align='left'>
* 원하는 본문의 위치에 그림수 많큼 <font color=red>//##</font> 라고 기록하십시요. <font color=red>3부터 2설정따름</font><br>
- 넓이기준이면 넓이를 자르고, 높이기준이면 높이를 자름<br>
* <font color=blue>썸위치</font> - 썸네일이 본문과 관계하여 정해지는 위치 <font color=red>C</font>=center <font color=red>R</font>=right <font color=red>L</font>=left<br>
* <font color=blue>썸부위</font> - 그림을 자르는 위치 <font color=red>1</font>=좌or상, <font color=red>2</font>=중앙, <font color=red>3</font>=우or하<br>
* <font color=blue>마크위치</font> - 워터마크가 자리하는 위치 <font color=red>x</font> 워터마크사용하지 않음, <font color=red>2</font> 상단오른쪽, <font color=red>4</font> 하단오른쪽<br>
* <font color=blue>썸넬넓이</font> - 썸네일의 넓이를 설정, * <font color=blue>썸넬높이</font> - 썸네일의 높이를 설정<br>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr height="30">
<td class=write_head> 그림1설정</td>
<td><table cellpadding=0 cellspacing=0><tr>
<td class=write_head2 style="padding-right:3;">
<select class="ed" name="wr_5" itemname='썸기준마크위치1'>
<option value=''>썸옵션</option>
<option value='C/1/x' <? if($write[wr_5] == 'C/1/x') echo " selected "; ?>>C/1/x</option>
<option value='C/1/2' <? if($write[wr_5] == 'C/1/2') echo " selected "; ?>>C/1/2</option>
<option value='C/1/4' <? if($write[wr_5] == 'C/1/4') echo " selected "; ?>>C/1/4</option>
<option value='C/2/x' <? if($write[wr_5] == 'C/2/x') echo " selected "; ?>>C/2/x</option>
<option value='C/2/2' <? if($write[wr_5] == 'C/2/3') echo " selected "; ?>>C/2/4</option>
<option value='C/2/4' <? if($write[wr_5] == 'C/2/4') echo " selected "; ?>>C/2/4</option>
<option value='C/3/x' <? if($write[wr_5] == 'C/3/x') echo " selected "; ?>>C/3/x</option>
<option value='C/3/2' <? if($write[wr_5] == 'C/3/2') echo " selected "; ?>>C/3/2</option>
<option value='C/3/4' <? if($write[wr_5] == 'C/3/4') echo " selected "; ?>>C/3/4</option>
<option value='R/1/x' <? if($write[wr_5] == 'R/1/x') echo " selected "; ?>>R/1/x</option>
<option value='R/1/2' <? if($write[wr_5] == 'R/1/2') echo " selected "; ?>>R/1/2</option>
<option value='R/1/4' <? if($write[wr_5] == 'R/1/4') echo " selected "; ?>>R/1/4</option>
<option value='R/2/x' <? if($write[wr_5] == 'R/2/x') echo " selected "; ?>>R/2/x</option>
<option value='R/2/2' <? if($write[wr_5] == 'R/2/3') echo " selected "; ?>>R/2/4</option>
<option value='R/2/4' <? if($write[wr_5] == 'R/2/4') echo " selected "; ?>>R/2/4</option>
<option value='R/3/x' <? if($write[wr_5] == 'R/3/x') echo " selected "; ?>>R/3/x</option>
<option value='R/3/2' <? if($write[wr_5] == 'R/3/2') echo " selected "; ?>>R/3/2</option>
<option value='R/3/4' <? if($write[wr_5] == 'R/3/4') echo " selected "; ?>>R/3/4</option>
<option value='L/1/x' <? if($write[wr_5] == 'L/1/x') echo " selected "; ?>>L/1/x</option>
<option value='L/1/2' <? if($write[wr_5] == 'L/1/2') echo " selected "; ?>>L/1/2</option>
<option value='L/1/4' <? if($write[wr_5] == 'L/1/4') echo " selected "; ?>>L/1/4</option>
<option value='L/2/x' <? if($write[wr_5] == 'L/2/x') echo " selected "; ?>>L/2/x</option>
<option value='L/2/2' <? if($write[wr_5] == 'L/2/2') echo " selected "; ?>>L/2/2</option>
<option value='L/2/4' <? if($write[wr_5] == 'L/2/4') echo " selected "; ?>>L/2/4</option>
<option value='L/3/x' <? if($write[wr_5] == 'L/3/x') echo " selected "; ?>>L/3/x</option>
<option value='L/3/2' <? if($write[wr_5] == 'L/3/2') echo " selected "; ?>>L/3/2</option>
<option value='L/3/4' <? if($write[wr_5] == 'L/3/4') echo " selected "; ?>>L/3/4</option>
</select>
</td>
<td class=write_head2 style="padding-right:3;">
<select class="ed" name="wr_6" itemname='썸넬넓이1'>
<option value=''>넓이</option>
<option value='100' <? if($write[wr_6] == '100') echo " selected "; ?>>100</option>
<option value='120' <? if($write[wr_6] == '120') echo " selected "; ?>>120</option>
<option value='140' <? if($write[wr_6] == '140') echo " selected "; ?>>140</option>
<option value='160' <? if($write[wr_6] == '150') echo " selected "; ?>>160</option>
<option value='180' <? if($write[wr_6] == '180') echo " selected "; ?>>180</option>
<option value='200' <? if($write[wr_6] == '200') echo " selected "; ?>>200</option>
<option value='220' <? if($write[wr_6] == '220') echo " selected "; ?>>220</option>
<option value='240' <? if($write[wr_6] == '240') echo " selected "; ?>>240</option>
<option value='260' <? if($write[wr_6] == '260') echo " selected "; ?>>260</option>
<option value='280' <? if($write[wr_6] == '280') echo " selected "; ?>>280</option>
<option value='300' <? if($write[wr_6] == '300') echo " selected "; ?>>300</option>
<option value='330' <? if($write[wr_6] == '330') echo " selected "; ?>>330</option>
<option value='350' <? if($write[wr_6] == '350') echo " selected "; ?>>350</option>
<option value='370' <? if($write[wr_6] == '370') echo " selected "; ?>>370</option>
<option value='400' <? if($write[wr_6] == '400') echo " selected "; ?>>400</option>
<option value='430' <? if($write[wr_6] == '430') echo " selected "; ?>>430</option>
<option value='450' <? if($write[wr_6] == '450') echo " selected "; ?>>450</option>
<option value='470' <? if($write[wr_6] == '470') echo " selected "; ?>>470</option>
<option value='500' <? if($write[wr_6] == '500') echo " selected "; ?>>500</option>
<option value='530' <? if($write[wr_6] == '530') echo " selected "; ?>>530</option>
<option value='550' <? if($write[wr_6] == '550') echo " selected "; ?>>550</option>
<option value='570' <? if($write[wr_6] == '570') echo " selected "; ?>>570</option>
<option value='600' <? if($write[wr_6] == '600') echo " selected "; ?>>600</option>
<option value='630' <? if($write[wr_6] == '630') echo " selected "; ?>>630</option>
<option value='650' <? if($write[wr_6] == '650') echo " selected "; ?>>650</option>
</select>
</td>
<td class=write_head2 style="padding-right:3;">
<select class="ed" name="wr_7" itemname='썸넬넓이1'>
<option value=''>높이</option>
<option value='100' <? if($write[wr_7] == '100') echo " selected "; ?>>100</option>
<option value='120' <? if($write[wr_7] == '120') echo " selected "; ?>>120</option>
<option value='140' <? if($write[wr_7] == '140') echo " selected "; ?>>140</option>
<option value='160' <? if($write[wr_7] == '150') echo " selected "; ?>>160</option>
<option value='180' <? if($write[wr_7] == '180') echo " selected "; ?>>180</option>
<option value='200' <? if($write[wr_7] == '200') echo " selected "; ?>>200</option>
<option value='220' <? if($write[wr_7] == '220') echo " selected "; ?>>220</option>
<option value='240' <? if($write[wr_7] == '240') echo " selected "; ?>>240</option>
<option value='260' <? if($write[wr_7] == '260') echo " selected "; ?>>260</option>
<option value='280' <? if($write[wr_7] == '280') echo " selected "; ?>>280</option>
<option value='300' <? if($write[wr_7] == '300') echo " selected "; ?>>300</option>
<option value='330' <? if($write[wr_7] == '330') echo " selected "; ?>>330</option>
<option value='350' <? if($write[wr_7] == '350') echo " selected "; ?>>350</option>
<option value='370' <? if($write[wr_7] == '370') echo " selected "; ?>>370</option>
<option value='400' <? if($write[wr_7] == '400') echo " selected "; ?>>400</option>
<option value='430' <? if($write[wr_7] == '430') echo " selected "; ?>>430</option>
<option value='450' <? if($write[wr_7] == '450') echo " selected "; ?>>450</option>
<option value='470' <? if($write[wr_7] == '470') echo " selected "; ?>>470</option>
<option value='500' <? if($write[wr_7] == '500') echo " selected "; ?>>500</option>
<option value='530' <? if($write[wr_7] == '530') echo " selected "; ?>>530</option>
<option value='550' <? if($write[wr_7] == '550') echo " selected "; ?>>550</option>
<option value='570' <? if($write[wr_7] == '570') echo " selected "; ?>>570</option>
<option value='600' <? if($write[wr_7] == '600') echo " selected "; ?>>600</option>
<option value='630' <? if($write[wr_7] == '630') echo " selected "; ?>>630</option>
<option value='650' <? if($write[wr_7] == '650') echo " selected "; ?>>650</option>
</select>
<font color=red>높이설정없으면 넓이중심모양유지, 넓이설정없으면 높이중심모양유지</font>
</td>
</tr></table></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
<? } ?>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<? if ($is_link) { ?>
<? for ($i=1; $i<=$g4[link_count]; $i++) { ?>
<tr>
<td class=write_head>링크 #<?=$i?></td>
<td><input type='text' class='ed' size=50 name='wr_link<?=$i?>' itemname='링크 #<?=$i?>' value='<?=$write["wr_link{$i}"]?>'></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? } ?>
<? if ($is_file) { ?>
<tr>
<td class=write_head>
<table cellpadding=0 cellspacing=0>
<tr>
<td class=write_head style="padding-top:10px; line-height:20px;">
파일첨부<br>
<span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif"></span>
<span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif"></span>
</td>
</tr>
</table>
</td>
<td style='padding:5 0 5 0;'><table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
<script type="text/javascript">
var flen = 0;
function add_file(delete_code)
{
var upload_count = <?=(int)$board[bo_upload_count]?>;
if (upload_count && flen >= upload_count)
{
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
return;
}
var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);
objCell.innerHTML = "<input type='file' class='ed' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' class='ed' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
<? } ?>
;
}
flen++;
}
<?=$file_script; //수정시에 필요한 스크립트?>
function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
{
objTbl.deleteRow(objTbl.rows.length - 1);
flen--;
}
}
</script></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_trackback) { ?>
<tr>
<td class=write_head>트랙백주소</td>
<td><input class='ed' size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
<? if ($w=="u") { ?><input type=checkbox name="re_trackback" value="1">핑 보냄<? } ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_guest) { ?>
<tr>
<td class=write_head><img id='kcaptcha_image' /></td>
<td><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required> 왼쪽의 글자를 입력하세요.</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" valign="top" style="padding-top:30px;">
<input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'>
<a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a></td>
</tr>
</table>
</td></tr></table>
</form>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>
with (document.fwrite)
{
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
if (typeof(ca_name) != "undefined")
if (w.value == "u")
ca_name.value = "<?=$write[ca_name]?>";
}
function html_auto_br(obj)
{
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_submit(f)
{
/*
var s = "";
if (s = word_filter_check(f.wr_subject.value)) {
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return false;
}
if (s = word_filter_check(f.wr_content.value)) {
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return false;
}
*/
if (document.getElementById('char_count')) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
}
if (document.getElementById('tx_wr_content')) {
if (!ed_wr_content.outputBodyText()) {
alert('내용을 입력하십시오.');
ed_wr_content.returnFalse();
return false;
}
}
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
?>
var subject = "";
var content = "";
$.ajax({
url: "<?=$board_skin_path?>/ajax.filter.php",
type: "POST",
data: {
"subject": f.wr_subject.value,
"content": f.wr_content.value
},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
subject = data.subject;
content = data.content;
}
});
if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
f.wr_subject.focus();
return false;
}
if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
if (typeof(ed_wr_content) != "undefined")
ed_wr_content.returnFalse();
else
f.wr_content.focus();
return false;
}
if (!check_kcaptcha(f.wr_key)) {
return false;
}
document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>
return true;
}
</script>
<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
<script type="text/javascript"> window.onload=function() { drawFont(); } </script>
<!-- 구글지도 보기 -->
<script type="text/javascript">
// window.onload 스크립트 실행
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(initialize);
</script>
1)달력 날자 선택메뉴가 (자바) 나오지 않는데 방법은 어떻게 하는지요
2) wr_id 메세지 글쓰기 안됨
------------------초보자 문의 write.skin.php 수정 부분 부탁 드립니다 -------------
<?
// v1.1 map api http://www.neosoft.co.kr/map/
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 썸네일소스는 유창화님자료.
// http://sir.co.kr/bbs/board.php?bo_table=tip_php&wr_id=985
// http://sir.co.kr/bbs/board.php?bo_table=tip_php&wr_id=1087
// 위 두 소스를 아래 링크의 자료로 통폐합 간단화 한것이 image_proc.function.php
// http://sir.co.kr/bbs/board.php?bo_table=pg_php&wr_id=1204&sca=&sfl=&stx=&spt=0&page=1
// 응용방식은 플록님의 것.
// 섬네일의 위치방식은 오달수님의 방식.
// 뷰썸네일설정 단순화는 관리자님 지도.
// 프린트기능은 션션님자료
// 뷰썸네일그림설정은 3개까지. 4부터는 3설정따름
///////////////////////////////////////////////////////////////////////////////////
/////
///// 유창화썸네일의 모든 옵션을 사용가능하게 함
///// 썸네일부위,썸네일넓이,썸네일높이,워터마크위치,워터마크선명도,언샵기능....
///// 중간에 그림문서 아닌 것이 삽입되어도 상관없이 썸네일화
///// 리스트에서 에딛그림(웹그림)도 썸네일화
/////
///////////////////////////////////////////////////////////////////////////////////
$apikey=$board['bo_1']; // 실제로는 사용치 않음
$map_width="600";
$map_height="350";
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
<div style="height:14px; line-height:1px; font-size:1px;"> </div>
<style type="text/css">
.write_head { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
</style>
<script type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=wr_9 value="<?=$write['wr_9']?>"> <!--지도 x좌표-->
<input type=hidden name=wr_10 value="<?=$write['wr_10']?>"> <!--지도 y좌표-->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
<div style="font-weight:bold; font-size:14px; margin:7px 0 0 10px;">:: <?=$title_msg?> ::</div>
</div>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=90>
<colgroup width=''>
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td></tr>
<? if ($is_name) { ?>
<tr>
<td class=write_head>이 름</td>
<td><input class='ed' maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_password) { ?>
<tr>
<td class=write_head>패스워드</td>
<td><input class='ed' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_email) { ?>
<tr>
<td class=write_head>이메일</td>
<td><input class='ed' maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_homepage) { ?>
<tr>
<td class=write_head>홈페이지</td>
<td><input class='ed' size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
if ($is_notice) {
$option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "<input type=hidden value='html1' name='html'>";
} else {
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
} else {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
}
}
if ($is_mail) {
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
}
}
echo $option_hidden;
if ($option) {
?>
<tr>
<td class=write_head>옵 션</td>
<td><?=$option?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_category) { ?>
<tr>
<td class=write_head>분 류</td>
<td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<tr>
<td class=write_head>제 목</td>
<td><input class='ed' style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>">
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head>지 도</td>
<td>
<div>
<?
if($write[wr_8] != '미사용') {
echo "<input type='radio' id=r1 name='wr_8' value='사용' checked>지도 사용";
echo "<input type='radio' id=r2 name='wr_8' value='미사용'>지도 미사용";
} else {
echo "<input type='radio' id=r1 name='wr_8' value='사용'>지도 사용";
echo "<input type='radio' id=r2 name='wr_8' value='미사용' checked>지도 미사용";
}
?>
</div>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=ko"></script>
<?
if ($write['wr_9']=='') $write['wr_9']='37.566535';
if ($write['wr_10']=='') $write['wr_10']='126.977969';
?>
<script type="text/javascript">
// 구글지도
var map;
var geocoder;
var centerChangedLast;
var reverseGeocodedLast;
var currentReverseGeocodeResponse;
function initialize() {
var latlng = new google.maps.LatLng(<?=$write['wr_9']?>, <?=$write['wr_10']?>);
var myOptions = {
zoom: 12,
scaleControl: true,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
geocoder = new google.maps.Geocoder();
// 리스너 Listener ////////////////////////////////////////////////////
google.maps.event.addListener(map, 'zoom_changed', function() {
document.getElementById("zoom_level").innerHTML = map.getZoom();
zoomLevel = map.getZoom();
if (zoomLevel > 19) {
map.setZoom(19);
}
if (zoomLevel < 1) {
map.setZoom(1);
}
});
setupEvents();
centerChanged();
}
function setupEvents() {
reverseGeocodedLast = new Date();
centerChangedLast = new Date();
setInterval(function() {
if((new Date()).getSeconds() - centerChangedLast.getSeconds() > 1) {
if(reverseGeocodedLast.getTime() < centerChangedLast.getTime())
reverseGeocode();
}
}, 1000);
google.maps.event.addListener(map, 'center_changed', centerChanged);
google.maps.event.addDomListener(document.getElementById('crosshair'),'dblclick', function() {
map.setZoom(map.getZoom() + 1);
});
}
function getCenterLatLngText() {
var nn = 1000000;
var tmpLat = Math.round(map.getCenter().lat()*nn)/nn;
var tmpLng = Math.round(map.getCenter().lng()*nn)/nn;
document.fwrite.wr_9.value = tmpLat;
document.fwrite.wr_10.value = tmpLng;
return tmpLat +', '+ tmpLng;
}
function centerChanged() {
centerChangedLast = new Date();
var latlng = getCenterLatLngText();
document.getElementById('latlng').innerHTML = latlng;
document.getElementById('formatedAddress').innerHTML = '';
currentReverseGeocodeResponse = null;
}
function reverseGeocode() {
reverseGeocodedLast = new Date();
geocoder.geocode({latLng:map.getCenter()},reverseGeocodeResult);
}
function reverseGeocodeResult(results, status) {
currentReverseGeocodeResponse = results;
if(status == 'OK') {
if(results.length == 0) {
document.getElementById('formatedAddress').innerHTML = 'None';
} else {
document.getElementById('formatedAddress').innerHTML = results[0].formatted_address;
}
} else {
document.getElementById('formatedAddress').innerHTML = 'Error';
}
}
function geocode() {
var address = document.getElementById("address").value;
geocoder.geocode({
'address': address,
'partialmatch': true}, geocodeResult);
}
function geocodeResult(results, status) {
if (status == 'OK' && results.length > 0) {
map.fitBounds(results[0].geometry.viewport);
} else {
alert("Info: " + status);
}
}
</script>
Find Place: <input type="text" id="address" size="40" onKeyDown="if(event.keyCode==13){geocode();}" />
<input type="button" style = "cursor: pointer;" value=" Go " onclick="geocode()">
<div id="map">
<div id="map_canvas" style="width:<?=$map_width?>; height:<?=$map_height?>;"></div>
<div id="crosshair"></div>
</div>
<table>
<tr><td>Lat/Lng:</td><td><div id="latlng"></div></td></tr>
<tr><td>Address:</td><td><div id="formatedAddress"></div></td></tr>
<tr><td>Zoom:</td><td><div id="zoom_level">12</div></td></tr>
</table>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td class=write_head>사람/행사명</td>
<td><input type='text' class=ed size=20 name='wr_1' itemname='행사명' value='<?=$write[wr_1]?>'> 사람이름 또는 행사명 </td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<TR>
<TD class=write_head>날자/장소</TD>
<TD >
<div id="bodyWrap" style="margin-left:auto;margin-right:auto;text-align:left;">
<div style="float:left;margin-right:15px;">
<input type=text class=ed name='wr_2' value='<?=$write[wr_2]?>' onclick="win_calendar('wr_2', '<?=$write[wr_2]?>','');"
readonly title='여기 클릭하면 달력이 나와요.'> 날자
</div>
<div style="float:left;margin-right:12px;">
<input type='text' class=ed size=10 name='wr_3' itemname='시간' value='<?=$write[wr_3]?>'> 예) <?=date("H:i");?>
</div>
<div style="float:right;">
<input type='text' class=ed size=20 name='wr_4' itemname='행사장소' value='<?=$write[wr_4]?>'> 장소
</div>
</div>
</TD>
</TR>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr height="30">
<td class=write_head> 사용법</td>
<td class=write_head2 align='left'>
* 원하는 본문의 위치에 그림수 많큼 <font color=red>//##</font> 라고 기록하십시요. <font color=red>3부터 2설정따름</font><br>
- 넓이기준이면 넓이를 자르고, 높이기준이면 높이를 자름<br>
* <font color=blue>썸위치</font> - 썸네일이 본문과 관계하여 정해지는 위치 <font color=red>C</font>=center <font color=red>R</font>=right <font color=red>L</font>=left<br>
* <font color=blue>썸부위</font> - 그림을 자르는 위치 <font color=red>1</font>=좌or상, <font color=red>2</font>=중앙, <font color=red>3</font>=우or하<br>
* <font color=blue>마크위치</font> - 워터마크가 자리하는 위치 <font color=red>x</font> 워터마크사용하지 않음, <font color=red>2</font> 상단오른쪽, <font color=red>4</font> 하단오른쪽<br>
* <font color=blue>썸넬넓이</font> - 썸네일의 넓이를 설정, * <font color=blue>썸넬높이</font> - 썸네일의 높이를 설정<br>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr height="30">
<td class=write_head> 그림1설정</td>
<td><table cellpadding=0 cellspacing=0><tr>
<td class=write_head2 style="padding-right:3;">
<select class="ed" name="wr_5" itemname='썸기준마크위치1'>
<option value=''>썸옵션</option>
<option value='C/1/x' <? if($write[wr_5] == 'C/1/x') echo " selected "; ?>>C/1/x</option>
<option value='C/1/2' <? if($write[wr_5] == 'C/1/2') echo " selected "; ?>>C/1/2</option>
<option value='C/1/4' <? if($write[wr_5] == 'C/1/4') echo " selected "; ?>>C/1/4</option>
<option value='C/2/x' <? if($write[wr_5] == 'C/2/x') echo " selected "; ?>>C/2/x</option>
<option value='C/2/2' <? if($write[wr_5] == 'C/2/3') echo " selected "; ?>>C/2/4</option>
<option value='C/2/4' <? if($write[wr_5] == 'C/2/4') echo " selected "; ?>>C/2/4</option>
<option value='C/3/x' <? if($write[wr_5] == 'C/3/x') echo " selected "; ?>>C/3/x</option>
<option value='C/3/2' <? if($write[wr_5] == 'C/3/2') echo " selected "; ?>>C/3/2</option>
<option value='C/3/4' <? if($write[wr_5] == 'C/3/4') echo " selected "; ?>>C/3/4</option>
<option value='R/1/x' <? if($write[wr_5] == 'R/1/x') echo " selected "; ?>>R/1/x</option>
<option value='R/1/2' <? if($write[wr_5] == 'R/1/2') echo " selected "; ?>>R/1/2</option>
<option value='R/1/4' <? if($write[wr_5] == 'R/1/4') echo " selected "; ?>>R/1/4</option>
<option value='R/2/x' <? if($write[wr_5] == 'R/2/x') echo " selected "; ?>>R/2/x</option>
<option value='R/2/2' <? if($write[wr_5] == 'R/2/3') echo " selected "; ?>>R/2/4</option>
<option value='R/2/4' <? if($write[wr_5] == 'R/2/4') echo " selected "; ?>>R/2/4</option>
<option value='R/3/x' <? if($write[wr_5] == 'R/3/x') echo " selected "; ?>>R/3/x</option>
<option value='R/3/2' <? if($write[wr_5] == 'R/3/2') echo " selected "; ?>>R/3/2</option>
<option value='R/3/4' <? if($write[wr_5] == 'R/3/4') echo " selected "; ?>>R/3/4</option>
<option value='L/1/x' <? if($write[wr_5] == 'L/1/x') echo " selected "; ?>>L/1/x</option>
<option value='L/1/2' <? if($write[wr_5] == 'L/1/2') echo " selected "; ?>>L/1/2</option>
<option value='L/1/4' <? if($write[wr_5] == 'L/1/4') echo " selected "; ?>>L/1/4</option>
<option value='L/2/x' <? if($write[wr_5] == 'L/2/x') echo " selected "; ?>>L/2/x</option>
<option value='L/2/2' <? if($write[wr_5] == 'L/2/2') echo " selected "; ?>>L/2/2</option>
<option value='L/2/4' <? if($write[wr_5] == 'L/2/4') echo " selected "; ?>>L/2/4</option>
<option value='L/3/x' <? if($write[wr_5] == 'L/3/x') echo " selected "; ?>>L/3/x</option>
<option value='L/3/2' <? if($write[wr_5] == 'L/3/2') echo " selected "; ?>>L/3/2</option>
<option value='L/3/4' <? if($write[wr_5] == 'L/3/4') echo " selected "; ?>>L/3/4</option>
</select>
</td>
<td class=write_head2 style="padding-right:3;">
<select class="ed" name="wr_6" itemname='썸넬넓이1'>
<option value=''>넓이</option>
<option value='100' <? if($write[wr_6] == '100') echo " selected "; ?>>100</option>
<option value='120' <? if($write[wr_6] == '120') echo " selected "; ?>>120</option>
<option value='140' <? if($write[wr_6] == '140') echo " selected "; ?>>140</option>
<option value='160' <? if($write[wr_6] == '150') echo " selected "; ?>>160</option>
<option value='180' <? if($write[wr_6] == '180') echo " selected "; ?>>180</option>
<option value='200' <? if($write[wr_6] == '200') echo " selected "; ?>>200</option>
<option value='220' <? if($write[wr_6] == '220') echo " selected "; ?>>220</option>
<option value='240' <? if($write[wr_6] == '240') echo " selected "; ?>>240</option>
<option value='260' <? if($write[wr_6] == '260') echo " selected "; ?>>260</option>
<option value='280' <? if($write[wr_6] == '280') echo " selected "; ?>>280</option>
<option value='300' <? if($write[wr_6] == '300') echo " selected "; ?>>300</option>
<option value='330' <? if($write[wr_6] == '330') echo " selected "; ?>>330</option>
<option value='350' <? if($write[wr_6] == '350') echo " selected "; ?>>350</option>
<option value='370' <? if($write[wr_6] == '370') echo " selected "; ?>>370</option>
<option value='400' <? if($write[wr_6] == '400') echo " selected "; ?>>400</option>
<option value='430' <? if($write[wr_6] == '430') echo " selected "; ?>>430</option>
<option value='450' <? if($write[wr_6] == '450') echo " selected "; ?>>450</option>
<option value='470' <? if($write[wr_6] == '470') echo " selected "; ?>>470</option>
<option value='500' <? if($write[wr_6] == '500') echo " selected "; ?>>500</option>
<option value='530' <? if($write[wr_6] == '530') echo " selected "; ?>>530</option>
<option value='550' <? if($write[wr_6] == '550') echo " selected "; ?>>550</option>
<option value='570' <? if($write[wr_6] == '570') echo " selected "; ?>>570</option>
<option value='600' <? if($write[wr_6] == '600') echo " selected "; ?>>600</option>
<option value='630' <? if($write[wr_6] == '630') echo " selected "; ?>>630</option>
<option value='650' <? if($write[wr_6] == '650') echo " selected "; ?>>650</option>
</select>
</td>
<td class=write_head2 style="padding-right:3;">
<select class="ed" name="wr_7" itemname='썸넬넓이1'>
<option value=''>높이</option>
<option value='100' <? if($write[wr_7] == '100') echo " selected "; ?>>100</option>
<option value='120' <? if($write[wr_7] == '120') echo " selected "; ?>>120</option>
<option value='140' <? if($write[wr_7] == '140') echo " selected "; ?>>140</option>
<option value='160' <? if($write[wr_7] == '150') echo " selected "; ?>>160</option>
<option value='180' <? if($write[wr_7] == '180') echo " selected "; ?>>180</option>
<option value='200' <? if($write[wr_7] == '200') echo " selected "; ?>>200</option>
<option value='220' <? if($write[wr_7] == '220') echo " selected "; ?>>220</option>
<option value='240' <? if($write[wr_7] == '240') echo " selected "; ?>>240</option>
<option value='260' <? if($write[wr_7] == '260') echo " selected "; ?>>260</option>
<option value='280' <? if($write[wr_7] == '280') echo " selected "; ?>>280</option>
<option value='300' <? if($write[wr_7] == '300') echo " selected "; ?>>300</option>
<option value='330' <? if($write[wr_7] == '330') echo " selected "; ?>>330</option>
<option value='350' <? if($write[wr_7] == '350') echo " selected "; ?>>350</option>
<option value='370' <? if($write[wr_7] == '370') echo " selected "; ?>>370</option>
<option value='400' <? if($write[wr_7] == '400') echo " selected "; ?>>400</option>
<option value='430' <? if($write[wr_7] == '430') echo " selected "; ?>>430</option>
<option value='450' <? if($write[wr_7] == '450') echo " selected "; ?>>450</option>
<option value='470' <? if($write[wr_7] == '470') echo " selected "; ?>>470</option>
<option value='500' <? if($write[wr_7] == '500') echo " selected "; ?>>500</option>
<option value='530' <? if($write[wr_7] == '530') echo " selected "; ?>>530</option>
<option value='550' <? if($write[wr_7] == '550') echo " selected "; ?>>550</option>
<option value='570' <? if($write[wr_7] == '570') echo " selected "; ?>>570</option>
<option value='600' <? if($write[wr_7] == '600') echo " selected "; ?>>600</option>
<option value='630' <? if($write[wr_7] == '630') echo " selected "; ?>>630</option>
<option value='650' <? if($write[wr_7] == '650') echo " selected "; ?>>650</option>
</select>
<font color=red>높이설정없으면 넓이중심모양유지, 넓이설정없으면 높이중심모양유지</font>
</td>
</tr></table></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
<? } ?>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<? if ($is_link) { ?>
<? for ($i=1; $i<=$g4[link_count]; $i++) { ?>
<tr>
<td class=write_head>링크 #<?=$i?></td>
<td><input type='text' class='ed' size=50 name='wr_link<?=$i?>' itemname='링크 #<?=$i?>' value='<?=$write["wr_link{$i}"]?>'></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? } ?>
<? if ($is_file) { ?>
<tr>
<td class=write_head>
<table cellpadding=0 cellspacing=0>
<tr>
<td class=write_head style="padding-top:10px; line-height:20px;">
파일첨부<br>
<span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif"></span>
<span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif"></span>
</td>
</tr>
</table>
</td>
<td style='padding:5 0 5 0;'><table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
<script type="text/javascript">
var flen = 0;
function add_file(delete_code)
{
var upload_count = <?=(int)$board[bo_upload_count]?>;
if (upload_count && flen >= upload_count)
{
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
return;
}
var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);
objCell.innerHTML = "<input type='file' class='ed' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' class='ed' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
<? } ?>
;
}
flen++;
}
<?=$file_script; //수정시에 필요한 스크립트?>
function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
{
objTbl.deleteRow(objTbl.rows.length - 1);
flen--;
}
}
</script></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_trackback) { ?>
<tr>
<td class=write_head>트랙백주소</td>
<td><input class='ed' size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
<? if ($w=="u") { ?><input type=checkbox name="re_trackback" value="1">핑 보냄<? } ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_guest) { ?>
<tr>
<td class=write_head><img id='kcaptcha_image' /></td>
<td><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required> 왼쪽의 글자를 입력하세요.</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" valign="top" style="padding-top:30px;">
<input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'>
<a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a></td>
</tr>
</table>
</td></tr></table>
</form>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>
with (document.fwrite)
{
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
if (typeof(ca_name) != "undefined")
if (w.value == "u")
ca_name.value = "<?=$write[ca_name]?>";
}
function html_auto_br(obj)
{
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_submit(f)
{
/*
var s = "";
if (s = word_filter_check(f.wr_subject.value)) {
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return false;
}
if (s = word_filter_check(f.wr_content.value)) {
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return false;
}
*/
if (document.getElementById('char_count')) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
}
if (document.getElementById('tx_wr_content')) {
if (!ed_wr_content.outputBodyText()) {
alert('내용을 입력하십시오.');
ed_wr_content.returnFalse();
return false;
}
}
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
?>
var subject = "";
var content = "";
$.ajax({
url: "<?=$board_skin_path?>/ajax.filter.php",
type: "POST",
data: {
"subject": f.wr_subject.value,
"content": f.wr_content.value
},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
subject = data.subject;
content = data.content;
}
});
if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
f.wr_subject.focus();
return false;
}
if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
if (typeof(ed_wr_content) != "undefined")
ed_wr_content.returnFalse();
else
f.wr_content.focus();
return false;
}
if (!check_kcaptcha(f.wr_key)) {
return false;
}
document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>
return true;
}
</script>
<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
<script type="text/javascript"> window.onload=function() { drawFont(); } </script>
<!-- 구글지도 보기 -->
<script type="text/javascript">
// window.onload 스크립트 실행
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(initialize);
</script>
1
달력문제에 관한 이전의 질문에 대해서 제가 잘못이해했어요.
달력이 안나오게 하고 싶다는 뜻으로 알았어요.
------
글쓰는 부분에 클릭해도 달력인 안나온다는 말씀이신가요?
제가 님의 질문에 충분한 답변을 할많한 실력은 안됩니다.
하지만 제가살핀바로는, 님의 그누보드버전이 몇인지 모르겠는대요...
팝업달력은 그누보드내장달력을 사용합니다.
따라서 그누보드가 충분히 제대로 깔린 것 같지가 않아요.
그누보드를 다시 깔만한 상황이 아니라면,
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=91244&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EB%8B%AC%EB%A0%A5&sop=and&page=5
여기를 보시고 한번 수정해보세요.
2
두번째 문제는
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=184466
의 님의 댓글을 보시고 다시 시도해보세요.
링크의 아래댓글 전체를 참조하세요.
달력문제에 관한 이전의 질문에 대해서 제가 잘못이해했어요.
달력이 안나오게 하고 싶다는 뜻으로 알았어요.
------
글쓰는 부분에 클릭해도 달력인 안나온다는 말씀이신가요?
제가 님의 질문에 충분한 답변을 할많한 실력은 안됩니다.
하지만 제가살핀바로는, 님의 그누보드버전이 몇인지 모르겠는대요...
팝업달력은 그누보드내장달력을 사용합니다.
따라서 그누보드가 충분히 제대로 깔린 것 같지가 않아요.
그누보드를 다시 깔만한 상황이 아니라면,
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=91244&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EB%8B%AC%EB%A0%A5&sop=and&page=5
여기를 보시고 한번 수정해보세요.
2
두번째 문제는
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=184466
의 님의 댓글을 보시고 다시 시도해보세요.
링크의 아래댓글 전체를 참조하세요.
첫번문제는
1
bbs/calendar.php 가 있는지 확인하시고,
2
사용하시는 member 스킨에서 calendar.skin.php 화일이 있는지 확인하시고,
3
js/common.js에서
----------
function win_calendar(fld, cur_date, delimiter, opt)
{
if (!opt)
opt = "left=50, top=50, width=240, height=230, scrollbars=0,status=0,resizable=0";
win_open(g4_path+"/" + g4_bbs + "/calendar.php?fld="+fld+"&cur_date="+cur_date+"&delimiter="+delimiter, "winCalendar", opt);
}
----------
이 있는지 확인하세요.
그 후에 위 댓글 진행해보세요.
1
bbs/calendar.php 가 있는지 확인하시고,
2
사용하시는 member 스킨에서 calendar.skin.php 화일이 있는지 확인하시고,
3
js/common.js에서
----------
function win_calendar(fld, cur_date, delimiter, opt)
{
if (!opt)
opt = "left=50, top=50, width=240, height=230, scrollbars=0,status=0,resizable=0";
win_open(g4_path+"/" + g4_bbs + "/calendar.php?fld="+fld+"&cur_date="+cur_date+"&delimiter="+delimiter, "winCalendar", opt);
}
----------
이 있는지 확인하세요.
그 후에 위 댓글 진행해보세요.
감사합니다. 스킨 올려주시는분들 모두 복받으실 거에요.. ^^;
솔해님도 복 많이 받으세요.
- 교회 접목 테스트 -
자료 감사합니다.
자료 감사합니다.
올려주신 자료를 아무것도 수정하지 않고
썸네일만 다운받아 lib폴더에 추가한 후 테스트해보니
날짜부분 클릭하면 달력창이 뜨는데,,, 클릭이 될 것처럼 마우스 포인트가 손가락으로 바뀌나
날짜를 클릭해도 적용이 안됩니다 ㅠㅠ
bbs/calendar.php 오류로 나오는군요
썸네일만 다운받아 lib폴더에 추가한 후 테스트해보니
날짜부분 클릭하면 달력창이 뜨는데,,, 클릭이 될 것처럼 마우스 포인트가 손가락으로 바뀌나
날짜를 클릭해도 적용이 안됩니다 ㅠㅠ
bbs/calendar.php 오류로 나오는군요
감사합니다. 추천!!