$templates.shared.doctype
{=
string profile_name = internal.profile_name;
=}
{=
node database_fields_node = "profiles." . profile_name . ".database.fields";
node database_field;
string dbf_label = "-";
string dbf_type = "-";
string dbf_suppress_top = "-";
string dbf_suppress_bottom = "-";
foreach database_field database_fields_node (
if (subnode_exists(database_field, "label")) then (
dbf_label = node_value(subnode_by_name(database_field, "label"));
);
if (subnode_exists(database_field, "type")) then (
dbf_type = node_value(subnode_by_name(database_field, "type"));
);
if (subnode_exists(database_field, "suppress_top")) then (
dbf_suppress_top = node_value(subnode_by_name(database_field, "suppress_top"));
);
if (subnode_exists(database_field, "suppress_bottom")) then (
dbf_suppress_bottom = node_value(subnode_by_name(database_field, "suppress_bottom"));
);
# ----------------
# log field header
# ----------------
'\n';
# ---------------
# log field data
# ---------------
'
\n';
'\n';
'\n';
'\n';
'\n';
'\n';
expand('$lang_options.profile.database.fields.type.label: | \n');
expand('$dbf_type | \n');
'
\n';
'\n';
expand('$lang_options.profile.database.fields.suppress_top.label: | \n');
expand('$dbf_suppress_top | \n');
'
\n';
'\n';
expand('$lang_options.profile.database.fields.suppress_bottom.label: | \n');
expand('$dbf_suppress_bottom | \n');
'
\n';
'
\n';
'
\n';
);
expand(templates.shared.copyright);
=}