<h3><?php esc_html_e( 'Shipping Rate Page Setup', 'wpcargo-shipment-rate' ); ?></h3>
<table class="form-table">
	<tr>
		<th scope="row"><?php esc_html_e( 'Single parcel request page', 'wpcargo-shipment-rate' ); ?></th>
		<td>
			<select name="wpcsr_request_single_parcel" id="wpcsr_request_single_parcel">
				<option value=""><?php esc_html_e('--Select Page--', 'wpcargo-shipment-rate' ); ?></option>
				<?php
				$pages = get_pages();
				foreach( $pages as $page ){
					?><option value="<?php echo $page->ID; ?>" <?php echo ( get_option( 'wpcsr_request_single_parcel' ) == $page->ID ) ? 'selected' : ''; ?>><?php echo $page->post_title; ?></option><?php
				}
				?>
			</select>
			<p class="description"><?php _e('The selected page must have a shortcode <strong>[wpcsr_single_rate_shipment]</strong>.', 'wpcargo-shipment-rate' ); ?></p>
		</td>
	</tr>
	<tr>
		<th scope="row"><?php esc_html_e( 'Request result page', 'wpcargo-shipment-rate' ); ?></th>
		<td>
			<select name="wpcsr_request_result" id="wpcsr_request_result">
				<option value=""><?php esc_html_e('--Select Page--', 'wpcargo-shipment-rate' ); ?></option>
				<?php
				$pages = get_pages();
				foreach( $pages as $page ){
					?><option value="<?php echo $page->ID; ?>" <?php echo ( get_option( 'wpcsr_request_result' ) == $page->ID ) ? 'selected' : ''; ?>><?php echo $page->post_title; ?></option><?php
				}
				?>
			</select>
			<p class="description" ><?php _e('The selected page must have a shortcode <strong>[wpcsr_search_result]</strong>', 'wpcargo-shipment-rate' ); ?></p>
		</td>
	</tr>
	<tr>
		<th scope="row"><?php esc_html_e( 'Rate by package qty.', 'wpcargo-shipment-rate' ); ?></th>
		<td>
			<input type="checkbox" name="wpcsr_rate_byqty" value="1" <?php checked( get_option( 'wpcsr_rate_byqty' ), 1 ); ?>>
			<p class="description" ><?php _e('Note: By default the packages is rate with weight.', 'wpcargo-shipment-rate' ); ?></p>
		</td>
	</tr>
</table>