*  $rowManagerXMLNodeName : The XML Node Name of the data List Entries
 *  $primaryKeyFieldName : The primary key field name for the dataList entries
 *  $dataList   :   The XML data to display in the list
 *  $dataFieldList :    Array of fields processed by the data list.
 *  $showAddForm :  BOOL flag determining if we show the Form during a non
 *                  edit/delete mode.
 */
// First load the common Template Tools object
// This object handles the common display of our form items and
// text formmatting tools.
$fileName = 'objects/TemplateTools.php';
$path = Page::findPathExtension($fileName);
require_once $path . $fileName;
$templateTools = new TemplateTools();
if (isset($disableForm)) {
    $templateTools->disableForm();
}
//Load the Keys for the XML based Form Item Objects
$formItemName = XMLObject_FormItem::XML_ELEMENT_NAME;
$formItemValue = XMLObject_FormItem::XML_ELEMENT_VALUE;
$formItemError = XMLObject_FormItem::XML_ELEMENT_ERROR;
// Initialize the row color
$rowColor = "";
$templateTools->setHeadingBGColor($rowColor);
// load the page labels
$templateTools->loadPageLabels($pageLabels);
$textStyle = 'text';
if (!isset($showAddForm)) {
    $showAddForm = true;
}
if ($showAddForm || !$showAddForm && $editEntryID != '') {