Commit bcd1322b41f9f5609bc4696eae1ec8132c8786f7

Authored by nbm
1 parent 6954aa5c

Add Smarty version of the standard main page


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3448 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/standard_page.smarty 0 → 100644
  1 +<html>
  2 + <head>
  3 + <title>The KnowledgeTree</title>
  4 + <meta http-equiv="refresh" content="{$sessiontimeout};">
  5 + <link rel="SHORTCUT ICON" href="{$treeicon}">
  6 + <link rel="stylesheet" href="{$stylesheet}">
  7 +
  8 + { foreach from="$jsfiles" item="jsfile" }
  9 + <script type="text/javascript" src="{$jsfile}"></script>
  10 + { /foreach }
  11 + {$javascript}
  12 + </head>
  13 + { if $onloadjavascript }
  14 + { assign var="onloadjavascript" value="onload=\"$onloadjavascript\"" }
  15 + { /if }
  16 + <body marginleft="0" marginheight="0" {$onloadjavascript}>
  17 + { if $formenctype }
  18 + { assign var="formenctype" value="enctype=\"$formenctype\"" }
  19 + { /if }
  20 + { if ! $formdisabled }
  21 + { if $hasrequiredfields }
  22 + { assign var="onsubmit" value="onsubmit=\"return validateForm(this)\"" }
  23 + { /if }
  24 + <form name="MainForm" {$formenctype} action="{$formaction}" method="{$formsubmitmethod}" {$onsubmit}>
  25 + { /if }
  26 +
  27 + <table cellpadding="0" cellspacing="0" border="0" width="700" height="{$pageheight}">
  28 + <tr>
  29 + { if $nwbgcolour }
  30 + { assign var="nwbgcolour" value="bgcolor=\"$nwbgcolour\"" }
  31 + { /if }
  32 + <td height="0" valign="top" {$nwbgcolour}>
  33 + { if $nwpayload }
  34 + { $nwpayload->render() }
  35 + { else }
  36 + Northwest payload not set
  37 + { /if }
  38 + </td>
  39 +
  40 + { if $nbgcolour }
  41 + { assign var="nbgcolour" value="bgcolor=\"$nbgcolour\"" }
  42 + { /if }
  43 + <td valign="top" align="left" {$nbgcolour}>
  44 + { if $npayload }
  45 + { $npayload->render() }
  46 + { else }
  47 + North payload not set
  48 + { /if }
  49 + </td>
  50 + </tr>
  51 +
  52 + <tr>
  53 + { if $wbgcolour }
  54 + { assign var="wbgcolour" value="bgcolor=\"$wbgcolour\"" }
  55 + { /if }
  56 + <td height="100%" valign="top" {$wbgcolour}>
  57 + { if $wpayload }
  58 + { $wpayload->render() }
  59 + { else }
  60 + West payload not set
  61 + { /if }
  62 + </td>
  63 +
  64 + { if $cbgcolour }
  65 + { assign var="cbgcolour" value="bgcolor=\"$cbgcolour\"" }
  66 + { /if }
  67 + <td valign="top" {$cbgcolour}>
  68 + { foreach item=errorMessage from=$errormessages }
  69 + <table border="0"><tr><td><p class="errorText">{$errorMessage}</p></td></tr></table>
  70 + { /foreach }
  71 + { foreach item=errorMessage from=$kterrormessages }
  72 + <table border="0"><tr><td><p class="errorText">{$errorMessage}</p></td></tr></table>
  73 + { /foreach }
  74 + { if $cpayload }
  75 + { $cpayload->render() }
  76 + { else }
  77 + Central payload not set
  78 + { /if }
  79 + </td>
  80 + </tr>
  81 + </table>
  82 + { if ! $formdisabled }
  83 + </form>
  84 + { /if }
  85 + </body>
  86 +</html>
... ...