<?php
require_once 'web.config.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>
    <title>爱墙</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="themes/lu10000/theme.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
      <div class="header"></div>
      <div class="qiangtou"><a href="lovewall_input.php">+++ 点击此处开始在爱墙永久发布你的祝福纸条 +++</a></div>
      <div class="zhuan">
      <div class="container">
      <div class="qiang">


<?php
//$colors=array('fff','f09','f00','f60','ff84ff','ff0','f0f','f90','fcf','bfabff','e4e45a','fc0','bff','fad6f0','ffce7d','ffa68c','bdbede','fc6','73e7ff','8cefd6','97eb76','eba876','ceeb76','eee');
//echo  count($colors);
//$color_val=0;
//for($tiao=1;$tiao<50;$tiao++){
$sql="select * from deep_zhiTiao order by id";
$rs=$conn->query($sql);
$tiao=0;
while ($row=$rs->fetch() ){
    $tiao++;
?>
<div class="zhitiao" style="top:<?php echo mt_rand(0,400) ?>px; left: <?php echo mt_rand(50,800) ?>px; background-color:<?php echo $row['bgColor']?>">
    第<?php echo $tiao?>条 <?php echo $row['createTime']?> <span title="关闭">X</span><br />
    <?php echo $row['fcontent']?><br />
    <?php echo $row['fAuthor']?>
</div>
<?php
//    if($color_val <(count($colors)-1  ) )
//    {
//        $color_val++;
//    }else{
//        $color_val=0;
//    }
}
?>

      </div>
      </div>
      </div>
      <div class="qiangji">
           <?php require_once 'include/include.foot.php';?>

      </div>
  </body>
</html>
<script type="text/javascript" src="./Deep_library/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="./Deep_library/js/ui.core.js"></script>
<script type="text/javascript" src="./Deep_library/js/ui.draggable.js"></script>
<script type="text/javascript">
    var z_index_val=100000;
    $(function(){
        $(".qiang div").fadeOut("fast").fadeIn(1000).draggable().click(function(){
                $(this).css('z-index', z_index_val++);
        });
                //alert('===============')
        $('.qiang div span').click( function(){
                //alert("===============");
                $(this).parent().fadeOut("slow");
        });

    });
</script>
