<!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=<?php echo $cfg_soft_lang; ?>" />

<title>消息管理 - 会员中心 - <?php echo $cfg_webname; ?></title>

<link href='/templets/default/css/style_web.css?v=f3a5c' media="screen, projection" rel="stylesheet" type="text/css" />

<link href="templets/style/base.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="templets/js/j.js"></script>

<script type="text/javascript" src="templets/js/load.js"></script>

<script type="text/javascript" src="templets/js/leftmenu.js"></script>

<script type="text/javascript">

	function folderSelAll()

	{

		for(i=0;i<document.form1.deleteid.length;i++)

		{

			if(!document.form1.deleteid[i].checked)

			{

				document.form1.deleteid[i].checked=true;

			}

		}

	}

	

	//获得选中文件的文件名

	function GetCheckfolderItem()

	{

		var allSel='';

		if(document.form1.deleteid.value) return document.form1.deleteid.value;

		for(i=0;i<document.form1.deleteid.length;i++)

		{

			if(document.form1.deleteid[i].checked)

			{

				if(allSel=='')

				allSel=document.form1.deleteid[i].value;

				else

				allSel=allSel+","+document.form1.deleteid[i].value;

			}

		}

		return allSel;

	}

	

	function DoSubmit(myfolder)

	{

		var selid = GetCheckfolderItem();

		if(selid=='') {

			alert("你没选中任何信息！");

			return false;

		}

		if(window.confirm("你确定要删除这些消息么？"))

		{

			location = "pm.php?dopost=del&ids="+selid+"&folder="+myfolder;

		}

	}

</script>

<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>

<script language="javascript" type="text/javascript">

<!--

function CheckLogin(tid){

LoadCommets(tid);

if(document.getElementById('qbpl'+tid).className=='comments'){

	  document.getElementById('qbpl'+tid).className='login';

}else{

	  document.getElementById('qbpl'+tid).className='comments';

	  var taget_obj = document.getElementById('_ajax_feedback'+tid);

	  myajax = new DedeAjax(taget_obj,false,false,'','','');

	  myajax.SendGet2("/member/ajax_feedback.php?aid="+tid);

	  DedeXHTTP = null;

	  document.getElementById('commetcontentNew'+tid).innerHTML='';

}



}



function postBadGood(ftype,fid)

{

	var taget_obj = document.getElementById(ftype+fid);

	var saveid = GetCookie('badgoodid');

	if(saveid != null)

	{

		var saveids = saveid.split(',');

		var hasid = false;

		saveid = '';

		j = 1;

		for(i=saveids.length-1;i>=0;i--)

		{

			if(saveids[i]==fid && hasid) continue;

			else {

				if(saveids[i]==fid && !hasid) hasid = true;

				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);

				j++;

				if(j==10 && hasid) break;

				if(j==9 && !hasid) break;

			}

		}

		if(hasid) { alert('您刚才已表决过了喔！'); return false;}

		else saveid += ','+fid;

		SetCookie('badgoodid',saveid,1);

	}

	else

	{

		SetCookie('badgoodid',fid,1);

	}

	myajax = new DedeAjax(taget_obj,false,false,'','','');

	myajax.SendGet2("/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);

}

function postDigg(ftype,aid)

{

	var taget_obj = document.getElementById('newdigg'+aid);

	var saveid = GetCookie('diggid');

	if(saveid != null)

	{

		var saveids = saveid.split(',');

		var hasid = false;

		saveid = '';

		j = 1;

		for(i=saveids.length-1;i>=0;i--)

		{

			if(saveids[i]==aid && hasid) continue;

			else {

				if(saveids[i]==aid && !hasid) hasid = true;

				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);

				j++;

				if(j==20 && hasid) break;

				if(j==19 && !hasid) break;

			}

		}

		if(hasid) { alert("您已经顶过该帖，请不要重复顶帖 ！"); return; }

		else saveid += ','+aid;

		SetCookie('diggid',saveid,1);

	}

	else

	{

		SetCookie('diggid',aid,1);

	}

	myajax = new DedeAjax(taget_obj,false,false,'','','');

	var url = "/plus/digg_ajax.php?action="+ftype+"&id="+aid;

	myajax.SendGet2(url);

}

function getDigg(aid)

{

	var taget_obj = document.getElementById('newdigg'+aid);

	myajax = new DedeAjax(taget_obj,false,false,'','','');

	myajax.SendGet2("/plus/digg_ajax.php?id="+aid);

	DedeXHTTP = null;

}

-->

</script>

<script language="javascript" type="text/javascript">  var childWindow;  function toQzoneLogin()  {  childWindow =window.open("/plus/qzonelogin/redirect.php?gourl="+document.URL,"TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");  }  function closeChildWindow()  {  childWindow.close();  }  </script>

<script src="/plus/autohtml.php?mod=index" language="javascript" type="text/javascript"></script>

</head>

<body>

<div id="main">

  <?php include(DEDEMEMBER."/templets/head.htm"); ?>

  <div id="content" class="w960 clearfix">

    <?php include(DEDEMEMBER."/templets/menu.php"); ?>

    <div class="mainBox">

<div id="mcpmain">

      <div id="appTab">

        <ul>

            <li class="thisTab"><a href="pm.php?dopost=send">写新消息</a></li>

            <li><a href="pm.php?folder=inbox">收件箱</a></li>

            <li><a href="pm.php?folder=outbox">发件箱</a></li>

            <li><a href="pm.php?folder=track">已发出信息</a></li>

        </ul>

        <div class="tabOther">

          

        </div>

      </div>

      <div id="mainCp" style="height:330px;">

        <h3 class="meTitle">发送新短消息</h3>

        <div class="postForm" style="padding-left: 20px; padding-right: 20px;width: 520px;	float: left;">

        <form class="mTB10 mL10 mR10" action="pm.php" method="post" name="form1">

          <input type='hidden' name='dopost' value='savesend' />

            <p>

              <label>发送到：</label>

              <input name="msgtoid" type="text" class="intxt" value="<?php if(!empty($uid)) echo $uid; ?>" size="28" maxlength="100" style=" width:100px" />

              <small> (填写用户的登录id(网址uid=后面跟的id)</small>

            </p>

            <p>

              <label>标题：</label>

              <input name="subject" type="text" class="intxt" value="" size="50" maxlength="70" style="width:300px;"/>

              <small> (60个字符节以内)</small>

            </p>

            <p style=" width:530px">

              <label>内容：</label>

              <textarea name="message" cols="50" rows="" style="width:300px;"></textarea>

			  <small>(1000个字符以内)</small>

            </p>

            <?php

            if(preg_match("/5/",$safe_gdopen)){

          ?>

          <p>

          <label>验证码：</label>

            <input type="text" class="intxt w200" style="width: 50px; text-transform: uppercase;" id="vdcode" name="vdcode"/><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清？点击更换" src="../include/vdimgck.php"/>

           看不清？ <a href="javascript:void(0)" onclick="changeAuthCode();">点击更换</a></li>

              </p>

              <?php }?>

              <?php

	        	if($safe_faq_msg == '1'){

	          	$faqkey = array_rand($safefaqs);

	          ?> 

	          <p> 

              <label>验证问题：</label>

        		<?php echo $safefaqs[$faqkey]['question'];?> (答案:<?php echo $safefaqs[$faqkey]['answer'];?>) </p> <p><input class="intxt" name="safeanswer" type="text" id="safeanswer" size="25" style='width:150px;'/> 

              

        		<input type="hidden" name="faqkey" value="<?php echo $faqkey;?>" />

	          <?php

	            }

	          ?>

<label><button class="button2" type="submit">发送</button></label></p>

          </form>

        </div>

        

        

      <div class="dedeRight">

      <!--好友列表 -->

      <script type="text/javascript">

		$(document).ready(function(){

			$(".buddy dt").click(function(){$(this).toggleClass("close");$(this).next("dd").toggle();});

			$(".buddy li").hover(function(){$(this).addClass("hover"); },function(){$(this).removeClass("hover"); });

		});

		</script>

      <div class="titleBar">

        <h5 class="fLeft">好友列表</h5>

        <span class="fRight"><a href="myfriend.php" title="好友管理">管理</a></span> 

      </div>

        <dl class="buddy">

        <dt class="icon17">所有好友</dt>

        <dd> 

          <ul>

           <?php

          	foreach ($friends as $friend)

         	{

				echo '<li class="thickbox"><span class="fLeft icon16"></span>'.$friend['funame'].'</li>';

          	}

          ?>

          </ul>

        </dd>

      </dl>

      <!--好友搜索 -->

      <div class="buddySearch textCenter">

        <form action="search.php">

          <input class="text" type="text" name="keyword" value="" style="width:100px;" />

          <button class="button1" type="submit">搜</button>

        </form>

      </div>

    </div>

      </div>

      <!--主操作区域 -->

    </div></div>

  </div>

 <?php include(DEDEMEMBER."/templets/foot.htm"); ?>

</div>

</body>

</html>

