<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta content="telephone=no" name="format-detection" />	
	<title>Document</title>
	<link rel="stylesheet" href="assets/css/credits_detail.css">
</head>
<body>
	<div class="jifen_box">
		<table cellspacing="0">
			<tr>
				<td class="jifen_right head_top"></td>
				<td class="jifen_icon head_top"></td>
				<td class="jifen_cz tb_head head_topA"><?php echo odz_lang('jifen_cz');?></td>
				<td class="jifen_pc tb_head head_top"><?php echo odz_lang('jifen_pc');?></td>
				<td class="jifen_jf head_jf tb_head head_top"><?php echo odz_lang('jifen_jf');?></td>
			</tr>
                        <?php foreach($credit_rule as $key => $val):?>
                            <tr>
                                <td class="jifen_right bot_right"></td>
                                <td class="jifen_icon"><img src="<?php echo "assets/images/".$val['img_src'];?>" alt=""></td>
                                <td class="jifen_cz"><?php echo $val['rulename'];?></td>
                                <td class="jifen_pc"><?php echo $val['cycletype_name'];?></td>
                                <td class="jifen_jf bot_jf">
                                    <ul>
                                        <?php foreach($extcredits as $k => $value):?>
                                            <?php if(array_key_exists('extcredits'.$k,$val) && $val['extcredits'.$k] != 0):?>
                                                <li><?php echo $value['title']." +".$val['extcredits'.$k]?> </li>
                                            <?php endif;?>
                                        <?php endforeach;?>
                                    </ul>
                                </td>
                            </tr>
                        <?php endforeach;?>
                        <?php if(!empty($share_switch)){?>
                        <tr>
                            <td class="jifen_right bot_right"></td>
                            <td class="jifen_icon"><img src="<?php echo 'assets/images/share_article_score.png';?>" alt=""></td>
                            <td class="jifen_cz"><?php echo $article_share['rulename'];?></td>
                            <td class="jifen_pc"><?php echo $article_share['cycletype_name'];?></td>
                            <td class="jifen_jf bot_jf">
                                <ul>
                                    <li>
                                        <?php echo $article_share['title']." +".$article_share['score']?>
                                    </li>
                                </ul>
                            </td>
                        </tr> 
                        <?php }?>                     
		</table>
	</div>
</body>
 <script type="text/javascript" src="assets/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">

$(document).ready(function(){ 
     var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
     if(height<504){
        $('.jifen_box table tr td').css('border-width','0px 0px 1px 0px');
     }
     var u = navigator.userAgent;
    if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {
        $('.jifen_box table tr td').css('border-width','0px 0px 1px 0px');
    }
  
});  

</script>
</html>