<? include template("head"); ?>
<div id="main">
	<div class="main_con spe_left1">
    	<div class="left_con_text" style="height:800px;">
            <div class="title_line1"><div class="title_word1">类型</div></div>
            <ul>
            <?if($arr_type_next){
            	foreach($arr_type_next AS $k => $v){	
			    	echo "<li><a href='".rewrite_list_rule("type",$v["id"])."' >".$v["name"]."</a></li>";
			    }
            }else{
            	foreach($arr_type AS $k => $v){	
			    	echo "<li><a href='".rewrite_list_rule("type",$v["id"])."' >".$v["name"]."</a></li>";
			    }
            } ?> 
            </ul>
            <div class="clear-f"></div>
            <?if(get_system("zone_flag")){?>
            <div class="title_line1"><div class="title_word1">地区</div></div>
            <ul><?foreach($arr_zone AS $k => $v){echo "<li><a href='".rewrite_list_rule("zone",$v["id"])."' >".$v["name"]."</a></li>";}?>
            </ul>
            <div class="clear-f"></div>
            <?}?>
            <div class="title_line1"><div class="title_word1">字母</div></div>
            <ul><?foreach($arr_word AS $k => $v){	echo "<li><a href='".rewrite_list_rule("word",$v)."' >".$v."</a></li>";}?>                                
            </ul>
             <div class="clear-f"></div>      
			 <div class="title_line1"><div class="title_word1">点击排行</div></div>
            <ul>
            <li><a href="<?=DOMAIN_PATH?>/tongji.php?act=w">本周排行</a></li>
			<li><a href="<?=DOMAIN_PATH?>/tongji.php?act=m">本月排行</a></li>
			<li><a href="<?=DOMAIN_PATH?>/tongji.php">累计排行</a></li>
            </ul>
            <div class="clear-f"></div>
            <div class="title_line1"><div class="title_word1">日期</div></div>
            <ul><?foreach($arr_ym AS $k => $v){	echo "<li><a href='".rewrite_list_rule("ym",$v)."' >".$v."</a></li>";}?>        
            </ul>
            <div class="clear-f"></div>           
            <ul>
			<li>
			<!--图书左侧gg-->
			<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggbookleft"></script>
			</li>
            </ul>
            <div class="clear-f"></div>        
                
		</div>
        <div class="clear-f"></div>
	</div>
  <div class="main_con" style="width:524px;">
    	<div class="left_con_text spe_mid">
        	<div id="list_content">
           	  <div id="book_title"><?=$value["name"]?></div>
            	<div id="book_info"><b>又名：</b><?=$value["name_p"]?>&nbsp; <b>出生年代：</b><?=$value["year"]?>&nbsp; <b>擅长：</b><?foreach($value["t_arr"] as $kt =>$vt){?><a href="<?=rewrite_list_rule('type',$kt)?>"><?=$vt?></a>&nbsp;<?}?> <?if(get_system("zone_flag")){?><?if($value["cz_name"]){?><b>地区：</b><a href="<?=rewrite_list_rule('zone',$value["cz_id"])?>"><?=$value["cz_name"]?></a><?}}?> <b>性别：</b><?=$value["sex"]?>&nbsp;
				<div id="book_info"><span id="kk_book_counts"></span><script>GetBookCounts(<?=$value['id']?>,"<?=$value['name']?>","w")</script></div>
<div id="book_info"><span id="kk_book_action"></span><script>GetBookAction(<?=$value['id']?>,"<?=$value['name']?>","w")</script><script>GetCookiesView(<?=$value['id']?>,"<?=$value['name']?>","w")</script></div>
            	</div> 
            	<div id="book_content">
                	<div id="book_pic"><img src="<?=$value['pic'] ?>" width="120" height="164" border="0" title="<?=$value["title"]?>" alt="<?=$value["title"]?>"></div>
                    <div id="book_word"><b>简介：</b>
                    <div id="infoShort" ><?=cut_str(de($value["content"]),200)?></div>
                    <div id="infoLong" style="display: none;"><?=de($value["content"])?></div><a id="showtext" style="float:right;cursor: hand; cursor:pointer;" onClick="showdiv('infoLong','showtext')">[展开/收缩]</a></div>
                </div>                                       
       		  <div class="clear-f"></div>
      
      			<div id="book_title2">相关作品</div>

                <div>
             	<ul>
                	<?if(!empty($value["b_arr"])){foreach($value["b_arr"] AS $k => $v){ ?>
                        <li style="text-align:left;"><a href="<?=get_dir_url($k)?>">◎<?=$v?></a></li>
                        <?}}else{ echo "<li class='book_zhang' style='width:350px;'>暂时没有该作者的相关作品。</li>";}?> 
                    </ul>  
                </div>
                    
        		<div class="clear-f"></div>
        	              
                
       	  	</div>            
            <div class="clear-f"></div>
      	</div>
      	<div class="clear-f"></div>
  </div> 
  <div class="main_con">
    	<div class="left_con_text spe_rig" style="height:800px;">
          <div class="title_line bg_col">相关作者</div>
            <ul>
            	<?foreach($r_list AS $k => $v){	?>        
                <li><a href="<?=WRITTER_SHOW_PATH.'/'.$v['id']?>" title="<?=$v["name"]?>">·<?=cut_str($v["name"],10)?></a></li>
                <?}?> 
                <li>
				<!--图书右侧gg-->
				<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggbookright"></script>
				</li>                                                                              	
          </ul>  
        </div>
          <div class="clear-f"></div>    
    </div>
    <div class="clear-f"></div>    
</div>

<div id="light" class="white_ping">
<table width="100%" align="center" cellpadding="0" cellspacing="1" bordercolorlight="#FFFFFF" bordercolordark="#CCCCCC" bgcolor="#CCCCCC" id="table4">
      <tr>
        <td width="578" height="200" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td height="30"><span id="showNobody" style="display:none;"><input onclick="this.checked=!this.checked" checked type="checkbox" name="nobody" id="nobody" value="1">匿名</span> </td>
          </tr>
          <tr>
            <td height="30"><span id="showPingLogin"></span></td>
          </tr>
		  <tr>
            <td height="30">评论字符不能超过255个字符。</td>
          </tr>
        </table></td>
        <td width="791" height="200" align="center" valign="top" bgcolor="#FFFFFF"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30">标题：
            <input name="c_title" type="text" id="c_title" style=" border:1px solid #cccccc;" /></td>
          </tr>
          <tr>
            <td><textarea name="c_contents" id="c_contents" cols="70" rows="10" style="font-size:12px; border:1px solid #cccccc;"></textarea></td>
          </tr>
          <tr>
            <td height="40">
            <input type="button" name="button" id="button" value="提交" onclick="submitComments(<?=$value['id']?>,'<?=$value['name']?>','w')"> <input name="" type="button" onclick="close_ping()" value="关闭" /></td>
          </tr>
        </table></td>
      </tr>
</table>
</div>
<div id="fade" class="black_ping"></div>



<? include template("foot"); ?>
<script type="text/javascript">
function showdiv(targetid,objN){
      var target=document.getElementById(targetid);
      var infoShort=document.getElementById('infoShort');
      var clicktext=document.getElementById(objN)
    if (target.style.display=="block"){
        target.style.display="none";
        infoShort.style.display="block";
        return true;
    } else {
        target.style.display="block";
        infoShort.style.display="none";
        return true;
    }
}
</script>
