<?php

$accessControl = array("Admin" => true);
require_once '../../AccessControl.php';
?>                        
                    <div class="response">
                        <div class="callout-danger-template callout callout-danger" style="display:none;">                              
                            <h4></h4>                               
                        </div>
                        <div class="callout-success-template callout callout-success" style="display:none;">                                
                            <h4></h4>                               
                        </div>  
                    </div>


                        <div class="box box-solid box-primary">
                            <div class="box-header">
                                <h3 class="box-title"><?php echo _AUTHENTICATION_METHOD; ?></h3>
                                
                            </div><!-- /.box-header -->

                            <div class="box-body">
								<form id="admineditor" method="post">
									<div id="AddAdmin" style="display:none;">
										<div class="form-group">
											<label><?php echo _NO_ADMIN_FOUND_PLEASE_SET; ?></label>
											<input class="form-control"  type="text" name="setadminname" value="" placeholder="<?php echo _USERNAME;?>..." />
										</div>
										<div class="form-group">
											<input class="form-control"  type="password" name="setadminpass" value="" placeholder="<?php echo _PASSWORD;?>.." />
										</div>
										<div class="form-group">
											<button class="btn btn-primary"  name="setadminsubmit"><?php echo _SAVE;?></button>
										</div>										
									</div>				
								</form>
								<form id="autheditor" method="post">
									<div id="ChangeMethod" style="display:none;">
										<div class="form-group">
										  	<div class="radio">
                                                <label>
													<input type="radio" name="authtype" value=<?php echo USER_AUTHENTICATION_LOGAHOLIC; ?>>
                                                    <?php echo _USE_LOGAHOLIC_LOGIN_DIALOG;?>.
                                                </label>
                                            </div>
										  	<div class="radio">
                                                <label>
													<input type="radio" name="authtype" value=<?php echo USER_AUTHENTICATION_WEBSERVER; ?>>
                                                    <?php echo _USE_SERVERS_AUTHENTICATED_USER;?>.
                                                </label>
                                            </div>
										  	<div class="radio showserval">
                                                <label>
													<input type="radio" name="authtype" value=<?php echo USER_AUTHENTICATION_OTHER; ?>>
                                                    <?php echo _USE_A_SERVER_VARIABLE;?>.
                                                </label>
                                            </div>
										</div>

										<div id="serval" class="form-group" style="display:none;">
											<label><?php echo _USE_THIS_SERVER_VARIABLE;?>:</label>
											<input class="form-control" type="text" name="authtypevar" value="">
										</div>
										
										<div class="form-group">
											<button class="btn btn-primary" data-loading-text="Saving Authentication Method..." ><?php echo _SUBMIT; ?></button>
										</div>

									</div>		
								</form>
                            </div>
                        </div>