<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml10-transitional.dtd">
<html lang="zh-cn" xml:lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>文字版桌面</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="template/default/hoem_text/css/style.css" />
<style type="text/css">
body{
background-color:#eeeeee;
color:#383838;
margin:auto 10px;
padding: 0px;
background: #E0ECFD url(template/default/hoem_text/images/bj.jpg) repeat 0 0;
    background-attachment: fixed;
}
</style>
</head>
<script type="text/javascript"> 
var $ = function(id) {return document.getElementById(id);};
var userAgent = navigator.userAgent.toLowerCase();
var isSafari = userAgent.indexOf("Safari")>=0;
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf('msie') + 5, 3);


function getCookie(name)
{
	 var arr = document.cookie.split("; ");
	 for(i=0;i<arr.length;i++)
		 if (arr[i].split("=")[0] == name)
			return unescape(arr[i].split("=")[1]);
	 return null;
}
function setCookie(name,value,paras) {
   var today = new Date();
   var expires = new Date();
   expires.setTime(today.getTime() + 1000*60*60*24*2000);
   
   var path = null;
   if(typeof(paras) == "object")
   {
      if(typeof(paras.expires) != "undefined")
         expires = paras.expires;
      if(typeof(paras.path) != "undefined")
         path = paras.path;
   }
   
   document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() + (path ? '; path=' + path : '');
}

function _resize(module_id)
{
	 var module_i=$("module_"+module_id);
	 var head_i=$("module_"+module_id+"_head");
	 var body_i=$("module_"+module_id+"_body");
	 var img_i=$("img_resize_"+module_id);
	 var my_cookie=getCookie("my_expand_3");
	 my_cookie = (my_cookie==null || my_cookie=="undefined") ? "" : my_cookie;//alert(my_cookie)
	 if(body_i.style.display=="none")
	 {
	    module_i.className=module_i.className.substr(0,module_i.className.lastIndexOf(" "));
	    head_i.className=head_i.className.substr(0,head_i.className.lastIndexOf(" "));
	    body_i.style.display="block";
	    if(img_i.className.match("collapse_arrow"))
	    	img_i.className=img_i.className.replace("collapse_arrow","expand_arrow");
	    img_i.title="折叠";
 
	    if(my_cookie.indexOf(module_id+",") == 0)
	       my_cookie = my_cookie.replace(module_id+",", "");
	    else if(my_cookie.indexOf(","+module_id+",") > 0)
	       my_cookie = my_cookie.replace(","+module_id+",", ",");
 
	    //my_expand=true;
       setCookie("my_expand_all_3", "");
	 }
	 else
	 {
	    module_i.className=module_i.className+" listColorCollapsed";
	    head_i.className=head_i.className+" moduleHeaderCollapsed";
	    body_i.style.display="none";
	    if(img_i.className.match("expand_arrow"))
	    	img_i.className=img_i.className.replace("expand_arrow","collapse_arrow");
	    img_i.title="展开";
 
	    if(my_cookie.indexOf(module_id+",") != 0 && my_cookie.indexOf(","+module_id+",") <= 0)
	       my_cookie += module_id+",";
	 }
	 setCookie("my_expand_3", my_cookie);
}
</script>
<body style="padding-top:20px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
 	<td width="255" valign="top">
		<div id='content-left'>
 		<ul id='arraw' class="clearfix">
			<li id='arraw1' class="blue active">短消息</li></ul>
					<div id='content-left1'>
				<div class="module listColor module_nav">
					<div class='inner14'>
<style type="text/css">
#pl_weibo_show{margin:0px;padding:0px;font-size:12px;overflow-y:auto;height:500px;}
.weiboShow .content{margin: 0 10px 0 10px;padding: 12px 0 10px;border-bottom: 1px dotted #D2D2D2;text-align:left;}
.weiboShow .content img{vertical-align: -3px;}
.weiboShow .content_txt, .weiboShow .content_action{margin: 0 5px 0 5px;line-height: 20px;}
.weiboShow .content_txt{word-break:break-all;word-wrap:break-word;}
.weiboShow .WB_linkB a, .weiboShow .WB_linkB {color: #9ABBC8;}
.weiboShow .content .content_actionTime {float: left;}
.weiboShow .content .content_actionMore {float: right;cursor: pointer;}
.weiboShow .content .content_actionMore .weiboShow_vline {margin: 0 7px 0 8px;}
.weiboShow .weiboShow_vline {color: #D2D2D2;}
</style>
<div class="WB_widgets weiboShow" id="pl_weibo_show" style="height:
444px;" >

<?php
$query = $db->query("SELECT sendperson,date,content,id FROM ".DB_TABLEPRE.DB_JT."sms_receive  where smskey='1' and receiveperson='".$_USER->id."' order by date desc");
while ($row = $db->fetch_array($query)) {
?>
<div class="content clearfix">
<p class="content_txt">
<em><?php echo get_realname($row['sendperson'])?></em>：
<?php
//过滤下载
$content=str_replace("data/uploadfile/","down.php?urls=data/uploadfile/",$row['content']);
$content=str_replace('target="_blank"',"",$content);
$content=str_replace('<a',"&nbsp;&nbsp;<a",$content);
$content=str_replace('admin.php?',"admin.php?ac=receive&fileurl=sms&do=smskeymana&id=".$row['id']."&urls=".str_replace('&',"-",get_subcontent($content, 'admin.php?ac=', '>')),$content);
echo $content;
?></p>
<p class="content_action WB_linkB">
<span class="content_actionTime">
<?php echo trim($row['date'])?></span>
<!--<span class="content_actionMore">
标志己读
</span>
 --></p>
</div>
<?php }?>  
</div>
</div>
</div>
</div>

		</div>
	</td>
  <td valign="top">
 <?php
if($bguser['home_txt']!=''){
	$_txt=substr($bguser['home_txt'], 0, -1);
}else{
	if(mysql_num_rows(mysql_query("SHOW TABLES LIKE 'toa_".DB_JT."workclass'"))==1 && mysql_num_rows(mysql_query("SHOW TABLES LIKE 'toa_".DB_JT."app_type'"))==1) {
		$_txt='home_workclass,home_news_34,home_app,home_news_1,home_workdate,home_plan,home_duty,home_blog';
	}else{
		$_txt='home_news_34,home_news_1,home_workdate,home_plan,home_duty,home_blog';
	}
	
}
$_txt=explode(',',$_txt);
$tsizeof=sizeof($_txt);
$txtnum=$tsizeof/2;
$txtleft=floor($txtnum);
$txtright=$tsizeof-floor($txtnum);
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table-layout-fixed">
 <tr>
  <td id="col_l" width="65%" valign="top">
<?php
	for($i=0;$i<$txtleft;$i++){
		$_txt[$i]($i);
		//echo $_txt[$i];
	}
	?>

<div class="shadow"></div>  </td>
  <td id="col_r" valign="top">
<?php
	for($i=$txtleft;$i<$tsizeof;$i++){
		$_txt[$i]($i);
	}
	?>



<div class="shadow"></div>
  </td>
 </tr>
</table>
  </td>
 </tr>
</table>




</body>
</html>
