Exemplo n.º 1
0
				   value="<?php 
if (isset($_POST['name'])) {
    echo $_POST['name'];
}
?>
">
		</div>
	</div>
	<div class="form-group">
		<label for="country" class="col-sm-2 control-label">Country</label>
		<div class="col-sm-10">
		<?php 
if (isset($_POST['country'])) {
    $country = $_POST['country'];
} else {
    $country = "Unspecified";
}
renderCountrySelectControl($mySQL, $country);
?>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default" name="register" id="register_button">Register</button>
		</div>
	</div>
</form>


<?php 
require_once "site_footer.php";
Exemplo n.º 2
0
    echo $edit_adventure['title'];
}
?>
">
            </div>
        </div>
        <div class="form-group">
            <label for="country" class="col-sm-2 control-label">Country</label>
            <div class="col-sm-10">
                <?php 
if (isset($edit_adventure['country_id'])) {
    $name = getCountryName($edit_adventure['country_id'], $mySQL);
} else {
    $name = "Unspecified";
}
renderCountrySelectControl($mySQL, $name);
?>
            </div>
        </div>
        <div class="form-group">
            <label for="title" class="col-sm-2 control-label">Description: </label>
            <div class="col-sm-10">
                <textarea class="form-control" rows="5" name="description" id="description" placeholder="Description"><?php 
if (isset($edit_adventure['description'])) {
    echo $edit_adventure['description'];
}
?>
</textarea>
            </div>
        </div>
Exemplo n.º 3
0
				   <h3>Profile</h3>
				   <table class="table table-hover">
					   <tr>
						   <td>Username:</td>
						   <td><div id="username"></div></td>
						   <td></td>
					   </tr>
					   <tr>
						   <td>Name:</td>
						   <td><div id="name"></div></td>
						   <td><button type="button" class="btn btn-default" onclick="showEdit('name')">Edit</button></td>
					   </tr>
					   <tr>
						   <td>Country:</td>
						   <td><div id="loc"><?php 
renderCountrySelectControl($mySQL);
?>
</div></td>
						   <td><button type="button" class="btn btn-default" id="updateC" edit_type="country">Update</button></td></td>
					   </tr>
					   <tr>
						   <td>Status:</td>
						   <td><div id="verified"></div></td>
						   <td></td>

					   <tr>
						   <td>Account type:</td>
						   <td><div id="account_type"></div></td>
						   <td></td>
					   </tr>
				   </table>