<form name="appswitch" id="appswitch" action="<?php if (isset($this->_scalars['action'])) { echo $this->_scalars['action']; } ?>"> 
 <?php if (isset($this->_scalars['forminput'])) { echo $this->_scalars['forminput']; } ?> 
 <div class="header"> 
  <span class="rightFloat"> 
   <select id="app" name="app"> 
    <option value="">Edit Preferences for:</option> 
    <option value="" disabled="disabled">- - - - - - - - -</option> 
<?php if (!empty($this->_scalars['horde']) || !empty($this->_arrays['horde'])): ?> 
    <option value="horde">Global Preferences</option> 
    <option value="" disabled="disabled">- - - - - - - - -</option> 
<?php endif; ?> 
<?php foreach ($this->_arrays['apps'] as $k1 => $v1): ?> 
    <option value="<?php if (isset($v1['v'])) { echo $v1['v']; } ?>"><?php if (isset($v1['l'])) { echo $v1['l']; } ?></option> 
<?php endforeach; ?> 
   </select> 
   <input class="button" type="submit" id="appsubmit" value="Go" /> 
  </span> 
<?php if (!empty($this->_scalars['has_advanced']) || !empty($this->_arrays['has_advanced'])): ?> 
  <span class="rightFloat prefsAdvanced"> 
<?php if (!empty($this->_scalars['advanced']) || !empty($this->_arrays['advanced'])): ?> 
   <a href="<?php if (isset($this->_scalars['advanced'])) { echo $this->_scalars['advanced']; } ?>">Show Advanced Preferences</a> 
<?php else: ?> 
   <a href="<?php if (isset($this->_scalars['basic'])) { echo $this->_scalars['basic']; } ?>">Hide Advanced Preferences</a> 
<?php endif; ?> 
  </span> 
<?php endif; ?> 
  <span> 
   <?php if (isset($this->_scalars['header'])) { echo $this->_scalars['header']; } ?> 
  </span> 
  <br class="clear" /> 
 </div> 
</form> 
 
<br class="spacer" /> 
