From 00ac0f8d3e45c4fa8b25c646c2b162742038849a Mon Sep 17 00:00:00 2001 From: gweltas Date: Sun, 18 Jan 2004 02:13:02 +0000 Subject: Conformity with the XHTML 1.0 transitional standard Creation of the following files : - template/default/header.php and template/default/footer.php to ensure a common standard - default.css to be CSS valid Obsolescence of the following files : - template/default/theme/conf.php - template/default/style.inc.php Custom galleries should reflect those changes. git-svn-id: http://piwigo.org/svn/branches/release-1_3@290 68402e56-0260-453c-a942-63ccdbb3a9ee --- search.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'search.php') diff --git a/search.php b/search.php index 21d5a5fca..96ec244ab 100644 --- a/search.php +++ b/search.php @@ -53,10 +53,14 @@ if ( isset( $_POST['search'] ) ) } } //----------------------------------------------------- template initialization -$vtp = new VTemplate; +// +// Start output of page +// +$title= $lang['search_title']; +include('include/page_header.php'); + $handle = $vtp->Open( './template/'.$user['template'].'/search.vtp' ); initialize_template(); - $tpl = array( 'search_title','search_return_main_page','submit', 'search_comments' ); templatize_array( $tpl, 'lang', $handle ); @@ -93,7 +97,7 @@ $vtp->addSession( $handle, 'radio' ); $vtp->setVar( $handle, 'radio.name', 'mode' ); $vtp->setVar( $handle, 'radio.value', 'OR' ); $vtp->setVar( $handle, 'radio.option', $lang['search_mode_or'] ); -if (isset($_POST['mode']) && ($_POST['mode'] == 'OR' or $_POST['mode'] == '' )) +if (!isset($_POST['mode']) || $_POST['mode'] == 'OR' ) { $vtp->setVar( $handle, 'radio.checked', ' checked="checked"' ); } @@ -117,6 +121,7 @@ $vtp->setGlobalVar( $handle, 'back_url', add_session_id( './category.php' ) ); $code = $vtp->Display( $handle, 0 ); echo $code; //------------------------------------------------------------ log informations -pwg_log( 'search', $page['title'] ); +pwg_log( 'search', $title ); mysql_close(); +include('include/page_tail.php'); ?> \ No newline at end of file -- cgit v1.2.3