Пример #1
0
       </td>
      </tr>
      <tr>
      <td>
        <input type="checkbox" name="is_paye" <?php 
echo $facture->is_paye ? "checked" : "";
?>
 />&nbsp;<?php 
echo _('Paid');
?>
      </td>
       <td><?php 
if (empty($facture->timestamp_date_paiement)) {
    makeDateField('date_paiement', -1);
} else {
    makeDateField('date_paiement', $facture->timestamp_date_paiement);
}
?>
       </td>
      </tr>

    <tr>
      <td colspan="2"><input type="checkbox" name="is_abandoned" <?php 
echo $facture->is_abandoned ? "checked" : "";
?>
 />&nbsp;<?php 
echo _('Abandoned');
?>
<br/><br/>
      </td>
    </tr>
Пример #2
0
</b></td>
      <td><?php 
makeDateField("filter[start_date]", $ts_start_date, 1, 'start_date_criteria', 'width: 114px');
?>
<img src="/imgs/icons/delete.gif" onmouseover="return escape('<?php 
echo _('Click to suppress this filter criteria');
?>
');" onclick="fld = document.getElementById('start_date_criteria'); fld.value = ''; fld.form.submit();" /></td>
    </tr>
    <tr class="row_even">
      <td nowrap><b><?php 
echo _('End date :');
?>
</b></td>
      <td><?php 
makeDateField("filter[end_date]", $ts_end_date, 1, 'end_date_criteria', 'width: 114px');
?>
<img src="/imgs/icons/delete.gif" onmouseover="return escape('<?php 
echo _('Click to suppress this filter criteria');
?>
');" onclick="fld = document.getElementById('end_date_criteria'); fld.value = ''; fld.form.submit();" /></td>
    </tr>

    <tr class="row_even">
      <td nowrap><b><?php 
echo _('Shown types :');
?>
</b></td>
      <td>
       <?php 
printf('<input type="checkbox" name="filter[shown_type][real]" %s /><b>%s</b>', isset($filter['shown_type']) && $filter['shown_type']['real'] ? "checked" : "", _('real'));
Пример #3
0
mysql_free_result($result);
?>
     </select>
  </td >
     <td colspan="2">&nbsp;1€ : <input type="text" style="width: 60px;text-align: center;" name="exchange_rate" value="<?php 
echo $transaction->exchange_rate;
?>
"/></td>
</tr>
<tr>
  <td><?php 
echo _('Date');
?>
</td>
			     <td colspan="3"><?php 
echo makeDateField('date', isset($transaction->ts_date) ? $transaction->ts_date : null);
?>
</td>
</tr>
<tr>
  <td><?php 
echo _('Category');
?>
</td>
 <td colspan="3">
  <select name="id_category"><?php 
$result = mysql_query("SELECT id,name FROM webfinance_categories ORDER BY name") or wf_mysqldie();
while (list($id, $name) = mysql_fetch_array($result)) {
    printf('<option value="%d"%s>%s</option>', $id, $id == $transaction->id_category ? " selected" : "", $name);
}
mysql_free_result($result);