if ($m_level != 1) { //不是高级会员 if (!checkIsMobileCertical($userid)) { //没有通过了手机验证 MooMessage('您还没有进行手机验证,现在就去认证吧', 'index.php?n=myaccount&h=index2', '03'); } else { // if(!checkIsOver($userid)){ //过了试用期 MooMessage('只有钻石或高级会员才可以发送电子邮件给对方,马上升级为钻石或高级会员吧', 'index.php?n=payment', '03'); // } } } } $time = time(); //note 显示消息接收方的会员名,无则显示ID号 if (getfromname($contentid)) { $send_to_name = getfromname($contentid); } else { $send_to_name = 'ID ' . $contentid; } $s_id = $contentid; if (strstr($s_title, '回复:')) { $s_title = $s_title; } else { $s_title = '回复:' . $s_title; } //note 包含回复消息模板页 require MooTemplate('public/service_getmaillist_hf', 'module'); } else { MooMessage('没有收件人的ID,不可发送消息', 'index.php?n=search&h=basic', '01'); } break;
if ($allmails['s_status'] == '0') { ?> <img src="module/service/templates/default/images/no-read.gif" /> <?php } else { ?> <img src="module/service/templates/default/images/yes-read.gif" /> <?php } ?> </td> <?php if ($allmails['s_fromid'] != '0' && $allmails['s_cid'] != 50) { ?> <?php $fromname = getfromname($allmails['s_fromid']); ?> <?php if (!$fromname) { ?> <?php $fromname = 'ID ' . $allmails['s_fromid']; ?> <?php } ?> <?php } else { ?> <?php $fromname = '真爱一生网';
if ($memails['s_status'] == '0') { ?> <img src="module/service/templates/default/images/no-read.gif" /> <?php } else { ?> <img src="module/service/templates/default/images/yes-read.gif" /> <?php } ?> </td> <?php if ($memails['s_fromid'] != '0' && $memails['is_server'] != 1) { ?> <?php $fromname = getfromname($memails['s_fromid']); ?> <?php if (!$fromname) { ?> <?php $fromname = 'ID ' . $memails['s_fromid']; ?> <?php } ?> <?php } else { ?> <?php $fromname = '真爱一生网';
?> " /></td> <td width="7%" align="center" valign="middle"> <?php if ($memails['s_status'] == '0') { ?> <img src="module/service/templates/default/images/no-read.gif" /> <?php } else { ?> <img src="module/service/templates/default/images/yes-read.gif" /> <?php } ?> </td> <?php $sendname = getfromname($memails['s_uid']); ?> <?php if (!$sendname) { ?> <?php $sendname = 'ID ' . $memails['s_uid']; ?> <?php } ?> <td width="15%" align="center"> <a class="f30" href="index.php?n=space&h=viewpro&uid=<?php echo $memails['s_uid']; ?> "><?php
function allmessage_list_send() { global $_MooClass, $dbTablePre, $userid, $pagesize, $user_arr, $memcached; $uid = $_GET['uid'] = isset($_GET['uid']) ? $_GET['uid'] : ''; if ($uid) { $userid = $mem_uid = $memcached->get('uid_' . $uid); } $and_uuid = isset($_GET['uuid']) ? $_GET['uuid'] : ''; $checkuuid = check_uuid($and_uuid, $userid); if (!$checkuuid) { $error = "uuid_error"; echo return_data($error, false); exit; } $user_arr = MooMembersData($userid); $allmail = array(); //note 获得当前url $currenturl = 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; $currenturl2 = preg_replace("/(&page=\\d+)/", "", $currenturl); //note 获得第几页 $pagesize = 10; $page = empty($_GET['page']) ? 1 : intval($_GET['page']); //note limit查询开始位置 $start = ($page - 1) * $pagesize; //note 显示数据 $ret_count = $_MooClass['MooMySQL']->getOne("SELECT count(s_uid) as c FROM {$dbTablePre}services WHERE s_fromid = '{$userid}' and flag = '1' and s_fromid_del='0'", true); $total = $ret_count['c']; //2009-11-22日修改(得到总数) if ($total) { $allmail = $_MooClass['MooMySQL']->getAll("SELECT * FROM {$dbTablePre}services WHERE s_fromid = '{$userid}' and flag = '1' and s_fromid_del='0' order by s_time desc LIMIT {$start},{$pagesize}"); } if (empty($allmail)) { $empty = "empty"; echo return_data($empty); exit; } $al = array(); foreach ($allmail as $key => $value) { $al = $value; $al['s_time'] = date("Y-m-d", $value["s_time"]); $al['s_content'] = ''; if ($value['s_uid'] != '0' && $value['s_cid'] != 50) { $fromname = getfromname($value['s_uid']); if (empty($fromname)) { $fromname = 'ID ' . $value['s_uid']; } } else { $fromname = '真爱一生网'; } $al['nickname'] = $fromname; $mails[] = $al; } echo return_data($mails); exit; }