<div class="cbox">
  <div class="cbox-title">
    {tr}General preferences and settings{/tr}
  </div>
  <div class="cbox-data">
    <form action="tiki-admin.php?page=general" method="post">
      <table width="99%"><tr>
        <td class="heading" colspan=2 
            align="center">{tr}General Preferences{/tr}</td>
      </tr><tr>
        <td class="form" width="33%">{tr}Theme{/tr}:</td>
        <td width="%67%"><select name="site_style">
            {section name=ix loop=$styles}
              <option value="{$styles[ix]|escape}"
                {if $style_site eq $styles[ix]}selected="selected"{/if}>
                {$styles[ix]}</option>
            {/section}
            </select>
        </td>
      </tr><tr>
        <td class="form">{tr}Slideshows theme{/tr}:</td>
        <td><select name="slide_style">
            {section name=ix loop=$slide_styles}
              <option value="{$slide_styles[ix]|escape}"
                {if $slide_style eq $slide_styles[ix]}selected="selected"{/if}>
                {$slide_styles[ix]}</option>
            {/section}
            </select>
        </td>
      </tr><tr><td colspan=2><hr></td></tr><tr>
        <td class="form">{tr}Use URI as Home Page{/tr}:</td>
        <td><input type="checkbox" name="useUrlIndex"
              {if $useUrlIndex eq 'y'}checked="checked"{/if}/>
            <input type="text" name="urlIndex" value="{$urlIndex|escape}"/>
        </td>
      </tr><tr>
        <td class="form">{tr}Home page{/tr}:</td>
        <td><select name="tikiIndex">
            <option value="tiki-index.php"
              {if $tikiIndex eq 'tiki-index.php'}selected="selected"{/if}>
              {tr}Wiki{/tr}</option>
            <option value="tiki-view_articles.php"
              {if $tikiIndex eq 'tiki-view_articles.php'}selected="selected"{/if}>
              {tr}Articles{/tr}</option>
            {if $home_blog_name}
              <option value="{$home_blog_url|escape}"
                {if $tikiIndex eq $home_blog_url}selected="selected"{/if}>
                {tr}Blog{/tr}: {$home_blog_name}</option>
            {/if}
            {if $home_gal_name}
              <option value="{$home_gallery_url|escape}"
                {if $tikiIndex eq $home_gallery_url}selected="selected"{/if}>
                {tr}Image Gallery{/tr}: {$home_gal_name}</option>
            {/if}
            {if $home_fil_name}
              <option value="{$home_file_gallery_url|escape}"
                {if $tikiIndex eq $home_file_gallery_url}selected="selected"{/if}>
                {tr}File Gallery{/tr}: {$home_fil_name}</option>
            {/if}
            {if $home_forum_name}
              <option value="{$home_forum_url|escape}"
                {if $tikiIndex eq $home_forum_url}selected="selected"{/if}>
                {tr}Forum{/tr}: {$home_forum_name}</option>
            {/if}
            {if $feature_custom_home eq 'y'}
              <option value="tiki-custom_home.php"
                {if $tikiIndex eq 'tiki-custom_home.php'}selected="selected"{/if}>
                {tr}Custom home{/tr}</option>
            {/if}
            </select>
        </td>
      </tr><tr><td colspan=2><hr></td></tr><tr>
        <td class="form">{tr}Language{/tr}:</td>
        <td><select name="language">
            {section name=ix loop=$languages}
              <option value="{$languages[ix]|escape}"
                {if $language eq $languages[ix]}selected="selected"{/if}>
                {$languages[ix]}</option>
            {/section}
            </select>
        </td>
      </tr><tr>
        <td class="form">{tr}Use database for translation{/tr}:</td>
        <td><input type="checkbox" name="lang_use_db"
              {if $lang_use_db eq 'y'}checked="checked"{/if}/></td>
        {if $lang_use_db eq 'y'}
          </tr><tr>
            <td class="form">{tr}Record untranslated{/tr}:</td>
            <td><input type="checkbox" name="record_untranslated"
                  {if $record_untranslated eq 'y'}checked="checked"{/if}/></td>
        {/if}
      </tr><tr>
        <td class="form">{tr}OS{/tr}:</td>
        <td><select name="system_os">
            <option value="unix"
              {if $system_os eq 'unix'}selected="selected"{/if}>
              {tr}Unix{/tr}</option>
            <option value="windows"
              {if $system_os eq 'windows'}selected="selected"{/if}>
              {tr}Windows{/tr}</option>
            <option value="unknown"
              {if $system_os eq 'unknown'}selected="selected"{/if}>
              {tr}Unknown/Other{/tr}</option>
            </select>
        </td>
      </tr></table>
      <table width="99%"><tr>
        <td class="heading" colspan=5 
            align="center">{tr}General Settings{/tr}</td>
      </tr><tr>
        <td class="form" width="43%">
          {tr}Open external links in new window{/tr}:</td>
        <td width="5%"><input type="checkbox" name="popupLinks"
              {if $popupLinks eq 'y'}checked="checked"{/if}/>
        </td>
        <td width="4%">&nbsp;</td>
        <td class="form" width="43%">
          {tr}Display modules to all groups always{/tr}:</td>
        <td width="5%"><input type="checkbox" name="modallgroups"
              {if $modallgroups eq 'y'}checked="checked"{/if}/>
        </td>
      </tr><tr>
        <td class="form">{tr}Use cache for external pages{/tr}:</td>
        <td><input type="checkbox" name="cachepages"
              {if $cachepages eq 'y'}checked="checked"{/if}/>
        </td>
        <td>&nbsp;</td>
        <td class="form">{tr}Use cache for external images{/tr}:</td>
        <td><input type="checkbox" name="cacheimages"
              {if $cacheimages eq 'y'}checked="checked"{/if}/>
        </td>
      </tr><tr>
        <td class="form">{tr}Use direct pagination links{/tr}:</td>
        <td><input type="checkbox" name="direct_pagination"
              {if $direct_pagination eq 'y'}checked="checked"{/if}/>
        </td>
        <td>&nbsp;</td>
        <td class="form">{tr}Display menus as folders{/tr}:</td>
        <td><input type="checkbox" name="feature_menusfolderstyle"
              {if $feature_menusfolderstyle eq 'y'}checked="checked"{/if}/>
        </td>
      </tr><tr>
        <td class="form">{tr}Use gzipped output{/tr}:</td>
        <td><input type="checkbox" name="feature_obzip"
              {if $feature_obzip eq 'y'}checked="checked"{/if}/>
        </td>
        <td>&nbsp;</td>
        <td class="form">{tr}Count admin pageviews{/tr}:</td>
        <td><input type="checkbox" name="count_admin_pvs"
              {if $count_admin_pvs eq 'y'}checked="checked"{/if}/>
        </td>
      </tr></table>
      <table width="99%"><tr>
        <td colspan=2><hr></td>
      </tr><tr>
        <td class="form" width="43%">
          {tr}Server name (for absolute URIs){/tr}:</td>
        <td width="57%"><input type="text" name="feature_server_name"
                               value="{$feature_server_name|escape}" /></td>
      </tr><tr>
        <td class="form">{tr}Browser title{/tr}:</td>
        <td><input type="text" name="siteTitle" value="{$siteTitle|escape}" /></td>
      </tr><tr>
<!--
        <td class="form">{tr}Wiki_Tiki_Title{/tr}: </td>
        <td><input type="text" size="5" name="title" value="{$title|escape}" /></td>
      </tr><tr>
-->
        <td class="form">{tr}Temporary directory{/tr}:</td>
        <td><input type="text" name="tmpDir" value="{$tmpDir|escape}" /></td>
      </tr><tr>
        <td class="form">{tr}Sender Email{/tr}:</td>
        <td><input type="text" name="sender_email" value="{$sender_email|escape}" /></td>
      </tr><tr>
        <td class="form">{tr}Contact user{/tr}:</td>
        <td>{if $feature_contact eq 'y'}
              <input type="text" name="contact_user" value="{$contact_user|escape}" />
            {else}
              {tr}contact feature disabled{/tr}
            {/if}
        </td>
      </tr><tr>
        <td class="form">{tr}Maximum number of records in listings{/tr}:</td>
        <td><input size="5" type="text" name="maxRecords"
                   value="{$maxRecords|escape}" />
      </tr></table>
      <table width="99%"><tr>
        <td class="heading" colspan=2 
            align="center">{tr}Date and Time Formats{/tr}</td>
      </tr><tr>
        <td class="form" width="43%">{tr}Long date format{/tr}:</td>
        <td width="57%"><input type="text" name="long_date_format"
             value="{$long_date_format|escape}" size="40"/></td>
      </tr><tr>
        <td class="form">{tr}Short date format{/tr}:</td>
        <td><input type="text" name="short_date_format"
             value="{$short_date_format|escape}" size="40"/></td>
      </tr><tr>
        <td class="form">{tr}Long time format{/tr}:</td>
        <td><input type="text" name="long_time_format"
             value="{$long_time_format|escape}" size="40"/></td>
      </tr><tr>
        <td class="form">{tr}Short time format{/tr}:</td>
        <td><input type="text" name="short_time_format"
             value="{$short_time_format|escape}" size="40"/></td>
      </tr><tr>
        {assign var="fcnlink"
                value="http://www.php.net/manual/en/function.strftime.php"}
        <td colspan=2 align="center">
          <a class="link" target="strftime" href="{$fcnlink}">
            {tr}Date and Time Format Help{/tr}</a></td>
      </tr>
	  <tr>
        <td colspan="2" class="button">
          <input type="submit" name="prefs" value="{tr}Update{/tr}" />
        </td>
      </tr></table>
	  <!-- Obsolete from 1.7 timezone changes
      <table width="99%"><tr>
        <td class="heading" colspan=2 
            align="center">{tr}Time Zone{/tr}</td>
      </tr><tr>
        <td class="form" width="43%" style="vertical-align:middle;">
          {tr}Server time zone{/tr}:</td>
        <td width="57%">
          <div class="simplebox">{$timezone_server}</div></td>
      </tr><tr>
        <td class="form">{tr}Displayed time zone{/tr}:</td>
        <td><select name='display_timezone'>
            {html_options options=$timezone_options selected=$display_timezone}
            </select>
        </td>
      </tr><tr>
        <td colspan="2" align="center">
          <a class="link" target="wtz" href="http://www.worldtimezone.com/">
            {tr}Time Zone Map{/tr}</a></td>
      </tr>
	  </table>
	  -->
    </form>
  </div>
</div>
<br />
<div class="cbox">
  <div class="cbox-title">
    {tr}Change admin password{/tr}
  </div>
  <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=general">
      <table width="99%"><tr>
        <td class="form" width="43%">{tr}New password{/tr}:</td>
        <td width="57%"><input type="password" name="adminpass" /></td>
      </tr><tr>
        <td class="form">{tr}Repeat password{/tr}:</td>
        <td><input type="password" name="again" /></td>
      </tr><tr>
        <td colspan="2" align="center">
          <input type="submit" name="newadminpass"
                 value="{tr}Change password{/tr}" />
        </td>
      </tr></table>
    </form>
  </div>
</div>
