<!-- BEGIN {$smarty.template} -->

<form action="{$FORM_ACTION}" method="get" name="form">
  <input type="hidden" name="order" value="{$ORDER}">

  <fieldset class="search">
    <legend>{t}Search tasks{/t}</legend>

    <div class="floatcontainer">
      <div class="flleft">

        <fieldset><legend>{t}Project{/t}</legend>

          <label for="cpn_id">{t}Customer{/t}:</label>
          <select id="cpn_id" name="cpn_id">
            {html_options options=$select_cpn selected=$operation.cpn_id}
          </select>
          <br>

          <label for="cpn_id_issuebill">{t}Billing company{/t}:</label>
          <select name="cpn_id_issuebill">
            {html_options options=$select_cpn selected=$operation.cpn_id_issuebill}
          </select>
          <br>

          <label for="prj_id">{t}Project{/t}:</label>
          <select id="prj_id" name="prj_id">
            {html_options options=$select_project selected=$operation.prj_id}
          </select>
          <br>

          <label for="prjcat_id">{t}Category{/t}:</label>
          <select id="prjcat_id" name="prjcat_id">
            {html_options options=$select_prjcat selected=$operation.prjcat_id}
          </select>
          <br>

          <label for="prj_status">{t}Project status{/t}:</label>
          <select id="prj_status" name="prj_status">
            {html_options options=$select_prjstat selected=$operation.prj_status}
          </select>
          <br>

          <label for="prj_billabletype">{t}Project billable{/t}:</label>
          <select id="prj_billabletype" name="prj_billabletype">
            {html_options options=$select_prj_billabletype selected=$operation.prj_billabletype}
          </select>

        </fieldset>

      </div>
      <div class="flleft">

        <fieldset><legend>{t}Task{/t}</legend>

          <label for="opcat_id">{t}Category{/t}:</label>
          <select id="opcat_id" name="opcat_id">
            {html_options options=$select_opcat selected=$operation.opcat_id}
          </select>
          <br>

          <label for="op_billed">{t}Billing status{/t}:</label>
          <select id="op_billed" name="op_billed">
            {html_options options=$select_billed selected=$operation.op_billed}
          </select>
          <br>

          <label for="pe_id">{t}Person{/t}:</label>
          <select id="pe_id" name="pe_id">
            {html_options options=$select_person selected=$operation.pe_id}
          </select>
          <br>

          <label for="jcat_id">{t}Job category{/t}:</label>
          <select id="jcat_id" name="jcat_id">
            {html_options options=$select_jcat selected=$operation.jcat_id}
          </select>
          <br>

          <label for="op_desc">{t}Description{/t}:</label>
          <input type="text" class="tinput" id="op_desc" name="op_desc" value="{$operation.op_desc|wash}" size="20" maxlength="100">
          <br>

          <label for="op_startdatefrom">{t}Between{/t}:</label>
          <input type="text" class="tinput format-y-m-d divider-dash no-transparency" name="op_startdatefrom" id="op_startdatefrom" value="{$operation.op_startdatefrom|wash}" size="10" maxlength="10" title="yyyy-mm-dd">
          <br>

          <label for="op_startdateto">{t}And{/t}:</label>
          <input type="text" class="tinput format-y-m-d divider-dash no-transparency" name="op_startdateto" id="op_startdateto" value="{$operation.op_startdateto|wash}" size="10" maxlength="10" title="yyyy-mm-dd">

        </fieldset>
      </div>
    </div>
    <div class="spacer"></div>
    <input type="submit" name="submit" value="{t}Search{/t}">
  </fieldset>
</form>

<!-- END {$smarty.template} -->
