도솔천님 음악게시판이 자꾸 오류가 납니다.. 정보
그누보드 도솔천님 음악게시판이 자꾸 오류가 납니다..관련링크
http://www.hapoom.net
10회 연결
본문
Parse error: parse error, unexpected '}' in c:\kebihome\myhome\gnu3\bbs\skin\board\music2\gblist.skin.php on line 48
이 메세지가 뜨구요..
원래의 gblist.skin.php 는 다음과 같습니다..
<script language="JavaScript">
function all_music()
{
var f = document.frmgblist;
var chk_count = 0;
var chk_list = '';
var sep = '';
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == 'music[]' && f.elements[i].checked) {
chk_count++;
chk_list += sep + f.elements[i].value;
sep = '|';
}
}
if (!chk_count) {
alert("들으실 음악을 선택하세요.");
return;
} else {
window.open('<?="./?doc=$board_skin/music.php&bo_table=$bo_table&chk_list="?>'+chk_list, 'all_music', 'width=360, height=540 scrollbars=no, resizable=no, status=no, menubar=0');
}
}
</script>
<table background='<?=$board_skin?>/img/bg12.gif' width='<?=$width?>' align=center cellpadding="0" cellspacing="0" border="0"><tr><td>
<table width=100% cellpadding="0" cellspacing="0" border="0">
<tr><td height=8></td></tr>
<tr>
<td width=98%>
<table width=100% height=100% cellpadding=2 cellspacing=0 class=box>
<tr><td>
<!-- // html 주석으로 처리하고자 할경우
<?
if ($is_category) { ?>
<form name=fcategory method=get action='./'>
<input type=hidden name=doc value='<?=$doc?>'>
<? echo "<input type=hidden name=ca_id>";
echo get_category_list("$cfg[write_table_prefix]$bo_table",$category_location);
?>
// html 주석으로 처리하고자 할경우 -->
<?
if ($is_category) {
echo "<input type=hidden name=ca_id>";
echo get_category_list("$cfg[write_table_prefix]$bo_table",$category_location);
}
?>
</td></tr></table>
</td>
</form>
</td>
</form>
<td width=2% align=right>
<? if ($admin_href) { echo "<a href='$admin_href'><u>A</u></a>"; } ?> <? } ?></td>
</tr>
<tr><td height=5></td></tr>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0 align="center" background="<?=$board_skin?>/img/title_top.gif">
<form name=frmgblist method='post' action='<?="./?doc=$cfg[bbs_dir]/gbdeleteall.php"?>'>
<tr align=center>
<td width=50 height=30>
<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?>'>
<?=subject_sort_link('wr_num', $qstr2)?>번호</a></td>
<td width=25>선택</td>
<td width=''><?=subject_sort_link('wr_subject', $qstr2)?>제목</a></td>
<td width=100><?=subject_sort_link('wr_1', $qstr2)?>가수</td>
<td width=25>듣기</td>
<td width=30>가사</td>
<td width=50><?=subject_sort_link('wr_datetime', $qstr2)?>날짜</a></td>
<td width=30><?=subject_sort_link('wr_hit', $qstr2)?>읽음</a></td>
<? if ($is_good) { ?><td width=30><?=subject_sort_link('wr_good', $qstr2)?>추천</a></td><? } ?>
<? if ($is_nogood) { ?><td width=40><?=subject_sort_link('wr_nogood', $qstr2)?>비추천</a></td><? } ?>
</tr>
</table>
<?
// 번호에 이미지를 사용할 경우는 아래의 주석을 제거하고 $list[$i][num]의 내용을 수정후 사용하세요.
// if (!is_int($list[$i][num])) { $list[$i][num] = "<img src='$board_skin/img/arrow.gif'>"; }
?>
<? for ($i=0; $i<count($list); $i++) { ?>
<table width=100% border=0 cellpadding=0 cellspacing=0 align="center" onMouseOver="this.style.backgroundColor='#FFF8ED'" onMouseOut="this.style.backgroundColor=''">
<tr align=center onMouseOver="this.style.backgroundColor='#FFF8ED'" onMouseOut="this.style.backgroundColor=''">
<td height=25 width="50"><?=$list[$i][num]?></td>
<td width=25><input type=checkbox name='music[]' value='<?=$list[$i][wr_id]?>'></td>
<td align=left>
<? if ($is_checkdelete) { ?><input type=checkbox name=chk_wr_id[] value='<?=$list[$i][wr_id]?>'><? } ?>
<?=$list[$i][reply]?>
<?=$list[$i][icon_reply]?>
<a href='<?=$list[$i][href]?>'><? if ($list[$i][is_notice]) echo "<b>"; ?><?=$list[$i][subject]?><? if ($list[$i][is_notice]) echo "</b>"; ?></a>
<span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span>
<?=$list[$i][icon_new]?>
<?=$list[$i][icon_hot]?>
<?=$list[$i][icon_battle]?>
<?=$list[$i][icon_secret]?></td>
<td nowrap width="100"><?=($list[$i][wr_1] ? $list[$i][wr_1] : '미상')?></td>
<td width="25"><a onfocus=blur() style="cursor:hand;" onClick="javascript:void(window.open('<?="./?doc=$board_skin/music.php&bo_table=$bo_table&chk_list={$list[$i][wr_id]}"?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=0,left=0,width=360,height=540'))" title='[<?=$list[$i][subject]?>] 바로듣기'><img src=<?=$board_skin?>/img/audio_on.gif border=0></a></td>
<td width="30"><a href="#" onClick="window.open('<?="./?doc=$cfg[bbs_dir]/gbgasa.php&bo_table=$bo_table&page=$page&wr_id={$list[$i][wr_id]}"?>', 'gbgasa', 'scrollbars=1,resizeable=no,toolbar=no,status=no,top=0,left=0,width=380,height=440')" title='[<?=$list[$i][subject]?>] 가사보기'><img src=<?=$board_skin?>/img/gasa.gif border=0></a></td>
<td width="50"><?=$list[$i][datetime]?></td>
<td width="30"><?=$list[$i][wr_hit]?></td>
<? if ($is_good) { ?><td class=list width="30"><?=$list[$i][wr_good]?></td><? } ?>
<? if ($is_nogood) { ?><td class=list width="40"><?=$list[$i][wr_nogood]?></td><? } ?>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="98%" align="center">
<tr><td height=1 background='<?=$board_skin?>/img/line.gif'></td></tr>
</table>
<? } ?>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td>
<? if (count($list) == 0) { echo "<tr><td colspan=8 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; } ?>
</td></tr>
</form>
</table>
<table width=100%>
<tr>
<td width=60%>
<? if ($list_href) { echo "<a href='$list_href'><img src=$board_skin/img/i_list.gif border=0></a>"; } ?>
<? if ($write_href) { echo "<a href='$write_href'><img src=$board_skin/img/i_write.gif border=0></a>"; } ?>
<a href='javascript:void(0);' onclick='all_music();'><img src='<?=$board_skin?>/img/i_music.gif' border=0></a>
<? if ($is_checkdelete) { ?>
<a href='javascript:all_checked(true);'><img src=<?=$board_skin?>/img/i_select.gif border=0> </a><a href='javascript:all_checked(false);'><img src=<?=$board_skin?>/img/i_selfalse.gif border=0></a>
<a href='javascript:all_delete();'><img src=<?=$board_skin?>/img/i_seldel.gif border=0></a>
<script language='javascript'>
function all_checked(sw)
{
var f = document.frmgblist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == 'chk_wr_id[]') {
f.elements[i].checked = sw;
}
}
}
function all_delete()
{
var f = document.frmgblist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == 'chk_wr_id[]' && f.elements[i].checked) {
chk_count++;
}
}
if (!chk_count) {
alert("게시물을 하나 이상 선택하세요.");
return;
}
if (!confirm("선택한 게시물을 정말 삭제 하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다")) {
return;
}
f.submit();
}
</script>
<? } ?>
</td>
<form name=fsearch method=get action='./'>
<input type=hidden name=doc value='<?=$doc?>'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<td width=50% align=right>
<select name=sselect class=select>
<option value='wr_subject|wr_content'>제목+내용</option>
<option value='wr_1'>가수</option>
<option value='wr_2'>작곡</option>
<option value='wr_num'>번호</option>
<option value='wr_datetime'>날짜</option>
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='wr_hit'>읽음</option>
<? if ($is_good) { ?><option value='wr_good'>추천</option><? } ?>
<? if ($is_nogood) { ?><option value='wr_nogood'>비추천</option><? } ?>
</select><input
type=text name=stext size=10 required itemname='검색어' value='<?=$stext?>'
class=input><select
name=soperator class=select>
<option value='0'>OR</option>
<option value='1'>AND</option>
</select><input type=submit value='검색' class=button>
</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?>';
document.fsearch.soperator.value = '<?=(int)$soperator?>';
}
</script>
<? } ?>
<table width=100%>
<tr>
<td align=center>
<? if ($prev_section_href) { echo "<a href='$prev_section_href'>이전검색</a>"; } ?>
<?=$write_pages?>
<? if ($next_section_href) { echo "<a href='$next_section_href'>다음검색</a>"; } ?>
</td>
</tr>
</table>
</td></tr></table>
만진게 없는데..왜 이럴까요..ㅠ.ㅜ
이 메세지가 뜨구요..
원래의 gblist.skin.php 는 다음과 같습니다..
<script language="JavaScript">
function all_music()
{
var f = document.frmgblist;
var chk_count = 0;
var chk_list = '';
var sep = '';
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == 'music[]' && f.elements[i].checked) {
chk_count++;
chk_list += sep + f.elements[i].value;
sep = '|';
}
}
if (!chk_count) {
alert("들으실 음악을 선택하세요.");
return;
} else {
window.open('<?="./?doc=$board_skin/music.php&bo_table=$bo_table&chk_list="?>'+chk_list, 'all_music', 'width=360, height=540 scrollbars=no, resizable=no, status=no, menubar=0');
}
}
</script>
<table background='<?=$board_skin?>/img/bg12.gif' width='<?=$width?>' align=center cellpadding="0" cellspacing="0" border="0"><tr><td>
<table width=100% cellpadding="0" cellspacing="0" border="0">
<tr><td height=8></td></tr>
<tr>
<td width=98%>
<table width=100% height=100% cellpadding=2 cellspacing=0 class=box>
<tr><td>
<!-- // html 주석으로 처리하고자 할경우
<?
if ($is_category) { ?>
<form name=fcategory method=get action='./'>
<input type=hidden name=doc value='<?=$doc?>'>
<? echo "<input type=hidden name=ca_id>";
echo get_category_list("$cfg[write_table_prefix]$bo_table",$category_location);
?>
// html 주석으로 처리하고자 할경우 -->
<?
if ($is_category) {
echo "<input type=hidden name=ca_id>";
echo get_category_list("$cfg[write_table_prefix]$bo_table",$category_location);
}
?>
</td></tr></table>
</td>
</form>
</td>
</form>
<td width=2% align=right>
<? if ($admin_href) { echo "<a href='$admin_href'><u>A</u></a>"; } ?> <? } ?></td>
</tr>
<tr><td height=5></td></tr>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0 align="center" background="<?=$board_skin?>/img/title_top.gif">
<form name=frmgblist method='post' action='<?="./?doc=$cfg[bbs_dir]/gbdeleteall.php"?>'>
<tr align=center>
<td width=50 height=30>
<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?>'>
<?=subject_sort_link('wr_num', $qstr2)?>번호</a></td>
<td width=25>선택</td>
<td width=''><?=subject_sort_link('wr_subject', $qstr2)?>제목</a></td>
<td width=100><?=subject_sort_link('wr_1', $qstr2)?>가수</td>
<td width=25>듣기</td>
<td width=30>가사</td>
<td width=50><?=subject_sort_link('wr_datetime', $qstr2)?>날짜</a></td>
<td width=30><?=subject_sort_link('wr_hit', $qstr2)?>읽음</a></td>
<? if ($is_good) { ?><td width=30><?=subject_sort_link('wr_good', $qstr2)?>추천</a></td><? } ?>
<? if ($is_nogood) { ?><td width=40><?=subject_sort_link('wr_nogood', $qstr2)?>비추천</a></td><? } ?>
</tr>
</table>
<?
// 번호에 이미지를 사용할 경우는 아래의 주석을 제거하고 $list[$i][num]의 내용을 수정후 사용하세요.
// if (!is_int($list[$i][num])) { $list[$i][num] = "<img src='$board_skin/img/arrow.gif'>"; }
?>
<? for ($i=0; $i<count($list); $i++) { ?>
<table width=100% border=0 cellpadding=0 cellspacing=0 align="center" onMouseOver="this.style.backgroundColor='#FFF8ED'" onMouseOut="this.style.backgroundColor=''">
<tr align=center onMouseOver="this.style.backgroundColor='#FFF8ED'" onMouseOut="this.style.backgroundColor=''">
<td height=25 width="50"><?=$list[$i][num]?></td>
<td width=25><input type=checkbox name='music[]' value='<?=$list[$i][wr_id]?>'></td>
<td align=left>
<? if ($is_checkdelete) { ?><input type=checkbox name=chk_wr_id[] value='<?=$list[$i][wr_id]?>'><? } ?>
<?=$list[$i][reply]?>
<?=$list[$i][icon_reply]?>
<a href='<?=$list[$i][href]?>'><? if ($list[$i][is_notice]) echo "<b>"; ?><?=$list[$i][subject]?><? if ($list[$i][is_notice]) echo "</b>"; ?></a>
<span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span>
<?=$list[$i][icon_new]?>
<?=$list[$i][icon_hot]?>
<?=$list[$i][icon_battle]?>
<?=$list[$i][icon_secret]?></td>
<td nowrap width="100"><?=($list[$i][wr_1] ? $list[$i][wr_1] : '미상')?></td>
<td width="25"><a onfocus=blur() style="cursor:hand;" onClick="javascript:void(window.open('<?="./?doc=$board_skin/music.php&bo_table=$bo_table&chk_list={$list[$i][wr_id]}"?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=0,left=0,width=360,height=540'))" title='[<?=$list[$i][subject]?>] 바로듣기'><img src=<?=$board_skin?>/img/audio_on.gif border=0></a></td>
<td width="30"><a href="#" onClick="window.open('<?="./?doc=$cfg[bbs_dir]/gbgasa.php&bo_table=$bo_table&page=$page&wr_id={$list[$i][wr_id]}"?>', 'gbgasa', 'scrollbars=1,resizeable=no,toolbar=no,status=no,top=0,left=0,width=380,height=440')" title='[<?=$list[$i][subject]?>] 가사보기'><img src=<?=$board_skin?>/img/gasa.gif border=0></a></td>
<td width="50"><?=$list[$i][datetime]?></td>
<td width="30"><?=$list[$i][wr_hit]?></td>
<? if ($is_good) { ?><td class=list width="30"><?=$list[$i][wr_good]?></td><? } ?>
<? if ($is_nogood) { ?><td class=list width="40"><?=$list[$i][wr_nogood]?></td><? } ?>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="98%" align="center">
<tr><td height=1 background='<?=$board_skin?>/img/line.gif'></td></tr>
</table>
<? } ?>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td>
<? if (count($list) == 0) { echo "<tr><td colspan=8 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; } ?>
</td></tr>
</form>
</table>
<table width=100%>
<tr>
<td width=60%>
<? if ($list_href) { echo "<a href='$list_href'><img src=$board_skin/img/i_list.gif border=0></a>"; } ?>
<? if ($write_href) { echo "<a href='$write_href'><img src=$board_skin/img/i_write.gif border=0></a>"; } ?>
<a href='javascript:void(0);' onclick='all_music();'><img src='<?=$board_skin?>/img/i_music.gif' border=0></a>
<? if ($is_checkdelete) { ?>
<a href='javascript:all_checked(true);'><img src=<?=$board_skin?>/img/i_select.gif border=0> </a><a href='javascript:all_checked(false);'><img src=<?=$board_skin?>/img/i_selfalse.gif border=0></a>
<a href='javascript:all_delete();'><img src=<?=$board_skin?>/img/i_seldel.gif border=0></a>
<script language='javascript'>
function all_checked(sw)
{
var f = document.frmgblist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == 'chk_wr_id[]') {
f.elements[i].checked = sw;
}
}
}
function all_delete()
{
var f = document.frmgblist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == 'chk_wr_id[]' && f.elements[i].checked) {
chk_count++;
}
}
if (!chk_count) {
alert("게시물을 하나 이상 선택하세요.");
return;
}
if (!confirm("선택한 게시물을 정말 삭제 하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다")) {
return;
}
f.submit();
}
</script>
<? } ?>
</td>
<form name=fsearch method=get action='./'>
<input type=hidden name=doc value='<?=$doc?>'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<td width=50% align=right>
<select name=sselect class=select>
<option value='wr_subject|wr_content'>제목+내용</option>
<option value='wr_1'>가수</option>
<option value='wr_2'>작곡</option>
<option value='wr_num'>번호</option>
<option value='wr_datetime'>날짜</option>
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='wr_hit'>읽음</option>
<? if ($is_good) { ?><option value='wr_good'>추천</option><? } ?>
<? if ($is_nogood) { ?><option value='wr_nogood'>비추천</option><? } ?>
</select><input
type=text name=stext size=10 required itemname='검색어' value='<?=$stext?>'
class=input><select
name=soperator class=select>
<option value='0'>OR</option>
<option value='1'>AND</option>
</select><input type=submit value='검색' class=button>
</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?>';
document.fsearch.soperator.value = '<?=(int)$soperator?>';
}
</script>
<? } ?>
<table width=100%>
<tr>
<td align=center>
<? if ($prev_section_href) { echo "<a href='$prev_section_href'>이전검색</a>"; } ?>
<?=$write_pages?>
<? if ($next_section_href) { echo "<a href='$next_section_href'>다음검색</a>"; } ?>
</td>
</tr>
</table>
</td></tr></table>
만진게 없는데..왜 이럴까요..ㅠ.ㅜ
댓글 전체
여러 가지로 감사드립니다. 미니달력 삽입해 보려고 하다 이전것을 지웠더군요 ^^
정말 감사드립니다. ^^
정말 감사드립니다. ^^
http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=skin3&page=6&wr_id=1175
가테고리 한줄로처리 부분인것 같은데요..
다시 하시면서 문제가 된거니까 위 주소로 가셔서 다시 하세요
가테고리 한줄로처리 부분인것 같은데요..
다시 하시면서 문제가 된거니까 위 주소로 가셔서 다시 하세요