<?php if (!$ajax): include W3TC_DIR . '/inc/options/common/header.phtml'; ?>
<p>
    Request professional services, suggest a feature or submit a bug using the form below:
</p>
<?php endif; ?>

<div id="support_container">
    <form action="<?php echo W3TC_PAYPAL_URL; ?>" method="get">
        <fieldset>
        	<legend>Request payment</legend>
    
    		<p><?php echo htmlspecialchars($this->_request_types[$request_type]); ?></p>
    
    		<p><strong>Price: <?php echo sprintf('%.2f', $this->_request_prices[$request_type]); ?> USD</strong></p>
    
    		<p>
    			<input type="hidden" name="cmd" value="_xclick" />
    			<input type="hidden" name="business" value="<?php echo W3TC_PAYPAL_BUSINESS; ?>" />
    			<input type="hidden" name="item_name" value="<?php echo htmlspecialchars($this->_request_types[$request_type]); ?>" />
    			<input type="hidden" name="amount" value="<?php echo sprintf('%.2f', $this->_request_prices[$request_type]); ?>" />
    			<input type="hidden" name="currency_code" value="USD" />
    			<input type="hidden" name="no_shipping" value="1" />
    			<input type="hidden" name="rm" value="2" />
    			<input type="hidden" name="return" value="<?php echo htmlspecialchars($return_url); ?>" />
    			<input type="hidden" name="cancel_return" value="<?php echo htmlspecialchars($cancel_url); ?>" />
    			<input type="submit" class="button-primary" value="Buy now" />
	    		<input id="support_cancel" type="button" value="Cancel" class="button-primary" />
    		</p>
    	</fieldset>
    </form>
</div>

<?php if (! $ajax) include W3TC_DIR . '/inc/options/common/footer.phtml'; ?>
