本文整理汇总了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>';
示例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();