<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><html>
<head>
<title>愿望小寺</title>
<style type="text/css">
<!--
body, td, input, select   {font-family:宋体;font-size: 9pt;}
textarea, input, button  {font-family:宋体;font-size: 9pt;}
a:hover { font-family:宋体;text-decoration:none; color:red;}
a { font-family:宋体;text-decoration:none; color:#666;}
-->
</style>
<style type="text/css">
<!--
body{
overflow:scroll;overflow-x:hidden
}
.popper
{
  position : absolute;
  visibility : hidden;
}
//-->
</style>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</head>
<body scroll=no bgcolor="#FFFFFF" text="#000000" background="/templets/default/diary/wishpic/bg.gif">
<DIV ID="topdeck" CLASS="popper">　</DIV>
<SCRIPT>
var nav = (document.layers); 
var iex = (document.all);
var skn = (nav) ? document.topdeck : topdeck.style;
if (nav) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = get_mouse;
function pop(msg,bak) 
{
var content ="<table width=130 border=0 cellpadding=2 cellspacing=2 bgcolor=#808080><tr><td><font color=#FFFFFF>"+msg+"</center></font></td></tr></table>";
  if (nav) 
  { 
    skn.document.write(content); 
	  skn.document.close();
	  skn.visibility = "visible";
  }
    else if (iex) 
  {
	  document.all("topdeck").innerHTML = content;
	  skn.visibility = "visible";  
  }
}

function get_mouse(e) 
{
	var x = (nav) ? e.pageX : event.x+document.body.scrollLeft; 
	var y = (nav) ? e.pageY : event.y+document.body.scrollTop;
	skn.left = x - 60;
  skn.top  = y+20;
}

function kill() 
{
  skn.visibility = "hidden";
}

</SCRIPT>


<table border="0"cellpadding="0" cellspacing="0" align="center">
  <tr> 
          <td valign="bottom" colspan="3"><img src="/templets/default/diary/wishpic/st01.gif" width="376" height="76"></td>
        </tr>
        <tr> 
          <td valign="top" width="41"><img src="/templets/default/diary/wishpic/st02.gif" width="41" height="180"></td>
          
<td valign="top" width="294" background="/templets/default/diary/wishpic/st04.gif" style="font-size:2pt"> 
<?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields); 
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{
?>
<img src="/templets/default/diary/wishpic/c<?php echo $fields['wishtype']; ?>.gif" width="47" border="0" style="cursor:pointer;" onclick="showwish.style.display='block';document.getElementById('showwish').style.backgroundImage='url(/templets/default/diary/wishpic/b<?php echo $fields['wishtype']; ?>.gif)';document.getElementById('showmsg').innerHTML = '<?php echo $fields['msg']; ?>';document.getElementById('showinfo').innerHTML = '<?php echo $fields['uname']; ?>于<?php echo MyDate('Y-m-d H:i',$fields['dtime']); ?>留下此愿';" ONMOUSEOVER="pop('<?php echo $fields['uname']; ?>许了一个愿...<?php echo cn_substr($fields['msg'],10); ?>','#ececec')"  ONMOUSEOUT="kill()">
<?php
}
}?>

    </td>
          <td valign="top" width="41"><img src="/templets/default/diary/wishpic/st03.gif" width="41" height="180"></td>
        </tr>
        <tr>
          <td valign="top" width="41">&nbsp;</td>
          <td valign="top" width="294" style="font-size:2pt">
            <table border="0" cellpadding="2" cellspacing="0" width="100%">
              <tr> 
          <td align="center" width="80"><span id=qianxie style="display:block;cursor:pointer;color:purple" onClick="gf.style.display='block';qianxie.style.display='none';qianxie1.style.display='block';">许愿</span>
			<span id=qianxie1 style="display:none;cursor:pointer;color:green" onClick="gf.style.display='none';qianxie.style.display='block';qianxie1.style.display='none';">取消</span></td>
                <td>
            <?php
$atts = array();
$atts['tagname'] = 'pagelist';
 echo $this->refObj->GetPageList($atts,$this->refObj,$fields); 
?>
</td>
              </tr>
            </table>
          </td>
          <td valign="top" width="41">&nbsp;</td>
        </tr>
      </table>
<div id="gf" style="display:none;background:#ddd;z-index:300;position:absolute;left:0px;top:90px;margin-left:51px;">    
<form method="post" name="guestf" action="index.php" target="_self" style="margin:0px">
<input type="hidden" id="guser" value="<?php echo $GLOBALS['_vars']['uname']; ?>" />
        <input type="hidden" name="action" value="guestbooksave" />
        <input type="hidden" name="uidnum" value="<?php echo $GLOBALS['_vars']['mid']; ?>" />
        <input type="hidden" name="uid" value="<?php echo $GLOBALS['_vars']['userid']; ?>" />
        <input type="hidden" name="uname" type="text" id="uname" value="<?php if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!='') echo $cfg_ml->M_LoginID; ?>"  />
<table border="0" cellpadding="0" cellspacing="0" width="294" align="center" bgcolor="#FFFFFF" height="180">
          <tr> 
            <td align=center width="50" height="30">姓名:</td>
            <td> 
              <input maxlength="12" size="12" name="name" style="color:BLUE;width:100px;border:1px dashed #ccc">
            </td>
            <td align=center width="50">类别:</td>
            <td> 
              <select name="wishtype">
                <option value="life">生活</option>
                <option value="love">爱情</option>
                <option value="study">学习</option>
                <option value="health">健康</option>
                <option value="family">家庭</option>
				<option value="friend">朋友</option>
                <option value="work">事业</option>
                <option value="future">未来</option>
                <option value="wealth">财富</option>
                <option value="sorry">道歉</option>
              </select>
            </td>
          <tr> 
            <td colspan="4" align="center" height="120"> 
              <textarea name="msg" style="width:290px;height:120px;overflow-y:auto;border:1px dashed #ccc"></textarea>
            </td>
          </tr>
          <tr> 
            <td align=center colspan=4 height="30"> 
<input type="submit" value="确定送出" style="HEIGHT:22PX;BACKGROUND-color:#808080;border:1px SOLID FFFFFF;color:FFFFFF" name="submit"><input type="reset" value="清除重来" style="HEIGHT:22PX;BACKGROUND-color:#808080;border:1px SOLID FFFFFF;color:FFFFFF" name="reset"><input name="vdcode" id="vdcode" style="width:40px;height:20px;"  onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" align="absmiddle">
<img src='../include/vdimgck.php' width='50px' height='20px' align="absmiddle"/>
</td>
          </tr>
        </table>
 
            </td>
          </tr>
          <tr> 
        </form>
      </table>
</div>
<div id="showwish" style="display:none;background:#ddd;z-index:300;position:absolute;left:50px;top:85px;">
<table border="0" width="294" cellspacing="0" cellpadding="4" height="100%">
              <tr> 
                <td valign="top" colspan="2" height="150"><div id="showmsg" style="color:#A08034">5555</div></td>
                  </tr>
                  <tr> 
                    <td onclick="showwish.style.display='none'" style="cursor:pointer"><img src="/templets/default/diary/close.png" width="15" height="15" style="margin-right:5px;margin-top:5px;">关闭</td>
                    <td align="center"><span id="showinfo" style="color:#A08034"></span></td>
                  </tr>
                </table>
              </td>
            </tr>
</table>
</div>
      </BODY></html>