<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="admin.html" />

  <py:def function="dochelp(option)">
    <p class="help">${ option.__doc__ }</p>
  </py:def>

  <head>
    <title>Adsense Search Options</title>
  </head>

  <body>
    <div class="system-message warning">
      <p><b>I here by state that I won't be held responsible for breaking your
        Google AdSense policy because you're using a plugin I coded. Yet, all
        attempts were made to make sure the resulting code is exactly like the
        one Google gives us.</b></p>
      <p><b>Use At Your Own Risk!</b></p>
    </div>

    <fieldset>
      <legend>Adsense Search Options</legend>
      <form class="mod" id="modads" method="post">

        <label for="google_search_active">Google Search Active:</label>
        <input type="checkbox" name="google_search_active" value="yes"
               checked="${ads_options.google_search_active.value and 'checked' or None }"/>
        ${ dochelp(ads_options.google_search_active) }<br/>

        <label for="search_form_client_id">Client ID:</label>
        <input type="text" name="search_form_client_id" size="45"
               value="${ads_options.search_form_client_id.value}"/>
        ${ dochelp(ads_options.search_form_client_id) }<br/>

        <label for="search_form_forid">FORID:</label>
        <input type="text" name="search_form_forid" size="10"
               value="${ads_options.search_form_forid.value}"/>
        ${ dochelp(ads_options.search_form_forid) }<br/>

        <label for="search_form_id">Form ID:</label>
        <input type="text" name="search_form_id" size="10"
               value="${ads_options.search_form_id.value}"/>
        ${ dochelp(ads_options.search_form_id) }<br/>

        <label for="search_iframe_initial_width">Initial <tt>IFRAME</tt> width:</label>
        <input type="text" name="search_iframe_initial_width" size="4"
               value="${ads_options.search_iframe_initial_width.value}"/>
        ${ dochelp(ads_options.search_iframe_initial_width) }
        <div class="buttons">
          <input type="submit" name="apply" value="Apply changes" />
        </div>
      </form>
    </fieldset>
    <fieldset>
      <legend>Contribute Back</legend>
      <span id="contribution">
      <span style="float: left;">If you think this plugin is usefull and would like
        to contribute back, feel free to click on the donate button.<br/>
        <strong>This is optional</strong>.</span>
      <span style="float: right;">
      <form id="donation_code" action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="cmd" value="_s-xclick"/>
      <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"/>
      <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/>
      <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHVwYJKoZIhvcNAQcEoIIHSDCCB0QCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAGc8GIF82vXKDRfe7CUxAlEy0Y2u+OuKsp7MKk6XokwFeb2Q9+jk3PPxCx8TVgI8gFjTnmRbufZYxtIlrZh6IfY+mpmAPr2hHNLEF4ZjNuP1N4D2ReqwGzc+XE3w9FPBCc3tq2WS1HpZrL8iNEYbo6vRqcE+2dOL9d7XrbHnqgxTELMAkGBSsOAwIaBQAwgdQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIl5JxB4DbriqAgbCHdf8L0OnJ9k9RPsYELZvCSgUMS/HBlLfnK+GIeOxAErl1y5CJ9r14oN8jf5MQBA3pUkHWe5jV85TkMq/Hwkp4IYHDYmMKaudI9OKy/8DEtTpzdl9GSnxP3hC7mN7GcM4zlUYDtK0x8aQLTYKfMShCzZnClmy4UmxOneViB1CyxVLJvCOUGAL0ihtfQXU0hJ/lO9bOqyiRN3fZJMDm1Rou/N3QcwbIB7VXMbDjGDAwpaCCA4cwggODMIIC7KADAgECAgE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