|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/klengineers/klwebsite-controller/ |
Upload File : |
<?php
include('inc/loginCheck.inc.php');
include('inc/breadCrumb.inc.php');
include('inc/Zebra_Image.php');
include('inc/simpleFunctions.php');
$error=0;
if(isset($_POST['Update']))
{
//$delete_thumb="../tea_images/small/";
// $delete_gallery="../tea_images/";
// $delete_high="../tea_images/big/";
// $delete_medium="../tea_images/medium/";
// $im1=$_REQUEST['im1'];
//
// function makethumb($name,$image)
// {
// $SF=new simpleFunctions();
// $random=$SF->randomGen(12);
// $uploaddir="../tea_images/";
// $uploadhigh="../tea_images/big/";
// $uploadthumb="../tea_images/small/";
// $uploadmedium="../tea_images/medium/";
// $uploadfile=$random.basename($_FILES[$name]['name']);
// $img_name=$uploadfile;
// $uploadfile=$uploaddir.$uploadfile;
// $thumbpath=$uploadthumb.$random.basename($_FILES[$name]['name']);
// $highpath=$uploadhigh.$random.basename($_FILES[$name]['name']);
// $mediumpath=$uploadmedium.$random.basename($_FILES[$name]['name']);
// if(move_uploaded_file($_FILES[$name]['tmp_name'],$uploadfile))
// {
// $newfile=$uploadfile;
// $path=$newfile;
//
//
// $image = new Zebra_Image();
// $image->source_path =$path;
//
// $image->jpeg_quality = 100;
// $image->preserve_aspect_ratio = true;
// $image->enlarge_smaller_images = true;
// $image->preserve_time = true;
// $image->target_path =$thumbpath;
// $image->resize(100, 100);
// $image->target_path =$mediumpath;
// $image->resize(242, 206);
// $image->target_path =$highpath;
// $image->resize(500, 500);
// return $img_name;
// }
// }
//
// $image1=$_FILES['logo1']['name'];
// if($image1)
// {
// unlink($delete_high."/".$im1);
// unlink($delete_medium."/".$im1);
// unlink($delete_thumb."/".$im1);
// unlink($delete_gallery."/".$im1);
// $image=makethumb('logo1',$image1);
// $image1=$image;
// }
// else
// {
// $image1=$im1;
// }
//
//
//
extract($_POST);
$id=$_GET['id'];
$description=addslashes($description);
$updateQuery="UPDATE headtext SET `description`='$description' WHERE id='$id'";
$updateResult=mysql_query($updateQuery);
if($updateResult)
{
echo "<script>window.location='abouttab.php?added=true';</script>";
}
else
{
echo "<script>window.location='abouttabEdit.php?added=false';</script>";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Our Company |24/7 NY Web Design Admin</title>
<link rel="stylesheet" type="text/css" href="css/960.css" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/text.css" />
<link rel="stylesheet" type="text/css" href="css/blue.css" />
<link type="text/css" href="css/smoothness/ui.css" rel="stylesheet" />
<link type="text/css" href="js/wysiwyg/jquery.wysiwyg.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/wysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#wysiwyg').wysiwyg();
});
</script>
<script src="nicEdit.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
bkLib.onDomLoaded(
function()
{
new nicEditor({fullPanel : true}).panelInstance('description');
new nicEditor({fullPanel : true}).panelInstance('features');
new nicEditor({fullPanel : true}).panelInstance('spec');
}
);
</script>
<!--[if IE6]>
<link rel="stylesheet" type="text/css" href="css/iefix.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="css/iefix.css" />
<script src="js/pngfix.js"></script>
<script>
DD_belatedPNG.fix('#menu ul li a span span');
</script>
<![endif]-->
</head>
<body>
<!-- WRAPPER START -->
<div class="container_16" id="wrapper">
<!-- HIDDEN COLOR CHANGER -->
<div style="position:relative;"> </div>
<!--LOGO-->
<?php include('inc/topHeader.inc.php');?>
<div class="grid_16" id="header">
<!-- MENU START -->
<div id="menu">
<?php include('inc/menu.inc.php');?>
</div>
<!-- MENU END -->
</div>
<div class="grid_16"> <?php /*?><?php include('inc/teaTabsHm.inc.php');?><?php */?>
<!-- TABS START -->
<?php include('inc/teaTabsHm.inc.php');?>
<!-- TABS END -->
</div>
<!-- HIDDEN SUBMENU START -->
<!-- HIDDEN SUBMENU END -->
<!-- CONTENT START -->
<div class="grid_16" id="content">
<!-- CONTENT TITLE -->
<div class="grid_9"> <h1 class="content_edit" >Headings Texts Edit</h1>
</div>
<!-- CONTENT TITLE RIGHT BOX -->
<div class="grid_6" id="eventbox"><img src="images/service1.png" width="40" height="40"></div>
<div class="clear"> </div>
<!-- TEXT CONTENT OR ANY OTHER CONTENT START -->
<div class="grid_15" id="textcontent">
<div class="clear"></div>
<br />
<!--NOTIFICATION MESSAGES-->
<!--<p class="info" id="success"><span class="info_inner">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</span></p>
<p class="info" id="error"><span class="info_inner">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</span></p>
<p class="info" id="warning"><span class="info_inner">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</span></p>
<p class="info" id="info"><span class="info_inner">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</span></p>-->
<?php
if(isset($error) && $error==1)
{
?>
<p class="info" id="success"><span class="info_inner">Updated Successfully</span></p>
<?php
}
else if(isset($error) && $error==2)
{
?>
<p class="info" id="error"><span class="info_inner">Error! Try Again</span></p>
<?php
}
?>
<?php
$ids=$_GET['id'];
$categoryQuery="SELECT * FROM headtext WHERE id='$ids'";
$categoryResult=mysql_query($categoryQuery);
$catObj=mysql_fetch_array($categoryResult);
?>
<form action="" method="post" enctype="multipart/form-data">
<label>Description</label>
<textarea name="description" id="description" rows="10" class="smallInput wide"><?php echo stripslashes($catObj['description']);?></textarea><br />
<input type="submit" name="Update" value=" Update " />
<?php /*?><input type="button" name="goto" value=" Cancel " onclick="gotoPage();"/><?php */?>
</form>
<br />
</div>
<div class="clear"> </div>
<!-- END CONTENT-->
</div>
<div class="clear"> </div>
<!-- This contains the hidden content for inline calls -->
<div class='hidden'>
<div id="inline_example1" title="This is a modal box" style='padding:10px; background:#fff;'>
<p><strong>This content comes from a hidden element on this page.</strong></p>
<p><strong>Try testing yourself!</strong></p>
<p>You can call as many dialogs you want with jQuery UI.</p>
</div>
</div>
<!--Second hidden element called from the tip message right of the title-->
<div class='hidden'>
<div id='inline_example2' title="This is a modal" style='padding:10px; background:#fff;'>
<p><strong>This content comes from the second hidden element on this page.</strong></p>
</div>
</div>
</div>
<!-- WRAPPER END -->
<!-- FOOTER START -->
<?php include('inc/footer.inc.php');?>
<!-- FOOTER END -->
</body>
</html>