This commit is contained in:
shim
2023-04-17 11:06:08 +09:00
parent d0b393aa97
commit 76264e09ad
4686 changed files with 552713 additions and 0 deletions

View File

@@ -0,0 +1,139 @@
<?php
include_once $g['dir_module_skin'].'_menu.php';
$sort = $sort ? $sort : 'uid';
$orderby= $orderby ? $orderby : 'desc';
$recnum = $recnum && $recnum < 200 ? $recnum : 15;
$type = $type ? $type : 'follower';
if ($type == 'follower')
{
$sqlque = 'by_mbruid='.$M['memberuid'];
if ($category) $sqlque .= " and category='".$category."'";
}
elseif($type == 'following')
{
$sqlque = 'my_mbruid='.$M['memberuid'];
}
else {
$sqlque = 'my_mbruid='.$M['memberuid'].' and rel=1';
}
if ($where && $keyword)
{
$sqlque .= getSearchSql($where,$keyword,$ikeyword,'or');
}
$RCD = getDbArray($table['s_friend'],$sqlque,'*',$sort,$orderby,$recnum,$p);
$NUM = getDbRows($table['s_friend'],$sqlque);
$TPG = getTotalPage($NUM,$recnum);
$_NUM = array();
$_NUM['follower'] = getDbRows($table['s_friend'],'by_mbruid='.$M['memberuid']);
$_NUM['following'] = getDbRows($table['s_friend'],'my_mbruid='.$M['memberuid']);
$_NUM['friend'] = getDbRows($table['s_friend'],'my_mbruid='.$M['memberuid'].' and rel=1');
?>
<div id="friendlist">
<div class="info">
<div class="article">
<a href="<?php echo $g['url_page']?>&amp;type=friend"<?php if($type=='friend'):?> class="b"<?php endif?>>맞팔</a><span class="num">(<?php echo $_NUM['friend']?>)</span></span> <span>|</span>
<a href="<?php echo $g['url_page']?>&amp;type=follower"<?php if($type=='follower'):?> class="b"<?php endif?>>팔로워</a><span class="num">(<?php echo $_NUM['follower']?>)</span> <span>|</span>
<a href="<?php echo $g['url_page']?>&amp;type=following"<?php if($type=='following'):?> class="b"<?php endif?>>팔로잉</a><span class="num">(<?php echo $_NUM['following']?>)
</div>
<div class="category">
<?php if($type != 'follower'):?>
<select onchange="goHref('<?php echo str_replace('&amp;','&',$g['url_page'])?>&type=<?php echo $type?>&category='+this.value);">
<option value="">&nbsp;+ 전체</option>
<option value="">-------------</option>
<?php $_CATS = getDbSelect($table['s_friend'],"my_mbruid=".$M['memberuid']." and category<>'' group by category",'category')?>
<?php while($_R=db_fetch_array($_CATS)):?>
<option value="<?php echo $_R['category']?>"<?php if($_R['category']==$category):?> selected="selected"<?php endif?>>ㆍ<?php echo $_R['category']?></option>
<?php endwhile?>
</select>
<?php endif?>
</div>
<div class="clear"></div>
</div>
<table summary="친구 리스트입니다.">
<caption>친구</caption>
<colgroup>
<col width="50">
<col>
<col width="60">