<!-- 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 projects{/t} </th>
  </tr>
  <tr>
    <td class="label">{t}Customer{/t}: </td>
    <td>
      <select name="cpn_id">
	{html_options options=$select_cpn selected=$project.cpn_id}
      </select>
    </td>
    <td rowspan="6" valign="bottom">
      <input type="submit" name="submit" value="{t}Search{/t}">
    </td>
  </tr>
  <tr>
    <td class="label">{t}Billing company{/t}: </td>
    <td>
      <select name="cpn_id_issuebill">
	{html_options options=$select_cpn selected=$project.cpn_id_issuebill}
      </select>
    </td>
  </tr>
  <tr>
    <td class="label">{t}Project{/t}: </td>
    <td>
      <select name="prj_id">
	{html_options options=$select_project selected=$project.prj_id}
      </select>
    </td>
  </tr>
  <tr>
    <td class="label">{t}Category{/t}: </td>
    <td>
      <select name="prjcat_id">
	{html_options options=$select_prjcat selected=$project.prjcat_id}
      </select>

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

      {t}Billable{/t}:
      <select name="prj_billabletype">
	{html_options options=$select_billable selected=$project.prj_billabletype}
      </select>
    </td>
  </tr>
  <tr>
    <td class="label">{t}Description{/t}: </td>
    <td colspan="4"><input type="text" class="tinput" name="prj_desc" value="{$project.prj_desc|wash}" size="30" maxlength="100">

      {t}Person{/t}:
      <select name="pe_id">
	{html_options options=$select_person selected=$project.pe_id}
      </select>
      <span class="comment">Created By, Project Manager, OR Project Member</span>
    </td>
  </tr>
  <tr>
    <td class="label">{t}Start Between{/t}: </td>
    <td>
      <input type="text" class="tinput" name="prj_startdatefrom" value="{$project.prj_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="prj_startdateto" value="{$project.prj_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",                     // id of the input field
        ifFormat       :    "%Y-%m-%d",       // format of the input field
        showsTime      :    false,                      // will display a time selector
        button         :    "btn_sdate",                 // trigger for the calendar (button ID)
        singleClick    :    true,                     // double-click mode
        showOthers     :    true                       // show overlapping months
    });
    </script>

    <script type="text/javascript">
    Calendar.setup({
        inputField     :    "edate",                     // id of the input field
        ifFormat       :    "%Y-%m-%d",       // format of the input field
        showsTime      :    false,                      // will display a time selector
        button         :    "btn_edate",                 // trigger for the calendar (button ID)
        singleClick    :    true,                     // double-click mode
        showOthers     :    true                       // show overlapping months
    });
    </script>

    {/literal}

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

