Esempio n. 1
0
<?php

echo '<div id="deposit" class="' . get_tab_panel_class() . '">';
print_checkbox_element(array('label' => 'Deposit Required', 'name' => 'deposit_required', 'value' => 1));
print_input_element(array('label' => 'Deposit amount', 'name' => 'deposit_amount', 'placeholder' => '0.00', 'disabledunless' => array('deposit_required'), 'validation' => 'number'));
print_dropdown_element(array('label' => 'Credit card type', 'name' => 'cc_type', 'options' => array('Visa' => 'Visa', 'Mastercard' => 'Mastercard'), 'disabledunless' => array('deposit_required')));
print_input_element(array('label' => 'Credit Card number', 'name' => 'cc_number', 'disabledunless' => array('deposit_required')));
print_input_element(array('label' => 'Credit Card expiry', 'name' => 'cc_expiry', 'placeholder' => '01/15', 'size' => 5, 'disabledunless' => array('deposit_required')));
print_input_element(array('label' => 'Credit Card security (CVV)', 'name' => 'cc_security', 'size' => 3, 'disabledunless' => array('deposit_required')));
print_tabbed_form_navbuttons();
echo '</div>';
Esempio n. 2
0
        <table class="table table-bordered table-condensed message_table <?=$view_only_class?>" >
            <thead>
                <tr><th>Date</th><th>Author</th><th>Note</th><th class="actions">Actions</th></tr>
            </thead>
            <tbody>
            <?php if (empty($view_only)) : ?>
                <tr>
                    <td colspan="4">
                        <button class="btn btn-success new_message_button" type="button" data-identifier="<?=$message_identifier?>" id="new_message_button_<?=$message_identifier?>">Write a new note</button>
                    </td>
                </tr>
            <?php endif; ?>
                <tr class="new_message_row" data-identifier="<?=$message_identifier?>" id="new_message_row_<?=$message_identifier?>" style="display: none">
                    <td colspan="3">
                        <?=form_textarea(array('name' => 'message', 'placeholder' => 'Type your note here...'))?>
                        <?=form_hidden('message_id', null)?>
                        <?=form_hidden('document_type', $document_type)?>
                        <?=form_hidden('document_id', $document_id)?>
                    </td>
                    <td class="actions">
                        <button class="btn btn-success btn-sm save_new_message" type="button" data-identifier="<?=$message_identifier?>" id="save_new_message_<?=$message_identifier?>">Save note</button>
                        <button class="btn btn-warning btn-sm cancel_new_message" type="button" data-identifier="<?=$message_identifier?>" id="cancel_new_message_<?=$message_identifier?>">Cancel</button>
                    </td>
                </tr>
            </tbody>
        </table>
        </div>

    <?php if ($in_tabbed_form) print_tabbed_form_navbuttons(); ?>
    </div>