| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/rsdgroup/adminPanel/ |
Upload File : |
<?php
include_once("session.php");
include_once("settings.php");
include_once("functions.php");
if($_REQUEST["mode"]=="Edit")
{
$mode="Edit";
$mode2="EDIT";
$mode1="Update";
$id=$_REQUEST['id'];
$rs_tblsite=mysql_query("select * from `tblRecipe` where `Category_Id`='$id'");
$array_tblsite=mysql_fetch_array($rs_tblsite);
$Id=$array_tblsite['Category_Id'];
$Species_Id=$array_tblsite['Species_Id'];
$Category_Name=$array_tblsite['Category_Name'];
$Category_Description=$array_tblsite['Category_Description'];
$Category_Image=$array_tblsite['Category_Image'];
$Status=$array_tblsite['Status'];
$featured_status=$array_tblsite['featured_status'];
}
else
{
$mode="Add";
$mode2="ADD";
$mode1="Add";
}
?>
<LINK href="mel.css" type=text/css
rel=stylesheet><LINK href="sdmenu.css"
type=text/css rel=stylesheet>
<script>
</script>
<script language="javascript" type="text/javascript" src="<?=_WWWROOT?>/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
</script>
<table width="94%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form action="write_recipeProd.php" method="post" enctype="multipart/form-data" name="add_Category_form" onsubmit="MM_validateForm('Category_Id','','R','Category_Name','','R');return document.MM_returnValue">
<fieldset>
<legend>RECIPE PRODUCT
<?=$mode2?>
FORM</legend>
<table width="97%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td height="26" class="general">Recipe Category Name :</td>
<td height="26" >
<?=listdisplaydropdownvalues('recipeCate','id','tblRecipeCate','category',$Species_Id);?> </td>
</tr>
<tr>
<td width="29%" height="26" class="general"> Recipe Name :</td>
<td width="71%" height="26" ><input name="Category_Name" type="text" class="textfield" id="Category_Name" value="<?=$Category_Name;?>" size="35" maxlength="100"/></td>
</tr>
<tr>
<td height="26" class="general">Image :</td>
<td height="26"><input type="file" name="image" class="textfield"> <?php if($Category_Image!="") { ?><img src="../cat_images/recipe/<?=$Category_Image;?>" width="189" height="81"> <?php } ?></td>
</tr>
<tr>
<td height="26" class="general">Description :</td>
<td height="26"> </td>
</tr>
<tr>
<td height="26" colspan="2" class="general"><?
include_once("fckeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor("Category_Description") ;
$oFCKeditor->BasePath = "fckeditor/" ;
$oFCKeditor->Value = @stripslashes(@$Category_Description);
$oFCKeditor->Height = 400 ;
$oFCKeditor->Width = 700 ;
$oFCKeditor->Create() ;
?> </td>
</tr>
<tr>
<td width="29%" height="26" class="general">Status :</td>
<td>
<select name="status" class="textfield" id="status"/>
<OPTION value="Active" <?php if($Status == "Active") { echo "selected";}?>>Active</OPTION>
<OPTION value="Deactive" <?php if($Status == "Deactive") { echo "selected";}?>>Deactive</OPTION>
</select>
</td>
</tr>
<tr>
<td width="29%" height="26" class="general">Featured Status :</td>
<td>
<select name="featured_status" class="textfield" id="featured_status"/>
<OPTION value="Featured" <?php if($featured_status == "Featured") { echo "selected";}?>>Featured</OPTION>
<OPTION value="Unfeatured" <?php if($featured_status == "Unfeatured") { echo "selected";}?>>Unfeatured</OPTION>
</select>
</td>
</tr>
<tr align="center">
<td height="26" colspan="2"><label for="label">
<input type="hidden" name="id" value="<?=$_REQUEST['id']?>" />
<input type="submit" name="Submit" value=" Save " class="button" />
<input type="reset" name="Submit" value="Reset" class="button" />
<input name="mode" type="hidden" id="mode" value="<?=$_REQUEST['mode']?>" />
</label></td>
</tr>
</table>
</fieldset>
</form></td>
</tr>
</table>