<title>PHP Mail</title>
<div id="pagetitle">PHP MAIL</div>
<div id="batascontent" class="clearfix">
	<?php
		$db = mysqli_query($koneksi, "SELECT * FROM cmas_phpmail");
		$dt = mysqli_fetch_array($db);
	?>
	<div id="wrapgsetting" class="clearfix">
		<div id="gsettinglefts">
			<div id="gsettingtitles">HOST</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Host</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_host']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Username</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_username']; ?>
				</div>
			</div>		
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Password</div>
				<div id="gsettinginput">
					-
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Charset Mail</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_charset']; ?>
				</div>
			</div>
			<?php if ($dt['phpmail_logoid'] == 0) { ?>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Logo Name</div>
					<div id="gsettinginput">
						<?php echo $dt['phpmail_logoname']; ?>
					</div>
				</div>
			<?php } else { ?>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Logo Name</div>
					<div id="gsettinginput">
						<?php echo $dt['phpmail_logoname']; ?>
					</div>
				</div>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Mail Logo</div>
					<div id="gsettingimgsml">
						<img src="assets/images/<?php echo $dt['phpmail_logo']; ?>">
					</div>
				</div>
			<?php } ?>
		</div>
		
		<div id="gsettingrites">
			<div id="gsettingtitles">EMAIL</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Email From</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_mailfrom']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Name From</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_mailname']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">CC Mail</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_ccmail']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">CC Name</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_ccname']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">BCC Mail</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_bccmail']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">BCC Name</div>
				<div id="gsettinginput">
					<?php echo $dt['phpmail_bccname']; ?>
				</div>
			</div>
		</div>
	</div>
	<div id="wrapgsetting" class="clearfix">
		<div id="gsettingtitles">RE-CAPTCHA</div>
		<div id="gsetting" class="clearfix">
			<div id="gsettinglabel">Captcha Sitekey</div>
			<div id="gsettinginput">
				<?php echo $dt['captcha_sitekey']; ?>
			</div>
		</div>
		<div id="gsetting" class="clearfix">
			<div id="gsettinglabel">Captcha Secretkey</div>
			<div id="gsettinginput">
				<?php echo $dt['captcha_secretkey']; ?>
			</div>
		</div>
	</div>
	<div id="tombolsubmit">
		<a href="?m=phpmail_edit&id=<?php echo $dt['phpmail_id']; ?>"><input name="button" type="button" value="EDIT" class="fullbutton"/></a>
	</div>
</div>