public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/pages/page-quiz-modify.php
/**
 * Creates the floating menu for adding quiz items.
 *
 * @since 1.0.0
 *
 * @param string $page The admin page to modify the quiz.
 */
Creates the floating menu for adding quiz items.

@param string $page The admin page to modify the quiz.
Creates the floating menu for adding quiz items . @param string $page The admin page to modify the quiz .
function WPCW_showPage_ModifyQuiz_FloatMenu( $page ) {
	?>
    <div class="wpcw_floating_menu" id="wpcw_add_quiz_menu">
        <div class="wpcw_add_quiz_block">
            <div class="wpcw_add_quiz_title"><?php _e( 'Question Tools', 'wp-courseware' ); ?></div>
            <div class="wpcw_add_quiz_options">
                <ul>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_multi"><?php _e( 'Add Multiple Choice', 'wp-courseware' ); ?></a></li>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_truefalse"><?php _e( 'Add True/False', 'wp-courseware' ); ?></a></li>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_open"><?php _e( 'Add Open Ended Question', 'wp-courseware' ); ?></a></li>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_upload"><?php _e( 'Add File Upload Question', 'wp-courseware' ); ?></a></li>
                    <li class="wpcw_add_quiz_spacer">
                        <hr/>
                    </li>
                    <li><a href="#TB_inline?width=1200&height=800&inlineId=wpcw_tb_question_pool" title="<?php _e( 'Insert question from Question Pool', 'wp-courseware' ); ?>"
                           class="button-secondary thickbox" id="wpcw_add_question_from_pool"><?php _e( 'Add Questions from Pool', 'wp-courseware' ); ?></a></li>
                    <li><a href="#TB_inline?width=1200&height=800&inlineId=wpcw_tb_random_question" title="<?php _e( 'Insert Random Questions', 'wp-courseware' ); ?>" class="button-secondary thickbox"
                           id="wpcw_add_question_random"><?php _e( 'Add Random Questions', 'wp-courseware' ); ?></a></li>
                    <li class="wpcw_add_quiz_spacer">
                        <hr/>
                    </li>
                    <li class="wpcw_quiz_tool_compact">
                        <a href="#top" class="wpcw_quiz_tool_compact_compact"
                           title="<?php _e( 'Use this to compact the questions so that they are easier to organise.', 'wp-courseware' ); ?>">[-] <?php _e( 'Compact Questions', 'wp-courseware' ); ?></a>
                        <a href="#top" class="wpcw_quiz_tool_compact_expand"
                           title="<?php _e( 'Use this to expand the questions for editing.', 'wp-courseware' ); ?>">[+] <?php _e( 'Expand Questions', 'wp-courseware' ); ?></a>
                    </li>
                </ul>
            </div>
        </div>
		<?php ?>
		<?php printf( '<div id="wpcw_question_template_count" class="wpcw_question_template">0</div>' ); ?>
        <div class="wpcw_add_quiz_save">
            <input type="submit" class="button-primary" value="<?php _e( 'Save Quiz &amp; Questions', 'wp-courseware' ); ?>"/>
        </div>
        <div class="wpcw_quiz_tool_compact"></div>
    </div>
	<?php
}
function WPCW_showPage_ModifyQuiz_FloatMenu ( $ page ) { ?> <div class="wpcw_floating_menu" id="wpcw_add_quiz_menu">
        <div class="wpcw_add_quiz_block">
            <div class="wpcw_add_quiz_title"> <?php _e ( 'Question Tools' , 'wp-courseware' ) ; ?> </div>
            <div class="wpcw_add_quiz_options">
                <ul>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_multi"> <?php _e ( 'Add Multiple Choice' , 'wp-courseware' ) ; ?> </a></li>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_truefalse"> <?php _e ( 'Add True/False' , 'wp-courseware' ) ; ?> </a></li>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_open"> <?php _e ( 'Add Open Ended Question' , 'wp-courseware' ) ; ?> </a></li>
                    <li><a href="#new_question" class="button-secondary" id="wpcw_add_question_upload"> <?php _e ( 'Add File Upload Question' , 'wp-courseware' ) ; ?> </a></li>

                    <li class="wpcw_add_quiz_spacer">
                        <hr/>
                    </li>

                    <li><a href="#TB_inline?width=1200&height=800&inlineId=wpcw_tb_question_pool" title=" <?php _e ( 'Insert question from Question Pool' , 'wp-courseware' ) ; ?> "
                           class="button-secondary thickbox" id="wpcw_add_question_from_pool"> <?php _e ( 'Add Questions from Pool' , 'wp-courseware' ) ; ?> </a></li>
                    <li><a href="#TB_inline?width=1200&height=800&inlineId=wpcw_tb_random_question" title=" <?php _e ( 'Insert Random Questions' , 'wp-courseware' ) ; ?> " class="button-secondary thickbox"
                           id="wpcw_add_question_random"> <?php _e ( 'Add Random Questions' , 'wp-courseware' ) ; ?> </a></li>

                    <li class="wpcw_add_quiz_spacer">
                        <hr/>
                    </li>

                    <li class="wpcw_quiz_tool_compact">
                        <a href="#top" class="wpcw_quiz_tool_compact_compact"
                           title=" <?php _e ( 'Use this to compact the questions so that they are easier to organise.' , 'wp-courseware' ) ; ?> ">[-]  <?php _e ( 'Compact Questions' , 'wp-courseware' ) ; ?> </a>
                        <a href="#top" class="wpcw_quiz_tool_compact_expand"
                           title=" <?php _e ( 'Use this to expand the questions for editing.' , 'wp-courseware' ) ; ?> ">[+]  <?php _e ( 'Expand Questions' , 'wp-courseware' ) ; ?> </a>
                    </li>
                </ul>
            </div>
        </div>

		 <?php ?> <?php printf ( '<div id="wpcw_question_template_count" class="wpcw_question_template">0</div>' ) ; ?> <div class="wpcw_add_quiz_save">
            <input type="submit" class="button-primary" value=" <?php _e ( 'Save Quiz &amp; Questions' , 'wp-courseware' ) ; ?> "/>
        </div>

        <div class="wpcw_quiz_tool_compact"></div>
    </div>
	 <?php }
Creates the floating menu for adding quiz items.
Creates the floating menu for adding quiz items .
// Keep track of new questions so that they all get a new ID. 