Exemple #1
0
                echo bootstrap_input('exp_month', 'Expiration Month');
                ?>
					<?php 
                echo bootstrap_input('exp_year', 'Expiration Year');
                ?>
					<?php 
                echo bootstrap_input('cvc', 'CVC Code');
                ?>
					<?php 
                echo bootstrap_hidden('submit', 'submit', 'submit');
                ?>
					<?php 
                echo bootstrap_hidden('amount', 'amount', $_POST['amount']);
                ?>
					<?php 
                echo bootstrap_hidden('gateway', 'gateway', 'stripe');
                ?>
					<div class="controls">
						<?php 
                echo form_submit('stripe_charge', 'Confirm & Pay', 'class="btn btn-success"');
                ?>
						<a href="<?php 
                echo base_url('client/invoices');
                ?>
" class="btn">Cancel</a>
					</div>
				<?php 
                echo form_close();
                ?>
			<?php 
            }
Exemple #2
0
<div class="admin-panel">
<div class="row-fluid">
	<div class="span6">
		<div class="page-header">
			<h3>Invoice Details</h3>
		</div>
		<?php 
echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'generate_invoice'));
?>
			<?php 
echo bootstrap_input('id', 'Invoice ID');
?>
			<?php 
echo bootstrap_hidden('project_id', 'Project ID', $project->id);
?>
			<div class="control-group">
				<label class="control-label" for="recurring">Recurring</label>
				<div class="controls">
				  <label class="checkbox">
					<input type="checkbox" id="recurring" name="recurring" value="1" onclick="recurring_invoice_opts();" <?php 
if (isset($_POST['recurring'])) {
    if (intval($_POST['recurring'])) {
        ?>
checked="yes"<?php 
    }
}
?>
>
					If this is a recurring invoice, check this box for further options
				  </label>
				</div>