<?
/**
 * Bechu-Basic Skin for Gnuboard4
 *
 * Copyright (c) 2008 Choi Jae-Young <www.miwit.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

include_once("_common.php");
include_once("$board_skin_path/mw.lib/mw.skin.basic.lib.php");
include_once("$board_skin_path/mw.proc/mw.comment.image.config.php");

if (!$is_member)
    alert_close("회원만 이용 가능합니다.");

include_once("$g4[path]/head.sub.php");
?>
<style type="text/css">
.ci_title { font-size:15px; font-weight:bold; background-color:#efefef; padding:10px; }
.ci_info { margin:20px 0 0 20px; line-height:20px; font-size:13px; }
.ci_file { border-top:1px solid #9a9a9a; border-left:1px solid #9a9a9a; border-right:1px solid #d8d8d8; border-bottom:1px solid #d8d8d8; height:20px; font-size:12px; padding:2px; }
.ci_button { background-color:#efefef; cursor:pointer; }
.ci_buttons { text-align:center; margin:50px 0 0 0; }
</style>

<div class="ci_title"> ▶ 회원사진등록 </div>

<div class="ci_info">
댓글에 출력되는 사진을 업로드하실 수 있습니다.<br/>
가로 <?=$cf_x?>px, 세로 <?=$cf_y?>px 사이즈, <?=get_filesize($cf_size)?> byte 용량이하의<br/> jpg, gif, png 이미지만 등록해주세요.<br/><br/>

<form method="post" action="mw.comment.image.update.php" enctype="multipart/form-data">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="file" size="30" class="ci_file" name="comment_image"><br/>

<? if (file_exists("$comment_image_path/$member[mb_id]")) { ?>
<input type="checkbox" name="image_del"> 기존 이미지를 삭제합니다.
<? } ?>

<div class="ci_buttons">
    <input type="submit" class="ci_button" value="등     록"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" class="ci_button" value="닫     기" onclick="self.close()">
</div>
</form>

</div>

<?
include_once("$g4[path]/tail.sub.php");
?>
