HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/old-myadmin/ImageGallery/add.php
<?php
if (!defined('WEB_ROOT')) {
	exit;
}
?> 
<div id="ptitle">:: Image Gallery >> ADD NEW </div>
<table border="0" width="100%" cellspacing="2"  id="table1">
<tr>
 <td align="center" colspan="4"> <p align="center" class="formTitle"><h2>Add New Image</h2> </p> </td>
 </tr>
<tr>

 <td width="30%"> 
<?php 
include_once "imageCategory.php";
?>
 </td>
		<td width="70%">
<form action="processImage.php?action=addImage" method="POST" onsubmit="return checkAddImageForm();" enctype="multipart/form-data" name="frmAddImage" id="frmAddImage">
<table border="0" cellspacing="2"  id="table1">
  <tr>
   <td colspan="2" align="center"><font color="#FF0000" > <?php echo @$_GET['msg1']; ?>  </font></td>
  </tr>
  <tr>
    <td>Image Title</td>
    <td><select name="selImgCat">
      <option value="Select">Select Image Category</option>
    <?php 
$sql = "SELECT * FROM image_category";
$result = dbQuery($sql);
while($row = dbFetchAssoc($result)) {
extract($row);
echo '<option value="'.$category_id.'">'.$category_name. '</option>';
}	
?>
	</select></td>
    <td></td>
  </tr>
  <tr>
    <td>Image Title</td>
    <td><input type="text" name="img_title" id="img_title" size="100" /></td>
    <td>( Title For Image )</td>
  </tr>
  <tr>
    <td>Image</td>
    <td><input type="file" name="img_file" size="80" /></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"> <p align="center"> 
  <input name="btnAddImage" type="submit" id="btnAddImage" value="Add Image" class="box">
  &nbsp;&nbsp;<input name="btnCancel" type="button" id="btnCancel" value="Cancel" onClick="window.location.href='index.php';" class="box">  
 </p></td>
  </tr>
</table>
</form>
	</td>

 </td>	
</tr>
</table>