} ?> <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>';
<?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();