From 0b6204e5fbebb7dc14bfe47e598f53d241c21b97 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Tue, 27 May 2003 20:56:13 +0000 Subject: *** empty log message *** git-svn-id: http://piwigo.org/svn/trunk@19 68402e56-0260-453c-a942-63ccdbb3a9ee --- search.php | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'search.php') diff --git a/search.php b/search.php index 81d5d97f9..43f878ef9 100644 --- a/search.php +++ b/search.php @@ -52,19 +52,12 @@ if ( isset( $_POST['search'] ) ) } //----------------------------------------------------- template initialization $vtp = new VTemplate; -$handle = $vtp->Open( './template/default/search.vtp' ); -// language -$vtp->setGlobalVar( $handle, 'search_page_title',$lang['search_title'] ); -$vtp->setGlobalVar( $handle, 'search_title', $lang['search_title'] ); -$vtp->setGlobalVar( $handle, 'search_return_main_page', - $lang['search_return_main_page'] ); -$vtp->setGlobalVar( $handle, 'submit', $lang['submit'] ); -// user -$vtp->setGlobalVar( $handle, 'page_style', $user['style'] ); -// structure -$vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() ); -$vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() ); -$vtp->setGlobalVar( $handle, 'frame_end', get_frame_end() ); +$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 ); //----------------------------------------------------------------- form action $vtp->setGlobalVar( $handle, 'form_action', add_session_id( './search.php' ) ); //-------------------------------------------------------------- errors display @@ -82,7 +75,7 @@ if ( sizeof( $error ) != 0 ) //------------------------------------------------------------------------ form // search field $vtp->addSession( $handle, 'line' ); -$vtp->setVar( $handle, 'line.name', $lang['search_field_search'] ); +$vtp->setVar( $handle, 'line.name', $lang['search_field_search'].' *' ); $vtp->addSession( $handle, 'text' ); $vtp->setVar( $handle, 'text.size', '40' ); $vtp->setVar( $handle, 'text.name', 'search' ); -- cgit v1.2.3