ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
xhr_table.php File Reference

Go to the source code of this file.

Functions

 returnMarkup ($rows, $cols)
 

Variables

 $rows = 1
 
 $cols = 1
 

Function Documentation

◆ returnMarkup()

returnMarkup (   $rows,
  $cols 
)

Definition at line 26 of file xhr_table.php.

References $cols, $i, and $rows.

26  {
27  // start the table
28  $markup = "<table><thead><tr>";
29 
30  // build the thead
31  for($i=0; $i<$cols; $i++) {
32  $markup = $markup."<th>header ".$i."</th>";
33  }
34  $markup = $markup."</tr></thead><tbody>";
35 
36  // build the tbody
37  for($j=0; $j<$rows; $j++) {
38  $markup = $markup."<tr>";
39  for($i=0; $i<$cols; $i++) {
40  $markup = $markup."<td>data cell ".$j."-".$i."</td>";
41  }
42  $markup = $markup."</tr>";
43  }
44  // end the table
45  $markup = $markup."</tbody></table>";
46 
47  echo $markup;
48 }
$rows
Definition: xhr_table.php:10
$i
Definition: disco.tpl.php:19
$cols
Definition: xhr_table.php:11

Variable Documentation

◆ $cols

$cols = 1

Definition at line 11 of file xhr_table.php.

Referenced by ilBookingObjectsTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), PDF417\__construct(), ilDBPdo\buildManipSQL(), ilObjMediaObjectGUI\editFilesObject(), ilSCORM2004TrackingItems\exportObjGlobalToSystemColumns(), ilSCORM2004TrackingItems\exportSelectedCoreColumns(), ilSCORMTrackingItems\exportSelectedCoreColumns(), ilSCORM2004TrackingItems\exportSelectedInteractionsColumns(), ilSCORMTrackingItems\exportSelectedInteractionsColumns(), ilSCORM2004TrackingItems\exportSelectedObjectivesColumns(), ilSCORMTrackingItems\exportSelectedObjectivesColumns(), ilSCORMTrackingItems\exportSelectedRawColumns(), ilSCORMTrackingItems\exportSelectedSuccessColumns(), ilBookingReservationsTableGUI\getAdditionalExportCols(), Title\getCascadeProtectionSources(), SurveyMetricQuestionEvaluation\getGrid(), SurveyQuestionEvaluation\getGrid(), ilExerciseMemberTableGUI\getModeColumns(), SurveyMatrixQuestionGUI\getParsedAnswers(), ilTrUserObjectsPropsTableGUI\getSelectableColumns(), ilQuestionPoolPrintViewTableGUI\getSelectableColumns(), ilSurveyResultsCumulatedTableGUI\getSelectableColumns(), ilTestQuestionsTableGUI\getSelectableColumns(), ilSCORMTrackingItemsTableGUI\getSelectableColumns(), ilWorkflowEngineDefinitionsTableGUI\getSelectableColumns(), ilSCORM2004TrackingItemsTableGUI\getSelectableColumns(), ilStudyProgrammeIndividualPlanTableGUI\getSelectableColumns(), ilTrObjectUsersPropsTableGUI\getSelectableColumns(), ilMStListUsersTableGUI\getSelectableColumns(), ilEvaluationAllTableGUI\getSelectableColumns(), ilMStShowUserCoursesTableGUI\getSelectableColumns(), ilUserTableGUI\getSelectableColumns(), ilBookingReservationsTableGUI\getSelectableColumns(), ilExerciseSubmissionTableGUI\getSelectableColumns(), ilMStListCoursesTableGUI\getSelectableColumns(), ilSurveyQuestionsTableGUI\getSelectableColumns(), ilQuestionBrowserTableGUI\getSelectableColumns(), ilBookingObjectsTableGUI\getSelectableColumns(), ilStudyProgrammeMembersTableGUI\getSelectableColumns(), ilBookingReservationsTableGUI\getSelectableUserColumns(), ilLPTableBaseGUI\getSelectableUserColumns(), ilEvaluationAllTableGUI\getSelectedColumns(), ilPCTableGUI\initPropertiesForm(), ilObjGlossaryGUI\initSettingsForm(), ilExerciseSubmissionTableGUI\parseColumns(), ilExParticipantTableGUI\parseModeColumns(), ilExerciseMemberTableGUI\parseModeColumns(), ilSurveyEvaluationGUI\parseResultsToExcel(), HTMLPurifier_Printer_ConfigForm_default\render(), ilSurveyEvaluationGUI\renderDetails(), returnMarkup(), ilSCORM2004ScoGUI\sahs_questions(), ilObjGlossaryGUI\saveProperties(), ilSCORM2004ScoGUI\sco_resources(), wsdl\serializeType(), ilExcel\setCellArray(), TCPDF\setDefaultTableColumns(), HTMLPurifier_Printer_ConfigForm\setTextareaDimensions(), ilGlossaryPresentationGUI\showDownloadList(), ilSCORM2004TrackingItems\tracInteractionItemColumns(), ilSCORM2004TrackingItems\tracInteractionUserAnswersColumns(), ilSCORM2004TrackingItems\tracInteractionUserColumns(), HTMLPurifier_ChildDef_Table\validateChildren(), and TCPDF\write2DBarcode().

◆ $rows

$rows = 1

Definition at line 10 of file xhr_table.php.

Referenced by PDF417\__construct(), ilConditionHandler\_getPersistedConditionsOfTarget(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\addColumns(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addColumns(), SimpleSAML_Metadata_MetaDataStorageHandlerPdo\addEntry(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\adustEndCellRowForHeight(), ilTestExport\aggregatedResultsToCSV(), ilDBGenerator\buildInsertStatement(), ilAssQuestionSkillUsagesTableGUI\buildTableRowsArray(), ilSetup\checkClientSessionSettings(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\COLUMNS(), ilTestSkillLevelThresholdsTableGUI\completeCompetenceTitles(), PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\convertAddress(), PhpOffice\PhpSpreadsheet\Writer\Ods\Formula\convertCellReferences(), Matrix\Builder\createFilledMatrix(), ilPCTableData\deleteCol(), ilTable2GUI\determineLimit(), ilObjCourseGUI\editInfoObject(), ilObjSessionGUI\editObject(), ilTestEvaluationGUI\eval_a(), ilSurveyEvaluationGUI\exportEvaluationUser(), SurveyMatrixQuestionEvaluation\exportResults(), ilTestExport\exportToCSV(), ilPCTable\fixHideAndSpans(), getID3_cached_sqlite3\get_cached_dir(), ilPCTable\getAllCellAlignments(), ilPCTable\getAllCellClasses(), ilPCTable\getAllCellSpans(), ilPCTable\getAllCellWidths(), ilObjTest\getAvailableQuestions(), ilTree\getChilds(), ilTrSummaryTableGUI\getItems(), ilTree\getNodePathForTitlePath(), ilTestParticipantList\getParticipantsTableRows(), ilObjQuestionPool\getPrintviewQuestions(), ilObjSurvey\getQuestionblocksTable(), ilObjSurveyQuestionPool\getQuestionsData(), ilObjSurvey\getQuestionsTable(), ilTestParticipantList\getScoringsTableRows(), ilPCTable\importSpreadsheet(), ilQuestionUsagesTableGUI\initColumns(), ilQuestionCumulatedStatisticsTableGUI\initData(), SimpleSAML_Metadata_MetaDataStorageHandlerPdo\initDatabase(), ilPCTableGUI\initPropertiesForm(), ilPCParagraph\input2xmlReplaceLists(), ilTestParticipantData\load(), ilTestEvaluationData\loadRows(), ilPCSourceCode\modifyPageContentPostXsl(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTableData\newColAfter(), ilPCTableData\newColBefore(), pdoDB\nextId(), ilDBPdo\nextId(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\OFFSET(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\OFFSET(), assQuestionGUI\outChapterSelector(), assQuestionGUI\outGlossarySelector(), assQuestionGUI\outPageSelector(), ilObjForumSearchResultTableGUI\parse(), ilObjWikiSearchResultTableGUI\parse(), ilLTIProviderReleasedObjectsTableGUI\parse(), ilObjectCustomUserFieldsTableGUI\parse(), ilLogComponentTableGUI\parse(), ilWebResourceLinkTableGUI\parse(), ilConsultationHourGroupTableGUI\parse(), ilConsultationHourBookingTableGUI\parse(), ilECSServerTableGUI\parse(), ilWebResourceEditableLinkTableGUI\parse(), ilTimingsPersonalTableGUI\parse(), ilTimingsManageTableGUI\parse(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilRoleTableGUI\parse(), ilExportSelectionTableGUI\parseContainer(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\parseDefinedNameValue(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilDclRecordEditGUI\parseSearchResults(), ilWebResourceEditableLinkTableGUI\parseSelectedLinks(), ilObjectCopySelectionTableGUI\parseSource(), ilConditionHandler\preloadPersistedConditionsForTargetRecords(), ilObjLTIAdministration\readReleaseObjects(), HTMLPurifier_Printer_ConfigForm_default\render(), returnMarkup(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\ROWS(), wsdl\serializeType(), TCPDF2DBarcode\setBarcode(), ilConditionHandlerTableGUI\setConditions(), ilPCTable\setTDSpans(), HTMLPurifier_Printer_ConfigForm\setTextareaDimensions(), phpseclib\Net\SSH2\setWindowSize(), ilTestEvaluationGUI\singleResults(), ilArrayTableDataParser\startParsing(), PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared\test(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellReferencesAllWorksheets(), ilWebResourceEditableLinkTableGUI\updateFromPost(), ilObjQuestionPoolGUI\uploadQplObject(), Auth_Yubico\verify(), TCPDF\write2DBarcode(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeRows().