function banktransfer_gateway_process($order_vals) { global $gateway_name, $app_abbr, $ref_val; // if gateway wasn't selected then exit if ($order_vals['cp_payment_method'] != 'banktransfer') { return; } ?> <form action='https://argentina.dineromail.com/Shop/Shop_Ingreso.asp' name="paymentform" method='post'> <input type='image' src='https://argentina.dineromail.com/imagenes/botones/pagar-medios_c.gif' border='0' name='submit' alt='Pagar con DineroMail'> <input type='hidden' name='NombreItem' value='Pago Aviso Destacado'> <input type='hidden' name='TipoMoneda' value='1'> <input type='hidden' name='PrecioItem' value='<?php echo esc_attr($order_vals['item_amount']); ?> '> <input type='hidden' name='E_Comercio' value='2579730'> <input type='hidden' name='NroItem' value='-'> <input type='hidden' name='image_url' value='http://'> <input type='hidden' name='DireccionExito' value='http://'> <input type='hidden' name='DireccionFracaso' value='http://'> <input type='hidden' name='DireccionEnvio' value='0'> <input type='hidden' name='Mensaje' value='1'> <input type='hidden' name='MediosPago' value='4,5,2,7,13'> <script type="text/javascript"> setTimeout("document.paymentform.submit();", 500); </script> </form> <?php // ad listing or membership if (!empty($order_vals['post_id'])) { $ref_val = $order_vals['post_id']; $info_message = __('Please include the following details when sending the bank transfer. Once your transfer has been verified, we will then approve your ad listing.', 'appthemes'); cp_bank_owner_new_ad_email($ref_val); } else { $ref_val = $order_vals['oid']; $info_message = __('Please include the following details when sending the bank transfer. Once your transfer has been verified, we will then activate your membership.', 'appthemes'); cp_new_membership_email($ref_val); cp_bank_owner_new_membership_email($ref_val); } // regardless of what happens, log the transaction if (file_exists(TEMPLATEPATH . '/includes/gateways/process.php')) { include_once TEMPLATEPATH . '/includes/gateways/process.php'; $trdata = cp_prepare_transaction_entry($order_vals); if ($trdata) { $tr_id = cp_add_transaction_entry($trdata); } } ?> <h2><?php _e('Your Unique Ad Details', 'appthemes'); ?> </h2> <p><?php echo $info_message; ?> </p> <p> <strong><?php _e('Transaction ID:', 'appthemes'); ?> </strong> <?php echo esc_html($order_vals['item_number']); ?> <br /> <strong><?php _e('Reference #:', 'appthemes'); ?> </strong> <?php echo esc_attr($ref_val); ?> <br /> <strong><?php _e('Total Amount:', 'appthemes'); ?> </strong> <?php echo esc_html($order_vals['item_amount']); ?> (<?php echo get_option('cp_curr_pay_type'); ?> )<br /> </p> <!--<br /><br /> <h2><?php _e('Bank Transfer Instructions', 'appthemes'); ?> </h2> <p><?php echo stripslashes(appthemes_nl2br(get_option('cp_bank_instructions'))); ?> </p> <p><?php _e('For questions or problems, please contact us directly at', 'appthemes'); ?> <?php echo get_option('admin_email'); ?> </p> --> <?php }
} ?> </ul> <?php cp_author_info('page'); ?> </div> <h3 class="dotted"><?php _e('Description', APP_TD); ?> </h3> <p><?php echo appthemes_nl2br($curauth->user_description); ?> </p> </div><!--/post--> </div><!-- /shadowblock --> </div><!-- /shadowblock_out --> <div class="tabcontrol"> <ul class="tabnavig"> <li><a href="#block1"><span class="big"><?php _e('Ads', APP_TD);
function cp_show_default_form() { global $wpdb; // now we should have the formid so show the form layout based on the category selected $sql = $wpdb->prepare("SELECT field_label, field_name, field_type, field_values, field_tooltip, field_req, field_min_length " . "FROM {$wpdb->cp_ad_fields} " . "WHERE field_core = '1' " . "ORDER BY field_id asc"); $results = $wpdb->get_results($sql); if ($results) { // loop through the custom form fields and display them echo cp_formbuilder($results); } else { echo appthemes_nl2br(__('ERROR: no results found for the default ad form.', 'appthemes') . "\n\n"); } }
function banktransfer_gateway_process($order_vals) { global $gateway_name, $app_abbr, $ref_val; // if gateway wasn't selected then exit if ($order_vals['cp_payment_method'] != 'banktransfer') { return; } // ad listing or membership if (!empty($order_vals['post_id'])) { $ref_val = $order_vals['post_id']; $info_message = __('Please include the following details when sending the bank transfer. Once your transfer has been verified, we will then approve your ad listing.', 'appthemes'); cp_bank_owner_new_ad_email($ref_val); } else { $ref_val = $order_vals['oid']; $info_message = __('Please include the following details when sending the bank transfer. Once your transfer has been verified, we will then activate your membership.', 'appthemes'); cp_new_membership_email($ref_val); cp_bank_owner_new_membership_email($ref_val); } // regardless of what happens, log the transaction if (file_exists(TEMPLATEPATH . '/includes/gateways/process.php')) { include_once TEMPLATEPATH . '/includes/gateways/process.php'; $trdata = cp_prepare_transaction_entry($order_vals); if ($trdata) { $tr_id = cp_add_transaction_entry($trdata); } } ?> <h2><?php _e('Your Unique Ad Details', 'appthemes'); ?> </h2> <p><?php echo $info_message; ?> </p> <p> <strong><?php _e('Transaction ID:', 'appthemes'); ?> </strong> <?php echo esc_html($order_vals['item_number']); ?> <br /> <strong><?php _e('Reference #:', 'appthemes'); ?> </strong> <?php echo esc_attr($ref_val); ?> <br /> <strong><?php _e('Total Amount:', 'appthemes'); ?> </strong> <?php echo esc_html($order_vals['item_amount']); ?> (<?php echo get_option('cp_curr_pay_type'); ?> )<br /> </p> <br /><br /> <h2><?php _e('Bank Transfer Instructions', 'appthemes'); ?> </h2> <p><?php echo stripslashes(appthemes_nl2br(get_option('cp_bank_instructions'))); ?> </p> <p><?php _e('For questions or problems, please contact us directly at', 'appthemes'); ?> <?php echo get_option('admin_email'); ?> </p> <?php }