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

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

<table class="searchtable" cellspacing="0">
  <tr>
    <th colspan="3"> {t}Search tasks{/t} </th>
  </tr>
  <tr>
    <td class="label">{t}Customer{/t}: </td>
    <td>
      <select name="cpn_id">
	{html_options options=$select_cpn selected=$operation.cpn_id}
      </select>
      {t}Billing company{/t}:
      <select name="cpn_id_issuebill">
	{html_options options=$select_cpn selected=$operation.cpn_id_issuebill}
      </select>
    </td>
    <td rowspan="5" valign="bottom">
      <input type="submit" name="submit" value="{t}Search{/t}">
    </td>
  </tr>
  <tr>
    <td class="label">{t}Project{/t}: </td>
    <td>
      <select name="prj_id">
	{html_options options=$select_project selected=$operation.prj_id}
      </select>

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

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

      {t}Project billable{/t}:
      <select name="prj_billabletype">
        {html_options options=$select_prj_billabletype selected=$operation.prj_billabletype}
      </select>
    </td>
  </tr>
  <tr>
    <td class="label">{t}Category{/t}: </td>
    <td>
      <select name="opcat_id">
	{html_options options=$select_opcat selected=$operation.opcat_id}
      </select>
      {t}Billing status{/t}:
      <select name="op_billed">
	{html_options options=$select_billed selected=$operation.op_billed}
      </select>

      {t}Description{/t}:
      <input type="text" class="tinput" name="op_desc" value="{$operation.op_desc|wash}" size="20" maxlength="100">
    </td>
  </tr>
  <tr>
    <td class="label">{t}Person{/t}: </td>
    <td>
      <select name="pe_id">
	{html_options options=$select_person selected=$operation.pe_id}
      </select>
      {t}Job category{/t}:
      <select name="jcat_id">
	{html_options options=$select_jcat selected=$operation.jcat_id}
      </select>
    </td>
  </tr>
  <tr>
    <td class="label">{t}Between{/t}: </td>
    <td>
      <input type="text" class="tinput" name="op_startdatefrom" value="{$operation.op_startdatefrom|wash}" size="10" maxlength="10" id="sdate">
      <input type="image" src="img/phpaga/cal.png" id="btn_sdate">
      {t}And{/t}:
      <input type="text" class="tinput" name="op_startdateto" value="{$operation.op_startdateto|wash}" size="10" maxlength="10" id="edate">
      <input type="image" src="img/phpaga/cal.png" id="btn_edate">
    </td>
  </tr>
  <tr>
    <td> </td>
    <td colspan="2"><span class="comment">(yyyy-mm-dd)</span></td>
  </tr>
</table>

</form>

{literal}

<script type="text/javascript">
Calendar.setup({
inputField     :    "sdate",
ifFormat       :    "%Y-%m-%d",
showsTime      :    false,
button         :    "btn_sdate",
singleClick    :    true,
showOthers     :    true
});

Calendar.setup({
inputField     :    "edate",
ifFormat       :    "%Y-%m-%d",
showsTime      :    false,
button         :    "btn_edate",
singleClick    :    true,
showOthers     :    true
});
</script>

{/literal}

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