<?php if(@$error): ?>
	<div class="alert alert-dismissible alert-danger">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <strong>Hata!</strong> <?=$errorText?>
    </div>
<?php endif; ?>
<?php if(@$success): ?>
	<div class="alert alert-dismissible alert-success">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <strong>Başarılı!</strong> <?=$success?>
    </div>
<?php endif; ?>

<div class="panel panel-default">
	<div class="panel-heading">
		SMTP Ayarları
	</div>
	<!-- /.panel-heading -->
	<div class="panel-body">
		<form action="" method="post">
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>E-Posta Adresi</b></span>
					<input type="text" name="smtp_email" class="form-control" placeholder="info@moonpanel.net" value="<?=$smtp["smtp_email"]?>">
				</div>
			</div>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Parola</b></span>
					<input type="text" name="smtp_password" class="form-control" placeholder="123456789" value="<?=$smtp["smtp_password"]?>">
				</div>
			</div>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Mail Sunucusu (Host)</b></span>
					<input type="text" name="smtp_host" class="form-control" placeholder="123456789" value="<?=$smtp["smtp_host"]?>">
				</div>
			</div>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Port</b></span>
					<input type="text" name="smtp_port" class="form-control" placeholder="123456789" value="<?=$smtp["smtp_port"];?>">
				</div>
			</div>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Güvenlik</b></span>
					<select name="smtp_ssl" class="form-control select2">
						<option value="0"<?=($smtp["smtp_ssl"] == 0) ? " selected" : null;?>>TLS</option>
						<option value="1"<?=($smtp["smtp_ssl"] == 1) ? " selected" : null;?>>SSL</option>
					</select>
				</div>
			</div>
			<hr>
			<button type="submit" class="btn btn-success pull-right">Bilgileri Güncelle</button>
		</form>
	</div>
</div>