-$th = array(_("Type"), _("#"), _("Reference"), _("Date"),
- _("Debit"), _("Credit"), _("Person/Item"), "", "X");
-table_header($th);
-$idtokens="";
-$k = 0; //row colour counter
-while ($myrow = db_fetch($result))
-{
- $idtokens.=$myrow["id"]."|";
- alt_table_row_color($k);
-
- $trandate = sql2date($myrow["trans_date"]);
- //Added 1/9/09
- $reconcile_check_name="reconcile".$myrow["id"];
- label_cell(systypes::name($myrow["type"]));
- label_cell(get_trans_view_str($myrow["type"],$myrow["trans_no"]));
- label_cell(get_trans_view_str($myrow["type"],$myrow["trans_no"],$myrow['ref']));
- label_cell($trandate);
- display_debit_or_credit_cells($myrow["amount"]);
- //amount_cell($running_total);
- label_cell(payment_person_types::person_name($myrow["person_type_id"],$myrow["person_id"]));
- label_cell(get_gl_view_str($myrow["type"], $myrow["trans_no"]));
- //Added 1/9/09 I needed the javascript action onclick, so I made my own checkbox
- echo "<td>";
- echo "<input type='checkbox' name='$reconcile_check_name' ";
- if ($myrow["reconciled"]==1) echo "CHECKED ";
- echo "value='1' ";
- echo "onclick=\"javascript:handleReconcileClick(this.form,this.checked,'".$myrow["amount"]."');\">";
- echo "</td>";
- //check_cells('', $reconcile_check_name, $myrow["reconciled"], false);
- end_row();
- //Removed by Rob Mallon on 1/8/09
- //if ($j == 12)
- //{
- // $j = 1;
- // table_header($th);
- //}
- //$j++;
-}
-//end of while loop
-
-end_table(2);
-hidden('reconcile_idtokens',$idtokens);
-submit_center('Reconcile',_("Reconcile"),true,'', false);