$hlblockFields = $defaultValues; if ($hlBlockID !== '' && $hlBlockID !== '-1') { $hlblock = Bitrix\Highloadblock\HighloadBlockTable::getList(array("filter" => array("TABLE_NAME" => $hlBlockID)))->fetch(); $entity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hlblock); $entityDataClass = $entity->getDataClass(); $hlblockFields = $entityDataClass::getEntity()->getFields(); } if (isset($_REQUEST['addEmptyRow']) && $_REQUEST['addEmptyRow'] === 'Y') { $APPLICATION->RestartBuffer(); echo CUtil::PhpToJSObject(addTableRow($rowNumber, $defaultValues, $hlblockFields, true)); } else { if ($hlBlockID !== '') { if (isset($_REQUEST['getTitle']) && $_REQUEST['getTitle'] === 'Y') { $result .= addHeadRow($hlblockFields, $colCount); } $exist = false; $rsData = $entityDataClass::getList(array()); while ($arData = $rsData->fetch()) { $result .= addTableRow($rowNumber, $arData, $hlblockFields, false); $currentRowNumber = $rowNumber; $rowNumber++; $exist = true; } if (!$exist) { $result .= addTableRow($rowNumber, $defaultValues, $hlblockFields, false); } } $result .= '<tr style="display: none;"><td colspan="' . $colCount . '"><input type="hidden" id="IB_MAX_ROWS_COUNT" value="' . $currentRowNumber . '"></td></tr>'; echo $result; } }
<td style="vertical-align: top; text-align:center">' . addTableDefCell($intPropID, $arPropInfo) . '</td> <td style="vertical-align: top; text-align:center">' . addTableDescriptionCell($intPropID, $arPropInfo) . '</td> <td style="vertical-align: top; text-align:center">' . addTableFullDescriptionCell($intPropID, $arPropInfo) . '</td> </tr> '; } $rowNumber = intval($_REQUEST['rowNumber']); $hlBlock = $_REQUEST['hlBlock']; $result = ''; if (strlen($hlBlock) > 0) { $hlblock = Bitrix\Highloadblock\HighloadBlockTable::getList(array("filter" => array("TABLE_NAME" => $hlBlock)))->fetch(); $entity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hlblock); $entity_data_class = $entity->getDataClass(); $rsData = $entity_data_class::getList(array()); while ($arData = $rsData->fetch()) { $arResult[] = $arData; } if (is_array($arResult)) { foreach ($arResult as $key => $value) { $result .= addTableRow($rowNumber, $value); $rowNumber++; } } } if ($result == '') { $result = addTableRow($rowNumber, 0); } $result .= '<tr style="display: none;"><td><input type="hidden" id="IB_MAX_ROWS_COUNT" value="' . $rowNumber . '"></td></tr>'; echo CUtil::PhpToJSObject($result); } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_after.php";
<tr><td BGCOLOR="#000080"> <p align=left><font color="#FFFFFF"><b> <?php echo "{$g_title}"; ?> - Reporting Options</b></font> </td></tr> <tr><td> <TABLE BORDER=0> <tr><td> <?php echo "Please select from the following reports:<p>\n"; echo "<table border=0 align=center cellpadding=5>\n"; addTableRow("reports/closed", "Closed Log Status Report", "The original report. You can specify a date range."); addTableRow("reports/user", "User activity report", "Statistics about each user, such as who is opening logs " . "and who is closing them."); addTableRow("reports/responsetime", "Respone Time", "Technician Response Time"); addTableRow("reports/security", "Security Audit", "Security Audit Report. Shows all users and what options " . "they have."); echo "</table>\n"; function addTableRow($whattodo, $linkText, $descText) { global $g_base_url; echo "<tr><td><a href=\"{$g_base_url}/index.php?whattodo={$whattodo}\">"; echo "{$linkText}</a>"; echo "</td><td>{$descText}</td></tr>\n"; } ?> </td></tr></table></td></tr></table>