Esempio n. 1
0
 function View()
 {
     $title = '回复私信';
     $uid = (int) $this->Get['uid'];
     load::logic('pm');
     $PmLogic = new PmLogic();
     $page = array();
     $page['per_page_num'] = 20;
     $page['query_link'] = "index.php?mod=pm&code=history&uid={$touid}";
     if ($uid == 0) {
         $return_arr = $PmLogic->getNotice($page);
     } else {
         $return_arr = $PmLogic->getHistory(MEMBER_ID, $uid, $page);
     }
     $pm_list = $return_arr['pm_list'];
     $page_html = $return_arr['page_arr']['html'];
     $nickname = wap_iconv($return_arr['nickname']);
     $this->Title = $title;
     include template('pm_view');
 }
Esempio n. 2
0
 function History()
 {
     $uid = MEMBER_ID;
     $touid = jget('uid', 'int');
     load::logic('pm');
     $PmLogic = new PmLogic();
     $link_folder = "history_{$touid}";
     $query_link = "index.php?mod=pm&code=history&uid={$touid}&folder={$link_folder}";
     $page = array();
     $page['per_page_num'] = 20;
     $page['query_link'] = $query_link;
     if ($touid < 1) {
         $return_arr = $PmLogic->getNotice($page);
     } else {
         $return_arr = $PmLogic->getHistory($uid, $touid, $page);
     }
     extract($return_arr);
     $member = jsg_member_info(MEMBER_ID);
     $TopicLogic = jlogic('topic');
     if ($member['medal_id']) {
         $medal_list = $TopicLogic->GetMedal($member['medal_id'], $member['uid']);
     }
     if ($touid > 0) {
         if (empty($nickname)) {
             $_info = jsg_member_info($touid);
             $nickname = $_info['nickname'];
         }
         if (empty($nickname)) {
             $this->Messager('您要查看的用户已经不存在了');
         }
         $n = "我和{$nickname}的私信对话";
         $left_menu = $this->LeftMenu(array('name' => $n, 'link' => $query_link, 'icon' => 'history', 'touid' => $touid), $link_folder);
     } else {
         $n = "管理员发的通知";
     }
     $this->Title = $n;
     include template('pm/pm_history_list');
 }