회원 로그인시 분류되게 하여 링크 수정을 어떻게하나요.
본문
개인회원은 개인 아이콘으로 기업회원은 기업 아이콘이 나오게
소스는
<div style="width:190px; height:110px; border:1px solid #D6D7DB; background:#F6F6F6; padding:5 5 5 5; margin-bottom:0px">
<?
setlocale(LC_TIME,"ko");
$nowyear = strftime("%Y");
$nowmonth = strftime("%m");
$nowday = strftime("%d");
$nowhour = strftime("%H");
$nowminutes = strftime("%M");
$nowday = date("Y-m-d h:00:00", mktime($hour,0 , 0,$nowmonth , $nowday, $nowyear));
if($member[mb_9] >= $nowday){
$gubun = "정회원";
}else{
$gubun = "일반회원";
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr height='23'>
<td width="" align="center">
<img src="<?=$outlogin_skin_path?>/img/login_ing_icon.gif" align='absmiddle' width="12" height="11">
<span class='member'></span><?=$member[mb_10]?>(<font color="red"><?=$gubun?></font>)</td>
<td width="" align='center'><? if ($is_admin == "super" || $is_auth) { ?><a href="<?=$g4['admin_path']?>/"><img src="<?=$outlogin_skin_path?>/img/admin.gif" width="33" height="15" border="0" align="absmiddle"></a><? } ?></td>
</tr>
<tr height='23'>
<td width="" align="center"> <span class='member'><strong>
<?=$member[mb_name]?></strong></span>(<span class='member'><?=$member[mb_id]?></span>)님</td>
<td width="" align='center'><? if ($is_admin == "super" || $is_auth) { ?><a href="<?=$g4['admin_path']?>/"><img src="<?=$outlogin_skin_path?>/img/admin.gif" width="33" height="15" border="0" align="absmiddle"></a><? } ?></td>
</tr>
</table>
<div style="clear:both; line-height:3px;"> </div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%">
<a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$outlogin_skin_path?>/img/logout_button.gif" width="51" height="20" border="0"></a>
</td>
<?if ($member[mb_10]=="기업회원") {?>
<td width="33%">
<a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form3.php"><img src="<?=$outlogin_skin_path?>/img/login_modify.gif" width="51" height="20" border="0"></a>
</td>
<?}else{?>
<td width="10%">
<a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form4.php"><img src="<?=$outlogin_skin_path?>/img/login_modify.gif" width="51" height="20" border="0"></a>
</td>
<?}?>
<td width="24%"> <a href="javascript:member_leave();"><font color="#FF0000">탈퇴</font></a>
</td>
</tr>
</table>
<div style="clear:both; line-height:3px;"> </div>
<div style="clear:both; line-height:1px; background:#A72C31;"> </div>
<div style="clear:both; line-height:3px;"> </div>
<div style="clear:both; line-height:3px;"> </div>
<a href="../payin/pay_1.php"><IMG SRC="../../../images/member_c.gif" WIDTH=175 HEIGHT=30 ALT="" border="0"></a>
<a href="../payin/pay_2.php"><IMG SRC="../../../images/member_p.gif" WIDTH=175 HEIGHT=30 ALT="" border="0"></a>
<div style="clear:both; line-height:5px;"></div>
여기입니다. payin/pay_1.php(개인회원 아이콘)
payin/pay_2.php(기업회원 아이콘)
</div>
알려주세요. 부탁드립니다.