''); $fldArray = array("dermatology_id" => $id); $orderArray=array(); $orderType=''; $arr=dataSelect($table,$dataArray,$fldArray,$extra="",$orderArray,$orderType); $dermatology_status=$arr[0]['dermatology_status']; $dermatology_last_modified=$arr[0]['dermatology_last_modified']; $dermatology_title=$arr[0]['dermatology_title']; $dermatology_content=$arr[0]['dermatology_content']; $dermatology_status=$arr[0]['dermatology_status']; $dermatology_image=$arr[0]['dermatology_image']; $dermatology_video=$arr[0]['dermatology_video']; $dermatology_category=$arr[0]['dermatology_category']; $dermatology_video_title=$arr[0]['dermatology_video_title']; if($_POST['submit']=='Save') { $table=TABLE_DERMATOLOGY; $hidden_dermatology_id=$_REQUEST['hidden_dermatology_id']; $dermatology_status=trim(strip_tags($_POST['dermatology_status'],ENT_QUOTES)); $dermatology_last_modified=DATETIME; $dermatology_title=trim(strip_tags($_POST['dermatology_title'],ENT_QUOTES)); $dermatology_content=dataPrepare($_REQUEST['dermatology_content']); $dermatology_stat=trim(strip_tags($_POST['dermatology_status'],ENT_QUOTES)); $dermatology_video=trim($_POST['dermatology_video']); $dermatology_video_title=trim(strip_tags($_POST['dermatology_video_title'],ENT_QUOTES)); $dermatology_category=$_POST['dermatology_category']; if($dermatology_status=='') { $dermatology_status='Active'; } else { $dermatology_status=$dermatology_stat; } $dataArray = array("dermatology_category"=>$dermatology_category,"dermatology_video_title"=>$dermatology_video_title,"dermatology_video"=>$dermatology_video,"dermatology_status"=>$dermatology_status,"dermatology_last_modified"=>$dermatology_last_modified,"dermatology_title"=>$dermatology_title,"dermatology_content"=>$dermatology_content,"dermatology_status"=>$dermatology_status); if($dermatology_video_title!='' && $dermatology_category!='') { /*Edit*/ if($hidden_dermatology_id!='') { $fldArray = array("dermatology_id" => $hidden_dermatology_id); dataUpdate($table,$dataArray,$fldArray); /***********image upload*************/ $error = ""; $msg = ""; $dermatology_ID=base64_decode(base64_decode($_REQUEST['dermatology_id'])); if($_REQUEST['hidden_file']!=''){ $fileElementName = 'dermatology_image'; $hidden_file=$_REQUEST['hidden_file']; } $table=TABLE_DERMATOLOGY; $oldfileName=$hidden_file; $fileName=$_FILES['dermatology_image']['name']; $fileSize=filesize($_FILES['dermatology_image']['tmp_name']); $fileTempName=$_FILES['dermatology_image']['tmp_name']; $folderPath="../".DERMATOLOGY_IMAGE_PATH; $maxSize=20480000; $width=''; $height=''; $tFlag=1; $folderT=THUMB; $widthT=DERMATOLOGY_THUMB_WIDTH; $heightT=DERMATOLOGY_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("dermatology_image"=>$codeArr[1]); $fldArray=array("dermatology_id"=>$dermatology_ID); dataUpdate($table,$dataArray,$fldArray); redirect('show_dermatology.php'); } redirect('show_dermatology.php'); /***********image upload*************/ } } else { if($dermatology_video_title=='') { $error ='Please enter title For Video.'; } if($dermatology_category=='') { $error='Select A Category'; } } } ?>
Edit Video
Sub category ''); $fldArray_select = array("page_parent" =>'7',"page_status!"=>'Deleted'); $orderArray_select=array(); $orderType_select=''; $arr_select=dataSelect($table_select,$dataArray_select,$fldArray_select,$extra_select="",$orderArray_select,$orderType_select); ?>
Video Title
Embed Code
Status