''); $fldArray = array("team_id" => $id); $orderArray=array(); $orderType=''; $arr=dataSelect($table,$dataArray,$fldArray,$extra="",$orderArray,$orderType); $team_status=$arr[0]['team_status']; $team_last_modified=$arr[0]['team_last_modified']; $team_title=$arr[0]['team_title']; $team_content=$arr[0]['team_content']; $team_status=$arr[0]['team_status']; $team_image=$arr[0]['team_image']; if($_POST['submit']=='Save') { $table=TABLE_TEAM; $hidden_team_id=$_REQUEST['hidden_team_id']; $team_status=trim(strip_tags($_POST['team_status'],ENT_QUOTES)); $team_last_modified=DATETIME; $team_title=trim(strip_tags($_POST['team_title'],ENT_QUOTES)); $team_content=dataPrepare($_REQUEST['team_content']); $team_stat=trim(strip_tags($_POST['team_status'],ENT_QUOTES)); if($team_status=='') { $team_status='Active'; } else { $team_status=$team_stat; } $dataArray = array("team_status"=>$team_status,"team_last_modified"=>$team_last_modified,"team_title"=>$team_title,"team_content"=>$team_content,"team_status"=>$team_status); if($team_title!='' && $team_content!='') { /*Edit*/ if($hidden_team_id!='') { $fldArray = array("team_id" => $hidden_team_id); dataUpdate($table,$dataArray,$fldArray); /***********image upload*************/ if($_FILES['team_image']['name']!='') { $error = ""; $msg = ""; $team_ID=base64_decode(base64_decode($_REQUEST['team_id'])); if($_REQUEST['hidden_file']!=''){ $fileElementName = 'team_image'; $hidden_file=$_REQUEST['hidden_file']; } $table=TABLE_TEAM; $oldfileName=$hidden_file; $fileName=$_FILES['team_image']['name']; $fileSize=filesize($_FILES['team_image']['tmp_name']); $fileTempName=$_FILES['team_image']['tmp_name']; $folderPath="../".TEAM_IMAGE_PATH; $folderPath_d="../".TEAM_DETAIL_IMAGE_PATH; $maxSize=20480000; $width=''; $height=''; $tFlag=11; $folderT=THUMB; $widthT=TEAM_THUMB_WIDTH; $heightT=TEAM_THUMB_HEIGHT; $widthT_d=TEAM_DETAIL_THUMB_WIDTH; $heightT_d=TEAM_DETAIL_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("team_image"=>$codeArr[1]); $fldArray=array("team_id"=>$hidden_team_id); dataUpdate($table,$dataArray,$fldArray); redirect('show_team.php'); } } redirect('show_team.php'); /***********image upload*************/ } } else { if($team_content=='') { $error= NO_DESC; } if($team_title=='') { $error= NO_TITLE; } } } ?>
Edit Team
Date Time
Title
Description show(); ?>
">
Upload Image
Status