public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/pages/page-question-pool.php
/**
 * Shows the main Question Pool table.
 *
 * @since 1.0.0
 */
Shows the main Question Pool table.
Shows the main Question Pool table .
function WPCW_showPage_QuestionPool_load() {
	global $wpcwdb, $wpdb;
	$wpdb->show_errors();
	$paging_pageWanted = absint( WPCW_arrays_getValue( $_GET, 'pagenum' ) );
	if ( $paging_pageWanted == 0 ) {
		$paging_pageWanted = 1;
	}
	$titlePage = false;
	if ( $paging_pageWanted > 1 ) {
		$titlePage = sprintf( ' - %s %s', __( 'Page', 'wp-courseware' ), $paging_pageWanted );
	}
	$page = new PageBuilder( false );
	$page->showPageHeader( __( 'Question Pool', 'wp-courseware' ) . $titlePage, '75%', WPCW_icon_getPageIconURL() );
	WPCW_quizzes_handleQuestionDeletion( $page );
	echo WPCW_questionPool_showPoolTable( 50, $_GET, 'std', $page );
	$page->showPageFooter();
}
function WPCW_showPage_QuestionPool_load ( ) { global $ wpcwdb , $ wpdb ; $ wpdb -> show_errors ( ) ; $ paging_pageWanted = absint ( WPCW_arrays_getValue ( $ _GET , 'pagenum' ) ) ; if ( $ paging_pageWanted == 0 ) { $ paging_pageWanted = 1 ; } $ titlePage = false ; if ( $ paging_pageWanted > 1 ) { $ titlePage = sprintf ( ' - %s %s' , __ ( 'Page' , 'wp-courseware' ) , $ paging_pageWanted ) ; } $ page = new PageBuilder ( false ) ; $ page -> showPageHeader ( __ ( 'Question Pool' , 'wp-courseware' ) . $ titlePage , '75%' , WPCW_icon_getPageIconURL ( ) ) ; WPCW_quizzes_handleQuestionDeletion ( $ page ) ; echo WPCW_questionPool_showPoolTable ( 50 , $ _GET , 'std' , $ page ) ; $ page -> showPageFooter ( ) ; }
Shows the main Question Pool table.
Shows the main Question Pool table .
// Get the requested page number // Title for page with page number // Handle the question deletion before showing remaining questions // Show the main pool table