Beispiel #1
0
 function secure_form_open_multipart($action, $attributes = array(), $hidden = array())
 {
     if (is_string($attributes)) {
         $attributes .= ' enctype="multipart/form-data"';
     } else {
         $attributes['enctype'] = 'multipart/form-data';
     }
     return secure_form_open($action, $attributes, $hidden);
 }
Beispiel #2
0
" onchange="set_payment(this.value)"> <?php 
    echo $info['name'];
    ?>
</p>
		<?php 
}
?>
		</td>
	</tr>
</table>
</div>
	<?php 
foreach ($payment_methods as $method => $info) {
    ?>
	<?php 
    echo secure_form_open('checkout/payment');
    ?>
		<?php 
    if ($module == $method) {
        $selected = ' style="display:block;"';
    } else {
        $selected = '';
    }
    ?>
		<div class="gc_payment_form" id="pmnt_<?php 
    echo $method;
    ?>
"<?php 
    echo $selected;
    ?>
>
Beispiel #3
0
<?php

$additional_header_info = '<style type="text/css">#page_title {text-align:center;}</style>';
include 'header.php';
?>

<div id="login_container_wrap">
		<div id="login_container">
		<?php 
echo secure_form_open('secure/login');
?>
		
			<?php 
echo secure_form_open('secure/forgot_password');
?>
			<table>
				<tr>
					<td>Email: </td>
					<td><input type="text" name="email" class="gc_login_input"/></td>
				</tr>
			</table>
			<div class="center">
					<input type="hidden" value="submitted" name="submitted"/>
					<input type="submit" value="Reset Password" name="submit"/>
			</div>
		</form>
		<div id="login_form_links">
			<a href="<?php 
echo secure_base_url();
?>
secure/login">Return to Login</a>
Beispiel #4
0
			if(response.address2!='')
			{
				address_display = address_display + response.address2 + '<br />';
			}
			address_display = address_display + response.city +', '+ response.state +' '+ response.zip;
			
			// update the address display box
			$('#'+context+'_address_display').html(address_display);
		}
	}, 'json');
}

</script>
<div>
<?php 
echo secure_form_open('checkout/customer_details');
?>
	<input type="hidden" name="submitted" value="submitted" />
	
	<?php 
if (validation_errors()) {
    ?>
	<div class="error"><?php 
    echo validation_errors();
    ?>
</div>
	<?php 
}
?>
	
	<?php 
Beispiel #5
0
<?php

include 'header.php';
?>

<?php 
echo secure_form_open($this->config->item('admin_folder') . '/customers/form/' . $id);
?>
<div class="button_set">
	<input type="submit" value="Save Customer" />
</div>

<div id="gc_tabs">
	<ul>
		<li><a href="#gc_customer_attributes">Customer Information</a></li>
	</ul>
<div id="gc_customer_attributes">
<div>
<table>
	<tr>
		<td style="padding-right:30px;" rowspan="2">
		
				<table>
					<tr><td colspan="2"><h3>Personal Information</h3></td></tr>
					<tr>
						<td>Company</td>
						<td>
							<?php 
$data = array('id' => 'company', 'name' => 'company', 'value' => set_value('company', $company), 'class' => 'gc_tf1');
echo form_input($data);
?>
Beispiel #6
0
function areyousure()
{
	return confirm('Are you sure you want to delete this product?');
}
</script>
<div class="button_set">
	<a href="#" onclick="$('#bulk_form').submit(); return false;">Bulk Save</a>
	<a href="<?php 
echo base_url();
echo $this->config->item('admin_folder');
?>
/products/form">Add New Product</a>
</div>

<?php 
echo secure_form_open($this->config->item('admin_folder') . '/products/bulk_save', array('id' => 'bulk_form'));
?>
	<table class="gc_table" cellspacing="0" cellpadding="0">
		<thead>
			<tr>
				<th class="gc_cell_left">SKU</th>
				<th>Name</th>
				<th style="width:60px;">Price</th>
				<th style="width:60px;">Sale</th>
				<th style="width:60px;">Availability</th>
				<th class="gc_cell_right"></th>
			</tr>
		</thead>
		<tbody>
		<?php 
echo count($products) < 1 ? '<tr><td style="text-align:center;" colspan="6">There are currently no products.</td></tr>' : '';
Beispiel #7
0
	text-align:center;
	padding:10px 0px;
}

</style>
</head>
<body>
	<img src="/images/admin/login_logo.png" id="logo"/>
	<?php 
if ($this->session->flashdata('message')) {
    echo '<div id="error">' . $this->session->flashdata('message') . '</div>';
}
?>
	
	<?php 
echo secure_form_open($this->config->item('admin_folder') . '/login');
?>
	<div id="login_container">
			<label>Email</label>
			<?php 
echo form_input(array('id' => 'email', 'name' => 'email', 'class' => 'form_input'));
?>
			
			
			<label>Password:</label>
			<?php 
echo form_password(array('id' => 'password', 'name' => 'password', 'class' => 'form_input'));
?>
			Keep Me Logged In:
			<input type="checkbox" value="true" name="remember" />
			
Beispiel #8
0
    ?>
                </td>
	</tr>
	<?php 
}
?>
	
	<tr>
		<td colspan="2" style="background-color:#eeeeee; font-weight:bold;">Total</td>
		<td colspan="3" style="background-color:#eeeeee;"></td>
		<td  id="gc_total_price" style="background-color:#eeeeee;" class="gc_total"><?php 
echo '$' . number_format($this->go_cart->total(), 2, '.', ',');
?>
</td>
	</tr>

	
	</tbody>
	</table>
	
	<?php 
//this is our confirm order button, once clicked the order should be processed
echo secure_form_open('checkout/place_order');
?>
	<input type="button" value="Go Back" class="gc_reg_button"  onclick="show_user_input()"/>
	<input type="submit" name="submit" value="Place Order"/>
	<?php 
echo form_close();
?>

Beispiel #9
0
?>

<div class="button_set">
	 <a title="Send Email Notification" id="notify" href="<?php 
echo base_url() . $this->config->item('admin_folder') . '/orders/send_notification/' . $order->id;
?>
">Send Notification Email</a> <a href="<?php 
echo base_url();
?>
admin/orders/packing_slip/<?php 
echo $order->id;
?>
" target="_blank">Packing Slip</a>
</div>
<?php 
echo secure_form_open($this->config->item('admin_folder') . '/orders/view/' . $order->id);
?>
<table class="order_table" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<th class="gc_cell_left">Account Info</th>
			<th>Billing Address</th>
			<th class="gc_cell_right">Shipping Address</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				<?php 
echo !empty($order->company) ? $order->company . '<br>' : '';
?>
Beispiel #10
0
<?php

$additional_header_info = '<style type="text/css">#gc_page_title {text-align:center;}</style>';
include 'header.php';
$company = array('id' => 'bill_company', 'class' => 'bill input', 'name' => 'company', 'value' => set_value('company'));
$first = array('id' => 'bill_firstname', 'class' => 'bill input bill_req', 'name' => 'firstname', 'value' => set_value('firstname'));
$last = array('id' => 'bill_lastname', 'class' => 'bill input bill_req', 'name' => 'lastname', 'value' => set_value('lastname'));
$email = array('id' => 'bill_email', 'class' => 'bill input bill_req', 'name' => 'email', 'value' => set_value('email'));
$phone = array('id' => 'bill_phone', 'class' => 'bill input bill_req', 'name' => 'phone', 'value' => set_value('phone'));
?>
<div id="login_container_wrap">
	<div id="login_container">
	<?php 
echo secure_form_open('secure/register');
?>
		<input type="hidden" name="submitted" value="submitted" />
		<input type="hidden" name="redirect" value="<?php 
echo $redirect;
?>
" />

		<div class="form_wrap">
			<div>
				Company<br/>
				<?php 
echo form_input($company);
?>
			</div>
			<div>
				First Name<b class="r"> *</b><br/>
				<?php 
Beispiel #11
0
<div id="my_account_container">

<?php 
$company = array('id' => 'company', 'class' => 'input', 'name' => 'company', 'value' => set_value('company', $customer['company']));
$first = array('id' => 'firstname', 'class' => 'input', 'name' => 'firstname', 'value' => set_value('firstname', $customer['firstname']));
$last = array('id' => 'lastname', 'class' => 'input', 'name' => 'lastname', 'value' => set_value('lastname', $customer['lastname']));
$email = array('id' => 'email', 'class' => 'input', 'name' => 'email', 'value' => set_value('email', $customer['email']));
$phone = array('id' => 'phone', 'class' => 'input', 'name' => 'phone', 'value' => set_value('phone', $customer['phone']));
$password = array('id' => 'password', 'class' => 'input', 'name' => 'password', 'value' => '');
$confirm = array('id' => 'confirm', 'class' => 'input', 'name' => 'confirm', 'value' => '');
?>
	
	<div id="my_account_info">
		<div id="my_information">
			<?php 
echo secure_form_open('secure/my_account');
?>
				<h2>Account Information</h2>
				<div class="form_wrap">
					<div>
						Company<br/>
						<?php 
echo form_input($company);
?>
					</div>
				</div>
				<div class="form_wrap">
					<div>
						First Name<b class="r"> *</b><br/>
						<?php 
echo form_input($first);
Beispiel #12
0
<?php

include 'header.php';
if (validation_errors()) {
    ?>
<div class="gc_reg_error"><?php 
    echo validation_errors();
    ?>
</div>
<?php 
}
echo secure_form_open('checkout/shipping');
?>
<table class="gc_view_cart" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>Item #</th>
			<th>Name</th>
			<th>Description</th>
			<th>Price</th>
			<th>Quantity</th>
			<th style="width:100px;">Total</th>
		</tr>
	</thead>
	<tbody>
<?php 
$td = 'gc_even';
foreach ($this->go_cart->contents() as $cartkey => $product) {
    echo '<tr class="' . $td . '"><td>' . $product['code'] . '</td>' . '<td>' . $product['name'] . '</td>' . '<td>' . $product['excerpt'] . '<br/>';
    if (isset($product['options'])) {
        foreach ($product['options'] as $name => $value) {
Beispiel #13
0
<?php

$additional_header_info = '<style type="text/css">#page_title {text-align:center;}</style>';
include 'header.php';
?>
	<div id="login_container_wrap">
		<div id="login_container">
		
			<?php 
echo secure_form_open('secure/login');
?>
				<table>
					<tr>
						<td>Email: </td>
						<td><input type="text" name="email" class="gc_login_input"/></td>
					</tr>
					<tr>
						<td>Password: </td>
						<td><input type="password" name="password" class="gc_login_input"/></td>
					</tr>
				</table>
				<div class="center">
						<input name="remember" value="true" type="checkbox" /> Keep me logged in!<br/>
						<input type="hidden" value="<?php 
echo $redirect;
?>
" name="redirect"/>
						<input type="hidden" value="submitted" name="submitted"/>
						<input type="submit" value="Login" name="submit" class="gc_login_button"/>
				</div>
			</form>