' .
' ' . PROJECT_VERSION_NAME . ' ' . PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR . '' .
((PROJECT_VERSION_PATCH1 =='') ? '' : 'Patch: ' . PROJECT_VERSION_PATCH1 . '::' . PROJECT_VERSION_PATCH1_SOURCE . '') .
((PROJECT_VERSION_PATCH2 =='') ? '' : 'Patch: ' . PROJECT_VERSION_PATCH2 . '::' . PROJECT_VERSION_PATCH2_SOURCE . '') .
' ' . PROJECT_DATABASE_LABEL . ' ' . PROJECT_DB_VERSION_MAJOR . '.' . PROJECT_DB_VERSION_MINOR . '' .
((PROJECT_DB_VERSION_PATCH1 =='') ? '' : 'Patch: ' . PROJECT_DB_VERSION_PATCH1 . '::' . PROJECT_DB_VERSION_PATCH1_SOURCE . '') .
((PROJECT_DB_VERSION_PATCH2 =='') ? '' : 'Patch: ' . PROJECT_DB_VERSION_PATCH2 . '::' . PROJECT_DB_VERSION_PATCH2_SOURCE . '') ;
$hist_query = "SELECT * from " . TABLE_PROJECT_VERSION . " WHERE project_version_key = 'Zen-Cart Main' GROUP BY concat(project_version_major, project_version_minor, project_version_comment) ORDER BY project_version_date_applied DESC, project_version_major DESC, project_version_minor DESC";
$hist_details = $db->Execute($hist_query);
$sinfo .= 'v' . $hist_details->fields['project_version_major'] . '.' . $hist_details->fields['project_version_minor'];
if (zen_not_null($hist_details->fields['project_version_patch'])) $sinfo .= ' Patch: ' . $hist_details->fields['project_version_patch'];
if (zen_not_null($hist_details->fields['project_version_date_applied'])) $sinfo .= ' [' . $hist_details->fields['project_version_date_applied'] . '] ';
if (zen_not_null($hist_details->fields['project_version_comment'])) $sinfo .= ' (' . $hist_details->fields['project_version_comment'] . ')';
$sinfo .= ' ';
$hist_query = "SELECT * from " . TABLE_PROJECT_VERSION_HISTORY . " WHERE project_version_key = 'Zen-Cart Main' GROUP BY concat(project_version_major, project_version_minor, project_version_comment) ORDER BY project_version_date_applied DESC, project_version_major DESC, project_version_minor DESC, project_version_patch DESC";
$hist_details = $db->Execute($hist_query);
while (!$hist_details->EOF) {
$sinfo .= 'v' . $hist_details->fields['project_version_major'] . '.' . $hist_details->fields['project_version_minor'];
if (zen_not_null($hist_details->fields['project_version_patch'])) $sinfo .= ' Patch: ' . $hist_details->fields['project_version_patch'];
if (zen_not_null($hist_details->fields['project_version_date_applied'])) $sinfo .= ' [' . $hist_details->fields['project_version_date_applied'] . '] ';
if (zen_not_null($hist_details->fields['project_version_comment'])) $sinfo .= ' (' . $hist_details->fields['project_version_comment'] . ')';
$sinfo .= ' ';
$hist_details->MoveNext();
}
$sinfo .= ' | ' .
'
' .
'';
?>
>