Пример #1
0
<td>
<?php 
        if ($this->content[$i]['j_id'] == $p_jid) {
            continue;
        }
        if ($jnt_id == $this->content[$i]['letter'] && $i >= $linked_limit) {
            continue;
        }
        $check = new ICheckbox('ck[]', $this->content[$i]['j_id']);
        if ($jnt_id == $this->content[$i]['letter'] && $i < $linked_limit) {
            $check->selected = true;
        } else {
            $check->selected = false;
        }
        if ($this->content[$i]['letter'] < 0 || $check->selected == true) {
            echo $check->input();
        }
        echo HtmlInput::hidden('letter_j_id[]', $this->content[$i]['j_id']);
        ?>
</td>
<td>
<?php 
        $letter = $this->content[$i]['letter'] < 0 ? " " : strtoupper(base_convert($this->content[$i]['letter'], 10, 36));
        echo $letter;
        ?>
</td>
<td> <?php 
        echo smaller_date($this->content[$i]['j_date_fmt']);
        ?>
 </td>
<?php 
$to_poste->set_attribute('account', 'to_poste');
$solded = new ICheckbox('solded');
$solded->selected = isset($_REQUEST['solded']) ? true : false;
echo '<tr>';
echo td(_('Depuis le poste')) . td($from_poste->input());
echo '</tr>';
echo '<tr>';
echo td(_("Jusqu'au poste")) . td($to_poste->input());
echo '</tr>';
echo '<tr>';
echo td(_('Uniquement les opérations non lettrées'));
echo td($letter->input());
echo '</tr>';
echo '<tr>';
echo td(_('Uniquement les comptes non soldés'));
echo td($solded->input());
echo '</tr>';
//
echo '</TABLE>';
print HtmlInput::submit('bt_html', _('Visualisation'));
echo '</FORM>';
echo '<hr>';
echo '</div>';
//-----------------------------------------------------
// If print is asked
// First time in html
// after in pdf or cvs
//-----------------------------------------------------
if (isset($_REQUEST['bt_html'])) {
    require_once NOALYSS_INCLUDE . '/class_acc_account_ledger.php';
    echo '<div class="content">';