当前位置: 首页>>代码示例>>PHP>>正文


PHP display_user函数代码示例

本文整理汇总了PHP中display_user函数的典型用法代码示例。如果您正苦于以下问题:PHP display_user函数的具体用法?PHP display_user怎么用?PHP display_user使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了display_user函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: test_retrieve_UserProfile_RMHStaffApprover

function test_retrieve_UserProfile_RMHStaffApprover($userProfileId)
{
    $users = retrieve_UserProfile_RMHStaffApprover($userProfileId);
    if ($users == false) {
        echo "</br>" . "No user were  found";
    } else {
        echo "</br>" . "found  user" . "</br>";
        foreach ($users as $user) {
            display_user($user);
        }
    }
}
开发者ID:kumarsivarajan,项目名称:rmh-roomreservation-maker,代码行数:12,代码来源:testdbUserProfile.php

示例2: get_all_mails

function get_all_mails($link)
{
    try {
        $query = "SELECT * FROM MAILING_LIST";
        $preparedStatement = $link->prepare($query);
        $preparedStatement->execute();
        while ($result = $preparedStatement->fetch()) {
            display_user($result);
        }
    } catch (PDOException $e) {
        echo 'Error in DB request: ' . $e->getMessage();
    }
}
开发者ID:Graphistarts,项目名称:exam,代码行数:13,代码来源:functionsAdmin.php

示例3: wpu_get_users

function wpu_get_users($content)
{
    if (is_page(get_option('wpu_page_id'))) {
        if (isset($_GET['uid'])) {
            display_user();
        } else {
            echo $content;
            display_user_list();
        }
    } else {
        //display the content
        return $content;
    }
}
开发者ID:sintija,项目名称:wordpress_backup,代码行数:14,代码来源:wp-users.php

示例4: show_edit_form

function show_edit_form($id, $sid, $assign)
{
    global $m, $langGradeOk, $tool_content, $course_code;
    $sub = Database::get()->querySingle("SELECT * FROM assignment_submit WHERE id = ?d", $sid);
    if (count($sub) > 0) {
        $uid_2_name = display_user($sub->uid);
        if (!empty($sub->group_id)) {
            $group_submission = "({$m['groupsubmit']} " . "<a href='../group/group_space.php?course={$course_code}&amp;group_id={$sub->group_id}'>" . "{$m['ofgroup']} " . gid_to_name($sub->group_id) . "</a>)";
        } else {
            $group_submission = '';
        }
        $tool_content .= "\n                <form method='post' action='index.php?course={$course_code}'>\n                <input type='hidden' name='assignment' value='{$id}'>\n                <input type='hidden' name='submission' value='{$sid}'>\n                <fieldset>\n                <legend>{$m['addgradecomments']}</legend>\n                <table width='99%' class='tbl'>\n                <tr>\n                    <th class='left' width='180'>{$m['username']}:</th>\n                    <td>{$uid_2_name} " . q($group_submission) . "</td>\n                </tr>\n                <tr>\n                    <th class='left'>{$m['sub_date']}:</th>\n                    <td>" . q($sub->submission_date) . "</td></tr>\n                <tr>\n                    <th class='left'>{$m['filename']}:</th>\n                    <td><a href='index.php?course={$course_code}&amp;get={$sub->id}'>" . q($sub->file_name) . "</a></td>\n                </tr>\n                <tr>\n                    <th class='left'>{$m['grade']}:</th>\n                    <td><input type='text' name='grade' maxlength='3' size='3' value='" . q($sub->grade) . "'></td></tr>\n                <tr>\n                    <th class='left'>{$m['gradecomments']}:</th>\n                    <td><textarea cols='60' rows='3' name='comments'>" . q($sub->grade_comments) . "</textarea></td>\n                </tr>\n                <tr>\n                    <th><label for='email_button'>{$m['email_users']}:</label></th>\n                    <td><input type='checkbox' value='1' id='email_button' name='email'></td>\n                </tr>\n                <tr>\n                    <th class='left'>&nbsp;</th>\n                    <td><input class='btn btn-primary' type='submit' name='grade_comments' value='{$langGradeOk}'></td>\n                </tr>\n                </table>\n                </fieldset>\n                </form><br>";
    } else {
        Session::Messages($m['WorkNoSubmission'], 'alert-danger');
        redirect_to_home_page('modules/work/index.php?course=' . $course_code . '&id=' . $id);
    }
}
开发者ID:kostastzo,项目名称:openeclass,代码行数:17,代码来源:grade_edit.php

示例5: getSidebarMessages

function getSidebarMessages()
{
    global $uid, $urlServer, $langFrom, $dateFormatLong, $langDropboxNoMessage;
    $message_content = '';
    $mbox = new Mailbox($uid, 0);
    $msgs = $mbox->getInboxMsgs('', 5);
    $msgs = array_filter($msgs, function ($msg) {
        return !$msg->is_read;
    });
    if (!count($msgs)) {
        $message_content .= "<li class='list-item'>" . "<span class='item-wholeline'>" . $langDropboxNoMessage . "</span>" . "</li>";
    } else {
        foreach ($msgs as $message) {
            if ($message->course_id > 0) {
                $course_title = q(ellipsize(course_id_to_title($message->course_id), 30));
            } else {
                $course_title = '';
            }
            $message_date = claro_format_locale_date($dateFormatLong, $message->timestamp);
            $message_content .= "<li class='list-item'>" . "<span class='item-wholeline'>" . "<div class='text-title'>{$langFrom} " . display_user($message->author_id, false, false) . ":<br>" . "<a href='{$urlServer}modules/dropbox/index.php?mid={$message->id}'>" . q($message->subject) . "</a>" . "</div>" . "<div class='text-grey'>{$course_title}</div>" . "<div>{$message_date}</div>" . "</span>" . "</li>";
        }
    }
    return $message_content;
}
开发者ID:kostastzo,项目名称:openeclass,代码行数:24,代码来源:ajax_sidebar.php

示例6: array

                                ($myrow->id == $_SESSION["uid"] && $myrow->reviewer == '1') || 
                                ($myrow->id != $_SESSION["uid"] && $is_opencourses_reviewer && $is_admin)
                            )
            )            
        ));
        //die(var_dump($myrow->id == $_SESSION["uid"] && $myrow->reviewer == '1'));
        $user_roles = array();
        ($myrow->status == '1') ? array_push($user_roles, $langTeacher) : array_push($user_roles, $langStudent);
        if ($myrow->tutor == '1') array_push($user_roles, $langTutor);
        if ($myrow->editor == '1') array_push($user_roles, $langEditor);        
        if ($myrow->reviewer == '1') array_push($user_roles, $langOpenCoursesReviewer);
        //setting datables column data
        $data['aaData'][] = array(
            'DT_RowId' => getIndirectReference($myrow->id),
            'DT_RowClass' => 'smaller',
            '0' => display_user($myrow->id) . "&nbsp<span>(<a href='mailto:" . $myrow->email . "'>" . $myrow->email . "</a>) $am_message</span>",
            '1' => "<small>".implode(', ', $user_roles)."</small>",
            '2' => user_groups($course_id, $myrow->id),
            '3' => $date_field,
            '4' => $user_role_controls
        );
    }
    echo json_encode($data, JSON_UNESCAPED_UNICODE);
    exit();
}

$limit = isset($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 0;

$toolName = $langUsers;
load_js('tools.js');
load_js('datatables');
开发者ID:nikosv,项目名称:openeclass,代码行数:31,代码来源:index.php

示例7: foreach

         $message = "<p class='success'>{$langGradebookEdit}</p>";
         $tool_content .= $message . "<br/>";
     }
 }
 //display the form and the list
 $result = Database::get()->querySingle("SELECT * FROM gradebook_activities  WHERE id = ?d", $actID);
 $tool_content .= "<div class='alert alert-info'>" . $result->title . "</div>";
 //show all the students
 $resultUsers = Database::get()->queryArray("SELECT gradebook_users.id as recID, gradebook_users.uid as userID, user.surname as surname, user.givenname as name, user.am as am, course_user.reg_date as reg_date   FROM gradebook_users, user, course_user  WHERE gradebook_id = ?d AND gradebook_users.uid = user.id AND `user`.id = `course_user`.`user_id` AND `course_user`.`course_id` = ?d ", $gradebook_id, $course_id);
 if ($resultUsers) {
     //table to display the users
     $tool_content .= "\n            <form method='post' action='{$_SERVER['SCRIPT_NAME']}?course={$course_code}&ins=" . $actID . "'>\n            <table id='users_table{$course_id}' class='table-default custom_list_order'>\n                <thead>\n                    <tr>\n                      <th width='1'>{$langID}</th>\n                      <th><div align='left' width='150'>{$langName} {$langSurname}</div></th>\n                      <th class='text-center' width='80'>{$langRegistrationDateShort}</th>\n                      <th class='text-center'>{$langGradebookGrade}</th>\n                      <th class='text-center'>{$langAttendanceBooking}</th>\n                    </tr>\n                </thead>\n                <tbody>";
     $cnt = 0;
     foreach ($resultUsers as $resultUser) {
         $cnt++;
         $tool_content .= "\n                    <tr>\n                        <td>{$cnt}</td>\n                        <td>" . display_user($resultUser->userID) . " ({$langAm}: {$resultUser->am})</td>\n                        <td>" . nice_format($resultUser->reg_date) . "</td>";
         $tool_content .= "\n                        <td>";
         if (weightleft($gradebook_id, 0) == 0) {
             $tool_content .= userGradeTotal($gradebook_id, $resultUser->userID);
         } elseif (userGradeTotal($gradebook_id, $resultUser->userID) != "-") {
             //alert message only when grades have been submitted
             $tool_content .= userGradeTotal($gradebook_id, $resultUser->userID) . " (<small>" . $langGradebookGradeAlert . "</small>)";
         }
         if (userGradeTotal($gradebook_id, $resultUser->userID) > $gradebook_range) {
             $tool_content .= "<br><div class='smaller'>" . $langGradebookOutRange . "</div>";
         }
         $tool_content .= "<td class='text-center'>\n                            <input type='text' name='" . $resultUser->userID . "'";
         //check if the user has attendace for this activity already OR if it should be automatically inserted here
         $q = Database::get()->querySingle("SELECT grade FROM gradebook_book WHERE gradebook_activity_id = ?d AND uid = ?d", $actID, $resultUser->userID);
         if (isset($q->grade)) {
             $tool_content .= " value = '{$q->grade}'";
开发者ID:kostastzo,项目名称:openeclass,代码行数:31,代码来源:index.php

示例8: redirect_to_home_page

             Session::Messages($langAttendanceEdit, "alert-success");
             redirect_to_home_page("modules/attendance/index.php");
         }
     }
     //display the form and the list
     $result = Database::get()->querySingle("SELECT * FROM attendance_activities  WHERE id = ?d", $actID);
     $tool_content .= "<div class='alert alert-info'>" . $result->title . "</div>";
     //show all the students
     $resultUsers = Database::get()->queryArray("SELECT attendance_users.id as recID, attendance_users.uid as userID, user.surname as surname, user.givenname as name, user.am as am, course_user.reg_date as reg_date   FROM attendance_users, user, course_user  WHERE attendance_id = ?d AND attendance_users.uid = user.id AND `user`.id = `course_user`.`user_id` AND `course_user`.`course_id` = ?d ", $attendance_id, $course_id);
     if ($resultUsers) {
         //table to display the users
         $tool_content .= "\n            <form method='post' action='{$_SERVER['SCRIPT_NAME']}?course={$course_code}&ins=" . $actID . "'>\n            <table id='users_table{$course_id}' class='table-default custom_list_order'>\n                <thead>\n                    <tr>\n                      <th width='1'>{$langID}</th>\n                      <th><div align='left' width='100'>{$langName} {$langSurname}</div></th>\n                      <th class='center' width='80'>{$langRegistrationDateShort}</th>\n                      <th class='center'>{$langAttendanceAbsences}</th>\n                      <th class='center'>{$langActions}</th>\n                    </tr>\n                </thead>\n                <tbody>";
         $cnt = 0;
         foreach ($resultUsers as $resultUser) {
             $cnt++;
             $tool_content .= "\n                    <tr>\n                        <td>{$cnt}</td>\n                        <td> " . display_user($resultUser->userID) . " ({$langAm}: {$resultUser->am})</td>\n                        <td>" . nice_format($resultUser->reg_date) . "</td>\n                        <td>" . userAttendTotal($attendance_id, $resultUser->userID) . "/" . $attendance_limit . "</td>\n                        <td class='center'>\n                            <input class='form-control' type='checkbox' value='1' name='" . $resultUser->userID . "'";
             //check if the user has attendace for this activity already OR if it should be automatically inserted here
             $q = Database::get()->querySingle("SELECT attend FROM attendance_book WHERE attendance_activity_id = ?d AND uid = ?d", $actID, $resultUser->userID);
             if (isset($q->attend) && $q->attend == 1) {
                 $tool_content .= " checked";
             }
             $tool_content .= ">\n                            <input type='hidden' value='" . $actID . "' name='actID'>\n                        </td>";
             $tool_content .= "\n                    </tr>";
         }
         $tool_content .= "</tbody></table> <input type='submit' class='btn btn-default' name='bookUsersToAct' value='{$langAttendanceBooking}' /></form>";
     }
     $showAttendanceActivities = 0;
 }
 //DISPLAY: list of attendance activities
 if ($showAttendanceActivities == 1) {
     //get all the available activities
开发者ID:kostastzo,项目名称:openeclass,代码行数:31,代码来源:index.php

示例9: array

    $pageName = $langUserDuration;
    $navigation[] = array('url' => 'index.php?course=' . $course_code, 'name' => $langUsage);
    statistics_tools($course_code, "userduration");
    // display number of users
    $tool_content .= "\n        <div class='alert alert-info'>\n           <b>{$langDumpUserDurationToFile}: </b>1. <a href='userduration.php?course={$course_code}&amp;format=csv'>{$langcsvenc2}</a>\n                2. <a href='userduration.php?course={$course_code}&amp;format=csv&amp;enc=1253'>{$langcsvenc1}</a>\n          </div>";
    $tool_content .= "\n        <table class='tbl_alt' width='99%'>\n        <tr>\n          <th class='left'>&nbsp;&nbsp;&nbsp;{$langSurname} {$langName}</th>\n          <th>{$langAm}</th>\n          <th>{$langGroup}</th>\n          <th>{$langDuration}</th>\n        </tr>";
}
$result = user_duration_query($course_id);
if (count($result) > 0) {
    $i = 0;
    foreach ($result as $row) {
        $i++;
        $grp_name = user_groups($course_id, $row->id, $format);
        if ($format == 'html') {
            if ($i % 2 == 0) {
                $tool_content .= "<tr class='even'>";
            } else {
                $tool_content .= "<tr class='odd'>";
            }
            $tool_content .= "<td class='bullet'>" . display_user($row->id) . "</td>\n                                <td class='center'>{$row->am}</td>\n                                <td class='center'>{$grp_name}</td>\n                                <td class='center'>" . format_time_duration(0 + $row->duration) . "</td>\n                                </tr>";
        } else {
            echo csv_escape($row->surname . ' ' . $row->givenname), ';', csv_escape($row->am), ';', csv_escape($grp_name), ';', csv_escape(format_time_duration(0 + $row->duration)), $crlf;
        }
    }
    if ($format == 'html') {
        $tool_content .= "</table>";
    }
}
if ($format == 'html') {
    draw($tool_content, 2);
}
开发者ID:kostastzo,项目名称:openeclass,代码行数:31,代码来源:userduration.php

示例10: statistics_tools

$require_current_course = true;
$require_course_admin = true;
$require_help = true;
$helpTopic = 'Usage';
$require_login = true;
require_once '../../include/baseTheme.php';
require_once 'modules/group/group_functions.php';
require_once "statistics_tools_bar.php";
statistics_tools($course_code, "group");
$navigation[] = array('url' => 'index.php?course=' . $course_code, 'name' => $langUsage);
$pageName = $langGroupUsage;
initialize_group_info();
$q = Database::get()->queryArray("SELECT id, name, g.description, max_members, COUNT(*) AS registered\n\t              FROM `group` AS g, group_members AS gm\n\t\t      WHERE g.course_id = ?d AND g.id = gm.group_id\n\t\t      GROUP BY g.id", $course_id);
if (count($q) > 0) {
    $tool_content .= "<div class='table-responsive'><table class='table-default'>\n\t\t<tr>\n\t\t  <th class='text-left'>{$langGroupName}</th>\n\t\t  <th class='text-center'>{$langGroupTutor}</th>\n\t\t  <th class='text-center'>{$langRegistered}</th>\n\t\t  <th class='text-center'>{$langMax}</th>\n\t\t</tr>";
    foreach ($q as $group) {
        $tool_content .= "<td>\n\t\t\t<a href='../group/group_usage.php?course={$course_code}&amp;module=usage&amp;group_id={$group->id}'>" . q($group->name) . "</a></td>";
        $tool_content .= "<td>" . display_user(group_tutors($group->id)) . "</td>";
        $tool_content .= "<td class='text-center'>{$group->registered}</td>";
        if ($group->max_members == 0) {
            $tool_content .= "<td class='text-center'>-</td>";
        } else {
            $tool_content .= "<td class='text-center'>{$group->max_members}</td>";
        }
        $tool_content .= "</tr>";
    }
    $tool_content .= "</table></div>";
} else {
    $tool_content .= "<div class='alert alert-danger'>{$langNoGroup}</div>";
}
draw($tool_content, 2);
开发者ID:kostastzo,项目名称:openeclass,代码行数:31,代码来源:group.php

示例11: getUserMessages

/**
 * @brief get user personal messages
 * @global type $uid
 * @global type $urlServer
 * @global type $langFrom
 * @global type $dateFormatLong
 * @param type $lesson_id
 * @return string
 */
function getUserMessages() {
           
    global $uid, $urlServer, $langFrom, $dateFormatLong;
    
    $message_content = '';    
               
    $mbox = new Mailbox($uid, 0);
    $msgs = $mbox->getInboxMsgs('', 5);
    foreach ($msgs as $message) {
        if ($message->course_id > 0) {
            $course_title = q(ellipsize(course_id_to_title($message->course_id), 30));
        } else {
            $course_title = '';
        }
        $message_date = claro_format_locale_date($dateFormatLong, $message->timestamp);
        $message_content .= "<li class='list-item'>
                                <div class='item-wholeline'>                                    
                                    <div class='text-title'>$langFrom ".display_user($message->author_id, false, false).":
                                        <a href='{$urlServer}modules/dropbox/index.php?mid=$message->id'>" .q($message->subject)."</a>
                                    </div>                                    
                                    <div class='text-grey'>$course_title</div>
                                    <div>$message_date</div>
                                </div>
                            </li>";
    }    
    return $message_content;
}
开发者ID:nikosv,项目名称:openeclass,代码行数:36,代码来源:perso_functions.php

示例12: icon

         $post_actions .= icon('fa-times', $langDelete).'</a>';
         $post_actions .='</div>';   
         
         $response[0] = 'OK';
         $response[1] = "<div class='alert alert-success'>".$langCommentsSaveSuccess."</div>";
         $response[2] = $comment->getId();
         $response[3] = "
          <div class='row margin-bottom-thin margin-top-thin comment' id='comment-".$comment->getId()."'>
             <div class='col-xs-12'>
                 <div class='media'>
                     <a class='media-left' href='#'>
                         ". profile_image($comment->getAuthor(), IMAGESIZE_SMALL) ."
                     </a>
                     <div class='media-body bubble'>
                         <div class='label label-success media-heading'>".nice_format($comment->getTime(), true).'</div>'.
                             "<small>".$langBlogPostUser.display_user($comment->getAuthor(), false, false)."</small>".
                             $post_actions
                             ."<div class='margin-top-thin' id='comment_content-".$comment->getId()."'>". q($comment->getContent()) ."</div>
                     </div>
                 </div>
             </div>
         </div>                    
         ";
     } else {
         $response[0] = 'ERROR';
         $response[1] = "<div class='alert alert-warning'>".$langCommentsSaveFail."</div>";
     }
 } else {
     $response[0] = 'ERROR';
     $response[1] = "<div class='alert alert-warning'>".$langCommentsNewNoPerm."</div>";
 }
开发者ID:nikosv,项目名称:openeclass,代码行数:31,代码来源:comments_perso_blog.php

示例13: course_user_action_details

 /**
  * display action details in course users administration
  * @global type $langUnCourse
  * @global type $langOfUser
  * @global type $langToUser
  * @global type $langOneByOne
  * @global type $langGiveRightAdmin
  * @global type $langGiveRightΕditor
  * @global type $langGiveRightTutor
  * @global type $langRemoveRightAdmin
  * @global type $langRemoveRightEditor
  * @global type $langRemoveRightAdmin
  * @param type $details
  * @return string
  */
 private function course_user_action_details($details)
 {
     global $langUnCourse, $langOfUser, $langToUser, $langNewUser, $langGiveRightAdmin, $langGiveRightEditor, $langGiveRightTutor, $langRemoveRightAdmin, $langRemoveRightEditor, $langRemoveRightAdmin;
     $details = unserialize($details);
     switch ($details['right']) {
         case '+5':
             $content = $langNewUser;
             break;
         case '0':
             $content = "{$langUnCourse} {$langOfUser}";
             break;
         case '+1':
             $content = "{$langGiveRightAdmin} {$langToUser}";
             break;
         case '+2':
             $content = "{$langGiveRightEditor} {$langToUser}";
             break;
         case '+3':
             $content = "{$langGiveRightTutor} {$langToUser}";
             break;
         case '-1':
             $content = "{$langRemoveRightAdmin} {$langToUser}";
             break;
         case '-2':
             $content = "{$langRemoveRightEditor} {$langToUser}";
             break;
         case '-3':
             $content = "{$langRemoveRightAdmin} {$langToUser}";
             break;
     }
     $content .= "&nbsp;&laquo" . display_user($details['uid'], false, false) . "&raquo";
     return $content;
 }
开发者ID:kostastzo,项目名称:openeclass,代码行数:48,代码来源:log.php

示例14: abuse_report_action_details

 /**
  * display action details in abuse reports
  * @global type $langcreator
  * @global type $langAbuseReportCat
  * @global type $langSpam
  * @global type $langRudeness
  * @global type $langOther
  * @global type $langMessage
  * @global type $langComment
  * @global type $langForumPost
  * @global type $langAbuseResourceType
  * @global type $langContent
  * @global type $langAbuseReportStatus
  * @global type $langAbuseReportOpen
  * @global type $langAbuseReportClosed
  * @param type $details
  * @return string
  */
 private function abuse_report_action_details($details)
 {
     global $langcreator, $langAbuseReportCat, $langSpam, $langRudeness, $langOther, $langMessage, $langComment, $langForumPost, $langAbuseResourceType, $langContent, $langAbuseReportStatus, $langAbuseReportOpen, $langAbuseReportClosed, $langLinks;
     $reports_cats = array('rudeness' => $langRudeness, 'spam' => $langSpam, 'other' => $langOther);
     $resource_types = array('comment' => $langComment, 'forum_post' => $langForumPost, 'link' => $langLinks);
     $details = unserialize($details);
     $content = "{$langcreator}: " . display_user($details['user_id'], false, false) . "<br/>";
     $content .= "{$langAbuseReportCat}: &laquo" . $reports_cats[$details['reason']] . "&raquo<br/>";
     $content .= "{$langMessage}: &laquo" . q($details['message']) . "&raquo<br/>";
     $content .= "{$langAbuseResourceType}: &laquo" . $resource_types[$details['rtype']] . "&raquo<br/>";
     if ($details['rtype'] == 'comment') {
         $content .= "{$langContent}: &laquo" . q($details['rcontent']) . "&raquo<br/>";
     } elseif ($details['rtype'] == 'forum_post') {
         $content .= "{$langContent}: &laquo" . mathfilter($details['rcontent'], 12, "../courses/mathimg/") . "&raquo<br/>";
     }
     if ($details['status'] == 1) {
         $content .= "{$langAbuseReportStatus}: &laquo" . $langAbuseReportOpen . "&raquo";
     } elseif ($details['status'] == 0) {
         $content .= "{$langAbuseReportStatus}: &laquo" . $langAbuseReportClosed . "&raquo";
     }
     return $content;
 }
开发者ID:nikosv,项目名称:openeclass,代码行数:40,代码来源:log.php

示例15: foreach

                            <li class='list-group-item list-header'>
                              <div class='row'>
                                  <div class='text-center'>
                                      <b>$langGroupMembers</b>
                                  </div>
                              </div>
                                <div class='row'>
                                    <div class='col-xs-4'>$langSurnameName</div>
                                    <div class='col-xs-4'>$langAm</div>
                                    <div class='col-xs-4'>$langEmail</div>
                                </div>
                            </li>";
 
  foreach ($members as $member) {
      $user_group_description = $member->description;        
      $tool_content .= "<li class='list-group-item'><div class='row'><div class='col-xs-4'>" . display_user($member->id, false, true);
      if ($user_group_description) {
          $tool_content .= "<br />" . q($user_group_description);
      }
      $tool_content .= "</div><div class='col-xs-4'>";
      if (!empty($member->am)) {
          $tool_content .= q($member->am);
      } else {
          $tool_content .= '-';
      }
      $tool_content .= "</div><div class='col-xs-4'>";
      $email = q(trim($member->email));
      if (!empty($email)) {
          $tool_content .= "<a href='mailto:$email'>$email</a>";
      } else {
          $tool_content .= '-';
开发者ID:nikosv,项目名称:openeclass,代码行数:31,代码来源:group_space.php


注:本文中的display_user函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。