當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Groups::getGroupDetails方法代碼示例

本文整理匯總了PHP中Groups::getGroupDetails方法的典型用法代碼示例。如果您正苦於以下問題:PHP Groups::getGroupDetails方法的具體用法?PHP Groups::getGroupDetails怎麽用?PHP Groups::getGroupDetails使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Groups的用法示例。


在下文中一共展示了Groups::getGroupDetails方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: while

}
?>

            <div class="row placeholders panel panel-primary" style="margin-top:15px;">
              <!-- <div class="" style="margin-bottom:20px;"></div> -->
              <div class="panel-body">
              <div class="col-xs-6 col-sm-3 placeholder" style="margin:40px 0px; border-right: solid 2px gainsboro;">
                <?php 
$results = $groups->getGroup();
echo '<img src=" ' . $results->group_image . ' " width="100" height="100" class="img-responsive" alt="Generic placeholder thumbnail">';
echo '<h4>' . $results->name . '</h4>';
?>
              </div>
              <div class="col-xs-18 col-sm-9 placeholder" style="padding:25px;">
                <?php 
$groupsDetails = $groups->getGroupDetails();
$hasG = false;
echo "<script>console.log('results_row: " . json_encode($groupsDetails) . "');</script>";
if ($groupsDetails->num_rows >= 1) {
    $hasG = true;
}
if ($hasG) {
    while ($row = $groupsDetails->fetch_object()) {
        echo "<script>console.log('PHP: getGroupDetails " . json_encode($row) . "');</script>";
        echo '<h3 style="text-align:left;margin-left: 1em;"> Coordinator:</h3>';
        echo '<h4 style="text-align:left; padding-left:35px;margin-left: 1em;"> ' . $row->first_name . " " . $row->last_name . '</h4>';
        echo '<h3 style="text-align:left;margin-left: 1em;"> Category:</h3>';
        if (isset($row->category)) {
            echo '<h4 style="text-align:left; padding-left:35px;margin-left: 1em;"> ' . $row->category . '</h4>';
        }
        echo '<h3 style="text-align:left;margin-left: 1em;"> Description:</h3>';
開發者ID:ejalfonzo,項目名稱:GroupFinder,代碼行數:31,代碼來源:open.php

示例2: Users

<?php

include_once "../includes/webservice.inc.php";
$webService = new Webservices_Writer();
$webService->init();
$userObj = new Users();
$groupsObj = new Groups();
$formsObj = new Forms();
$data = isset($_POST['data']) ? $_POST['data'] : '';
$groupusers = '';
$groupdetails = '';
if ($userObj->checkUserFromRawData($data)) {
    $groupusers = $userObj->getGroupUsersList($data);
    $groupdetails = $groupsObj->getGroupDetails($data);
    $groupforms = $formsObj->getGroupFormsList($data);
} else {
    $xmls = $webService->errorXML(join(",", $userObj->errorMessages));
    $webService->outputXML($xmls);
}
if (count($groupusers) > 0 && count($groupdetails) > 0) {
    $webService->createXMLInstance();
    $webService->appendArrayToRootNode('', $groupusers);
    $webService->appendArrayToRootNode('', $groupdetails);
    $webService->appendArrayToRootNode('', $groupforms);
    $webService->displayXML();
} else {
    $usererrors = array();
    $usererrors = $userObj->errorMessages;
    $grouperrors = array();
    $grouperrors = $groupsObj->errorMessages;
    $formerrors = array();
開發者ID:rapsody,項目名稱:HeartwebApp,代碼行數:31,代碼來源:groupuserlist.php


注:本文中的Groups::getGroupDetails方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。