<h3><{"WIZMOBILE_LANG_GENERAL_SETTING"|wiz_constant}></h3>
<div style="margin-left: 0.5em; padding: 1em;">
  <form action="admin.php" method="post">
    <table class="outer" style="margin-bottom: 1em;">
      <tr class="head">
        <th style="width: 24em;"><{"WIZMOBILE_LANG_ITEM"|wiz_constant}></th>
        <th><{"WIZMOBILE_LANG_VALUE"|wiz_constant}></th>
      </tr>
      <{* Login *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_LOGIN"|wiz_constant}>
          </div>
        </td>
        <td>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[login]" value="1" <{if $configs.login.wmc_value == 1}>checked="checked"<{/if}> />
              <{"WIZMOBILE_LANG_ENABLE"|wiz_constant}>
            </label>
          </span>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[login]" value="0" <{if $configs.login.wmc_value == 0}>checked="checked"<{/if}>/>
              <{"WIZMOBILE_LANG_DISABLE"|wiz_constant}>
            </label>
          </span>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_LOGIN_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* Theme *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_THEME"|wiz_constant}>
          </div>
        </td>
        <td>
          <select name="wmc_item[theme]">
            <{foreach name=fe_themes item=itm_themes key=key_themes from=$themes}>
              <option value="<{$itm_themes}>" style="min-width: 120px;" <{if $configs.theme.wmc_value == $itm_themes}>selected="selected"<{/if}> ><{$itm_themes}></option>
            <{/foreach}>
          </select>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_THEME_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* Template set *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_TPLSET"|wiz_constant}>
          </div>
        </td>
        <td>
          <select name="wmc_item[template_set]">
            <option value="" style="min-width: 120px;"><{"WIZMOBILE_LANG_NONE_SETTING"|wiz_constant}></option>
            <{foreach name=fe_tplsets item=itm_tplsets key=key_tplsets from=$tplsets}>
              <option value="<{$itm_tplsets.tplset_id}>" style="min-width: 120px;" <{if $configs.template_set.wmc_value == $itm_tplsets.tplset_id}>selected="selected"<{/if}> ><{$itm_tplsets.tplset_name}></option>
            <{/foreach}>
          </select>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_TPLSET_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* Lookup *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_LOOKUP"|wiz_constant}>
          </div>
        </td>
        <td>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[lookup]" value="1" <{if $configs.lookup.wmc_value == 1}>checked="checked"<{/if}> />
              <{"WIZMOBILE_LANG_ENABLE"|wiz_constant}>
            </label>
          </span>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[lookup]" value="0" <{if $configs.lookup.wmc_value == 0}>checked="checked"<{/if}>/>
              <{"WIZMOBILE_LANG_DISABLE"|wiz_constant}>
            </label>
          </span>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_LOOKUP_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* OtherMobile *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_OTHERMOBILE"|wiz_constant}>
          </div>
        </td>
        <td>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[othermobile]" value="1" <{if $configs.othermobile.wmc_value == 1}>checked="checked"<{/if}> />
              <{"WIZMOBILE_LANG_ENABLE"|wiz_constant}>
            </label>
          </span>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[othermobile]" value="0" <{if $configs.othermobile.wmc_value == 0}>checked="checked"<{/if}>/>
              <{"WIZMOBILE_LANG_DISABLE"|wiz_constant}>
            </label>
          </span>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_OTHERMOBILE_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* Pager *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_PAGER"|wiz_constant}>
          </div>
        </td>
        <td>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[pager]" value="1" <{if $configs.pager.wmc_value == 1}>checked="checked"<{/if}> />
              <{"WIZMOBILE_LANG_ENABLE"|wiz_constant}>
            </label>
          </span>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[pager]" value="0" <{if $configs.pager.wmc_value == 0}>checked="checked"<{/if}>/>
              <{"WIZMOBILE_LANG_DISABLE"|wiz_constant}>
            </label>
          </span>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_PAGER_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* Content-Type *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_CONTENT_TYPE"|wiz_constant}>
          </div>
        </td>
        <td>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[content_type]" value="1" <{if $configs.content_type.wmc_value == 1}>checked="checked"<{/if}> />
              xhtml
            </label>
          </span>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[content_type]" value="0" <{if $configs.content_type.wmc_value == 0}>checked="checked"<{/if}>/>
              html
            </label>
          </span>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_CONTENT_TYPE_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* EmojiSupport *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_EMOJI_SUPPORT"|wiz_constant}>
          </div>
        </td>
        <td>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[emoji_support]" value="1" <{if $configs.emoji_support.wmc_value == 1}>checked="checked"<{/if}> />
              <{"WIZMOBILE_LANG_ENABLE"|wiz_constant}>
            </label>
          </span>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[emoji_support]" value="0" <{if $configs.emoji_support.wmc_value == 0}>checked="checked"<{/if}>/>
              <{"WIZMOBILE_LANG_DISABLE"|wiz_constant}>
            </label>
          </span>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_EMOJI_SUPPORT_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>
      <{* TrustIP *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_TRUST_IP"|wiz_constant}>
          </div>
        </td>
        <td>
          <textarea name="wmc_item[trust_ip]" style="width: 24em; height: 3em;"><{$configs.trust_ip.wmc_value|escape}></textarea>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_TRUST_IP_DESC"|wiz_constant}><br />
            <span style="color: #ff0000"><{"WIZMOBILE_MSG_TRUST_IP_NOTICE"|wiz_constant}></span>
          </div>
        </td>
      </tr>
      <{* SessionLifetime *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_SESSION_LIFETIME"|wiz_constant}>
          </div>
        </td>
        <td>
          <input type="text" name="wmc_item[session_lifetime]" style="width: 4em;" value="<{$configs.session_lifetime.wmc_value|escape}>" />
          <{"WIZMOBILE_LANG_MINUTE"|wiz_constant}>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_SESSION_LIFETIME_DESC"|wiz_constant}><br />
            <span style="color: #ff0000"><{"WIZMOBILE_MSG_SESSION_LIFETIME_NOTICE"|wiz_constant}></span>
          </div>
        </td>
      </tr>
      <{* CssFilter *}>
      <tr class="<{cycle values="odd,even"}>">
        <td>
          <div style="font-size: 110%; font-weight: bolder;">
            <{"WIZMOBILE_LANG_CSS_FILTER"|wiz_constant}>
          </div>
        </td>
        <td>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[css_filter]" value="1" <{if $configs.css_filter.wmc_value == 1}>checked="checked"<{/if}> />
              <{"WIZMOBILE_LANG_ENABLE"|wiz_constant}>
            </label>
          </span>
          <span style="margin: 0 0.5em 0 0.5em;">
            <label>
              <input type="radio" name="wmc_item[css_filter]" value="0" <{if $configs.css_filter.wmc_value == 0}>checked="checked"<{/if}>/>
              <{"WIZMOBILE_LANG_DISABLE"|wiz_constant}>
            </label>
          </span>
          <div style="font-size: 90%; font-weight: lighter; margin: 0.5em 0 0 2em;">
            <{"WIZMOBILE_LANG_CSS_FILTER_DESC"|wiz_constant}>
          </div>
        </td>
      </tr>

    </table>
    <div style="text-align: center; width: 100%; margin: auto;">
      <input type="hidden" name="act" value="GeneralSetting" />
      <{wiz_gticket area=$wizmobile_dirname}>
      <input type="submit" value="<{"WIZMOBILE_LANG_UPDATE"|wiz_constant}>" />
    </div>
  </form>
</div>
