Changeset 1022609
- Timestamp:
- 11/09/2014 08:46:23 PM (11 years ago)
- Location:
- classdex/trunk
- Files:
-
- 3 edited
-
create_class.php (modified) (2 diffs)
-
edit_class.php (modified) (2 diffs)
-
includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
classdex/trunk/create_class.php
r1022590 r1022609 96 96 if(class_exists('Cart66Product')) { 97 97 $product = new Cart66Product(); 98 $_POST['cart66_product_nonce'] = wp_create_nonce('cart66_product_nonce'); 98 99 if($discounts) { 99 100 $product->setData(array( … … 116 117 )); 117 118 } 118 $product->save( true);119 $product->save(); 119 120 $product->clear(); 120 121 } -
classdex/trunk/edit_class.php
r1022590 r1022609 107 107 $product = new Cart66Product(); 108 108 $product->loadByItemNumber($class_id); 109 $_POST['cart66_product_nonce'] = wp_create_nonce('cart66_product_nonce'); 109 110 if($discounts) { 110 111 $product->setData(array( … … 128 129 )); 129 130 } 130 $product->save( true);131 $product->save(); 131 132 $product->clear(); 132 133 } -
classdex/trunk/includes/functions.php
r1022590 r1022609 502 502 echo "<td>{$row['phone']}</td>"; 503 503 echo "<td>"; 504 if(is_paid($row['reg_id'])) { echo "PAID"; } 505 echo "</td>"; 504 506 $payment = get_reg_deposit($row['reg_id']); 505 if(is_paid($row['reg_id'])) { echo "PAID"; }506 elseif($payment > 0) { echo "Partial"; }507 else { echo "Unpaid"; }508 echo "</td>";509 507 $delete_registration_url = "admin.php?page=classdex_delete_table_item&noheader=true&t=registrations&i=" . urlencode($row['reg_id']); 510 508 echo "<td><a href=\"admin.php?page=classdex_edit_customer&cust_id={$row['cust_id']}\"><i class=\"icon-pencil\"></i> Edit</a>
Note: See TracChangeset
for help on using the changeset viewer.