3레벨 이상만 주소를 볼수 있게 하려면......
본문
작성된 글보기 view.skin에서
전화번호와 이메일은 3레벨 이상만 볼수 있게 했는데
주소도 3레벨 이상만 볼수 있게 하려면 어떻게해야하나요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//건축물분류
$wr3 = explode("|",$write[wr_3]);
$Step1 = $wr3[0];
$Step2 = $wr3[1];
$Step3 = $wr3[2];
//예상금액
$wr4 = explode("|",$write[wr_4]);
$pay = $wr4[0];
$pay_etc = $wr4[1];
//공사예정일
$wr5 = explode("|",$write[wr_5]);
$wr_5_1 = $wr5[0];
$wr_5_2 = $wr5[1];
//평수
$wr6 = explode("|",$write[wr_6]);
$wr_6_1 = $wr6[0];
$wr_6_2 = $wr6[1];
//주소
$wr7 = explode("|",$write[wr_7]);
$zip1 = $wr7[0];
$zip2 = $wr7[1];
$addr1 = $wr7[2];
$addr2 = $wr7[3];
//거실화장실
$wr8 = explode("|",$write[wr_8]);
$tol01 = $wr8[0];
$tol02 = $wr8[1];
$tol03 = $wr8[2];
$tol04 = $wr8[3];
$tol05 = $wr8[4];
//안방욕실
$wr9 = explode("|",$write[wr_9]);
$room01 = $wr9[0];
$room02 = $wr9[1];
$room03 = $wr9[2];
$room04 = $wr9[3];
$room05 = $wr9[4];
//타일&목공사
$wr10 = explode("|",$write[wr_10]);
$tail01 = $wr10[0];
$tail02 = $wr10[1];
$tail03 = $wr10[2];
$tail04 = $wr10[3];
//층수
$wr11 = explode("|",$write[wr_11]);
$wr_11_1 = $wr11[0];
$wr_11_2 = $wr11[1];
$wr_11_3 = $wr11[2];
//견적마감일
$ayear = substr(0,4,$write[wr_12]);
$amonth = substr(4,2,$write[wr_12]);
$aday = substr(6,2,$write[wr_12]);
if($member['mb_level'] < 3) {
$view['wr_email'] = 'XXXXX @ XXXXX .com (회원업체공개)';
$view['wr_1'] = '010-XXXX-XXXX (회원업체공개)';
}
?>
<style type="text/css">
.write_head { width:100px; height:26px; text-align:left; color:#8492A0;}
.title_head { width:130px; height:30px; text-align:left; color:#000000; padding:0 0 0 10;}
.field { text-align:left; color:#8492A0; }
input.ed {
font-family: 굴림;
font-size: 9pt;
color: #666666;
background-color: #ffffff;
border: 1px solid #cccccc;
}
</style>
<div style="height:12px; line-height:1px; font-size:1px;"> </div>
<div style="clear:both; height:30px;">
<div style="float:left; margin-top:6px;">
<img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'>
<span style="color:#888888;">작성일 : <?=date("y-m-d H:i", strtotime($view[wr_datetime]))?></span>
</div>
</div>
<div style="border:1px solid #ddd; clear:both; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding:5px; padding-top:5px; padding-bottom:8px;">
<tr>
<td style="padding:8px 0 0 10px;">
<div style="color:#505050; font-size:13px; font-weight:bold; word-break:break-all;">
<? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
<?=cut_hangul_last(get_text($view[wr_subject]))?>
</div>
</td>
</tr>
</table>
</div>
<table width="100%" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="margin-top:10;">
<tr>
<td bgcolor="#DC011D" height="2"></td>
<td bgcolor="#000000" width="218"></td>
<td bgcolor="#DC011D" height="2"></td>
<td bgcolor="#000000" width="218"></td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 성명</td>
<td bgcolor="white" style="padding:5 0 5 10;"> <?=$view[wr_name]?></td>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 전화번호</td>
<td bgcolor="white" style="padding:5 0 5 10;"> <?=$view[wr_1]?></td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 이메일</td>
<td bgcolor="white" style="padding:5 0 5 10;"> <?=$view[wr_email]?></td>
<td bgcolor="white" class=title_head></td>
<td bgcolor="white" style="padding:5 0 5 10;"></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="margin-top:10;">
<tr>
<td bgcolor="#DC011D" height="2"></td>
<td bgcolor="#000000" width="566"></td>
</tr>
<?
if ($is_admin) {
if($view[wr_12] < date("Ymd",time()) && $view[wr_2]!="완료"){
$sql = " update $write_table set wr_2 = '신청' where wr_id = '$wr_id' ";
sql_query($sql);
}
?>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 현재상황</td>
<td bgcolor="white" style="padding:5 0 5 10;"><?=$view[wr_2]?></td>
</tr>
<? } ?>
<?if ($is_category) { ?>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 견적유형</td>
<td bgcolor="white" style="padding:5 0 5 10;"><?=$view[ca_name]?></td>
</tr>
<? } ?>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 현장주소</td>
<td bgcolor="white" style="padding:5 0 5 10;">(<?=$zip1?>-<?=$zip2?>) <?=$addr1?><?=$addr2?></td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 건축물분류</td>
<td bgcolor="white" style="padding:5 0 5 10;"><?=($Step1)?$Step1:"";?> <?=($Step2)?" > ".$Step2:"";?> <?=($Step3)?" > ".$Step3:"";?></td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 층수</td>
<td bgcolor="white" style="padding:5 0 5 10;">총 <?=$wr_11_1?> 층 건물중 <?=$wr_11_2?> <?=$wr_11_3?> 층</td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 평형(실평수)</td>
<td bgcolor="white" style="padding:5 0 5 10;"> <?=$wr_6_1?> ㎡ , <?=$wr_6_2?> 평</td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 공사예정일</td>
<td bgcolor="white" style="padding:5 0 5 10;"><?=cut_string_date($wr_5_1,1)?> 부터 ~ <?=cut_string_date($wr_5_2,1)?> 까지</td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 견적마감일</td>
<td bgcolor="white" style="padding:5 0 5 10;"><?=cut_string_date($view[wr_12],1)?> 24:00 마감</td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 예상금액</td>
<td bgcolor="white" style="padding:5 0 5 10;"><?=$pay?> 만원 <?=($pay_etc=="check")?"<font color='red'>협의후결정</font>":""?></td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 인테리어수준</td>
<td bgcolor="white" style="padding:5 0 5 10;"><?=$write[wr_13]?></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="margin-top:10;">
<tr>
<td bgcolor="#DC011D" height="2"></td>
<td bgcolor="#000000" width="566"></td>
</tr>
<tr><td bgcolor="white" colspan="2" style="padding:5 5 5 5;"><img src="<?=$board_skin_path?>/img/title_dot.gif" align="absmiddle"> 아래 양식을 작성해 주시면 견적사항을 검토 후 답변 드리겠습니다.</td></tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 욕실공사</td>
<td bgcolor="white" style="padding:5 0 5 10;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:5 0 5 0;"><img src="<?=$board_skin_path?>/img/<?=($tol01=="거실화장실")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 거실화장실</td>
<td>( 선택사항 : <img src="<?=$board_skin_path?>/img/<?=($tol02=="파티션")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 파티션
<img src="<?=$board_skin_path?>/img/<?=($tol03=="욕조")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 욕조
<img src="<?=$board_skin_path?>/img/<?=($tol04=="돔천정")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 돔천정
<img src="<?=$board_skin_path?>/img/<?=($tol05=="샤워부스")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 샤워부스 )</td>
</tr>
<tr>
<td style="padding:5 0 5 0;"><img src="<?=$board_skin_path?>/img/<?=($room01=="안방욕실")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 안방욕실</td>
<td>( 선택사항 : <img src="<?=$board_skin_path?>/img/<?=($room02=="파티션")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 파티션
<img src="<?=$board_skin_path?>/img/<?=($room03=="욕조")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 욕조
<img src="<?=$board_skin_path?>/img/<?=($room04=="돔천정")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 돔천정
<img src="<?=$board_skin_path?>/img/<?=($room05=="샤워부스")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 샤워부스 )</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 타일공사</td>
<td bgcolor="white" style="padding:5 0 5 10;">
<img src="<?=$board_skin_path?>/img/<?=($tail01 == "현관타일")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 현관타일
<img src="<?=$board_skin_path?>/img/<?=($tail02 == "베란다타일")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 베란다타일
<img src="<?=$board_skin_path?>/img/<?=($tail03 == "주방타일")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 주방타일
</td>
</tr>
<tr>
<td bgcolor="white" class=title_head><img src="<?=$board_skin_path?>/img/bul_new_up.gif"> 목공사</td>
<td bgcolor="white" style="padding:5 0 5 10;">
<img src="<?=$board_skin_path?>/img/<?=($tail04 == "욕실문교체")?"yes":"no";?>_checkbox.jpg" align="absmiddle"> 욕실문교체(ABS)
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="margin-top:10;">
<tr>
<td bgcolor="#DC011D" height="2"></td>
<td bgcolor="#000000" width="566"></td>
</tr>
<tr><td bgcolor="white" colspan="2" style="padding:5 5 5 5;"><img src="<?=$board_skin_path?>/img/title_dot.gif" align="absmiddle"> 희망하시는 디자인이나 컨셉, 공사내역을 간략히 기재해 주세요.</td></tr>
<tr>
<td bgcolor="white" colspan="2" style="padding:5 5 5 5;">
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
echo " <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>";
echo " <span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
echo "</a></td></tr>";
}
}
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
echo " <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle border='0'>";
echo "<a href='{$view[link_href][$i]}' target=_blank>";
echo " <span style=\"color:#888;\">{$link}</span>";
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[link_hit][$i]}]</span>";
echo "</a></td></tr>";
}
}
?>
<tr>
<td height="150" style="word-break:break-all; padding:10px;">
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<!-- 내용 출력 -->
<span id="writeContents"><?=$view[content];?></span>
<?//echo $view[rich_content]; // view_image($view, '0', '') 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($nogood_href) {?>
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
<div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
<div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
</div>
<? } ?>
<? if ($good_href) {?>
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
<div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
<div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
</div>
<? } ?>
</td>
</tr>
<? if ($is_signature) { echo "<tr><td align='center' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>$signature</td></tr>"; } // 서명 출력 ?>
</table>
</td>
</tr>
</table>
<!-- 게시글 보기 시작 -->
<br>
<?
// 코멘트 입출력
include_once("./view_comment.php");
?>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
<div style="clear:both; height:43px;">
<div style="float:left; margin-top:10px;">
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</div>
<!-- 링크 버튼 -->
<div style="float:right; margin-top:10px;">
<?
ob_start();
?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
<? 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 ($update_href) { 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>
</div>
<div style="height:2px; line-height:1px; font-size:1px; background-color:#dedede; clear:both;"> </div>
</td></tr></table><br>
<script type="text/javascript">
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>
<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
<script type="text/javascript">
window.onload=function() {
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
답변 2
01 | <?php |
03 | if ( $member [ 'mb_level' ] > 2 ) |
04 | { |
05 | ?> |
145 | <td bgcolor= "white" class =title_head><img src= "<?=$board_skin_path?>/img/bul_new_up.gif" > 현장주소</td> |
146 | <td bgcolor= "white" style= "padding:5 0 5 10;" >(<?= $zip1 ?>-<?= $zip2 ?>) <?= $addr1 ?><?= $addr2 ?></td> |
147 | </tr> |
07 | <?php |
08 | } |
09 | |
10 | ?> |
<?php
if ( $member['mb_level'] > 2 )
{
?>
주소를 빨리 보여줘요~ 현기증이 난단 말이에요.
<?php
}
?>
이렇게 해 보심이...
!-->
답변을 작성하시기 전에 로그인 해주세요.