<?php
@session_start();
include('inc/conn.php');
include('checkstate.php');
include('inc/function.php');
include('fun/funcount.php');


 ?>
<!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" />
<meta name="robots" content="noindex,nofllow">
<title>ETW 国际客户之窗</title>
<link rel="stylesheet" type="text/css" href="css/css.css" />

</head>

<body>
<div id="main">
    <div id="top">
       <?php include('header.php');  ?>
       <div id="logo">
       <div id="menu">
          <ul><li class="current"><a href="manage.php">系统首页</a></li>
         <li><a href="news.php">新闻</a></li>
          <li><a href="commontools.php">工具箱</a></li>
       </ul><!--<iframe style=" float:right" width='350' height='30' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' scrolling='No' src='http://m.weather.com.cn/m/p3/weather1.htm' name="I6"></iframe>--></div>
       </div>
       
    </div>
     <!-- left -->
     <?php include('left.php');?>
   
     <div id="right">
       <div id="welcome"><h2>欢迎您： <?php echo $info['company'];  ?></h2></div>
       <div id="welcomne_page">
          
          
              
          <div id="message"><h3>消息中心</h3>
          <table width="500" border="0" style="line-height:30px; font-size:13px; margin-top:15px; margin-bottom:20px;">
  <tr>
    <td width="58">&nbsp;</td>
    <td width="65">未读询盘:</td>
    <td width="91">(<?php unreadinquery($_SESSION['guestid'],$wherechild); ?>)封</td>
    <td width="50">&nbsp;</td>
    <td width="72">翻译回复:</td>
    <td width="138">(<a href='unread.php'><?php unreadetwtrans($_SESSION['guestid'],$wherechild);  ?></a>)封</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>客服回复:</td>
    <td>(<a href="suggestion.php"><?php servicecout($_SESSION['guestid']); ?></a>)条</td>
    <td>&nbsp;</td>
    <td>ETW公告:</td>
    <td>(<a href="notices.php" style="color:#FF0000"><?php noticecout(); ?></a>)条</td>
  </tr>
  <tr><td></td><td colspan="5">&nbsp;</td></tr>
  <tr><td></td><td colspan="5">上次登陆时间为：<?php lastlogintime($_SESSION['guestid']); ?> ；共登陆  <?php logincount($_SESSION['guestid'],$wherechild); ?>  次</td></tr>
  <tr><td></td><td colspan="5"><?php $is=sql_select("select count(*) from etw_baohu where userid=".$_SESSION['guestid']);
      if($is[0][0]==0 && $_SESSION['vote']=="father"){   ?>为了防止密码丢失、遗忘，请您添加 <a href="questionbaohu.php" target="_blank">密码保护</a>功能</p><?php }  ?></td></tr>

</table>

          </div>

 <div id="abetw">
          <div id="news"><ul>
             <li class="active">留言板</li>
             <li class="normal">热点新闻</li>
             <li  class="normal">财经热点</li>
             <li  class="normal">娱乐资讯</li></ul></div>
             
             <div id="shownews">
             <div>
             <form id="form1" name="form1" action="message.php" method="post">
             <table width="500" border="0" style="float:left; color:#1462A0;">
  <tr>
    <td width="26">&nbsp;</td>
    <td width="78">主题分类：
      <input type="hidden" name="userid" value="<?php echo $_SESSION['guestid'];  ?>" /></td>
    <td width="382"><input type="radio" name="selects" checked="checked" value="1" onclick="hiddenfujian()" />我有疑问 &nbsp;<input type="radio" name="selects" value="2" onclick="hiddenfujian()" />我的建议 
                <input  type="radio" name="selects" value="3" onclick="showfujian()" />翻译服务 &nbsp; <input type="radio" name="selects" value="4" onclick="showfujian()" />网站修改 </td>
  </tr>
  <tr>
    <td>&nbsp;</td><td>主题内容：</td>
    <td><textarea name="content" cols="46" rows="8" style="border:solid 1px #C9DFED;"></textarea></td>
  </tr></table>
  <table width="500" border="0" style="float:left;">
  <tr id="fujiantr">
    <td width="41">&nbsp;</td>
    <td width="67">添加附件：
      <input type="hidden" id="fujian" name="fujian" /></td>
    <td width="378"><iframe src="uppic.php" width="275" height="20" scrolling="no" frameborder="0"></iframe></td>
  </tr></table>
   <span style=" float:left; margin-top:15px; width:100%; text-align:center"><input type="submit" class="submit" name="submit" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" class="submit" name="reset" value="重填" /></span>
  
</form>

             </div>
       <!-- 政治 -->         <div  class="hiddennews_tag"><ul><?php 
$date=date("Y-m-d",time());
$date2=date("Y-m-d",(time()-24*60*60));
$sql="select * from news_news where cateid=1 and (modtime like'%".$date."%' or modtime like '%".$date2."%') order by id desc limit 0,24";
$result=mysql_query($sql);  
while($rs=mysql_fetch_array($result)){
	  ?>              
   <li class="normal"><a href="newsdetail.php?id=<?php echo $rs['id'] ?>"  target="_blank"><?php  echo  utf8Substr($rs['title'],0,18);  ?></a></li>
<?php  } ?>
              </ul></div>
 <!-- 今日经济 -->             <div class="hiddennews_tag"><ul><?php 

$sql="select * from news_news where cateid=4 and  modtime<'".$date."' and modtime>'".$date2."' order by id desc limit 0,24";
$result=mysql_query($sql);  
while($rs=mysql_fetch_array($result)){
 ?>              
    <li class="normal"><a href="newsdetail.php?id=<?php echo $rs['id'] ?>" target="_blank"><?php  echo  utf8Substr($rs['title'],0,18);  ?></a></li>
<?php } ?>
              </ul></div>
              <!-- 今日经济 --> 
               <div class="hiddennews_tag"><ul><?php 

$sql="select * from news_news where cateid=7  order by id desc limit 0,24";
$result=mysql_query($sql);  
while($rs=mysql_fetch_array($result)){
 ?> 
      <li class="normal"><a href="newsdetail.php?id=<?php echo $rs['id'] ?>"  target="_blank"><?php  echo  utf8Substr($rs['title'],0,18);  ?></a></li>
<?php  } ?>
              </ul></div>
             </div>
        </div>
       </div>
       
       
         
         
        <div id="today">
           <div class="biaoti"> ETW国际导读</div>
           <ul>
<?php $sql="select * from etw_html  order by id asc";
$result=mysql_query($sql);  
while($rs=mysql_fetch_array($result)){ ?>           
           <li><a href="<?php echo $rs['url'] ?>"  target="_blank"> <?php echo $rs['title'];  ?></a></li>
              <?php }  ?>
          </ul> 
        </div>
<script type="text/javascript" src="js/huadong.js"></script> 
    
        
     </div>
<div id="footer"> Copy Rright &copy; 2008-2009 ETW International <?php if( @$_SESSION["username"]<>''){?>
<input type="hidden" id="onlineu" value="<?php echo $_SESSION["username"] ?>" />
<script type="text/javascript" src="js/onlinelisten.js"></script>
<script type="text/javascript">
window.setInterval(onlinemessage,30000);
</script>
<?php } ?></div>     
</div>
<script type="text/javascript" src="js/opencommon.js"></script>

</body>
</html>
<?php mysql_close();?>