コード例 #1
0
    var sig = <?php 
    echo $order_data['client_signature'];
    ?>
;
    $(document).ready(function () {
        var image = document.createElement('img');
        $(image).attr('src', $('.sigPad.signed').signaturePad({displayOnly:true, penColour: '#000000'}).getSignatureImage());
        $('.sigWrapper').append(image);
    });
    //]]>
    </script>
    <?php 
    print_fieldset_close();
} else {
    if ($this->order_model->has_statuses($sr_id, array('REVIEWED')) && !$locked) {
        print_fieldset_open('Authorisation');
        ?>
      <label for="first_name">Print your first name</label>
      <input type="text" name="first_name_<?php 
        echo $tenancy->id;
        ?>
" id="first_name" class="first-name" /> <br />
      <label for="last_name">Print your last name</label>
      <input type="text" name="last_name_<?php 
        echo $tenancy->id;
        ?>
" id="last_name" class="last-name" />
      <ul class="sigNav">
        <li class="drawIt"><a href="#draw-it">Draw your signature</a></li>
        <li class="clearButton"><a href="#clear">Clear</a></li>
      </ul>
コード例 #2
0
ファイル: Edit.php プロジェクト: nicolasconnault/streamliner
print_input_element('Model', array('name' => 'model'), false);
print_input_element('Serial No.', array('name' => 'serial_number'), false);
print_input_element('Outdoor Model', array('name' => 'outdoor_model'), false);
print_input_element('Outdoor Serial No.', array('name' => 'outdoor_serial_number'), false);
print_input_element('Indoor Model', array('name' => 'indoor_model'), false);
print_input_element('Indoor Serial No.', array('name' => 'indoor_serial_number'), false);
print_input_element('Electrical', array('name' => 'electrical'), false);
print_input_element('Gas', array('name' => 'gas'), false);
print_input_element('Kw', array('name' => 'kilowatts'), false);
print_fieldset_close();
echo '<div id="parts-section" ';
if (empty($order_unit_id)) {
    echo 'style="display: none;"';
}
echo '>';
print_fieldset_open('Parts and Labour');
?>
<br />
<div class="table-responsive">
<table id="parts_table" class="table table-condensed table-bordered">
    <thead><tr><th>Part/Labour</th><th>Quantity</th><th style="width: 220px">Actions</th></tr></thead>
    <tbody>
        <tr>
            <td colspan="3">
                <button class="btn btn-success" type="button" id="new_part_button">Add a part/labour</button>
            </td>
        </tr>
        <tr id="new_part_row" style="display: none">
            <td><?php 
echo form_dropdown('part_type_id', $dropdowns['part_types']);
echo form_hidden('part_id', null);
コード例 #3
0
ファイル: edit.php プロジェクト: nicolasconnault/streamliner
if (!empty($account_id)) {
    print_fieldset_open('Billing contacts');
    if (!empty($account_data['billing_contacts'])) {
        print_contact_table($account_data['billing_contacts']);
    } else {
        echo "<p>No billing contacts</p>";
    }
    print_fieldset_close();
    print_fieldset_open('Job site contacts');
    if (!empty($account_data['site_contacts'])) {
        print_contact_table($account_data['site_contacts']);
    } else {
        echo "<p>No job site contacts</p>";
    }
    print_fieldset_close();
    print_fieldset_open('Job site addresses');
    if (!empty($account_data['site_addresses'])) {
        echo '<table class="table table-condensed table-bordered table-responsive table-striped">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>Unit</th>
                    <th>Number</th>
                    <th>Street</th>
                    <th>Suburb</th>
                    <th>Post code</th>
                    <th>Jobs</th>
                    <th>Edit</th>
                </tr>
            </thead>
            <tbody>