삼관왕 님의 방명록(코멘트 가능) 스킨을 수정하면서.. > 그누3질답

그누3질답

삼관왕 님의 방명록(코멘트 가능) 스킨을 수정하면서.. 정보

그누보드 삼관왕 님의 방명록(코멘트 가능) 스킨을 수정하면서..

본문

제가 원하는 스킨과 가장 비슷한 스킨을 찾아서 며칠째 수정중입니다.
gblist.skin.php 에서 스킨의 모양을 바꾸려는것 보다는 list의 구조를 약간 바꾸려고 합니다.

지금 이 스킨을
1. 코멘트가 아래에서 나오는데 그걸 오른쪽에 스크롤 나오는 셀에 넣고 싶고

2. 방명록이라서 그런지 제목이 없어서.. 본문에 제목을 써주면 되는데 첨부한 이미지보다 윗줄에서 나오게 구현하고 싶습니다.

이 두가지를 해보려고 수정할때마다 각종 에러가 나서 지금 오도방정 떨고 있습니다.

gblist.skin.php 소스는 아래와 같습니다..

도움 부탁드립니다..

<?
/* &Agrave;&Igrave; ½º&Aring;²¿¡ &Agrave;&uacute;&Agrave;&Ucirc;±&Ccedil; &Aacute;¤&Atilde;&yen;°°&Agrave;º°&Iacute;&Agrave;º ¾ø½&Agrave;´&Iuml;´&Ugrave;. ¸¶&Agrave;½²&macr; &raquo;&ccedil;¿&euml; &Ccedil;&Iuml;¼¼¿&auml;.¼&ouml;&Aacute;¤¹&egrave;Æ÷ ¿ø&Ccedil;&Iuml;½&Atilde;´&Acirc;´&euml;·&Icirc;~~ */
$user_max_img=$width-20;  // &Agrave;&Igrave;¹&Igrave;&Aacute;&ouml; °¡·&Icirc;Æø &Atilde;&Ouml;´&euml; &Aring;&copy;±&acirc;
$king_secret="<font color=#9EB8CC>&Agrave;&Igrave; ±&Ucirc;&Agrave;º º&ntilde;¹Ð±&Ucirc; &Agrave;&Ocirc;´&Iuml;´&Ugrave;. </font>";  // º&ntilde;¹Ð±&Ucirc;&Agrave;&Iuml;¶§ &Ccedil;&yen;½&Atilde;&Ccedil;&Ograve; ³&raquo;¿&euml;.
$cmt_width=$width-150; //&Auml;&Uacute;¸&agrave;Æ? &Aring;×&Agrave;&Igrave;º&iacute;&Aring;&copy;±&acirc;
?>
<style>
.tt {font-size:9pt;COLOR:#666666;}
.ip {font-size:8pt;COLOR:#B1B1B1;}
.cmtt{background-color:#ECECEC; padding:5 5 0 5;}
.cott{background-color:#ECECEC; padding:0 5 0 5;}
.cocc{background-color:#ECECEC; padding:10 10 0 10; word-break:break-all; line-height:150%;}
.c_textarea {font-size:9pt;color:#666666; width:100%; height:80px; line-height:150%; border: 1px solid #CCCCCC;word-break:break-all; overflow-y:auto; overflow-x:hidden;}
.c_submit {font-size:9pt;color:#666666; width:60px; height:80px; background-color:#E0E0E0; border:1px solid #CCCCCC;}
</style>
<table width='<?=$width?>' align=center border=0 cellpadding=0 cellspacing=0><tr><td>

<table width=100%>
<tr>
    <form name=fcategory method=get action='<?="./"?>'>
    <input type=hidden name=doc value='<?=$doc?>'>
    <td width=50%>
 
    </td>
    </form>
    <td width=50% align=right>
    <? if ($admin_href) { echo "<a href='$admin_href'>°&uuml;¸?&Agrave;&Uacute;¸Þ´º</a>"; } ?>
<? if ($write_href) {echo "<a href='$write_href'><img src='$board_skin/write.gif' border='0' align='absmiddle' alt='±&Ucirc;¾²±&acirc;'></a>";} ?></td>
</tr>
</table>

<table width=100% border=0 cellpadding=0 cellspacing=0>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=sselect  value='<?=$sselect?>'>
<input type=hidden name=stext    value='<?=$stext?>'>
<input type=hidden name=section  value='<?=$section?>'>
<input type=hidden name=page    value='<?=$page?>'>


<? for ($i=0; $i<count($list); $i++) { // ¸?½ºÆ? ¹&Yacute;º¹ ½&Atilde;&Agrave;&Ucirc; ?>
<? include "$board_skin/_set.php"; ?>
<tr><td align=right>
<TABLE width=100% border=0 cellpadding=0 cellspacing=0 style='table-layout:fixed;'>
<TR valign=bottom>
<TD width=55% background='<?=$board_skin?>/tape_bg.gif' align=right><img src='<?=$board_skin?>/tape.gif'></TD>
<TD width=45% background='<?=$board_skin?>/tape_bg.gif' align=right class='cott'><span class='ip'>
<?=$list[$i][datetime]?></span></TD>
</TR>

<TR>
            <TD class='cott'> <span class=ip>No.
                  <?=$list[$i][num]?>
                  </span>
                  <?=$list[$i][name]?>
                  &nbsp;
                  <? if($ip) echo "<span class='ip'> ($ip)</span>"; ?>
                  <?=$list[$i][icon_new]?>
                  <?=$list[$i][icon_secret]?>
                  <? if ($is_category) { ?>
                  <span class=tt> [
                  <?=$list[$i][ca_name]?>
                  ]</span>
                  <? } ?>
                </TD>
<TD class='cott' align=right>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/modify.gif' border=0 alt=±&Ucirc;¼&ouml;&Aacute;¤></a>&nbsp;";}?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt=±&Ucirc;&raquo;&egrave;&Aacute;&brvbar;></a>&nbsp;";} ?>
</TD>
</TR>

<TR>
<TD colspan=2 class='cocc'>

<?
$it_is_secret=0;  // &Aacute;&ouml;±&Yacute;¹?¼­°¡..º&ntilde;¹Ð±&Ucirc;&Agrave;&Icirc;&Aacute;&ouml;..

if( $list[$i][file_image1] ) // &Agrave;&Igrave;¹&Igrave;&Aacute;&ouml;°¡ &Agrave;&Ouml;&Agrave;&raquo;¶§..&Aring;&copy;±&acirc; ¼³&Aacute;¤
{
    $size=GetImageSize($list[$i][file_image1]);

    $img_x_size=$size[0];
    $img_y_size=$size[1];
    $per=1;

    if( $img_x_size > $user_max_img  )
    {
      $per = $user_max_img / $img_x_size;
      $img_x_size=$user_max_img;
      $img_y_size=$img_y_size*$per;
      $size = "width = $img_x_size height = $img_y_size";
    }
  }

if($list[$i][wr_secret]&&!$is_admin)  //°&uuml;¸?&Agrave;&Uacute;´&Acirc; ³&raquo;¿&euml;&Agrave;&Igrave; ¹&Ugrave;·&Icirc; º¸&Agrave;&Igrave;°&Ocirc;
$it_is_secret=1;
?>
<?
if($it_is_secret) echo $king_secret;
else
{
        if($list[$i][file_image1])
echo "<img src='{$list[$i][file_image1]}' $size  style='border-color:#333333;' border=1></a><p>";
echo "<span class='tt'>{$list[$i][content]}</span><br>";
}
?>
<!-- &Aring;×·&macr; &Aring;&Acirc;±× ¹æ&Aacute;&ouml;¿&euml; -->
</xml></xmp><a href=""></a><a href=''></a>
<?if ($link[$i][link1]) {?>
<img src='<?=$board_skin?>/icon_link.gif' align='absmiddle'> <a href='<?=$link[$i][link_href1]?>' target='<?=$default[de_link_target]?>'><span class='tt'><?=$link[$i][link1]?></span></a><span class='ip'> (hit:<?=$list[$i][wr_link1_hit]?>)</span>
<?}?>
</TD>
</TR>
<? if ($is_comment) { ?>

<? for ($m=0; $m<count($clist); $m++) { // &Auml;&Uacute;¸&agrave;Æ?³&raquo;¿&euml;½&Atilde;&Agrave;&Ucirc; ?>
<TR>
<TD colspan=2  class='cott'>

    <table width=<?=$cmt_width?> border=0 align=right cellpadding=0 cellspacing=0 bgcolor=#F7F7F7 style='word-break:break-all; table-layout:fixed;'>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr>
        <td height=25 style='padding:8 0 0 8;'><?=$clist[$m][name]?><!-- ip&raquo;&egrave;&Aacute;&brvbar;<span class=ip>(<?=$clist[$m][ip]?>)</span>--></td>
        <td align=right><? if ($clist[$m][is_del]) { echo "{$clist[$m][del_href]}<font color=#A9B0B4>¨&auml;</font></a>&nbsp;"; } ?><span class=ip><?=$clist[$m][datetime]?></span>&nbsp;</td>
    </tr>
    <tr>
        <td colspan=2 style='padding:5 5 10 5; line-height:130%;'>
<span class=tt><?=$clist[$m][content]?></span>
        </td>
    </tr>
    </table>
</TD>
</TR>
<? } //&Auml;&Uacute;¸&agrave;Æ?³&raquo;¿&euml;¹&Yacute;º¹³¡ ?>

<? } ?>


<TR>
<TD COLSPAN=2 class='cmtt' align=right>
<? if ($copy_href) { echo "<a href=\"$copy_href\">[º¹&raquo;&ccedil;]</a> "; } ?> <? if ($move_href) { echo "<a href=\"$move_href\">[&Agrave;&Igrave;&micro;¿]</a> "; } ?>
<? if ($is_comment_write&&!$list[$i][wr_secret]) { //&Auml;&Uacute;¸&agrave;Æ? ¾²±&acirc; ¹&ouml;ư//º&ntilde;¹Ð±&Ucirc;&Agrave;&Iuml;¶&copy;¹&ouml;ư&Agrave;&Igrave;¾ø&Agrave;½ ?>
<a href="javascript:show_cmt_write('sss', '<?=$list[$i][wr_id]?>')" onfocus='blur()'><img src='<?=$board_skin?>/reply.gif' border=0 align='absmiddle' alt='´&auml;º&macr; ¾²±&acirc;'></a>
<? } ?>
</TD>
</TR>


<? if ($is_comment) { ?>
<? if ($is_comment_write) { //&Auml;&Uacute;¸&agrave;Æ?¾²±&acirc; ?>
<TR><TD colspan=2 class='cott'>
<DIV id='sss<?=$list[$i][wr_id]?>' style="DISPLAY: none">
    <table width=<?=$cmt_width?> align=right border=0 cellpadding=0>
    <tr>
        <td>
            <table width=100% cellpadding=0 cellspacing=0>
            <form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
            <input type=hidden name=w        value='c'>
            <input type=hidden name=bo_table value='<?=$bo_table?>'>
            <input type=hidden name=sselect  value='<?=$sselect?>'>
            <input type=hidden name=stext    value='<?=$stext?>'>
            <input type=hidden name=wr_id    value='<?=$list[$i][wr_id]?>'>
            <input type=hidden name=page    value='<?=$page?>'>
            <input type=hidden name=section  value='<?=$section?>'>

<? if (!$member[mb_id]) { ?>
<tr>
                <td colspan=2>
<img src='<?=$board_skin?>/img_name.gif' align='absmiddle'><?=$c_name?>&nbsp;<img src='<?=$board_skin?>/img_pw.gif' align='absmiddle'><input type=password name=wr_passwd size=10 class=input required itemname='º&ntilde;¹Ð¹ø&Egrave;&pound;'>
                </td>
</tr>
<? } ?>
<tr>
<td width=100%>
<table width=100% border=0 cellspacing=0>
<tr>
<td width=' '>
<textarea onKeyup="var m=90;var s=this.scrollHeight;if(s>=m)this.style.pixelHeight=s+6" required itemname='³&raquo;¿&euml;' name=wr_content class=c_textarea></textarea></td>
<td width=60 valign=top><input type=submit class=c_submit value=' ±&Ucirc;&Agrave;&Ocirc;·&Acirc; '></td>
</tr>
</table>
</td>
</tr>
</form>
            </table>
</td>
    </tr>
</table>
<DIV>
</TD></TR>
<? } // &Auml;&Uacute;¸&agrave;Æ?¾²±&acirc;if³¡ ?>
<? } ?>

<TR>
<TD background='<?=$board_skin?>/shadow_bg.gif'><img src='<?=$board_skin?>/shadow_left.gif'></TD>
<TD background='<?=$board_skin?>/shadow_bg.gif' align=right><img src='<?=$board_skin?>/shadow_right.gif'></TD>
</TR>

</TABLE>
</td></tr>

<? } // ¸?½ºÆ? ¹&Yacute;º¹ ³¡ ?>

<? if (count($list) == 0) { echo "<tr><td height=100 align=center>°&Ocirc;½&Atilde;¹°&Agrave;&Igrave; 1°&Ccedil;&micro;&micro; ¾ø½&Agrave;´&Iuml;´&Ugrave;..</td></tr>"; } ?>

</table>

<table width=100%>
<tr>
    <td align=left>
        <? if ($prev_section_href) { echo "<a href='$prev_section_href'>&Agrave;&Igrave;&Agrave;&uuml;°&Euml;&raquo;&ouml;</a>"; } ?>
        <?=$write_pages?>
        <? if ($next_section_href) { echo "<a href='$next_section_href'>´&Ugrave;&Agrave;½°&Euml;&raquo;&ouml;</a>"; } ?>
    </td>
</tr>
</table>

<table width=100%>
<tr>
    <td width="">
<? if ($list_href) {echo "<a href='$list_href'>&Agrave;&uuml;&Atilde;¼¸&ntilde;·&Iuml;</a>";} ?>
</td>
    <form name=fsearch method=get action='<?="./"?>'>
    <input type=hidden name=doc value='<?=$doc?>'>
    <input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=soperator value='1'>
            <td width="200" align=right valign=bottom>&nbsp;</td>
    </form>
</tr>
</table>


<? if ($stext) { ?>
    <script language='JavaScript'>
        if ('<?=$sselect?>' == 'ca_id') {
            document.fcategory.ca_id.value = '<?=$stext?>';
            document.fsearch.stext.value = '';
        } else {
            document.fsearch.sselect.value  = '<?=$sselect?>';
        }
</script>
<? } ?>

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

<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=yes,width=100,height=100,top=100,left=50");
  imageHandle.document.write("<title>Image View</title>");
  imageHandle.document.write("<style>");
  imageHandle.document.write("*{margin:0;padding:0;border:0;}");
  imageHandle.document.write("</style>");
  imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+9,this.height+28);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"&Aring;&not;¸&macr;&Ccedil;&Iuml;¸&eacute; ´&Yacute;&Egrave;&uuml;´&Iuml;´&Ugrave;.\">");
}

function show_cmt_write(name, id) {
var layer = document.getElementById(name+id);
layer.style.display = (layer.style.display == "none")? "block" : "none";
}
</script>

댓글 전체

전체 9,564
그누3질답 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT