I. Show withdraw settings in Admin Payment Gateways

/**
* Display the gateway settings in admin
 *
 * @since 1.0.0
*/
public function show_gateways( $wpjobster_payment_gateways, $arr, $arr_pages ) {


	//Withdrawal mode start
	$enable_tab_arr = array(
		'disabled'  => __( 'Disabled', 'wpjobster-sample' ),
		'manual'    => __( 'Manual', 'wpjobster-sample' ),
		'automatic' => __( 'Automatic', 'wpjobster-sample' ),
		'both'      => __( 'Both', 'wpjobster-sample' )
	); ?>


	<style>.sample-automatic { display: none; }</style>


	<script>
		jQuery( document ).ready( function( $ ) {
			$( '#wpjobster_sample_withdrawal_enable' ).on( 'change rightnow', function() {
				if ( $( this ).val() == 'automatic' || $( this ).val() == 'both' ) {
					$( '.sample-automatic' ).show();
				} else { $( '.sample-automatic' ).hide(); }
			}).triggerHandler( 'rightnow' );
		});
	</script>
	<!-- Withdrawal mode end -->


	<!-- Show Withdrawal settings start -->
	<table width="100%" class="wpj-admin-table">
		<tr>
			<td></td>
			<td><h2><?php _e("Withdrawals", "wpjobster"); ?></h2></td>
			<td></td>
		</tr>
		<tr>
			<td valign=top width="22"><?php wpjobster_theme_bullet( __( 'Enable/Disable Sample withdrawal payment gateway', 'wpjobster-sample' ) ); ?></td>
			<td width="200"><?php _e( 'Enable:', 'wpjobster-sample' ); ?></td>
			<td><?php echo wpjobster_get_option_drop_down( $enable_tab_arr, 'wpjobster_sample_withdrawal_enable' ); ?></td>
		</tr>
		<tr class="sample-automatic">
			<td valign=top width="22"><?php wpjobster_theme_bullet( __( 'Enable/Disable sample withdrawal test mode.', 'wpjobster-sample' ) ); ?></td>
			<td width="200"><?php _e( 'Enable Test Mode:', 'wpjobster-sample' ); ?></td>
			<td><?php echo wpjobster_get_option_drop_down( $arr, 'wpjobster_sample_withdraw_enablesandbox', 'no' ); ?></td>
		</tr>
		<!&mdash;Gateway API ID, KEYS REQUIRED FOR AUTOMATIC WITHDRAWALS -->
		<tr class="sample-automatic">
			<td valign=top width="22"><?php wpjobster_theme_bullet( __( 'Your Sample Clinet ID', 'wpjobster-sample' ) ); ?></td>
			<td ><?php _e( 'Sample Client ID:', 'wpjobster-sample' ); ?></td>
			<td><input type="text" size="45" name="wpjobster_sample_client_id" value="<?php echo apply_filters('wpj_sensitive_info_credentials', get_option( 'wpjobster_sample_client_id' ) ); ?>" /></td>
		</tr>
		<tr class="sample-automatic">
			<td valign=top width="22"><?php wpjobster_theme_bullet( __( 'Your Sample Secret key', 'wpjobster-sample' ) ); ?></td>
			<td ><?php _e( 'Sample Secret Key:', 'wpjobster-sample' ); ?></td>
			<td><input type="text" size="45" name="wpjobster_sample_secret_key" value="<?php echo apply_filters('wpj_sensitive_info_credentials', get_option( 'wpjobster_sample_secret_key' ) ); ?>" /></td>
		</tr>
	</table>
	<!-- Show Withdrawal settings end -->


<?php }