Code

Updated framework
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 May 2007 10:02:49 +0000 (10:02 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 May 2007 10:02:49 +0000 (10:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6464 594d385d-05f5-0310-b6e9-bd551577e9d8

ihtml/themes/default/framework.tpl

index 3e2def615bf023747913ef6f513ad7215142a6bb..be547d1e36079e8a695223b6cd03fc2ee6e312cd 100644 (file)
@@ -4,17 +4,29 @@
 <form action='main.php{$plug}' name='mainform' method='post' enctype='multipart/form-data'>
 <div class='setup_header'>
   <div style="float:left;"><img src='themes/default/images/go_logo.png' class='center' alt='GOsa'>
+   {if !$javascript}
     <a class="maintitlebar" href='main.php?reset=1' onClick='return question("{t}You are currently editing a database entry.
  Do you want to dismiss the changes?{/t}", "main.php?reset=1");' ><img src='{$go_home}' class='center' border="0" alt="Main">&nbsp;{t}Main{/t}
     </a>
+   {else}
+    <a class="maintitlebar" onClick='return question("{t}You are currently editing a database entry.
+ Do you want to dismiss the changes?{/t}", "main.php?reset=1");' ><img src='{$go_home}' class='center' border="0" alt="Main">&nbsp;{t}Main{/t}
+    </a>
+   {/if}
     &nbsp;
     <a class="maintitlebar" style="margin-left:35px" {$help_method}>
        <img src='{$go_help}' class='center' border="0" alt="Help">&nbsp;{t}Help{/t}
     </a>
     &nbsp;
+   {if !$javascript}
     <a class="maintitlebar" href='logout.php?request' onClick='return question("{t}You are currently editing a database entry. Do you want to dismiss the changes?{/t}", "logout.php?request");' style="margin-left:35px;">
       <img src='{$go_out}' class='center' border="0" alt="Sign out">&nbsp;{t}Sign out{/t}
     </a>
+    {else}
+    <a class="maintitlebar" onClick='return question("{t}You are currently editing a database entry. Do you want to dismiss the changes?{/t}", "logout.php?request");' style="margin-left:35px;">
+      <img src='{$go_out}' class='center' border="0" alt="Sign out">&nbsp;{t}Sign out{/t}
+    </a>
+    {/if}
   </div>
   <div style="padding-top:8px;text-align:right;height:28px"><a>{t}Signed in:{/t} <b>{$username}</b></a></div>
 </div>