MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/vibharamadmin/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/vibharamadmin/content-new-add.php

<!doctype html>
<?php
	session_start();
	if($_SESSION['admin_id'] == "")
	{
		include("session.php");   
	}    

		include("connect.php");

		$strSQL = "SELECT * FROM admin WHERE admin_id = '".$_SESSION['admin_id']."'";
		$objQuery = mysqli_query($objCon,$strSQL);
		$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);      
?>
<html>
<head>
<?php include("assets/include/link.php"); ?>
</head>
<body>
<div class="wrapper">
<?php include("nav-menu.php"); ?> 
	<div class="main-panel">
		<?php include("assets/include/account.php"); ?>          
			<div class="content">
				<div class="container-fluid">
					<div class="row">
						<div class="col-md-12">
							<div class="card card-plain">
								<div class="header">
									<h4 class="title"><a href="content-new.php">Content</a> <i class="pe-7s-angle-right"></i> Add Content</h4>
								</div>
								<form name="form1" method="post" action="save_add_contentnew.php">          
								<input type="hidden" name="admin" value="<?php echo $_SESSION['admin_id'];?>">
									<div class="content table-responsive table-full-width">
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Link page</th>
												<th style="width:50%;"></th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" id="link_page" name="link_page" value="" required></td>    
													<td></td>  
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Detail (TH)</th>
												<th style="width:50%;">Detail (EN)</th>
											</thead>
											<tbody>
												<tr>
													<td>
														<input type="text" class="form-control" id="name_th" name="name_th" value="" placeholder="กรอกชื่อแสดงผลเป็นภาษาไทย">
														<textarea id="detail_th" name="detail_th"></textarea>
													</td>  
													<td>
														<input type="text" class="form-control" id="name_en" name="name_en" value="" placeholder="กรอกชื่อแสดงผลเป็นภาษาไทย">
														<textarea id="detail_en" name="detail_en"></textarea>
													</td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Detail (CN)</th>
												<th style="width:50%;">Detail (JP)</th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" id="name_cn" name="name_cn" value="" placeholder="กรอกชื่อแสดงผลเป็นภาษาไทย"> <textarea id="detail_cn" name="detail_cn"></textarea></td>  
													<td><input type="text" class="form-control" id="name_jp" name="name_jp" value="" placeholder="กรอกชื่อแสดงผลเป็นภาษาไทย"> <textarea id="detail_jp" name="detail_jp"></textarea></td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Detail (MM)</th>
												<th style="width:50%;">Detail (ARA)</th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" id="name_mm" name="name_mm" value="" placeholder="กรอกชื่อแสดงผลเป็นภาษาไทย"> <textarea id="detail_mm" name="detail_mm"></textarea></td>  
													<td><input type="text" class="form-control" id="name_ara" name="name_ara" value="" placeholder="กรอกชื่อแสดงผลเป็นภาษาไทย"> <textarea id="detail_ara" name="detail_ara"></textarea></td>
												</tr>
											</tbody>
										</table>
										<table class="table">    
											<tr>
												<td> 
													<button type="submit" rel="tooltip" class="btn btn-success btn-simple btn-icon">  
														<i class="fa fa-check-square" aria-hidden="true"></i> Save
													</button>
													<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='content-new.php'">
														<i class="fa fa-window-close" aria-hidden="true"></i> Cancel
													</button>
												</td>
											</tr>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
	</div>
</div>

<?php include("assets/include/script.php"); ?>
<?php include "texteditor2.php"; ?>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
	<script>
		$( function() {
			$( "#datepicker" ).datepicker();
		} );

        CKEDITOR.replace( 'detail_th');  
        CKEDITOR.replace( 'detail_en');  
        CKEDITOR.replace( 'detail_cn');  
        CKEDITOR.replace( 'detail_jp');  
        CKEDITOR.replace( 'detail_mm');  
        CKEDITOR.replace( 'detail_ara');  
	</script>
    </body> 
</html>
<?php 
	mysqli_close($objCon);
?>

OHA YOOOO