Changeset 1189 for branches/2.0/phpgwapi/templates/default/navbar.tpl
- Timestamp:
- 07/27/09 11:13:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/phpgwapi/templates/default/navbar.tpl
r2 r1189 1 <!-- BEGIN navbar --> 1 <!-- BEGIN navbar_header --> 2 <div align="center" id="hiddenButton" style="position:absolute"> 3 </div> 4 <div align="center" id="extraButton" style="position:absolute"> 5 <table><tr>{app_extra_icons_icon}</tr></table> 6 </div> 7 {app_extra_icons_div} 8 <script language="Javascript"> 9 function showBar(){ 10 bar = document.getElementById("toolbar"); 11 bar.style.visibility = ""; 12 bar.style.position ="static"; 13 but = document.getElementById("hiddenButton"); 14 but.style.visibility = ""; 15 but.style.position = "absolute"; 16 but.style.top = "55px"; 17 but.style.left = "2px"; 18 title = "{hide_bar_txt}"; 19 extra = document.getElementById("extraButton"); 20 extra.style.visibility = "hidden"; 21 but.innerHTML="<a title='"+title+"' onClick='javascript:changeBar()'><img src='{img_root}/up.button.png'></a>"; 22 var neverExpires = new Date("January 01, 2100 00:00:00"); 23 document.cookie = "showHeader=true"+ 24 ";expires=" + neverExpires.toGMTString()+ 25 ";path=/"; 26 } 27 28 function hideBar(){ 29 bar = document.getElementById("toolbar"); 30 bar.style.position ="absolute"; 31 bar.style.visibility = "hidden"; 32 but = document.getElementById("hiddenButton"); 33 but.style.visibility = "hidden"; 34 title = "{show_bar_txt}"; 35 extra = document.getElementById("extraButton"); 36 extra.style.visibility = "" 37 extra.style.top = "-11px"; 38 extra.style.left = "-10px"; 39 var neverExpires = new Date("January 01, 2100 00:00:00"); 40 document.cookie = "showHeader=false"+ 41 ";expires=" + neverExpires.toGMTString()+ 42 ";path=/"; 43 } 44 function changeBar(){ 45 bar = document.getElementById("toolbar"); 46 if(bar.style.visibility == "hidden") 47 showBar(); 48 else 49 hideBar(); 50 } 51 function initBar(val){ 52 53 if(val == 'true') 54 showBar(); 55 else 56 hideBar(); 57 } 58 var zoominTimer = new Array(); 59 var zoomoutTimer = new Array(); 60 function zoom_in(id) 61 { 62 clearTimeout(zoomoutTimer[id]); 63 var elem = document.getElementById(id); 64 if (elem.height > 34) 65 { 66 clearTimeout(zoominTimer[id]); 67 return false; 68 } 69 elem.height += 4; 70 elem.width += 4; 71 zoominTimer[id] = setTimeout('zoom_in("'+id+'");',30); 72 } 73 function zoom_out(id) 74 { 75 clearTimeout(zoominTimer[id]); 76 var elem = document.getElementById(id); 77 if (elem.height < 24) 78 { 79 clearTimeout(zoomoutTimer[id]); 80 return false; 81 } 82 elem.height -= 2; 83 elem.width -= 2; 84 zoomoutTimer[id] = setTimeout('zoom_out("'+id+'");',30); 85 } 86 </script> 87 88 <div class="toolbar" id="toolbar" style="visibility:hidden"> 89 <table border="0" height="50px" width="100%" cellpadding=0 cellspacing=0><tr> 90 <td class="logo_expresso"> <br></td> 91 <td align="center"> 92 <table width="auto" border="0" cellpadding="0" cellspacing="0">{app_icons}</table> 93 </td><td style="padding-left:0px;padding-right:25px" align="right" nowrap> 94 </td></tr></table> 95 <div id ="divStatusBar"> 2 96 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 3 <tr bgcolor="{navbar_color}">4 <td align="left"> </td>5 </tr>6 97 <tr> 7 <td> 8 <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="white"> 9 <tr > 10 {applications} 11 </tr> 12 </table> 98 <td width="30%" align="left" id="user_info" nowrap>{user_info}{frontend_name}</td> 99 <td width="30%" id="admin_info" nowrap>{current_users}</td> 100 <td style="padding-right:10px" width="*" align="right" valign="center" nowrap="true"> 101 <a href="{dir_root}/preferences" title="{title_my_preferences}" alt="{title_my_preferences}" onmouseover="javascript:self.status='{title_my_preferences}'" onmouseout="javascript:self.status=''"><img height="15px" src="{dir_root}/phpgwapi/templates/{template}/images/preferences.png"><font id="links_bar">{my_preferences}</font></a> 102 103 <a href="#" title="{title_suggestions}" alt="{title_suggestions}" onmouseover="javascript:self.status='{title_suggestions}'" onmouseout="javascript:self.status=''" onclick="javascript:openWindow(400,550,'{dir_root}/help/enviasugestao.php')"><img src="{dir_root}/phpgwapi/templates/{template}/images/critic.png"><font id="links_bar">{suggestions}</font></a> 104 105 <a href="#" title="{title_help}" alt="{title_help}" onmouseover="javascript:self.status='{title_help}'" onmouseout="javascript:self.status=''" onclick="javascript:openWindow(480,510,'{dir_root}/help')"><img src="{dir_root}/phpgwapi/templates/{template}/images/help.png"><font id="links_bar">{help}</font></a> 13 106 </td> 14 </tr>15 <tr bgcolor="{navbar_color}">16 <td align="left"> </td>17 107 </tr> 18 108 </table> 19 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 20 <tr> 21 <td align="left"> 22 {powered_by} 23 </td> 24 </tr> 25 <!-- <tr> 26 <td align="left" colspan="2"> 27 {user_info} 28 </td> 29 <td align="right"> 30 {current_users} 31 </td> 32 </tr>--> 33 </table> 34 <table width="100%" cellspacing="5"><tr><td> 35 <!-- BEGIN app_header --> 36 <b>{current_app_header}</b><hr> 37 <!-- END app_header --> 38 {messages}<br> 39 <!-- END navbar --> 109 </div> 110 </div> 111 112 <script language="Javascript"> 113 function openWindow(newWidth,newHeight,link) 114 { 115 116 newScreenX = screen.width - newWidth; 117 newScreenY = 0; 118 Window1=window.open(link,'',"width="+newWidth+",height="+newHeight+",screenX="+newScreenX+",left="+newScreenX+",screenY="+newScreenY+",top="+newScreenY+",toolbar=no,scrollbars=yes,resizable=no"); 119 120 } 121 </script> 122 <!-- END navbar_header --> 123 <!-- BEGIN appbox --> 124 <div id="divSubContainer"> 125 <table width="100%" cellspacing="0" cellpadding="0" border="0"> 126 <tr> 127 {sideboxcolstart} 128 <!-- END appbox --> 129 <!-- BEGIN sidebox_hide_header --> 130 <script language="javascript"> 131 new ypSlideOutMenu("menu2", "right", 0, 165, 160, 200) 132 </script> 133 134 <div id="sideboxdragarea" style="position:absolute;left:0px;top:175px"> 135 <a href="#" {show_menu_event}="ypSlideOutMenu.showMenu('menu2')" onmouseover="//ypSlideOutMenu.showMenu('menu2')" title="{lang_show_menu}"><img src="{img_root}/dragarea_right.png" /></a> 136 </div> 137 <div id="menu2Container"> 138 <div id="menu2Content" style="position: relative; left: 0; text-align: left;"> 139 <table cellspacing="0" cellpadding="0" border="0"> 140 <tr><td> 141 142 <div style="background-color:#ffffff;border: #9c9c9c 1px solid;padding:5px;"> 143 <!-- END sidebox_hide_header --> 144 <!-- BEGIN sidebox_hide_footer --> 145 </div> 146 </td><td style="padding-top:10px" valign="top"> 147 <a href="#" onClick="ypSlideOutMenu.hide('menu2')" ><img src="{img_root}/dragarea_left.png" align="right" /></a> 148 </td></tr></table> 149 </div> 150 </div> 151 <script language="Javascript"> 152 initBar(GetCookie("showHeader")); 153 </script> 154 <!-- END sidebox_hide_footer --> 155 156 157 158 159 160 <!-- BEGIN navbar_footer --> 161 {sideboxcolend} 162 <!-- End Sidebox Column --> 163 <!-- Applicationbox Column --> 164 <td id="tdAppbox" valign="top" {remove_padding}> 165 <div id="divAppboxHeader">{current_app_title}</div> 166 <div id="divAppbox" class="divAppbox"> 167 <table id="tableDivAppbox" width="98%" cellpadding="0" cellspacing="0"> 168 <tr><td> 169 <!-- END navbar_footer --> 170 <!-- BEGIN extra_blocks_header --> 171 <div class="divSidebox"> 172 <div class="divSideboxHeader"><span>{lang_title}</span></div> 173 <div> 174 <table width="100%" cellspacing="0" cellpadding="0" border=0> 175 <!-- END extra_blocks_header --> 176 <!-- BEGIN extra_blocks_footer --> 177 </table> 178 </div> 179 </div> 180 <div class="sideboxSpace"></div> 181 <!-- END extra_blocks_footer --> 182 <!-- BEGIN extra_block_row --> 183 <tr class="divSideboxEntry"> 184 <td width="15" align="center" valign="middle" class="textSidebox">{icon_or_star}</td><td class="textSidebox"><a class="textSidebox" href="{item_link}"{target}>{lang_item}</a></td></tr> 185 <!-- END extra_block_row --> 186 <!-- BEGIN extra_block_spacer --> 187 <tr class="divSideboxEntry"> 188 <td colspan="2" height="8" class="textSidebox"> </td> 189 </tr> 190 <!-- END extra_block_spacer -->
Note: See TracChangeset
for help on using the changeset viewer.