示例#1
0
				</select>
			</td>
		</tr>
		<?php 
    }
    ?>
		
		<tr>
			<td colspan='2'>
			
			<?php 
    //this HTML displays activated payment gateways
    ?>
			  
				<?php 
    if (wpsc_gateway_count() > 1) {
        // if we have more than one gateway enabled, offer the user a choice
        ?>
					<h3><?php 
        echo TXT_WPSC_SELECTGATEWAY;
        ?>
</h3>
					<?php 
        while (wpsc_have_gateways()) {
            wpsc_the_gateway();
            ?>
						<div class="custom_gateway">
							<?php 
            if (wpsc_gateway_internal_name() == 'noca') {
                ?>
								<label><input type="radio" id='noca_gateway' value="<?php 
			<td>
				<select name='how_find_us'>
					<option value='Word of Mouth'>Word of mouth</option>
					<option value='Advertisement'>Advertising</option>
					<option value='Internet'>Internet</option>
					<option value='Customer'>Existing Customer</option>
				</select>
			</td>
		</tr>
		<?php endif; ?>		
		<tr>
			<td colspan='2'>
			
			<?php  //this HTML displays activated payment gateways?>
			  
				<?php if(wpsc_gateway_count() > 1): // if we have more than one gateway enabled, offer the user a choice ?>
					<h3><?php echo __('Select a payment gateway', 'wpsc');?></h3>
					<?php while (wpsc_have_gateways()) : wpsc_the_gateway(); ?>
						<div class="custom_gateway">
							<?php if(wpsc_gateway_internal_name() == 'noca'){ ?>
								<label><input type="radio" id='noca_gateway' value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name();?></label>
							<?php }else{ ?>
								<label><input type="radio" value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name();?></label>
							<?php } ?>

							
							<?php if(wpsc_gateway_form_fields()): ?> 
								<table class='<?php echo wpsc_gateway_form_field_style();?>'>
									<?php echo wpsc_gateway_form_fields();?> 
								</table>		
							<?php endif; ?>