diff --git a/templates/ktcore/standard_page.smarty b/templates/ktcore/standard_page.smarty new file mode 100644 index 0000000..a6cdf31 --- /dev/null +++ b/templates/ktcore/standard_page.smarty @@ -0,0 +1,86 @@ + + + The KnowledgeTree + + + + + { foreach from="$jsfiles" item="jsfile" } + + { /foreach } + {$javascript} + + { if $onloadjavascript } + { assign var="onloadjavascript" value="onload=\"$onloadjavascript\"" } + { /if } + + { if $formenctype } + { assign var="formenctype" value="enctype=\"$formenctype\"" } + { /if } + { if ! $formdisabled } + { if $hasrequiredfields } + { assign var="onsubmit" value="onsubmit=\"return validateForm(this)\"" } + { /if } +
+ { /if } + + + + { if $nwbgcolour } + { assign var="nwbgcolour" value="bgcolor=\"$nwbgcolour\"" } + { /if } + + + { if $nbgcolour } + { assign var="nbgcolour" value="bgcolor=\"$nbgcolour\"" } + { /if } + + + + + { if $wbgcolour } + { assign var="wbgcolour" value="bgcolor=\"$wbgcolour\"" } + { /if } + + + { if $cbgcolour } + { assign var="cbgcolour" value="bgcolor=\"$cbgcolour\"" } + { /if } + + +
+ { if $nwpayload } + { $nwpayload->render() } + { else } + Northwest payload not set + { /if } + + { if $npayload } + { $npayload->render() } + { else } + North payload not set + { /if } +
+ { if $wpayload } + { $wpayload->render() } + { else } + West payload not set + { /if } + + { foreach item=errorMessage from=$errormessages } +

{$errorMessage}

+ { /foreach } + { foreach item=errorMessage from=$kterrormessages } +

{$errorMessage}

+ { /foreach } + { if $cpayload } + { $cpayload->render() } + { else } + Central payload not set + { /if } +
+ { if ! $formdisabled } +
+ { /if } + +