결제부분 스킨 에러 해결 부탁드립니다.

· 15년 전 · 767
결재를 하면 각각 본인의 결재란에 결재가 되는데 다른 사람이 결재를 하면 먼저 결재했던
결재사인이 모두 사라집니다.
어느 부분을 수정해야 다른 사람이 결재해도 이전 결재자 사인이 사라지지 않는지 알고 싶습니다.



<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 현재글의 스크랩 카운트
$temp =mysql_fetch_array(mysql_query("select count(*) from g4_scrap where bo_table='$bo_table' and wr_id = $wr_id"));
$scrap_count = $temp[0];

if ($w == "u")
{
$sql = " update $g4[write_prefix]$bo_table set wr_7 = '$wr_7' where wr_id = '$wr_id'";
sql_query($sql);

$sql = " update $g4[write_prefix]$bo_table set wr_8 = '$wr_8' where wr_id = '$wr_id'";
sql_query($sql);

$sql = " update $g4[write_prefix]$bo_table set wr_9 = '$wr_9' where wr_id = '$wr_id'";
sql_query($sql);

$sql = " update $g4[write_prefix]$bo_table set wr_10 = '$wr_10' where wr_id = '$wr_id'";
sql_query($sql);

$sql = " update $g4[write_prefix]$bo_table set wr_11 = '$wr_11' where wr_id = '$wr_id'";
sql_query($sql);

$sql = " update $g4[write_prefix]$bo_table set wr_12 = '$wr_12' where wr_id = '$wr_id'";
sql_query($sql);


$sql = " update $g4[write_prefix]$bo_table set wr_13 = '$wr_13' where wr_id = '$wr_id'";
sql_query($sql);
goto_url("./board.php?bo_table=$bo_table&wr_id=$wr_id&page=$page");
}

?>
<?
for ($i=0; $i<count($view); $i++) {
$ryear_all = substr($view[wr_1],0,4);
$ryear = substr($view[wr_1],2,2);
$rmonth = substr($view[wr_1],4,2);
$rday = substr($view[wr_1],6,2);
}
?>
<?
//여분필드
$ex3_filed = explode("|",$view[wr_3]);
$ext3_00 = $ex3_filed[0];
$ext3_01 = $ex3_filed[1];
$ext3_02 = $ex3_filed[2];
$ext3_03 = $ex3_filed[3];
$ext3_04 = $ex3_filed[4];
$ext3_05 = $ex3_filed[5];
$ext3_06 = $ex3_filed[6];
$ext3_07 = $ex3_filed[7];
$ext3_08 = $ex3_filed[8];
$ext3_09 = $ex3_filed[9];
$ext3_10 = $ex3_filed[10];
$ext3_11 = $ex3_filed[11];
$ext3_12 = $ex3_filed[12];
$ext3_13 = $ex3_filed[13];
$ext3_14 = $ex3_filed[14];
$ext3_15 = $ex3_filed[15];
$ext3_16 = $ex3_filed[16];
$ext3_17 = $ex3_filed[17];
$ext3_18 = $ex3_filed[18];
$ext3_19 = $ex3_filed[19];
$ext3_19 = $ex3_filed[19];
$ext3_20 = $ex3_filed[20];
$ext3_21 = $ex3_filed[21];
$ext3_22 = $ex3_filed[22];
$ext3_23 = $ex3_filed[23];
$ext3_24 = $ex3_filed[24];
$ext3_25 = $ex3_filed[25];
$ext3_26 = $ex3_filed[26];
$ext3_27 = $ex3_filed[27];
$ext3_28 = $ex3_filed[28];
$ext3_29 = $ex3_filed[29];
$ext3_30 = $ex3_filed[30];
$ext3_31 = $ex3_filed[31];
$ext3_32 = $ex3_filed[32];
$ext3_33 = $ex3_filed[33];
$ext3_34 = $ex3_filed[34];
$ext3_35 = $ex3_filed[35];
$ext3_36 = $ex3_filed[36];
$ext3_37 = $ex3_filed[37];
$ext3_38 = $ex3_filed[38];
$ext3_39 = $ex3_filed[39];
$ext3_40 = $ex3_filed[40];
$ext3_41 = $ex3_filed[41];
$ext3_42 = $ex3_filed[42];
$ext3_43 = $ex3_filed[43];
$ext3_44 = $ex3_filed[44];
$ext3_45 = $ex3_filed[45];
$ext3_46 = $ex3_filed[46];
$ext3_47 = $ex3_filed[47];
$ext3_48 = $ex3_filed[48];
$ext3_49 = $ex3_filed[49];

$ex4_filed = explode("|",$view[wr_4]);
$ext4_00 = $ex4_filed[0];
$ext4_01 = $ex4_filed[1];
$ext4_02 = $ex4_filed[2];
$ext4_03 = $ex4_filed[3];
$ext4_04 = $ex4_filed[4];
$ext4_05 = $ex4_filed[5];
$ext4_06 = $ex4_filed[6];
$ext4_07 = $ex4_filed[7];
$ext4_08 = $ex4_filed[8];
$ext4_09 = $ex4_filed[9];
$ext4_10 = $ex4_filed[10];
$ext4_11 = $ex4_filed[11];
$ext4_12 = $ex4_filed[12];
$ext4_13 = $ex4_filed[13];
$ext4_14 = $ex4_filed[14];
$ext4_15 = $ex4_filed[15];
$ext4_16 = $ex4_filed[16];
$ext4_17 = $ex4_filed[17];
$ext4_18 = $ex4_filed[18];
$ext4_19 = $ex4_filed[19];

$ex5_filed = explode("|",$view[wr_5]);
$ext5_00 = $ex5_filed[0];
$ext5_01 = $ex5_filed[1];
$ext5_02 = $ex5_filed[2];
$ext5_03 = $ex5_filed[3];
$ext5_04 = $ex5_filed[4];
$ext5_05 = $ex5_filed[5];
$ext5_06 = $ex5_filed[6];
$ext5_07 = $ex5_filed[7];
$ext5_08 = $ex5_filed[8];
$ext5_09 = $ex5_filed[9];
?>

<div style="height:5px; line-height:1px; font-size:1px;">&nbsp;</div>
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div style="color:#0F4D9E; font-size:14px; font-weight:bold; word-break:break-all;">
<?=$ryear_all?>년<?=$rmonth?>월<?=$rday?>일 <font color="7B7B7B"><? if ($is_category) { echo ($category_name ? " $view[ca_name] " : ""); } ?></font>님의 업무일지</div>
<div style="height:3px; line-height:1px; font-size:1px;">&nbsp;</div>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#eee; clear:both;">&nbsp;</div>
<div style="height:5px; line-height:1px; font-size:1px;">&nbsp;</div>
<span style="color:#888888;">최종 수정일 : <?=date("y-m-d H:i", strtotime($view[wr_last]))?></span>
<div style="height:5px; line-height:1px; font-size:1px;">&nbsp;</div>
<div style="float:left;">
<?
ob_start();
?>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($wr_9 =="승인처리") {
echo "";}
else {
echo " <a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a>";
}
?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
</div></td>
<td width="5" valign="top">&nbsp;</td>
<td width="352">
<form name="fwr1" method="post" action="" style="margin:0;">
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=w value='u' >
<table align="center" cellpadding="3" cellspacing="1" bgcolor="cccccc">
<tr bgcolor="#FFFFFF">
<td rowspan="2"><div align="center"><font color="cf4900">결<br>
<br>재 </font></div></td>
<td width="50" height="22"><div align="center"><font color="cf4900">담당자</font></div></td>
<td width="50"><div align="center"><font color="cf4900">총무과장</font></div></td>
<td width="50"><div align="center"><font color="cf4900">간호과장</font></div></td>
<td width="50"><div align="center"><font color="cf4900">외래원장</font></div></td>
<td width="50"><div align="center"><font color="cf4900">진료원장</font></div></td>
<td width="50"><div align="center"><font color="cf4900">행정원장</font></div></td>
<td width="50"><div align="center"><font color="cf4900">이사장</font></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="50">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? if($view[wr_7] == '승인') echo "<img src='$board_skin_path/img/sign_01.gif' border=0 >"; ?></td>
<td>
<? if($member[mb_id] == 'open1class') { ?>
<div style="font-family: 돋움; color:#0F4D9E; font-size:11px; word-break:break-all;" align="center">승인<input type=checkbox name=wr_7 value='승인' <? if($write[wr_7] == '승인') echo " checked "; ?>><br>
<input name=btnsubmit type=image src="<?=$board_skin_path?>/img/btn_ok.gif" alt="확인" border="0" align="absmiddle"></div><? }?> </td>
</tr>
</table>
</td>
<td height="50">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? if($view[wr_8] == '승인') echo "<img src='$board_skin_path/img/sign_02.gif' border=0 >"; ?></td>
<td>
<? if($member[mb_id] == 'kob3738') { ?>
<div style="font-family: 돋움; color:#0F4D9E; font-size:11px; word-break:break-all;" align="center">승인<input type=checkbox name=wr_8 value='승인' <? if($write[wr_8] == '승인') echo " checked "; ?>><br>
<input name=btnsubmit type=image src="<?=$board_skin_path?>/img/btn_ok.gif" alt="확인" border="0" align="absmiddle"></div><? }?> </td>
</tr>
</table>
</td>
<td height="50">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? if($view[wr_9] == '승인') echo "<img src='$board_skin_path/img/sign_03.gif' border=0 >"; ?></td>
<td>
<? if($member[mb_id] == 'mageta12') { ?>
<div style="font-family: 돋움; color:#0F4D9E; font-size:11px; word-break:break-all;" align="center">승인<input type=checkbox name=wr_9 value='승인' <? if($write[wr_9] == '승인') echo " checked "; ?>><br>
<input name=btnsubmit type=image src="<?=$board_skin_path?>/img/btn_ok.gif" alt="확인" border="0" align="absmiddle"></div><? }?> </td>
</tr>
</table>
</td>
<td height="50">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? if($view[wr_10] == '승인') echo "<img src='$board_skin_path/img/sign_04.gif' border=0 >"; ?></td>
<td width="50">
<? if($member[mb_id] == '') { ?>
<div style="font-family: 돋움; color:#0F4D9E; font-size:11px; word-break:break-all;" align="center">승인<input type=checkbox name=wr_10 value='승인' <? if($write[wr_10] == '승인') echo " checked "; ?>><br>
<input name=btnsubmit type=image src="<?=$board_skin_path?>/img/btn_ok.gif" alt="확인" border="0" align="absmiddle"></div><? }?> </td>
</tr>
</table>
</td>
<td height="50">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? if($view[wr_11] == '승인') echo "<img src='$board_skin_path/img/sign_05.gif' border=0 >"; ?></td>
<td width="50">
<? if($member[mb_id] == 'ab7211') { ?>
<div style="font-family: 돋움; color:#0F4D9E; font-size:11px; word-break:break-all;" align="center">승인<input type=checkbox name=wr_11 value='승인' <? if($write[wr_11] == '승인') echo " checked "; ?>><br>
<input name=btnsubmit type=image src="<?=$board_skin_path?>/img/btn_ok.gif" alt="확인" border="0" align="absmiddle"></div><? }?> </td>
</tr>
</table>
</td>
<td height="50">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? if($view[wr_12] == '승인') echo "<img src='$board_skin_path/img/sign_06.gif' border=0 >"; ?></td>
<td width="50">
<? if($member[mb_id] == 'lbj1296') { ?>
<div style="font-family: 돋움; color:#0F4D9E; font-size:11px; word-break:break-all;" align="center">승인<input type=checkbox name=wr_12 value='승인' <? if($write[wr_12] == '승인') echo " checked "; ?>><br>
<input name=btnsubmit type=image src="<?=$board_skin_path?>/img/btn_ok.gif" alt="확인" border="0" align="absmiddle"></div><? }?> </td>
</tr>
</table>
</td>
<td height="50">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? if($view[wr_13] == '승인') echo "<img src='$board_skin_path/img/sign_07.gif' border=0 >"; ?></td>
<td width="50">
<? if($member[mb_id] == 'ks3738') { ?>
<div style="font-family: 돋움; color:#0F4D9E; font-size:11px; word-break:break-all;" align="center">승인<input type=checkbox name=wr_13 value='승인' <? if($write[wr_13] == '승인') echo " checked "; ?>><br>
<input name=btnsubmit type=image src="<?=$board_skin_path?>/img/btn_ok.gif" alt="확인" border="0" align="absmiddle"></div><? }?> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<div style="height:5px; line-height:1px; font-size:1px;">&nbsp;</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E0E0E0">
<tr>
<td width="25" rowspan="11" bgcolor="#EBF3FC"><p align="center">업</p>
<p align="center">무</p>
<p align="center">내</p>
<p align="center">용</p></td>
<td width="80" height="25" bgcolor="#F5F5F5"><div align="center">내근/외근</div></td>
<td width="80" bgcolor="#F5F5F5"><div align="center">시간</div></td>
<td width="170" bgcolor="#F5F5F5"><div align="center">방문처</div></td>
<td width="499" bgcolor="#F5F5F5"><div align="center">면담자 및 활동내역</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><div align="center">
<?=$ext3_00?>
</div></td>
<td><div align="center">
<?=$ext3_10?>
</div></td>
<td><div align="left">
<?=$ext3_30?>
</div></td>
<td><div align="left">
<?=$ext3_40?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><div align="center">
<?=$ext3_01?>
</div></td>
<td><?=$ext3_11?></td>
<td><div align="left">
<?=$ext3_31?>
</div></td>
<td><div align="left">
<?=$ext3_41?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><div align="center">
<?=$ext3_02?>
</div></td>
<td><?=$ext3_12?></td>
<td><div align="left">
<?=$ext3_32?>
</div></td>
<td><div align="left">
<?=$ext3_42?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><div align="center">
<?=$ext3_03?>
</div></td>
<td><?=$ext3_13?></td>
<td><div align="left">
<?=$ext3_33?>
</div></td>
<td><div align="left">
<?=$ext3_43?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><div align="center">
<?=$ext3_04?>
</div></td>
<td><?=$ext3_14?></td>
<td><div align="left">
<?=$ext3_34?>
</div></td>
<td><div align="left">
<?=$ext3_44?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><div align="center">
<?=$ext3_05?>
</div></td>
<td><?=$ext3_15?></td>
<td><div align="left">
<?=$ext3_35?>
</div></td>
<td><div align="left">
<?=$ext3_45?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><?=$ext3_06?></td>
<td><?=$ext3_16?></td>
<td><div align="left">
<?=$ext3_36?>
</div></td>
<td><div align="left">
<?=$ext3_46?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><?=$ext3_07?></td>
<td><?=$ext3_17?></td>
<td><div align="left">
<?=$ext3_37?>
</div></td>
<td><div align="left">
<?=$ext3_47?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><?=$ext3_08?></td>
<td><?=$ext3_18?></td>
<td><div align="left">
<?=$ext3_38?>
</div></td>
<td><div align="left">
<?=$ext3_48?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22"><?=$ext3_09?></td>
<td><?=$ext3_19?></td>
<td><div align="left">
<?=$ext3_39?>
</div></td>
<td><div align="left">
<?=$ext3_49?>
</div></td>
</tr>
<tr>
<td rowspan="10" bgcolor="#EBF3FC"><p align="center">명</p>
<p align="center">일</p>
<p align="center">계</p>
<p align="center">획</p></td>
<td height="22" colspan="2" bgcolor="#F5F5F5"><div align="center">방문처 및 면담예정자 </div></td>
<td colspan="2" bgcolor="#F5F5F5"><div align="center">방문목적 및 활동계획 </div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><div align="center">
<?=$ext4_00?>
</div></td>
<td colspan="2"><div align="left">
<?=$ext4_10?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_01?></td>
<td colspan="2"><div align="left">
<?=$ext4_11?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_02?></td>
<td colspan="2"><div align="left">
<?=$ext4_12?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_03?></td>
<td colspan="2"><div align="left">
<?=$ext4_13?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_04?></td>
<td colspan="2"><div align="left">
<?=$ext4_14?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_05?></td>
<td colspan="2"><div align="left">
<?=$ext4_15?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_06?></td>
<td colspan="2"><div align="left">
<?=$ext4_16?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_07?></td>
<td colspan="2"><div align="left">
<?=$ext4_17?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="2"><?=$ext4_08?></td>
<td colspan="2"><div align="left">
<?=$ext4_18?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td rowspan="5" bgcolor="#F5FCEB"><p align="center">기</p>
<p align="center">타</p></td>
<td height="22" colspan="4"><div align="left">
<?=$ext5_00?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="4"><div align="left">
<?=$ext5_01?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="4"><div align="left">
<?=$ext5_02?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="4"><div align="left">
<?=$ext5_03?>
</div></td>
</tr>
<tr align=center bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#D5F7FF'" onMouseOut="this.style.backgroundColor=''">
<td height="22" colspan="4"><div align="left">
<?=$ext5_04?>
</div></td>
</tr>
</table></td>
</tr>

<? if (($member[mb_id] && ($member[mb_id] == $write[mb_id])) || $is_admin) { ?>
<? } ?>
</table>

<? include_once("./view_comment.php"); ?>

</td></tr></table>

<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;

for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}

window.onload = resize_image;

function clipboard_source(str) {
if (g4_is_gecko)
prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
else if (g4_is_ie) {
window.clipboardData.setData("Text", str);
alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
}
}

function source_select(theField) {
theField.focus();
theField.select();
}

function source_copy(theField){
source_select(theField);
if (g4_is_gecko) {
alert("Ctrl+C를 눌러 복사해주세요");
}
else if (g4_is_ie) {
theField.createTextRange().execCommand('copy');
alert('소스가 클립보드에 저장되었습니다.');
}
}

function file_download(link, file)
{
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href = link;
}
</script>

.
|

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고