コード例 #1
0
$list = $council->get_council();
?>

	<?php 
$council = new delcountry_crud();
//$council->add_country("Afganistan",10);
//$council->add_country("USA",10);
//$council->add_country("India",10);
//$council->add_country("Japan",10);
//$council->update_count("USA",10);
//$council->add_country("UK",10);
$counts = $council->get_count();
?>
	<?php 
$info = new info_crud();
$status = $info->readStatus($username);
if ($status) {
    ?>
	<br>
	<div class="form-group">
    <label class="control-label col-sm-4" for="cfp">Council First Preference:</label>
    <div class="col-sm-8">
	<?php 
    $idf = "cfp";
    $ids = "csp";
    $idt = "ctp";
    $cp11 = "1cp1";
    $cp12 = "1cp2";
    $cp13 = "1cp3";
    $cp14 = "1cp4";
    $cp15 = "1cp5";
コード例 #2
0
        	</div>
		<div class="jumbotron">
    		<h1>Step 1 | International Press Registrations</h1>
	 <p class='lead'><br></p>
        <p class='lead'>Please Select the Position You would Like To Apply For In International Press<br></p>
	</div>        
	<div class='row'>
		  			<div class="col-lg-6">
			<form class='form-horizontal' role='form' method='post' action='<?php 
echo htmlspecialchars($_SERVER['PHP_SELF']);
?>
' >
	
	<?php 
$info = new info_crud();
$valid = $info->readStatus($username);
if ($valid) {
    echo "<div class='form-group'><label class='control-label col-sm-4' for='pa'>Positions Available:</label><div class='col-sm-8'>";
    $test = new ipStep1_crud();
    $cursor = $test->read($username);
    if ($cursor->count() != 0) {
        foreach ($cursor as $doc) {
            echo "<input class='form-control' type='text' value=" . $doc['positionAvailable'] . " readonly>";
        }
    } else {
        echo "<select class='form-control' id='pa' name='pa' placeholder='' required>";
        echo "<option selected='selected' value='Select' disabled='disable'>Select</option>";
        foreach ($list as $doc) {
            echo "<option class=" . $doc . " name=" . $doc . " value=" . $doc . ">" . $doc . " </option>";
        }
        echo "</select>";