// Set the default text for no records.
var retHTML = "";
// Get the data for the link builder data
var dtDataArray = ArrayNew(1);
var i = 1;
var currText = "";
var currURL = "";
var currEditLink = "";
var currRemoveLink = "";
var editDeleteLinks = "";
var noRecordsText = "Days and Times have not been selected for this class.
Please click '#arguments.buttonText#'.";
// check that we have a UUID List values
if ( ListLen(arguments.uuidList) ) {
dtDataArray = buildDateTimeRenderData(arguments.uuidlist);
// Check that we have linkDataArray
if ( ArrayLen(dtDataArray) ) {
// Loop over the linkDataArray records
for ( i = 1; i LTE ArrayLen(dtDataArray); i = i + 1 ) {
editDeleteLinks = "";
// Build the Edit and Delete Links for each DateTime block
//editDeleteLinks = "
";
editDeleteLinks = editDeleteLinks & "";
editDeleteLinks = editDeleteLinks & " | ";
editDeleteLinks = editDeleteLinks & " | ";
editDeleteLinks = editDeleteLinks & "
";
// Build the DateTime blocks
retHTML = retHTML & "";
retHTML = retHTML & editDeleteLinks;
retHTML = retHTML & " " & TRIM(dtDataArray[i].renderString) & "";
retHTML = retHTML & "
" & TRIM(dtDataArray[i].renderMetaInfoString);
/* if ( LEN(TRIM(dtDataArray[i].renderMetaInfoString)) )
retHTML = retHTML & "
" & TRIM(dtDataArray[i].renderMetaInfoString);
else
retHTML = retHTML & "
";
*/
retHTML = retHTML & "
";
//retHTML = retHTML & "" & TRIM(dtDataArray[i].renderString) & editDeleteLinks & "
";
}
// Check if we have built data
if ( LEN(retHTML) ) {
// Prepend and Append the div block for the styles
retHTML = "" & retHTML & "
";
}
}
}
// Set the default text for no records.
if ( NOT LEN(retHTML) ) {
retHTML = "#noRecordsText#
";
}
return retHTML;