$templates.shared.doctype
{=
include "templates.shared.util.build_database_info_table";
# debug_message("template: update_database_view.cfv\n");
string profile_name = internal.profile_name;
bool database_exists = true;
# (database_exists = true, is required if page is called from task.cfv!
if (node_exists("volatile.database_exists")) then (
bool database_exists = volatile.database_exists;
);
=}
{=
# ---------------------
# if database exists
# ---------------------
if (database_exists) then (
# ---------------------
# get database info
# ---------------------
get_database_info(profile_name, "volatile.database_info");
node db_info = "volatile.database_info";
build_database_info_table(db_info);
# --------------------------------
# "Start update database" section
# --------------------------------
# if no database task is active or if the database has not just been updated show the "start update database" section
if (node_exists("volatile.show_start_update_database")) then (
'
\n';
);
# -----------------------------------
# "update database complete" section
# -----------------------------------
# if this page is called from task.cfv then show "update database completed" info
# if (node_exists("volatile.show_update_database_completed")) then (
if (node_exists("volatile.database_operation_completed")) then (
'
\n';
'\n';
'\n';
'\n';
'' . lang_admin.database.info.database_operation_completed_info . ' |
\n';
'
\n';
);
)
# ---------------------
# if no database exists
# ---------------------
else (
'
\n';
'\n';
'\n';
'\n';
'' . lang_admin.database.update.no_database_exists_info . ' |
\n';
'
\n';
);
=}