Intro Page Management

select ( "select * from intro where id=1" ); //$db->print_last_query(); $row = $db->get_row ( $res, 'MYSQL_BOTH' ); ?>
Phone Number
Twitter Link
Facebook Link
Google Plus Link
Other Link
Description BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. $sBasePath = $_SERVER ['PHP_SELF']; $sBasePath = substr ( $sBasePath, 0, strpos ( $sBasePath, "_samples" ) ); $oFCKeditor = new FCKeditor ( 'description' ); $oFCKeditor->BasePath = $sBasePath; $oFCKeditor->Width = '700px'; $oFCKeditor->Height = '200px'; $oFCKeditor->Value = stripslashes ( $row ['description'] ); $oFCKeditor->Create (); ?>
Footer BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. $sBasePath = $_SERVER ['PHP_SELF']; $sBasePath = substr ( $sBasePath, 0, strpos ( $sBasePath, "_samples" ) ); $oFCKeditor = new FCKeditor ( 'footer' ); $oFCKeditor->BasePath = $sBasePath; $oFCKeditor->Width = '700px'; $oFCKeditor->Height = '200px'; $oFCKeditor->Value = stripslashes ( $row ['footer'] ); $oFCKeditor->Create (); ?>
Image 1
Image 2
Image 3
Image 4
print_last_query(); } else { $image1 = $row ['image1']; } if ($_FILES ['image2'] ['name'] != "") { $temp_name = $_FILES ['image2'] ['tmp_name']; $file_name = time () . "_" . $_FILES ['image2'] ['name']; $imagesFolder = "../uploads/"; $file_path = $imagesFolder . $file_name; $result = move_uploaded_file ( $temp_name, $file_path ); chmod ( $file_path, 0777 ); $image2 = $file_name; //$db->print_last_query(); } else { $image2 = $row ['image2']; } if ($_FILES ['image3'] ['name'] != "") { $temp_name = $_FILES ['image3'] ['tmp_name']; $file_name = time () . "_" . $_FILES ['image3'] ['name']; $imagesFolder = "../uploads/"; $file_path = $imagesFolder . $file_name; $result = move_uploaded_file ( $temp_name, $file_path ); chmod ( $file_path, 0777 ); $image3 = $file_name; //$db->print_last_query(); } else { $image3 = $row ['image3']; } if ($_FILES ['image4'] ['name'] != "") { $temp_name = $_FILES ['image4'] ['tmp_name']; $file_name = time () . "_" . $_FILES ['image4'] ['name']; $imagesFolder = "../uploads/"; $file_path = $imagesFolder . $file_name; $result = move_uploaded_file ( $temp_name, $file_path ); chmod ( $file_path, 0777 ); $image4 = $file_name; //$db->print_last_query(); } else { $image4 = $row ['image4']; } $id = $db->update_sql ( "update `intro` set `phone`='" . $_POST ['phone'] . "',`twitter`='" . $_POST ['twitter'] . "',`facebook`='" . $_POST ['facebook'] . "',`googleplus`='" . $_POST ['googleplus'] . "',`skype`='" . $_POST ['skype'] . "',`description`='" . $_POST ['description'] . "',`footer`='" . $_POST ['footer'] . "',`image1`='" . $image1 . "',`image2`='" . $image2 . "',`image3`='" . $image3 . "',`image4`='" . $image4 . "' where id=1" ); //$db->print_last_query(); print ""; } ?>