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

$action=$_GET['action'];
if($action=="mod"){
  $company=$_POST['company'];
  $contacter=$_POST['contacter'];
  $fax=$_POST['fax'];
  $tel=$_POST['tel'];
  $mobile=$_POST['mobile'];
  $email=$_POST['email'];
  $msn=$_POST['msn'];
  $product=$_POST['product'];
  $address=$_POST['address'];
   $ups="update etw_userinfo set company='".$company."',contactname='".$contacter."',fax='".$fax."' , tel='".$tel."' ,mobile='".$mobile."' ,e_mail='".$email."', msn='".$msn."' , product='".$product."', address='".$address."' where userid=".$_SESSION['guestid'];
   mysql_query($ups);
 }

 ?>
<!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><?php echo $info['company'];  ?> - 基本信息- 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">
          <p class="title"><strong>企业信息栏 &gt;&gt; 公司基本信息</strong> </p>
         <div id="con">
<?php $sql="select * from etw_userinfo where userid=".$_SESSION['guestid'];
      $result=mysql_query($sql);
	  $rs=mysql_fetch_array($result);
	  
 ?>
<form name="form1" action="custominfo.php?action=mod" method="post">
   <table width="748" border="1" cellpadding="0" cellspacing="0"  bordercolor="#ffffff" class="contents" style="line-height:30px;">
  <tr>
    <td width="120">公司名称：</td>
    <td width="217"><input type="text" name="company" size="30"  value="<?php echo $rs['company'] ?>"/></td>
    <td width="61">联系人：</td>
    <td width="119"><input type="text" name="contacter" size="15" value="<?php echo $rs['contactname'] ?>" /></td>
    <td>传真：</td>
    <td><input type="text" name="fax" size="15" value="<?php echo $rs['fax'] ?>" /></td>
    
  </tr>
  <tr>
    <td>固定电话：</td>
    <td><input type="text" name="tel" size="15" value="<?php echo $rs['tel'] ?>" /></td>
    <td>手机：</td>
    <td><input type="text" name="mobile" size="15" value="<?php echo $rs['mobile'] ?>" /></td>
    <td>MSN：</td>
    <td><input type="text" name="msn" size="22" value="<?php echo $rs['msn'] ?>" /></td>
  </tr>
  <tr>
    <td>公司地址：</td>
    <td colspan="3"><input type="text" name="address" size="50" value="<?php echo $rs['address'] ?>" /></td>
    <td width="67">E-mail： </td>
    <td width="194"><input type="text" name="email" size="22" value="<?php echo $rs['e_mail'] ?>" /></td>
  </tr>
  <tr>
    <td>主要产品：</td>
    <td colspan="5"><textarea name="product" cols="60" rows="3"><?php echo $rs['product'] ?></textarea></td>
  </tr>
  <tr>
     <td>合作平台</td><td colspan="5"><table width="603" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="258" align="center">域 名 </td><td width="92" align="center">语言</td> <td width="127" align="center">统计时间 </td>
  </tr>
 <?php $sql2="select * from etw_web where usernameid=".$_SESSION['guestid'];
       $result2=mysql_query($sql2);
	   while($row2=mysql_fetch_array($result2)){  ?> 
  <tr> <td><?php echo $row2['website'] ?></td><td>&nbsp;</td><td>&nbsp;</td></tr>
  <?php }  ?>
</table>
</td>
  </tr>
  <tr><td colspan="6"><div align="center" style="margin:5px;"><input type="submit" name="submint" value="修改基本信息" /></div></td></tr>

</table>
</form>
         </div>
         
     </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>
<?php mysql_close();?>
</body>
</html>