<?php
include("confic.php");
$ip=$_SERVER['REMOTE_ADDR'];
if($_POST['name']&&$_POST['content']){
mysql_query("INSERT INTO `".$ad."book` (`id` ,`cid` ,`fenlei` ,
`name` ,`sxinzhi` ,`email` ,`qq` ,`dianhua` ,`dizhi` ,`title` ,`content` ,`ip` ,`time` )VALUES (
NULL , '', '1', '{$_POST['name']}', '{$_POST['sxinzhi']}', '{$_POST['email']}', '', '{$_POST['dianhua']}', '{$_POST['dizhi']}', '{$_POST['title']}', '{$_POST['content']}', '{$ip}', NOW( ) );");
echo "<script language=javascript>  
alert( \"非常感谢你的宝贵意见，添加留言信息成功\"  );
location.href = \"index.php\"
</script>";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网友留言-意见反馈 </title>
<link rel="stylesheet" type="text/css" href="css/css.css" />
<script src="css/book.js"></script>
</head>
<?php include("top1.php");?>
<body>
<table width="970" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="226" rowspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="226" height="55" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb312">
              <!--DWLayoutTable-->
              <tr>
                <td width="165" height="25" align="left" valign="middle" bgcolor="#398A00">&nbsp;<span class="style112">新闻公告</span></td>
                <td width="65" align="center" valign="middle" bgcolor="#398A00"><a href="news.php?id=新闻公告" target="_blank" class="style212">>>更多</a></td>
              </tr><?php include("confic.php"); $rgg=mysql_query("SELECT * FROM `".$ad."gonggao` WHERE `fenlei` LIKE '新闻公告' ORDER BY `id` DESC LIMIT 0 , 11"); 
while ($rwg=mysql_fetch_assoc($rgg)){ ?>
              <tr bgcolor="#DAFED3">
                <td height="25" colspan="2" align="left" valign="middle">&nbsp;<a href="gnews.php?id=<?=$rwg['id']?>" target="_blank" class="style312"><?php $row=$rwg['title']; print mb_substr($row,0,17,"gb2312");?></a></td>
              </tr> <?php } mysql_close($connet);?>
                                              </table></td>
        </tr>
        <tr>
          <td height="9"></td>
        </tr>
        <tr>
          <td height="55" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb312">
              <!--DWLayoutTable-->
              <tr>
                <td width="165" height="25" align="left" valign="middle" bgcolor="#398A00"><span class="style112">推荐靓号专卖店</span></td>
                <td width="65" align="center" valign="middle" bgcolor="#398A00"><a href="show.php" target="_blank" class="style212">>>更多</a></td>
              </tr><?php include("confic.php"); $rgg=mysql_query("SELECT * FROM `".$ad."user` WHERE `tuijian` LIKE '推荐' ORDER BY `id` DESC LIMIT 0 , 10"); 
while ($rwg=mysql_fetch_assoc($rgg)){ ?>
              <tr>
                <td height="25" colspan="2" align="left" valign="middle" bgcolor="#DEFFD6" class="style312">&nbsp;<a href="sview.php?id=<?=$rwg['username']?>" target="_blank" class="style312"><?=$rwg['dpname']?></a> </td>
              </tr><?php } mysql_close($connet);?>
              <!--DWLayoutTable-->
     </table></td>
        </tr>
        <tr>
          <td height="8"></td>
        </tr>
        <tr>
          <td height="55" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb312">
              <!--DWLayoutTable-->
              <tr>
                <td width="165" height="25" align="left" valign="middle" bgcolor="#398A00" class="style112">&nbsp;行业资讯</td>
                <td width="65" align="center" valign="middle" bgcolor="#398A00"><a href="news.php?id=行业资讯" target="_blank" class="style212">>>更多</a></td>
              </tr><?php include("confic.php"); $rgg=mysql_query("SELECT * FROM `".$ad."gonggao` WHERE `fenlei` LIKE '行业资讯' ORDER BY `id` DESC LIMIT 0 , 10"); 
while ($rwg=mysql_fetch_assoc($rgg)){ ?>
              <tr align="left" valign="middle" bgcolor="#DEFFD6">
                <td height="25" colspan="2">&nbsp;<a href="gnews.php?id=<?=$rwg['id']?>" target="_blank" class="style312"><?php $row=$rwg['title']; print mb_substr($row,0,17,"gb2312");?></a></td>
              </tr><?php } mysql_close($connet);?>
                      </table></td>
        </tr>
        <tr>
          <td height="7"></td>
        </tr>
        <tr>
          <td height="90" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr>
                <td width="226" height="90" valign="top"><a href="#" target="_blank"><img src="ad/ad1.gif" width="226" height="90" border="0"></a></td>
              </tr>
                    </table></td>
        </tr>
        <tr>
          <td height="8"></td>
        </tr>
        <tr>
          <td height="245" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb312">
              <!--DWLayoutTable-->
              <tr>
                <td height="25" colspan="3" align="left" valign="middle" bgcolor="#398A00" class="style112">&nbsp;移动业务</td>
                <td width="70" align="center" valign="middle" bgcolor="#398A00"></td>
              </tr>
              <tr>
                <td width="72" height="55" align="center" valign="middle"><img src="image/feige.jpg" width="43" height="43"></td>
                <td width="77" align="center" valign="middle"><img src="image/tv.gif" width="43" height="43"></td>
                <td colspan="2" align="center" valign="middle"><img src="image/pay.gif" width="43" height="43"></td>
              </tr>
              <tr>
                <td height="20" align="center" valign="middle" class="style102"><a href="http://www.gd.chinamobile.com/whatsnew/newrelease/communicate/fetion.shtml" target="_blank" class="style102">飞信业务</a></span></td>
                <td align="center" valign="middle" class="style102"><a href="http://www.gd.chinamobile.com/gz/operation/personal/01_3997.shtml" target="_blank" class="style102">手机电视</a></td>
                <td colspan="2" align="center" valign="middle" class="style102"><a href="http://www.gd.chinamobile.com/gz/operation/personal/01_5930.shtml" target="_blank" class="style102">手机支付</a></td>
              </tr>
              <tr>
                <td height="55" align="center" valign="middle"><img src="image/chaogu.jpg" width="43" height="43"></td>
                <td align="center" valign="middle"><img src="image/yinyue.jpg" width="43" height="43"></td>
                <td colspan="2" align="center" valign="middle"><img src="image/baozhi.jpg" width="43" height="43"></td>
              </tr>
              <tr>
                <td height="20" align="center" valign="middle"><a href="http://www.gd.chinamobile.com/whatsnew/newrelease/business/ydzq.shtml" target="_blank" class="style102">手机炒股</a></td>
                <td align="center" valign="middle"><a href="http://www.gd.chinamobile.com/gotone/operation/130/02_384.shtml" target="_blank" class="style102">无线音乐</a></td>
                <td colspan="2" align="center" valign="middle"><a href="http://www.gd.chinamobile.com/whatsnew/newrelease/info/mpaper.shtml" target="_blank" class="style102">中国手机报</a></td>
              </tr>
              <tr>
                <td height="50" align="center" valign="middle"><img src="image/g.gif" width="43" height="43"></td>
              <td align="center" valign="middle"><img src="image/qxt.gif" width="43" height="43"></td>
              <td colspan="2" align="center" valign="middle"><a href="#" target="_blank"><img src="image/gmcc_logo.gif" width="43" height="43" border="0"></a></td>
              </tr>
              <tr>
                <td height="20" align="center" valign="middle"><a href="http://www.gd.chinamobile.com/gz/operation/group/solution/list/recommendation/03_299.shtml" target="_blank" class="style102">集群网</a></td>
                <td align="center" valign="middle"><a href="http://www.gd.chinamobile.com/gz/operation/group/solution/list/recommendation/03_162.shtml" target="_blank" class="style102">企信通</a></td>
                <td colspan="2" align="center" valign="middle"><a href="http://www.chinamobile.com/" target="_blank" class="style102">网上营业厅</a></td>
              </tr>
              <tr>
                <td height="1"></td>
                <td></td>
                <td width="7"></td>
                <td></td>
              </tr>
                                                            </table></td>
        </tr>
        <tr>
          <td height="10"></td>
        </tr>
        <tr>
          <td height="50" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb312">
              <!--DWLayoutTable-->
              <tr>
                <td width="226" height="25" align="left" valign="middle" bgcolor="#398A00" class="style112">&nbsp;实用工具箱</td>
              </tr>
              <tr>
                <td height="25" align="center" valign="middle"><iframe src="my.html" width="100%" height="122px" frameborder="0" scrolling="no"></iframe></td>
              </tr>
                    </table></td>
        </tr>
                </table></td>
    <td width="12" height="380">&nbsp;</td>
    <td width="732" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="732" height="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr>
                <td width="732" height="25" align="left" valign="middle" bgcolor="#398A00" class="style230">当前位置: 意见反馈</td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="355" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb312">
              <!--DWLayoutTable-->
              <form name="form1" method="post" action="" onSubmit="return book();">
              <tr>
                <td height="15" colspan="3" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="30" colspan="3" align="center" valign="middle" bgcolor="#FFFFCC" class="style712">发表留言</td>
              </tr>
              <tr>
                <td width="185" height="25" align="right" valign="middle" class="style612">姓名：</td>
                <td width="240" align="left" valign="middle">
                  <input name="name" type="text" id="name">                </td>
                <td width="307" align="left" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="25" align="right" valign="middle" class="style612">性质：</td>
                <td align="left" valign="middle"><select name="sxinzhi" id="sxinzhi">
                  <option>请选择留言的性质</option>
                  <option value="咨询">咨询</option>
                  <option value="意见">意见</option>
                  <option value="建议">建议</option>
                  <option value="投诉">投诉</option>
                  <option value="广告">广告</option>
                  <option value="其它">其它</option>
                </select></td>
                <td align="left" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="25" align="right" valign="middle" class="style612">联系邮箱：</td>
                <td align="left" valign="middle"><input name="email" type="text" id="email"></td>
                <td align="left" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="25" align="right" valign="middle" class="style612">联系电话：</td>
                <td align="left" valign="middle"><input name="dianhua" type="text" id="dianhua"></td>
                <td align="left" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="25" align="right" valign="middle" class="style612">联系地址：</td>
                <td align="left" valign="middle"><input name="dizhi" type="text" id="dizhi"></td>
                <td align="left" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="25" align="right" valign="middle" class="style612">留言标题：</td>
                <td align="left" valign="middle"><input name="title" type="text" id="title"></td>
                <td align="left" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="25" align="right" valign="middle" class="style612">留言内容：</td>
                <td colspan="2" align="left" valign="middle"><textarea name="content" cols="40" rows="8" id="content"></textarea></td>
              </tr>
              <tr>
                <td height="15" colspan="3" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr>
                <td height="25" colspan="3" align="center" valign="middle"><input type="submit" name="Submit" value="确定留言" class="style612">&nbsp;
                  <input type="reset" name="Submit2" value="重新填写" class="style612"></td>
              </tr>
              </form>
          </table></td>
        </tr>
            </table></td>
  </tr>
</table>
</body>
<?php include("top3.php");?>
</html>
