<?php
	$letter = array('其他','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title><?php echo F('web_page_title', false, "{$sort['name']} - 名人堂");?></title>
<?php TPL::plugin('include/css_link');?>
<?php TPL::plugin('include/js_link');?>
<link href="<?php echo W_BASE_URL; ?>css/default/pub.css" rel="stylesheet" type="text/css" />
</head>


<body id="user-recommend">
	<div id="wrap">    
    	<div class="wrap-in">	
            <!-- 头部 开始-->
			<?php TPL::plugin('include/header'); ?>
            <!-- 头部 结束-->
            <div id="container" class="single">
                <div class="content">
                	<div class="main-wrap">
                        <div class="main user-recom">
                        	<div class="main-bd">
                                <div class="recom-top">
									<img src="<?php echo W_BASE_URL; ?>img/recommend_bg.png" alt="" />
                                </div>
                                <!-- 名人堂二级分类 开始 -->
                                <div class="column-title">
                                    <h3><a href="<?php echo URL('celeb');?>">名人堂</a>
                                    <em class="gt">&gt;</em><a href="<?php echo URL('celeb.starSortList', 'id='.$sort_parent['id']);?>" class="guide-link" title="<?php echo $sort_parent['name'];?>"><?php echo $sort_parent['name'];?></a>
                                    <em class="gt">&gt;</em><span><?php echo $sort['name'];?></span>
                                    </h3>
                                </div>
                                
                                <!-- 字母检索 开始 -->
                                <div class="guide-index">
									<h4><?php echo $sort['name'];?></h4>
    									<div class="index-list">
    									<?php if(empty($index_list)): ?>
    										<span>此分类暂无数据</span>
    									<?php else: ?>
    										<span>按字母检索</span>
											<?php foreach($index_list as $id):?>
											 	<a href="#<?php echo $id;?>"><?php echo $letter[$id];?></a>
											<?php endforeach;?>
    									<?php endif; ?>
    									</div>
								</div>
                                <!-- 字母检索 结束 -->
                                
                                <!-- 名人列表 开始 -->
                        		<?php
                        		foreach($list as $id => $re){
                        			Xpipe::pagelet(
                        				'user.outputCelebUserBlock',
                        				array(
                        					'id' => $id,
                        					'name' => $letter[$id],
                        					'data' => $re,
                        					'show_more_link' => false,
                        				)
                        			);
                        		}
                        		?>
                                <!-- 名人列表 结束 -->
                                
                                <!-- 名人堂二级分类 结束 -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
             <!-- 底部 开始-->
            <?php TPL::module('footer');?>
            <!-- 底部 结束-->
        </div>
    </div>
    <?php TPL::module('gotop');?>
</body>
</html>









