<!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=gb2312'>
<title>我的好友</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<style>
.napisdiv {left:10;top:0;width:150;height:100;position:absolute;z-index:3}
.mbb { margin-bottom:3px; border:1px dashed #cdcdcd; }
.mbline { border-top:1px solid #eeeeee; border-bottom:1px solid #eeeeee }
button {margin-left:6px; border: 1px solid; border-color: #D9EDC0; background: #F9FCEF; height: 20px; line-height: 20px; cursor: pointer; }
</style>
<script language='javascript' src='area.js'></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>
</head>
<body leftmargin='0' topmargin='0'>
<div align="center">
<?php  include(dirname(__FILE__)."/head.htm"); ?>

<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="160" height="216" valign="top"><?php include(dirname(__FILE__)."/menu.php");?>
    </td>
    <td width="10">&nbsp;</td>
    <td  valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin-bottom:3px;margin-top:10px;">
      <tr align="right" bgcolor="#ffffff">
       <div class="manage_company_right_title">
                	<ul><li>我的好友：</li></ul>
                </div>
      </tr>
    </table>
	<form name="form" method="post">
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D9EDC0" class="checkbox">
         
          <tr height="24">
            <td align="left" bgcolor="#FFFFFF"> <?php
          $friends = $dbpage->GetDataList();
          while($val = $friends->GetArray('dm')) {
          ?>
              <input type="checkbox" name="delete[]" value="<?=$val['friend_id']?>" /><a href="index.php?uid=<?php echo $val['userid'];?>" target="_blank"><?php echo $val['uname'];?></a> [<a href="pm.php?action=send&vwriter=<?php echo urlencode($val['userid']);?>" target="_blank">发短信</a>]<?php
          }?></td>
            </tr>
         
          <tr height="24">
          <td height="26" valign="middle" bgcolor="#F9FCEF"><input class="checkbox" type="checkbox" id="chkall" name="chkall" onClick="checkall(this.form)" /> 全选 <button type="submit" name="deletefriend" value="true">删除</button> <?php echo $dbpage->GetPageList(7);?></td>
          </tr>
      </table>
      </form>
      </td>
  </tr>
</table>
<?php 
include(dirname(__FILE__)."/foot.htm");
?>
</div>
<script type="text/javascript">
function checkall(form, prefix, checkall) {
	var checkall = checkall ? checkall : 'chkall';
	for(var i = 0; i < form.elements.length; i++) {
		var e = form.elements[i];
		if(e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
			e.checked = form.elements[checkall].checked;
		}
	}
}
</script>
</body>
</html>