Time for action – presenting the data
If
you look into the code section, you will see that the code segment begins with creating the form that is needed for the action items to work. It then goes on and checks the size of the array which has been created earlier. If the array contains items, it continues with creating the table header ($menu_text
).
Let's look into the relevant part for actually displaying the data you retrieved in the previous step. This part can be found in the cbEnhancedInfo_listInformation.php
file of Example 4:
// The html header will contain a checkbox, so the end-user can // select all items on the table at once. html_header_sort_checkbox( $menu_text, $_REQUEST["sort_column"], $_REQUEST["sort_direction"] ); // This variable will be used to create te alternate colored // rows on the table $i = 0; // Let's cycle through the items ! foreach ($a_enhancedInfos as $a_enhancedInfo) { // Data presentation is missing here } html_end_box(false);
You can see that...