Exemple #1
0
<?php 
$accessToken = $_COOKIE['accessToken'];
$param['page'] = isset($_GET['page']) ? $_GET['page'] : 1;
$param['num'] = getPagingNumByRequestName('user/getNoticeList');
$noticeInfo = FCurl::get('user/getNoticeList', $param + array('accessToken' => $accessToken));
foreach ($noticeInfo as $value) {
    // print_r($value);
    echo '<div class="row">
              <div class="col s2">';
    echo getUserPhoto($value['createUserPhoto']);
    echo '</div>
              <div class="col s10">
                <h5><a class="blue-text text-darken-4" href="#">' . $value['createUser'] . '</a></h5>
                <div class="flow-text">' . eventTranslate($value['noticeContent']);
    foreach ($value['noticeUser'] as $noticeUserIndex) {
        echo attranslate($noticeUserIndex);
    }
    echo getEventPhoto($value['photo']);
    $userId = $value['createUserId'];
    if ($value['enable_open']) {
        if ($value['eventType'] == 'group') {
            echo '</div><div class="row grey lighten-3" onclick="window.location=' . "'" . "group_info.php?from=quan&id=" . $userId . "'" . '" >
	                  <div class="col s2"><i class="small grey-text text-darken-2 mdi-action-account-box prefix"></i></div>';
        } else {
            echo '</div><div class="row grey lighten-3" onclick="window.location=' . "'" . "contact_info.php?from=quan&id=" . $userId . "'" . '" >
	                  <div class="col s2"><i class="small grey-text text-darken-2 mdi-action-account-box prefix"></i></div>';
        }
    } else {
        if ($value['eventType'] == 'group') {
            echo '</div><div class="row grey lighten-3">
	                <div class="col s2"><i class="small grey-text text-darken-2 mdi-action-lock prefix"></i></div>';
Exemple #2
0
$param['tagId'] = isset($_GET['tagId']) && $_GET['tagId'] ? $_GET['tagId'] : '';
$param['page'] = isset($_GET['page']) ? $_GET['page'] : 1;
$param['num'] = DEFAULT_MESSAGE_NUM;
$callFunctionName = isset($_GET['tagId']) ? 'user/getEventListByGroupId' : 'user/getEventList';
$eventList = FCurl::get($callFunctionName, $param);
foreach ($eventList as $value) {
    echo '<div class="row">
            <div class="col s2">';
    echo getUserPhoto($value['createUserPhoto']);
    echo '</div>
            <div class="col s10">
              <h5><a class="blue-text text-darken-4" href="./user.php?userId=' . $value['eventCreateUserId'] . '">' . $value['createUserName'] . '</a></h5>
              <div class="flow-text">' . eventTranslate($value['eventContent']);
    //$value['eventContantUser'] = explode(',', $value['eventContantUser']);
    foreach ($value['eventContantUser'] as $eventContantUserIndex) {
        echo attranslate($eventContantUserIndex);
    }
    echo getEventPhoto($value['photo'], 100);
    $userId = $value['createUserId'];
    if ($value['enable_open']) {
        if ($value['eventType'] == 'group') {
            echo '</div><div class="row grey lighten-3" onclick="window.location=' . "'" . "group_info.php?from=quan&id=" . $userId . "'" . '">
	                <div class="col s2"><i class="small grey-text text-darken-2 mdi-social-location-city prefix"></i></div>';
        } else {
            echo '</div><div class="row grey lighten-3" onclick="window.location=' . "'" . "contact_info.php?from=quan&id=" . $userId . "'" . '">
	                <div class="col s2"><i class="small grey-text text-darken-2 mdi-action-account-box prefix"></i></div>';
        }
    } else {
        if ($value['eventType'] == 'group') {
            echo '</div><div class="row grey lighten-3">
	                <div class="col s2"><i class="small grey-text text-darken-2 mdi-action-lock prefix"></i></div>';