echo '</h5> <div class="flow-text">'; foreach ($value['eventOwnInfo'] as $tagIndex) { echo '<a href="contact_hash.php?tagList=^' . $tagIndex['tagName'] . '" class="' . $tagIndex['coler'] . '">#' . $tagIndex['tagName'] . '</a> '; } echo '</div> <div class="divider"></div> <p><i class="grey-text text-darken-2 mdi-action-assignment-turned-in"></i>'; $acctionArray = array(); foreach ($value['acctionList'] as $acctionIndex) { $acctionArray[] = '<a href="">' . $acctionIndex . '</a>'; } echo implode(',', $acctionArray); echo '</p> <blockquote class="grey-text"> <h6>' . eventTranslate($value['lastEventInfo']['content']) . '</h6>' . getEventPhoto($value['lastEventInfo']['photo'], 30) . ' <h6>' . $value['lastEventInfo']['createTime'] . '</h6> </blockquote> </div> </div> </div>'; } ?> <div class="section"> <?php $_REQUEST['phoneNum'] = isset($_REQUEST['phoneNum']) ? $_REQUEST['phoneNum'] : ''; echo paging('user/seachUserList', $_REQUEST, count($userList), 'contact_index.php'); ?> </div>
$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>'; } else { echo '</div><div class="row grey lighten-3">
foreach ($value['acctionList'] as $acctionList) { $acctionListArray[] = '<a href="">' . $acctionList . '</a>'; } echo implode(',', $acctionListArray); ?> </p> <blockquote class="grey-text"> <h6><?php echo eventTranslate($value['lastEventInfo'][0]['content']); ?> <?php $value['lastEventInfo'][0]['noticeUser'] = isset($value['lastEventInfo'][0]['noticeUser']) ? $value['lastEventInfo'][0]['noticeUser'] : array(); foreach ($value['lastEventInfo'][0]['noticeUser'] as $noticeUserIndex) { echo attranslate($noticeUserIndex); } echo getEventPhoto($value['lastEventInfo'][0]['photo']); ?> </h6> <h6><?php echo $value['lastEventInfo'][0]['createTime']; ?> </h6> </blockquote> </div> </div> <?php } ?> </div> <?php
"> <div class="col s3 teal-text text-lighten-1"> <h6> <i class="mdi-editor-mode-comment right"></i> <a href="#"><?php echo $groupEventInfoIndex['createUserInfo']['nickname']; ?> </a> </h6> </div> <div class="col s9"> <div class="flow-text"> <?php echo eventTranslate($groupEventInfoIndex['contact']); if ($groupEventInfoIndex['photo']) { echo getEventPhoto($groupEventInfoIndex['photo'], 100); } ?> </div> <h6 class="grey-text"><?php echo $groupEventInfoIndex['createTime']; ?> </h6> <!-- 作者:ruckfull@gmail.com 时间:2015-06-23 描述:群组事件删除 --> <?php if ($groupEventInfoIndex['currentUserId'] == $groupEventInfoIndex['createUserInfo']['userId']) {
$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>'; } else { echo '</div><div class="row grey lighten-3">
?> </div> <div class="divider"></div> <p> <i class="grey-text text-darken-2 mdi-action-assignment-turned-in"></i> <?php $seachResultAcctionListArray = array(); foreach ($seachResultIndex['acctionList'] as $seachResultAcctionListIndex) { $seachResultAcctionListArray[] = '<a href="#' . $seachResultAcctionListIndex['id'] . '">' . $seachResultAcctionListIndex['nickname'] . '</a>'; } echo implode(',', $seachResultAcctionListArray); ?> </p> <blockquote class="grey-text"> <?php echo '<h6>' . eventTranslate($seachResultIndex['lastEvent']['contact']) . '</h6>' . getEventPhoto($seachResultIndex['lastEvent']['photo'], 30); ?> <h6><?php echo $seachResultIndex['lastEvent']['createTime']; ?> </h6> </blockquote> </div> </div> </div> <?php } echo paging('group/seachRoomByName', $_REQUEST, count($seachResult), 'group_room.php'); ?> <div class="section">
<div class="row grey lighten-3"> <div class="col s2"><i class="small grey-text text-darken-2 mdi-action-lock prefix"></i></div>'; } } else { if ($value['enable_open']) { echo '<div class="row"> <div class="col s12"> <h5>' . getUserPhoto($value['createUserPhoto'], 30) . $value['createUser'] . '</h5> <div class="flow-text">' . eventTranslate($value['eventContent']) . '<a href="#">' . $value['noticeUser'] . '</a>' . getEventPhoto($value['photo']) . '</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 { echo '<div class="row"> <div class="col s12"> <h5>' . getUserPhoto($value['createUserPhoto'], 30) . $value['createUser'] . '</h5> <div class="flow-text">' . eventTranslate($value['eventContent']) . '<a href="#">' . $value['noticeUser'] . '</a>' . getEventPhoto($value['photo']) . '</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>'; } } echo '<div class="col s10">' . $value['eventCreateUserNickname'] . '</div>'; echo '<div class="col s10">'; if ($value['eventType'] == 'group') { foreach ($value['relation'] as $key => $relationIndex) { $valueIndexArray = array(); foreach ($relationIndex as $valueIndex) { $valueIndexArray[] = $valueIndex['nickname']; } echo $key . ':<a href="#">' . implode(',', $valueIndexArray) . '</a> '; } } else {