''); $fldArray = array("technical_id" => $hidden_technical_id); $orderArray=array(); $orderType=''; $arr=dataSelect($table,$dataArray,$fldArray,$extra="",$orderArray,$orderType); $technical_status=$arr[0]['technical_status']; $technical_last_modified=$arr[0]['technical_last_modified']; $technical_title=$arr[0]['technical_title']; $technical_content=$arr[0]['technical_content']; $technical_status=$arr[0]['technical_status']; $technical_image=$arr[0]['technical_image']; $technical_image1=$arr[0]['technical_image1']; $technical_image2=$arr[0]['technical_image2']; if($_POST['submit']=='Save') { $table=TABLE_TECHNICAL; $hidden_technical_id=$_REQUEST['hidden_technical_id']; $technical_status=trim(strip_tags($_POST['technical_status'],ENT_QUOTES)); $technical_last_modified=DATETIME; $technical_title=trim(strip_tags($_POST['technical_title'],ENT_QUOTES)); $technical_content=dataPrepare($_REQUEST['technical_content']); $technical_stat=trim(strip_tags($_POST['technical_status'],ENT_QUOTES)); $technical_image=$_POST['hidden_technical_image']; $technical_image1=$_POST['hidden_technical_image1']; $technical_image2=$_POST['hidden_technical_image2']; if($technical_status=='') { $technical_status='Active'; } else { $technical_status=$technical_stat; } $dataArray = array("technical_status"=>$technical_status,"technical_last_modified"=>$technical_last_modified,"technical_title"=>$technical_title,"technical_content"=>$technical_content,"technical_status"=>$technical_status); if($technical_title!='' && $technical_content!='') { /*Edit*/ if($hidden_technical_id!='') { $fldArray = array("technical_id" => $hidden_technical_id); dataUpdate($table,$dataArray,$fldArray); /***********image upload*************/ if($_FILES['technical_image']['name']!='') { $error = ""; $msg = ""; $technical_ID=base64_decode(base64_decode($_REQUEST['technical_id'])); if($_REQUEST['hidden_file']!=''){ $fileElementName = 'technical_image'; $hidden_file=$_REQUEST['hidden_file']; } $table=TABLE_TECHNICAL; $oldfileName=$hidden_file; $fileName=$_FILES['technical_image']['name']; $fileSize=filesize($_FILES['technical_image']['tmp_name']); $fileTempName=$_FILES['technical_image']['tmp_name']; $folderPath="../".TECHNICAL_IMAGE_PATH; $maxSize=20480000; $width=''; $height=''; $tFlag=1; $folderT=THUMB; $widthT=TECHNICAL_THUMB_WIDTH; $heightT=TECHNICAL_THUMB_HEIGHT; $f_width=20; $f_height=20; $logoUpload=false; list($widthI, $heightI, $type, $attr) = getimagesize($fileTempName); $imginfo = pathinfo($fileName); $imgExt=$imginfo["extension"]; if($imgExt!='png' && $imgExt!='x-png' && $imgExt!='jpg' && $imgExt!='jpeg' && $imgExt!='gif' && $imgExt!='bmp' && $imgExt!='PNG' && $imgExt!='JPG' && $imgExt!='JPEG' && $imgExt!='GIF' && $fileName!=''){ $error = "Allowed File Types : png, jpg, gif
Your File Type : ".$imgExt; }else{ $codeArr=imageUpload($fileName,$oldfileName,$fileSize,$fileTempName,$folderPath,$maxSize=20480000,$width,$height,$tFlag,$folderT,$widthT,$heightT,$f_width,$f_height,$logoUpload=false); $dataArray=array("technical_image"=>$codeArr[1]); $fldArray=array("technical_id"=>$hidden_technical_id); dataUpdate($table,$dataArray,$fldArray); //redirect('show_technical.php'); } } if($_FILES['technical_image1']['name']!='') { $error = ""; $msg = ""; $technical_ID=base64_decode(base64_decode($_REQUEST['technical_id'])); if($_REQUEST['hidden_file']!=''){ $fileElementName = 'technical_image1'; $hidden_file=$_REQUEST['hidden_file']; } $table=TABLE_TECHNICAL; $oldfileName=$hidden_file; $fileName=$_FILES['technical_image1']['name']; $fileSize=filesize($_FILES['technical_image1']['tmp_name']); $fileTempName=$_FILES['technical_image1']['tmp_name']; $folderPath="../".TECHNICAL_IMAGE_PATH; $maxSize=20480000; $width=''; $height=''; $tFlag=1; $folderT=THUMB; $widthT=TECHNICAL_THUMB_WIDTH; $heightT=TECHNICAL_THUMB_HEIGHT; $f_width=20; $f_height=20; $logoUpload=false; list($widthI, $heightI, $type, $attr) = getimagesize($fileTempName); $imginfo = pathinfo($fileName); $imgExt=$imginfo["extension"]; if($imgExt!='png' && $imgExt!='x-png' && $imgExt!='jpg' && $imgExt!='jpeg' && $imgExt!='gif' && $imgExt!='bmp' && $imgExt!='PNG' && $imgExt!='JPG' && $imgExt!='JPEG' && $imgExt!='GIF' && $fileName!=''){ $error = "Allowed File Types : png, jpg, gif
Your File Type : ".$imgExt; }else{ $codeArr=imageUpload($fileName,$oldfileName,$fileSize,$fileTempName,$folderPath,$maxSize=20480000,$width,$height,$tFlag,$folderT,$widthT,$heightT,$f_width,$f_height,$logoUpload=false); $dataArray=array("technical_image1"=>$codeArr[1]); $fldArray=array("technical_id"=>$hidden_technical_id); dataUpdate($table,$dataArray,$fldArray); //redirect('show_technical.php'); } } if($_FILES['technical_image2']['name']!='') { $error = ""; $msg = ""; $technical_ID=base64_decode(base64_decode($_REQUEST['technical_id'])); if($_REQUEST['hidden_file']!=''){ $fileElementName = 'technical_image2'; $hidden_file=$_REQUEST['hidden_file']; } $table=TABLE_TECHNICAL; $oldfileName=$hidden_file; $fileName=$_FILES['technical_image2']['name']; $fileSize=filesize($_FILES['technical_image2']['tmp_name']); $fileTempName=$_FILES['technical_image2']['tmp_name']; $folderPath="../".TECHNICAL_IMAGE_PATH; $maxSize=20480000; $width=''; $height=''; $tFlag=1; $folderT=THUMB; $widthT=TECHNICAL_THUMB_WIDTH; $heightT=TECHNICAL_THUMB_HEIGHT; $f_width=20; $f_height=20; $logoUpload=false; list($widthI, $heightI, $type, $attr) = getimagesize($fileTempName); $imginfo = pathinfo($fileName); $imgExt=$imginfo["extension"]; if($imgExt!='png' && $imgExt!='x-png' && $imgExt!='jpg' && $imgExt!='jpeg' && $imgExt!='gif' && $imgExt!='bmp' && $imgExt!='PNG' && $imgExt!='JPG' && $imgExt!='JPEG' && $imgExt!='GIF' && $fileName!=''){ $error = "Allowed File Types : png, jpg, gif
Your File Type : ".$imgExt; }else{ $codeArr=imageUpload($fileName,$oldfileName,$fileSize,$fileTempName,$folderPath,$maxSize=20480000,$width,$height,$tFlag,$folderT,$widthT,$heightT,$f_width,$f_height,$logoUpload=false); $dataArray=array("technical_image2"=>$codeArr[1]); $fldArray=array("technical_id"=>$hidden_technical_id); dataUpdate($table,$dataArray,$fldArray); //redirect('show_technical.php'); } } redirect('show_technical.php'); /***********image upload*************/ } } else { if($technical_content=='') { $error= NO_DESC; } if($technical_title=='') { $error= NO_TITLE; } } } ?>
Edit Technical
Date Time
Title
Description show(); ?>
" height="100" width="100">

" height="100" width="100">

" height="100" width="100">
Upload Image1
Upload Image2
Upload Image3
Status