Example #1
0
    }
}
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Task 04</title>
	<link href="libraries/bootstrap-3.3.6-dist/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
	<div class="container" style="width: 30%">
		<form action="" method="post" role="form">
			<div class="form-group"> </div>
			<div class="form-group <?php 
echo getFieldClass($validationErrors, 'number');
?>
">
				<label for="number" class="control-label">Number</label>
				<input type="number" id="number" name="number" class="form-control"/>
				<?php 
echo displayErrors($validationErrors, 'number', 'control-label');
?>
			</div>
			<div class="form-group">
				<label for="number-counter" class="control-label">Remaining numbers <?php 
echo $numberCounter;
?>
</label>
				<textarea name="number-counter" id="number-counter" class="form-control hidden"><?php 
echo $numberCounter;
Example #2
0
?>
				<?php 
echo displayErrors($validationErrors, 'gender');
?>
			</div>
			<div class="<?php 
echo getFieldClass($validationErrors, 'color');
?>
">
				<label for="">Favorite Color</label>
				<?php 
echo checkboxesOrRadios([COLOR_RED => 'Red', COLOR_GREEN => 'Green', COLOR_BLUE => 'Blue'], $colors, 'color[]');
?>
			</div>
			<div class="<?php 
echo getFieldClass($validationErrors, 'form_of_address');
?>
">
				<label for="form_of_address">Password</label>
				<select name="form_of_address" id="">
					<option value="">--Choose Form Of Address--</option>
					<?php 
echo options([FORM_OF_ADDRESS_MR => 'Mr.', FORM_OF_ADDRESS_MRS => 'Mrs.', FORM_OF_ADDRESS_MS => 'Ms.'], $formOfAddress);
?>
				</select>
				<?php 
echo displayErrors($validationErrors, 'form_of_address');
?>
			</div>
			<div>
				<label for="text">Text</label>
Example #3
0
		<div class="form-group <?php 
echo getFieldClass($validationErrors, 'password');
?>
">
			<label for="password" class="control-label">Password</label>
			<input type="password" id="password" name="password" class="form-control" value="<?php 
echo htmlentities($password);
?>
"/>
			<span class="glyphicon glyphicon-remove form-control-feedback"></span>
			<?php 
echo displayErrors($validationErrors, 'password', 'control-label');
?>
		</div>
		<div class="form-group <?php 
echo getFieldClass($validationErrors, 'confirmPassword');
?>
">
			<label for="confirm-password" class="control-label">Confirm Password</label>
			<input type="password" id="confirm-password" name="confirm-password" class="form-control" value="<?php 
echo htmlentities($confirmPassword);
?>
"/>
			<span class="glyphicon glyphicon-remove form-control-feedback"></span>
			<?php 
echo displayErrors($validationErrors, 'confirmPassword', 'control-label');
?>
		</div>

		<div class="form-group">
			<input type="submit" class="btn btn-primary"/>
Example #4
0
							<div><h1>GAME OVER</h1></div>
							<div>&nbsp;</div>
							<div>&nbsp;</div>
						</div>
					<?php 
    }
    ?>
				<?php 
}
?>
				<div class="row">
					<form action="" method="post" role="form">
						<div>&nbsp;</div>

						<div class="form-group <?php 
echo getFieldClass($validationErrors, 'character');
?>
">
							<div class="control-label">
								Remaining Characters:
							</div>
							<div class="control-label">
								<span>
									<?php 
echo $remainingChars;
?>
								</span>
							</div>
							<div>&nbsp;</div>

							<input type="text" class="hidden" name="remaining-chars"  value="<?php 
Example #5
0
?>
">
					<label for="size" class="control-label">Size</label>
					<select name="size" id="size" class="form-control">
						<option value="">--choose-brand--</option>
						<?php 
echo options($sizes, $size);
?>
					</select>
					<?php 
echo displayErrors($validationErrors, 'size', 'control-label');
?>
				</div>

				<div class="form-group <?php 
echo getFieldClass($validationErrors, 'quantity');
?>
">
					<label for="quantity" class="control-label">Quantity</label>
					<input
						type="number"
						id="quantity"
						name="quantity"
						class="form-control"
						value="<?php 
echo htmlentities($quantity);
?>
"
						min="0"
					/>
					<span class="glyphicon glyphicon-remove form-control-feedback"></span>
Example #6
0
                    <?php 
echo displayErrors($validationErrors, 'username');
?>
                </span>
                <span class="<?php 
echo getFieldClass($validationErrors, 'password');
?>
">
                    <label for="password">Password</label>
                    <input type="password" name="password" id="password" />
                    <?php 
echo displayErrors($validationErrors, 'password');
?>
                </span>
                <span class="<?php 
echo getFieldClass($validationErrors, 'password');
?>
">
                    <label for="rePassword">Re Password</label>
                    <input type="password" name="rePassword" id="rePassword" />
                    <?php 
echo displayErrors($validationErrors, 'rePassword');
?>
                </span>
                <span>
                    <button type="submit">Register</button>
                </span>
            </form>
            <p><?php 
echo $print;
?>
Example #7
0
                </div>
                <div class="<?php 
echo getFieldClass($validationErrors, 'secondInput');
?>
">
                    <label for="secondInput">Second Number</label>
                    <input type="text" name="secondInput" id="secondInput" value="<?php 
echo htmlentities($secondInput);
?>
"/>
                    <?php 
echo displayErrors($validationErrors, 'secondInput');
?>
                </div>
                <div class="<?php 
echo getFieldClass($validationErrors, 'operation');
?>
">
                    <label for="operation">Select Operation</label>
                    <select name="operation" id="operation">
                        <option value="">----Select----</option>
                        <option value="+">addition</option>
                        <option value="-">subtraction</option>
                        <option value="*">multiplication</option>
                        <option value="/">division</option>
                    </select>
                    <?php 
echo displayErrors($validationErrors, 'operation');
?>
                </div>
                <div>
Example #8
0
?>
            </select>
        </span>
        <span class="<?php 
echo getFieldClass($validationErrors, 'birthDay');
?>
">
            <select name="birthDay" id="birthDays">
                <option value=""> Select </option>
                <?php 
echo options([d1 => '1', d2 => '2', d3 => '3', d4 => '4', d5 => '5', d6 => '6', d7 => '7'], $birth_day);
?>
            </select>
        </span>
        <span class="<?php 
echo getFieldClass($validationErrors, 'birthYear');
?>
">
            <select name="birthYear" id="">
                <option  value=""> Select </option>
                <?php 
echo options([y1 => '1909', y2 => '1908', y3 => '1907', y4 => '1906', y5 => '1905', y6 => '1904', y7 => '1903', y8 => '1902', y9 => '1901', y10 => '1900'], $birth_year);
?>
            </select>
        </span>
    </span>
        <br>
    <span>
        <button type="submit">Add Employee</button>
    </span>
</form>
Example #9
0
                <select name="DOBDay" class="<?php 
echo getFieldClass($validationErrors, 'DOBDay');
?>
">
                    <option value=""> - Day - </option>
                    <?php 
echo options($days, $day);
?>
                </select>
                <?php 
echo displayErrors($validationErrors, 'DOBDay');
?>

                <select name="DOBYear" class="<?php 
echo getFieldClass($validationErrors, 'DOBYear');
?>
">
                    <option value=""> - Year - </option>
                    <?php 
echo options($years, $year);
?>
                </select>
                <?php 
echo displayErrors($validationErrors, 'DOBYear');
?>
            </div>

            <div>
                <input type="submit">
            </div>
Example #10
0
			<div class="form-group <?php 
echo getFieldClass($validationErrors, 'secondNumber');
?>
">
				<label for="second-number" class="control-label">Second Number</label>
				<input type="number" id="second-number" name="second-number" class="form-control" value="<?php 
echo htmlentities($secondNumber);
?>
"/>
				<span class="glyphicon glyphicon-remove form-control-feedback"></span>
				<?php 
echo displayErrors($validationErrors, 'secondNumber', 'control-label');
?>
			</div>
			<div class="form-group <?php 
echo getFieldClass($validationErrors, 'chooseAction');
?>
">
				<label for="choose-action" class="control-label">Choose Action</label>
				<select name="choose-action" id="choose-action" class="form-control">
					<option value="">--choose-action--</option>
					<?php 
echo options([CHOOSE_ACTION_COLLECT => 'collect', CHOOSE_ACTION_SUBTRACT => 'subtract', CHOOSE_ACTION_DIVIDE => 'divide', CHOOSE_ACTION_MULTIPLY => 'multiply'], $chooseAction);
?>
				</select>
				<?php 
echo displayErrors($validationErrors, 'chooseAction', 'control-label');
?>
			</div>
			<!--<div class="clearfix"></div>-->
			<div class="form-group">
Example #11
0
            </span>
            <span class="<?php 
echo getFieldClass($validationErrors, 'secondNumber');
?>
">
                <label for="number2">Second number</label>
                <input id="number2" name="secondNumber" type="text" value="<?php 
echo htmlentities($second);
?>
">
				<?php 
echo displayErrors($validationErrors, 'secondNumber');
?>
            </span>
            <span class="<?php 
echo getFieldClass($validationErrors, 'mathSing');
?>
">
                <label for="sing">Select sing</label><select id="sing" name="mathSing">
                    <option value="">Select</option>
                    <option value="1">+</option>
                    <option value="2">-</option>
                    <option value="3">/</option>
                    <option value="4">*</option>
                </select>
				<?php 
echo displayErrors($validationErrors, 'mathSing');
?>
            </span>

            <span><button type="submit">Calc</button> </span>
Example #12
0
?>
    </div>
    <br>
    <div class="<?php 
echo getFieldClass($validationErrors, 'password');
?>
">
        <label for="password">Password</label>
        <input type="password" id="password" name="password">
        <?php 
echo displayErrors($validationErrors, 'password');
?>
    </div>
    <br>
    <div class="<?php 
echo getFieldClass($validationErrors, 'repeatPassword');
?>
">
        <label for="repeatPassword">Repeat Password</label>
        <input type="password" id="repeatPassword" name="repeatPassword">
        <?php 
echo displayErrors($validationErrors, 'repeatPassword');
?>
    </div>
    <br>
    <div>
        <button type="submit">Submit</button>
    </div>
</form>

<?php 
Example #13
0
	<div class="container" style="width: 30%">
		<form action="" method="post" role="form">
			<div class="form-group"> </div>
			<div class="form-group <?php 
echo getFieldClass($validationErrors, 'temperature');
?>
">
				<label for="temperature" class="control-label">Temperature</label>
				<input type="number" id="temperature" name="temperature" class="form-control"/>
				<?php 
echo displayErrors($validationErrors, 'temperature', 'control-label');
?>
			</div>
			<div class="form-group">
				<div class="<?php 
echo getFieldClass($validationErrors, 'inputTemperature');
?>
">
					<?php 
echo checkboxesOrRadios(['celsius' => 'Celsius', 'fahrenheit' => 'Fahrenheit'], $inputTemperature, 'input-temperature', 'radio');
?>
					<?php 
echo displayErrors($validationErrors, 'inputTemperature', 'control-label');
?>
				</div>
			</div>
			<div class="form-group">
				<input type="submit" class="btn btn-primary" value="Calculate"/>
			</div>
			<div class="form-group">
				<label for="output-temperature" class="control-label">Temperature in <?php