ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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(), MDB2_Extended\buildManipSQL(), ilDBPdo\buildManipSQL(), ilObjMediaObjectGUI\editFilesObject(), ilSCORM2004TrackingItems\exportObjGlobalToSystemColumns(), ilSCORM2004TrackingItems\exportSelectedCoreColumns(), ilSCORMTrackingItems\exportSelectedCoreColumns(), ilSCORM2004TrackingItems\exportSelectedInteractionsColumns(), ilSCORMTrackingItems\exportSelectedInteractionsColumns(), ilSCORM2004TrackingItems\exportSelectedObjectivesColumns(), ilSCORMTrackingItems\exportSelectedObjectivesColumns(), ilSCORMTrackingItems\exportSelectedRawColumns(), ilSCORMTrackingItems\exportSelectedSuccessColumns(), Title\getCascadeProtectionSources(), SurveyMetricQuestionEvaluation\getGrid(), SurveyQuestionEvaluation\getGrid(), ilExerciseMemberTableGUI\getModeColumns(), SurveyMatrixQuestionGUI\getParsedAnswers(), ilTermsOfServiceAgreementByLanguageTableGUI\getSelectableColumns(), ilTermsOfServiceAcceptanceHistoryTableGUI\getSelectableColumns(), ilTrUserObjectsPropsTableGUI\getSelectableColumns(), ilQuestionPoolPrintViewTableGUI\getSelectableColumns(), ilSurveyResultsCumulatedTableGUI\getSelectableColumns(), ilSCORMTrackingItemsTableGUI\getSelectableColumns(), ilWorkflowEngineDefinitionsTableGUI\getSelectableColumns(), ilSCORM2004TrackingItemsTableGUI\getSelectableColumns(), ilTestQuestionsTableGUI\getSelectableColumns(), ilStudyProgrammeIndividualPlanTableGUI\getSelectableColumns(), ilTrObjectUsersPropsTableGUI\getSelectableColumns(), ilMStListUsersTableGUI\getSelectableColumns(), ilQuestionBrowserTableGUI\getSelectableColumns(), ilEvaluationAllTableGUI\getSelectableColumns(), ilBookingReservationsTableGUI\getSelectableColumns(), ilUserTableGUI\getSelectableColumns(), ilMStShowUserCoursesTableGUI\getSelectableColumns(), ilExerciseSubmissionTableGUI\getSelectableColumns(), ilMStListCoursesTableGUI\getSelectableColumns(), ilSurveyQuestionsTableGUI\getSelectableColumns(), ilBookingObjectsTableGUI\getSelectableColumns(), ilStudyProgrammeMembersTableGUI\getSelectableColumns(), ilLPTableBaseGUI\getSelectableUserColumns(), ilEvaluationAllTableGUI\getSelectedColumns(), ilPCTableGUI\initPropertiesForm(), ilObjGlossaryGUI\initSettingsForm(), MDB2_Result_oci8\numCols(), MDB2_Result_pgsql\numCols(), MDB2_Result_mysql\numCols(), MDB2_Result_mysqli\numCols(), 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\_getConditionsOfTarget(), PHPExcel_Writer_OpenDocument_Content\_writeRows(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\addColumns(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addColumns(), SimpleSAML_Metadata_MetaDataStorageHandlerPdo\addEntry(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), ilTestExport\aggregatedResultsToCSV(), ilDBGenerator\buildInsertStatement(), ilAssQuestionSkillUsagesTableGUI\buildTableRowsArray(), ilSetup\checkClientSessionSettings(), PHPExcel_Calculation_LookupRef\COLUMNS(), ilTestSkillLevelThresholdsTableGUI\completeCompetenceTitles(), ilPCTableData\deleteCol(), ilTable2GUI\determineLimit(), ilObjCourseGUI\editInfoObject(), ilObjSessionGUI\editObject(), ilSurveyEvaluationGUI\exportEvaluationUser(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), 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(), ilObjQuestionPool\getPrintviewQuestions(), ilObjSurvey\getQuestionblocksTable(), ilObjSurveyQuestionPool\getQuestionsData(), ilObjSurvey\getQuestionsTable(), ilPCTable\importSpreadsheet(), ilQuestionUsagesTableGUI\initColumns(), ilQuestionCumulatedStatisticsTableGUI\initData(), SimpleSAML_Metadata_MetaDataStorageHandlerPdo\initDatabase(), ilPCTableGUI\initPropertiesForm(), ilPCParagraph\input2xmlReplaceLists(), ilPCSourceCode\modifyPageContentPostXsl(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTableData\newColAfter(), ilPCTableData\newColBefore(), pdoDB\nextId(), ilDBPdo\nextId(), MDB2_BufferedResult_pgsql\numRows(), MDB2_BufferedResult_mysql\numRows(), MDB2_BufferedResult_mysqli\numRows(), PHPExcel_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(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilRoleTableGUI\parse(), ilExportSelectionTableGUI\parseContainer(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilDclRecordEditGUI\parseSearchResults(), ilWebResourceEditableLinkTableGUI\parseSelectedLinks(), ilObjectCopySelectionTableGUI\parseSource(), ilObjTestGUI\participantsObject(), ilConditionHandler\preloadConditionsForTargetRecords(), ilObjLTIAdministration\readReleaseObjects(), HTMLPurifier_Printer_ConfigForm_default\render(), returnMarkup(), PHPExcel_Calculation_LookupRef\ROWS(), wsdl\serializeType(), TCPDF2DBarcode\setBarcode(), ilConditionHandlerTableGUI\setConditions(), ilPCTable\setTDSpans(), HTMLPurifier_Printer_ConfigForm\setTextareaDimensions(), ilTestEvaluationGUI\singleResults(), ilArrayTableDataParser\startParsing(), ilWebResourceEditableLinkTableGUI\updateFromPost(), ilObjQuestionPoolGUI\uploadQplObject(), Auth_Yubico\verify(), and TCPDF\write2DBarcode().