<?php
/*
 * 注意：此文件由tpl_engine编译型模板引擎编译生成。
 * 如果您的模板要进行修改，请修改 templates/default/modules/users/user_integral.html
 * 如果您的模型要进行修改，请修改 models/modules/users/user_integral.php
 *
 * 修改完成之后需要您进入后台重新编译，才会重新生成。
 * 如果您开启了debug模式运行，那么您可以省去上面这一步，但是debug模式每次都会判断程序是否更新，debug模式只适合开发调试。
 * 如果您正式运行此程序时，请切换到service模式运行！
 * 
 * 如有您有问题请到官方论坛（http://tech.jooyea.com/bbs/）提问，谢谢您的支持。
 */
?><?php
	require("foundation/agrade.php");
	require("foundation/module_users.php");
	
	//语言包引入
	$u_langpackage=new userslp;

	//变量获得
	$url_uid=short_check(get_argg('user_id'));
	$ses_uid=get_sess_userid();
	
  //引入模块公共权限过程文件
	$is_self_mode='partLimit';
	$is_login_mode='';
	require("foundation/auser_validate.php");	
	
	$show_button='content_none';
	if($is_self=='Y'){
		$show_button='';
	}

	//表声明区
	$t_users = $tablePreStr."users";

	$dbo = new dbex;
	//读写分离定义函数
	dbtarget('r',$dbServs);

	$user_info = get_user_info($dbo,$t_users,$userid);
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="skin/<?php echo $skinUrl;?>/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/<?php echo $skinUrl;?>/css/iframe.css">
</head>
<body>
  <div class="main_right_title">
     <span class="main_title_dot9"></span>
     <span class="main_title_txt"><?php echo $u_langpackage->u_conf;?></span>
  </div>

<div id="tabsB" class="<?php echo $show_button;?>">
	<ul>
    <li><a href="?app=user_info" title="<?php echo $u_langpackage->u_info;?>"><span><?php echo $u_langpackage->u_info;?></span></a></li>
    <li><a href="?app=user_ico" title="<?php echo $u_langpackage->u_icon;?>"><span><?php echo $u_langpackage->u_icon;?></span></a></li>
    <li><a href="?app=user_integral" title="<?php echo $u_langpackage->u_integral;?>" class="nowbutl"><span class="nowbutr"><?php echo $u_langpackage->u_integral;?></span></a></li>
    <li><a href="?app=user_pw_change" title="<?php echo $u_langpackage->u_pw;?>"><span><?php echo $u_langpackage->u_pw;?></span></a></li>
    <li><a href="?app=user_dressup" title="<?php echo $u_langpackage->u_dressup;?>"><span><?php echo $u_langpackage->u_dressup;?></span></a></li>
  </ul>
</div>

<div class="container">
	<div class="rs_head"><?php echo $u_langpackage->u_outline;?></div>
</div>
<table class='rs_list' style='border:0px; text-align:left'>
	<tr>
		<td width="25%"><?php echo $u_langpackage->u_now_integral;?></td>
		<td>
			<font color='red'><?php echo $user_info['integral'];?></font>
			<?php echo count_level($user_info['integral']);?>
			<?php echo grade($user_info['integral']);?>
		</td>
	</tr>
	<tr>
		<td><?php echo $u_langpackage->u_inte_inf;?></td>
		<td><?php echo str_replace(array("{up_integ}","{change_ico}","{skinUrl}"),array($int_convert,$int_upgrade,$skinUrl),$u_langpackage->u_inte_more);?></td>
	</tr>


	<tr>
		<td><?php echo $u_langpackage->u_guest;?></td>
		<td><?php echo $user_info['guest_num'];?><td>
	<tr>
		<td><?php echo $u_langpackage->u_reg_time;?></td>
		<td><?php echo $user_info['user_add_time'];?></td>
	</tr>		
</table>

<div class="container">
	<div class="rs_head"><?php echo $u_langpackage->u_increa_inte;?></div>
</div>
<table class='rs_list tleft bnone'>
	<tr>
		<td width="25%"><?php echo $u_langpackage->u_send_blog;?></td><td><?php echo $int_blog;?></td>
	</tr>
	<tr>
		<td width="25%"><?php echo $u_langpackage->u_upload_photo;?></td><td><?php echo $int_photo;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_send_com;?></td><td><?php echo $int_com_msg;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_send_subject;?></td><td><?php echo $int_subject;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_send_re;?></td><td><?php echo $int_com_sub;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_inv_fri;?></td><td><?php echo $int_invited;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_e_login;?></td><td><?php echo $int_login;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_s_ico;?></td><td><?php echo $int_one_ico;?></td>
	</tr>	
		
</table>

<div class="container">
	<div class="rs_head"><?php echo $u_langpackage->u_desc_inte;?></div>
</div>
<table class='rs_list tleft bnone'>
	
	<tr>
		<td width="25%"><?php echo $u_langpackage->u_del_blog;?></td><td><?php echo $int_del_blog;?></td>
	</tr>
	<tr>
		<td width="25%"><?php echo $u_langpackage->u_del_photo;?></td><td><?php echo $int_del_photo;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_del_com;?></td><td><?php echo $int_del_com_msg;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_del_sub;?></td><td><?php echo $int_del_subject;?></td>
	</tr>	
	<tr>	
		<td width="25%"><?php echo $u_langpackage->u_del_re;?></td><td><?php echo $int_del_com_sub;?></td>
	</tr>	
	
</table>
</form>
</body>
</html>