framework.tpl 2.15 KB
Newer Older
1
<!-- Headline -->
2
<body onLoad="javascript:$$('div.debug_div').each(function (a) { a.hide(); });">
3
4
5
6
7
  {$game_screen}
  {$php_errors}
  <form action="main.php{$plug}" name="mainform" id="mainform" method="post" enctype="multipart/form-data">
    <div class="setup_header">
      <div id="header_left">
8
        <img id="fd_logo" class="optional" src="geticon.php?context=applications&icon=fusiondirectory&size=48" alt="FusionDirectory"/>
9
        <a class="maintitlebar" href="main.php?reset=1">
10
          <img src="geticon.php?context=actions&icon=go-home&size=22" alt="Main"/>&nbsp;{t}Main{/t}
11
12
13
        </a>
        &nbsp;
        <a class="maintitlebar logout" href="logout.php?request">
14
          <img src="geticon.php?context=actions&icon=application-exit&size=22" alt="Sign out"/>&nbsp;{t}Sign out{/t}
15
16
        </a>
        <a class="plugtop">
17
          <img src="{$headline_image}" alt="{t}{$headline}{/t}"/>{t}{$headline}{/t}
18
19
20
21
22
23
24
25
        </a>
      </div>
      <div id="header_right">
        <a><span class="optional">{t}Signed in:{/t} </span><b>{$username}</b></a>
        <div class="logout-label">
          <canvas id="sTimeout" width="22" height="22" title="{$sessionLifetime}|{t}Session expires in %d!{/t}"></canvas>
        </div>
      </div>
26
    </div>
27

28
29
30
31
32
33
34
35
36
37
    <table class="framework">
      <tbody>
        <tr>
          {if !$hideMenus}
            <!-- Menu -->
            <td class="optional" id="menucell">
              {$menu}
              <br/>
            </td>
          {/if}
38

39
40
41
42
43
44
45
46
          <!-- Plugin window -->
          <td id="maincell">
            {$msg_dialogs}
            <div class="plugin_window">
              {$contents}
            </div>
            {if $channel != ""}
                <input type="hidden" name="_channel_" value="{$channel}"/>
47
            {/if}
48
49
50
51
          </td>
        </tr>
      </tbody>
    </table>
52

53
54
55
56
    {$errors}
    {$focus}
    <input type="hidden" name="php_c_check" value="1"/>
  </form>
57
58
59


  <!-- Automatic logout when session is expired -->
60
  <script type="text/javascript">
61
62
63
64
65
66
  {literal}
   function logout()
   {
    document.location = 'logout.php';
   }
  {/literal}
67

68
69
   logout.delay({$sessionLifetime});

70
  </script>
71
72
73

</body>
</html>