<?php
require_once('header.php');
require_once('../server/api-adodb/config.php');

$operationsObj = new Table("operations");
$operations = $operationsObj->findWhere('1=1 ORDER BY name ASC');
?>
    <div id="page">
        <div class="container">
            <div class="wrapper">
            	<div class="register-content pure-g-r">
            		<h2 class="pure-u background">register</h2>
            		<h3 class="first pure-u-1">Fill in the <span class="red">form</span></h3>
            		<form action="." method="post" class="pure-u-2-3">
            			<div class="pure-g-r">
	            			<div class="pure-u-1-2">
		            			<input type="text" placeholder="First Name" name="first_name" id="first_name">
		            			<input type="text" placeholder="Last Name" name="last_name" id="last_name">
		            			<input type="text" placeholder="E-mail" name="email" id="email">
		            			<input type="text" placeholder="Date of Birth" name="dob" id="dob">
		            			<div class="select">
			            			<select name="franchise" id="franchise" class="customselect">
			            				<option value="">Preferred Franchise</option>
			            				<?php
                                            foreach ($operations AS $operation) {
                                                echo "<option>".$operation['name']."</operation>";
                                            }
                                        ?>
			            			</select>
		            			</div>
							</div>
							<div class="pure-u-1-2">
		            			<input type="text" placeholder="Country" name="country" id="country">
		            			<div class='select'>
                                    <select name="gender" id="gender" class="customselect">
                                        <option value="">Gender</option>
                                        <option >Male</option>
                                        <option >Female</option>
                                        ?>
                                    </select>
                                </div>
		            			<input type="text" placeholder="Phone Number" name="phone_number" id="phone_number">
<!--		            			<input type="text" placeholder="Zip" name="zip" id="zip">-->
		            			<div class="captcha">
		            			<p class="first">Prove you’re not a robot</p>
									<img src="http://www.captchacreator.com/files/code.php?configuration=/home/arifagic/public_html/files/user/configuration1047398987.php">
									<input type="text" name="Turing" value="" maxlength="100" size="10" placeholder="rewrite the upper field">
									<a href="http://www.captchacreator.com/files/whatisturing.html" onClick="window.open('http://www.captchacreator.com/files/whatisturing.html','_blank','width=400, height=300, left=' + (screen.width-450) + ', top=100');return false;"></a>
								</div>
		            			<input type="submit" value="Submit">
							</div>
						</div>
            		</form>
            		<div class="pure-u-1-3 img">
            			<img src="img/register-bg.png" alt="">
            		</div>
            	</div>
            </div>
        </div>
    </div>
<?php require_once('footer.php'); ?>