- Show search field only for "normal" users, not mail users.
| | |
| | | if(isset($_SESSION['s']['user'])) { |
| | | $this->tpl->setVar('cpuser', $_SESSION['s']['user']['username']); |
| | | $this->tpl->setVar('logout_txt', $this->lng('logout_txt')); |
| | | /* Show search field only for normal users, not mail users */ |
| | | if(stristr($_SESSION['s']['user']['username'],'@')){ |
| | | $this->tpl->setVar('usertype', 'mailuser'); |
| | | } else { |
| | | $this->tpl->setVar('usertype', 'normaluser'); |
| | | } |
| | | } |
| | | |
| | | /* Global Search */ |
| | |
| | | <!-- end: skip link navigation --> |
| | | <tmpl_if name="cpuser"> |
| | | <span><a href="#logout" onclick="loadContent('login/logout.php');"><tmpl_var name="logout_txt"> <tmpl_var format="strtoupper" name="cpuser"></a><!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--></span> |
| | | <input type="text" id="globalsearch" size="25" value="" /> |
| | | <tmpl_if name='usertype' op='==' value='normaluser'><input type="text" id="globalsearch" size="25" value="" /></tmpl_if> |
| | | </tmpl_if> |
| | | </div> |
| | | <h1 id="ir-HeaderLogo" class="swap" style="background-image:url('{tmpl_var name='app_logo'}');"><span>ISPConfig 3</span></h1> |
| | |
| | | <!-- end: skip link navigation --> |
| | | <tmpl_if name="cpuser"> |
| | | <span><a href="#logout" onclick="loadContent('login/logout.php');">LOGOUT <tmpl_var format="strtoupper" name="cpuser"></a><!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--></span> |
| | | <input type="text" id="globalsearch" size="25" value="" /> |
| | | <tmpl_if name='usertype' op='==' value='normaluser'><input type="text" id="globalsearch" size="25" value="" /></tmpl_if> |
| | | </tmpl_if> |
| | | </div> |
| | | <h1 id="ir-HeaderLogo" class="swap" style="background-image:url('{tmpl_var name='app_logo'}');"><span>ISPConfig 3</span></h1> |
| | |
| | | <!-- end: skip link navigation --> |
| | | <tmpl_if name="cpuser"> |
| | | <span><a href="#logout" onclick="loadContent('login/logout.php');">LOGOUT <tmpl_var format="strtoupper" name="cpuser"></a><!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--></span> |
| | | <input type="text" id="globalsearch" size="25" value="" /> |
| | | <tmpl_if name='usertype' op='==' value='normaluser'><input type="text" id="globalsearch" size="25" value="" /></tmpl_if> |
| | | </tmpl_if> |
| | | </div> |
| | | <h1 id="ir-HeaderLogo" class="swap" style="background-image:url('{tmpl_var name='app_logo'}');"><span>ISPConfig 3</span></h1> |
| | |
| | | <!-- end: skip link navigation --> |
| | | <tmpl_if name="cpuser"> |
| | | <span><a href="#logout" onclick="loadContent('login/logout.php');">LOGOUT <tmpl_var format="strtoupper" name="cpuser"></a><!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--></span> |
| | | <input type="text" id="globalsearch" size="25" value="" /> |
| | | <tmpl_if name='usertype' op='==' value='normaluser'><input type="text" id="globalsearch" size="25" value="" /></tmpl_if> |
| | | </tmpl_if> |
| | | </div> |
| | | <h1 id="ir-HeaderLogo" class="swap" style="background-image:url('{tmpl_var name='app_logo'}');"><span>ISPConfig 3</span></h1> |