Index: trunk/blocks/search_block.php
===================================================================
--- trunk/blocks/search_block.php	(revision 119)
+++ trunk/blocks/search_block.php	(revision 119)
@@ -0,0 +1,43 @@
+<?php
+if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
+$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+
+eval( '
+function b_'.$mydirname.'_search_show($options){
+	return _b_search_show($options) ;
+}
+function b_'.$mydirname.'_search_edit($options){
+	return _b_search_edit($options) ;
+}
+' ) ;	
+
+if( ! defined( 'XPRESS_SEARCH_BLOCK_INCLUDED' ) ) {
+	define( 'XPRESS_SEARCH_BLOCK_INCLUDED' , 1 ) ;
+
+	function _b_search_edit($options)
+	{
+		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
+		$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_search.html' : trim( $options[1] );
+		$disp_count = empty( $options[2] ) ? '18' : $options[2] ;
+		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname ;
+		
+		require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php') ;
+		
+		$form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />";
+		$form .= _MB_XPRESS_SEARCH_LENGTH .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />";
+//	    $form .="<br /><input type='text' size='60' name='options[2]' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />";
+
+		return $form;
+	}
+
+	function _b_search_show($options)
+	{
+		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
+		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
+		$block_function_name = basename( __FILE__ );
+		
+		require_once $mydirpath.'/include/xpress_block_render.php';
+		return xpress_block_render($mydirname,$block_function_name,$options);
+	}
+}
+?>
Index: trunk/include/xpress_templates_make.php
===================================================================
--- trunk/include/xpress_templates_make.php	(revision 118)
+++ trunk/include/xpress_templates_make.php	(revision 119)
@@ -81,4 +81,5 @@
 		'authors_block.html',
 		'page_block.html',
+		'search_block.html',
 		'index.html',
 	);
Index: trunk/language/ja_utf8/blocks.php
===================================================================
--- trunk/language/ja_utf8/blocks.php	(revision 118)
+++ trunk/language/ja_utf8/blocks.php	(revision 119)
@@ -55,5 +55,7 @@
 	define("_MB_XPRESS_MENU_ORDER","メニューオーダー");
 	define("_MB_XPRESS_SORT_COLUMN","並び順の項目");
-
+	
+// Search
+	define("_MB_XPRESS_SEARCH_LENGTH","検索BOXの長さ");
 }
 ?>
Index: trunk/language/ja_utf8/modinfo.php
===================================================================
--- trunk/language/ja_utf8/modinfo.php	(revision 118)
+++ trunk/language/ja_utf8/modinfo.php	(revision 119)
@@ -25,4 +25,5 @@
 	define("_MI_XPRESS_BLOCK_AUTHORS","投稿者");
 	define("_MI_XPRESS_BLOCK_PAGE","ページ");
+	define("_MI_XPRESS_BLOCK_SEARCH","検索");
 	
 	// Notify Categories
Index: trunk/templates/source/search_block.html
===================================================================
--- trunk/templates/source/search_block.html	(revision 119)
+++ trunk/templates/source/search_block.html	(revision 119)
@@ -0,0 +1,12 @@
+<{* **************************  usage ****************************
+ 	The template tag of the following list can be used. 
+		<{$block.err_message}> 					// When the block cannot be displayed, this outputs the reason. Please do not delete it.
+ 		<{$block.search}>						// Displays Search BOX
+   ************************* End of usage ************************ *}>
+<{* Start Template *}>
+<div class="xpress_block">
+	<div class="xpress_search_block">
+		<{$block.err_message}>
+		<{$block.search}>
+	</div>
+</div>
Index: trunk/wp-content/themes/xpress_default/blocks/block_style.css
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/block_style.css	(revision 118)
+++ trunk/wp-content/themes/xpress_default/blocks/block_style.css	(revision 119)
@@ -246,2 +246,7 @@
 
 }
+
+/*********** Search block    ***************/
+.xpress_search_block {
+
+}
Index: trunk/wp-content/themes/xpress_default/blocks/search_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/search_block_theme.php	(revision 119)
+++ trunk/wp-content/themes/xpress_default/blocks/search_block_theme.php	(revision 119)
@@ -0,0 +1,20 @@
+<?php
+
+function search_block($options)
+{
+	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_search.html' : trim( $options[1] );
+	$input_length = empty( $options[2] ) ? '18' : $options[1] ;
+	$mydirpath = get_xpress_dir_path();
+
+	$act_url = get_bloginfo('siteurl');
+	$output  = '<form method="get" id="searchform" action="' . $act_url . '">' ."\n";
+	$output .= '<input type="text" name="s" id="s" size="' . $input_length . '" />' ."\n";
+	$output .= '<input type="submit" id="searchsubmit" value="' . __('Search', 'xpress') . '" />' ."\n";
+	$output .= "</form>\n";
+
+	$block['search'] = $output;
+	return $block ;
+}
+
+?>
Index: trunk/xoops_version.php
===================================================================
--- trunk/xoops_version.php	(revision 118)
+++ trunk/xoops_version.php	(revision 119)
@@ -190,5 +190,15 @@
 	'func_num'		=> $b_no,	
 );
-
+$b_no++;
+$modversion['blocks'][$b_no] = array(
+	'file' 			=> 'search_block.php' ,
+	'name' 			=> constant('_MI_XPRESS_BLOCK_SEARCH') ,
+	'description'	=> '' ,
+	'show_func' 	=> "b_". $mydirname . "_search_show" ,
+	'edit_func' 	=> "b_". $mydirname . "_search_edit" ,
+	'options'		=> $mydirname. '||18' ,
+	'can_clone'		=> false ,
+	'func_num'		=> $b_no ,	
+);
 // Notification
 $modversion['hasNotification'] = 1;
