Ejemplo n.º 1
0
function showInterface($atts)
{
    $a = shortcode_atts(array('type' => 'something'), $atts);
    $current_user = wp_get_current_user();
    $current_user_id = $current_user->ID;
    if ($a['type'] == "study") {
        checkForPendingExam($current_user_id);
    }
    ?>
	
	<div class="panel-wrapper exam-options">
		<div class="fcc-panel exam-options-panel">
			<div class="title">
				<?php 
    if ($a['type'] == "simulated") {
        echo "Simulated Exam Options";
    } else {
        echo "Study Mode Options";
    }
    ?>
			<div class="section-collapse">collapse <i class="icon-chevron-up"></i></div></div>
			<div class="content">
				<div class="exam-options">
					<div class="row" style="display:none">
						<div class="hidden-id"><?php 
    echo $current_user_id;
    ?>
</div>
						<div class="settings-title three columns">Simulated Exam</div>
						<div class="settings-option nine columns">
							<select class="simulated">
								<?php 
    if ($a['type'] == "simulated") {
        ?>
									<option value="1" selected="selected">On</option>
									<option value="0" >Off</option>
								<?php 
    } else {
        ?>
									<option value="1" >On</option>
									<option value="0" selected="selected">Off</option>
								<?php 
    }
    ?>
							</select>
						</div>
					</div>
					<div class="row">
						<div class="settings-title three columns">Choose Element</div>
						<div class="settings-option nine columns">
							<select class="element-id">
								<option value="E1">Element 1 : Basic Radio Law and Operating Practice</option>
								<option value="E3">Element 3 : General Radiotelephone</option>
								<option value="E6">Element 6 : Advanced Radiotelegraph</option>
								<option value="E7">Element 7 : GMDSS Radio Operating Practices</option>
								<option value="E7R">Element 7R : Restricted GMDSS Radio Operating Practices</option>
								<option value="E8">Element 8 : Ship Radar Techniques</option>
								<option value="E9">Element 9 : GMDSS Radio Maintenance Practices and Procedures</option>
							</select>
						</div>
					</div>
					<div class="study-mode-options" <?php 
    if ($a['type'] == "simulated") {
        echo "style='display:none'";
    }
    ?>
>
						<div class="row" style="">
							<div class="settings-title three columns">Quick 50</div>
							<div class="settings-option nine columns">
								<select class="quick-50">
									<option value="1">On</option>
									<option value="0" selected="selected">Off</option>
								</select>
							</div>
						</div>
						<div class="row subtopics-wrapper">
							<div class="settings-title three columns">Choose Study Topics</div>
							<div class="settings-option nine columns">
								<div class="E1 subtopic">
									<div class="twelve columns">
										<input type="checkbox" value="All" class="all" checked>All<br>
										<input type="checkbox" value="A" checked/>Rules & Regulations<br />
										<input type="checkbox" value="B" checked/>Communications Procedures<br />
										<input type="checkbox" value="C" checked/>Equipment Operations<br />
										<input type="checkbox" value="D" checked/>Other Equipment<br />
									</div>
								</div>
								<div class="E3 subtopic">
									<div class="six columns">
										<input class="all" type="checkbox" value="All" checked>All<br>
										<input type="checkbox" value="A" checked>Principles</br>
										<input type="checkbox" value="B" checked>Electrical Math</br>
										<input type="checkbox" value="C" checked>Components</br>
										<input type="checkbox" value="D" checked>Circuits</br>
										<input type="checkbox" value="E" checked>Digital Logic</br>
										<input type="checkbox" value="F" checked>Receivers</br>
										<input type="checkbox" value="G" checked>Transmitters</br>
										<input type="checkbox" value="H" checked>Modulation</br>
									</div>
									<div class="six columns">
										<input type="checkbox" value="I" checked>Power Sources</br>
										<input type="checkbox" value="J" checked>Antennas</br>
										<input type="checkbox" value="K" checked>Aircraft</br>
										<input type="checkbox" value="L" checked>Installation, Maintenance & Repair</br>
										<input type="checkbox" value="M" checked>Communications Technology</br>
										<input type="checkbox" value="N" checked>Marine</br>
										<input type="checkbox" value="O" checked>RADAR</br>
										<input type="checkbox" value="P" checked>Satellite</br>
										<input type="checkbox" value="Q" checked>Safety</br>
									</div>
								</div>
								<div class="E6 subtopic">
									<div class="twelve columns">
										<input class="all" type="checkbox" value="All" checked>All<br>
									</div>
								</div>
								<div class="E7 subtopic">
									<div class="twelve columns">
										<input class="all" type="checkbox" value="All" checked>All<br>
										<input type="checkbox" value="A" checked>General Information and System Overview<br>
										<input type="checkbox" value="B" checked>Principles of Communications<br>
										<input type="checkbox" value="C" checked>F.C.C. Rules & Regulations<br>
										<input type="checkbox" value="D" checked>DSC & Alpha-Numeric ID<br>
										<input type="checkbox" value="E" checked>Distress, Urgency & Safety Communications<br>
										<input type="checkbox" value="F" checked>Survival Craft Equip & S.A.R.<br>
										<input type="checkbox" value="G" checked>VHF-DSC Equipment & Communications<br>
										<input type="checkbox" value="H" checked>Maritime Safety Information (M.S.I.)<br>
										<input type="checkbox" value="I" checked>Inmarsat Equip. & Comms<br>
										<input type="checkbox" value="J" checked>MF-HF Equip. and Comms<br>
									</div>
								</div>
								<div class="E7R subtopic">
									<div class="twelve columns">
										<input class="all" type="checkbox" value="All" checked>All<br>
										<input type="checkbox" value="A" checked>General Information and System Overview<br>
										<input type="checkbox" value="B" checked>F.C.C. Rules & Regulations<br>
										<input type="checkbox" value="C" checked>DSC & Alpha-Numeric ID Systems<br>
										<input type="checkbox" value="D" checked>Distress, Urgency & Safety Comms<br>
										<input type="checkbox" value="E" checked>Survival Craft Equip & S.A.R.<br>
										<input type="checkbox" value="F" checked>Maritime Safety Information (M.S.I.)<br>
										<input type="checkbox" value="G" checked>VHF-DSC Equipment & Comms<br>
									</div>
								</div>
								<div class="E8 subtopic">
									<div class="twelve columns">
										<input class="all" type="checkbox" value="All" checked>All<br>
										<input type="checkbox" value="A" checked>RADAR Principles<br>
										<input type="checkbox" value="B" checked>Transmitting Systems<br>
										<input type="checkbox" value="C" checked>Receiving Systems<br>
										<input type="checkbox" value="D" checked>Display & Control Systems<br>
										<input type="checkbox" value="E" checked>Antenna Systems<br>
										<input type="checkbox" value="F" checked>Installation, Maintenance & Repair<br>
									</div>
								</div>
								<div class="E9 subtopic">
									<div class="twelve columns">
										<input class="all" type="checkbox" value="All" checked>All<br>
										<input type="checkbox" value="A" checked>VHF-DSC Equipment & Operation<br>
										<input type="checkbox" value="B" checked>MF-HF-DSC-SITOR (NBDP) Equip. & Ops<br>
										<input type="checkbox" value="C" checked>Satellite Systems<br>
										<input type="checkbox" value="D" checked>Other GMDSS Equipment<br>
										<input type="checkbox" value="E" checked>Power Sources<br>
										<input type="checkbox" value="F" checked>Other Equipment and Networks<br>
										<input type="checkbox" value="G" checked>Inspections, Installations and Instruments<br>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="settings-title three columns">Show Question Numbers</div>
							<div class="settings-option nine columns">
								<select class="show-numbers">
									<option value="1">On</option>
									<option value="0" selected="selected">Off</option>
								</select>
							</div>
						</div>
						<div class="row">
							<div class="settings-title three columns">Show Answers</div>
							<div class="settings-option nine columns">
								<select class="show-answers">
									<option value="1" selected="selected">On</option>
									<option value="0" >Off</option>
								</select>
							</div>
						</div>
						<div class="row">
							<div class="settings-title three columns">Focus on Weak Areas</div>
							<div class="settings-option nine columns">
								<select class="weak-areas">
									<option value="1">On</option>
									<option value="0" selected="selected">Off</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<button class="exam-start">Start Exam</button>
					</div>
				</div>
			</div>
		</div>
		<div class="shadow"></div>
	</div>
	<div class="panel-wrapper exam">
		<div class="fcc-panel exam-panel collapsed">
			<div class="title"><span class="the-title">Exam</span><div class="section-collapse">expand <i class="icon-chevron-down"></i></div></div>
			<div class="content" >
				<div class="pre-loader"></div>
				<div class="exam-container" style="display:none"></div>
			</div>
		</div>
		<div class="shadow"></div>
	</div>
<?php 
}
Ejemplo n.º 2
0
function showInterface($atts)
{
    $current_user = wp_get_current_user();
    $current_user_id = $current_user->ID;
    checkForPendingExam($current_user_id);
    ?>
	<div class="pre-loader"></div>
	<div class="exam-options">
		<div class="row">
			<div class="hidden-id"><?php 
    echo $current_user_id;
    ?>
</div>
			<div class="settings-title three columns">Simulated Exam</div>
			<div class="settings-option nine columns">
				<select class="simulated">
					<option value="1" >On</option>
					<option value="0" selected="selected">Off</option>
				</select>
			</div>
		</div>
		<div class="row">
			<div class="settings-title three columns">Choose Element</div>
			<div class="settings-option nine columns">
				<select class="element-id">
					<option value="E1">Element 1 : Basic Radio Law and Operating Practice</option>
					<option value="E3">Element 3 : General Radiotelephone</option>
					<option value="E6">Element 6 : Advanced Radiotelegraph</option>
					<option value="E7">Element 7 : GMDSS Radio Operating Practices</option>
					<option value="E7R">Element 7R : Restricted GMDSS Radio Operating Practices</option>
					<option value="E8">Element 8 : Ship Radar Techniques</option>
					<option value="E9">Element 9 : GMDSS Radio Maintenance Practices and Procedures</option>
				</select>
			</div>
		</div>
		<div class="study-mode-options">
			<div class="row">
				<div class="settings-title three columns">Choose Study Topics</div>
				<div class="settings-option nine columns">
					<div>
						<select class="E1 subtopic" multiple="multiple">
							<option value="All" selected="selected">All</option>
							<option value="A">Rules & Regulations</option>
							<option value="B">Communications Procedures</option>
							<option value="C">Equipment Operations</option>
							<option value="D">Other Equipment</option>
						</select>
					</div>
					<div>
						<select class="E3 subtopic" multiple="multiple">
							<option value="All" selected="selected">All</option>
							<option value="A">Principles</option>
							<option value="B">Electrical Math</option>
							<option value="C">Components</option>
							<option value="D">Circuits</option>
							<option value="E">Digital Logic</option>
							<option value="F">Receivers</option>
							<option value="G">Transmitters</option>
							<option value="H">Modulation</option>
							<option value="I">Power Sources</option>
							<option value="J">Antennas</option>
							<option value="K">Aircraft</option>
							<option value="L">Installation, Maintenance & Repair</option>
							<option value="M">Communications Technology</option>
							<option value="N">Marine</option>
							<option value="O">RADAR</option>
							<option value="P">Satellite</option>
							<option value="Q">Safety</option>
						</select>
					</div>
					<div>
						<select class="E6 subtopic" multiple="multiple">
							<option value="All" selected="selected">All</option>
						</select>
					</div>
					<div>
						<select class="E7 subtopic" multiple="multiple">
							<option value="All" selected="selected">All</option>
							<option value="A">General Information and System Overview</option>
							<option value="B">Principles of Communications</option>
							<option value="C">F.C.C. Rules & Regulations</option>
							<option value="D">DSC & Alpha-Numeric ID</option>
							<option value="E">Distress, Urgency & Safety Communications</option>
							<option value="F">Survival Craft Equip & S.A.R.</option>
							<option value="G">VHF-DSC Equipment & Communications</option>
							<option value="H">Maritime Safety Information (M.S.I.)</option>
							<option value="I">Inmarsat Equip. & Comms</option>
							<option value="J">MF-HF Equip. and Comms</option>
						</select>
					</div>
					<div>
						<select class="E7R subtopic" multiple="multiple">
							<option value="All" selected="selected">All</option>
							<option value="A">General Information and System Overview</option>
							<option value="B">F.C.C. Rules & Regulations</option>
							<option value="C">DSC & Alpha-Numeric ID Systems</option>
							<option value="D">Distress, Urgency & Safety Comms</option>
							<option value="E">Survival Craft Equip & S.A.R.</option>
							<option value="F">Maritime Safety Information (M.S.I.)</option>
							<option value="G">VHF-DSC Equipment & Comms</option>
						</select>
					</div>
					<div>
						<select class="E8 subtopic" multiple="multiple">
							<option value="All" selected="selected">All</option>
							<option value="A">RADAR Principles</option>
							<option value="B">Transmitting Systems</option>
							<option value="C">Receiving Systems</option>
							<option value="D">Display & Control Systems</option>
							<option value="E">Antenna Systems</option>
							<option value="F">Installation, Maintenance & Repair</option>
						</select>
					</div>
					<div>
						<select class="E9 subtopic" multiple="multiple">
							<option value="All" selected="selected">All</option>
							<option value="A">VHF-DSC Equipment & Operation</option>
							<option value="B">MF-HF-DSC-SITOR (NBDP) Equip. & Ops</option>
							<option value="C">Satellite Systems</option>
							<option value="D">Other GMDSS Equipment</option>
							<option value="E">Power Sources</option>
							<option value="F">Other Equipment and Networks</option>
							<option value="G">Inspections, Installations and Instruments</option>
						</select>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="settings-title three columns">Show Question Numbers</div>
				<div class="settings-option nine columns">
					<select class="show-numbers">
						<option value="1">On</option>
						<option value="0" selected="selected">Off</option>
					</select>
				</div>
			</div>
			<div class="row">
				<div class="settings-title three columns">Show Answers</div>
				<div class="settings-option nine columns">
					<select class="show-answers">
						<option value="1" >On</option>
						<option value="0" selected="selected">Off</option>
					</select>
				</div>
			</div>
			<div class="row">
				<div class="settings-title three columns">Focus on Weak Areas</div>
				<div class="settings-option nine columns">
					<select class="weak-areas">
						<option value="1">On</option>
						<option value="0" selected="selected">Off</option>
					</select>
				</div>
			</div>
		</div>
		<div class="row">
			<button class="exam-start">Start Exam</button>
		</div>
	</div>
	<div class="exam-container" style="display:none"></div>
<?php 
}