当前位置: 首页>>代码示例>>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;未经允许,请勿转载。