<?php
// $Id: xoops_version.php,v 1.0 2010/12/20 17:00:10 yoshis Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS Cube Realty - Realty Management System               //
//                    Copyright (c) 2010 Bluemoon inc.                       //
//               auther Yoshi Sakai <http://www.bluemooninc.jp/>             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

// change 
$modversion['name'] = _MI_REALTY_NAME;
$modversion['dirname'] = "realty";

// All tables should not have any prefix!
$modversion['sqlfile']['mysql'] = "./sql/mysql.sql";


$modversion['description'] = $modversion['name'];
$modversion['version'] = "1.0";
$modversion['credits'] = "Bluemooon inc.";
$modversion['author'] = 'Yoshi sakai';
$modversion['help'] = "help.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/logo.png";

$modversion['hasMain'] = 1;
$modversion['sub'][1] = array('name' => _MI_REALTY_RECOMMENDS,    'url' => "index.php?listno=1");
$modversion['sub'][2] = array('name' => _MI_REALTY_NEWARRIVAL,    'url' => "index.php?listno=2");
$modversion['sub'][3] = array('name' => _MI_REALTY_NEWBUILD,      'url' => "index.php?listno=3");
$modversion['sub'][4] = array('name' => _MI_REALTY_PROMPT_REPORT, 'url' => "index.php?listno=4");

// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "menu.php";


$modversion['tables'][0]	= "realty_sale" ;
$modversion['tables'][1]	= "realty_detail" ;
$modversion['tables'][2]	= "realty_rent" ;
$modversion['tables'][3]	= "realty_stations" ;


$modversion['templates'][] = array(
	'file'        => 'realty_index.html',
	'description' => 'TOP'
);
$modversion['templates'][] = array(
	'file'        => 'realty_detail_index.html',
	'description' => 'Detail Index'
);
$modversion['templates'][] = array(
	'file'        => 'realty_detail.html',
	'description' => 'Detail Content'
);
$modversion['templates'][] = array(
	'file'        => 'realty_edit.html',
	'description' => 'Edit Detail'
);
/**
* 
*/
$modversion['config'][1] = array(
	'name' => 'per_page',
	'title' => '_MI_REALTY_PERPAGE',
	'description' => '',
	'formtype' => 'text',
	'valuetype' => 'int',
	'default' => 20
);
$modversion['config'][] = array(
	'name' => 'detail_space2nbsp',
	'title' => '_MI_REALTY_SPACE2NBSP',
	'description' => '',
	'formtype' => 'yesno',
	'valuetype' => 'int',
	'default' => 0
) ;
$modversion['config'][] = array(
	'name' => 'new_arrival_days',
	'title' => '_MI_REALTY_NEWARRIVALDAYS',
	'description' => '',
	'formtype' => 'text',
	'valuetype' => 'int',
	'default' => 30
);

/*
 * Blocks
 */
$modversion['blocks'][1]['file'] = "realty_blocks.php";
$modversion['blocks'][1]['name'] = _MI_REALTY_BNAME;
$modversion['blocks'][1]['description'] = _MI_REALTY_BNAMEDESC ;
$modversion['blocks'][1]['show_func'] = "realty_search";
$modversion['blocks'][1]['template'] = "realty_block_search.html";

$modversion['blocks'][2]['file'] = "realty_blocks.php";
$modversion['blocks'][2]['name'] = _MI_REALTY_INFO;
$modversion['blocks'][2]['description'] = "Shows count information of the realty";
$modversion['blocks'][2]['show_func'] = "realty_info";
$modversion['blocks'][2]['edit_func'] = "option_info";
$modversion['blocks'][2]['template'] = 'realty_block_info.html';
$modversion['blocks'][2]['options'] = "30|0";

$modversion['blocks'][3]['file'] = "realty_blocks.php";
$modversion['blocks'][3]['name'] = _MI_REALTY_RECOMMENDS;
$modversion['blocks'][3]['description'] = "Reccomends";
$modversion['blocks'][3]['show_func'] = "realty_show";
$modversion['blocks'][3]['edit_func'] = "option_listup";
$modversion['blocks'][3]['template'] = 'realty_blocks.html';
$modversion['blocks'][3]['options'] = "5|1|recommends";

$modversion['blocks'][4]['file'] = "realty_blocks.php";
$modversion['blocks'][4]['name'] = _MI_REALTY_NEWARRIVAL;
$modversion['blocks'][4]['description'] = "Shows update entry";
$modversion['blocks'][4]['show_func'] = "realty_show";
$modversion['blocks'][4]['edit_func'] = "option_listup";
$modversion['blocks'][4]['template'] = 'realty_blocks.html';
$modversion['blocks'][4]['options'] = "5|2|updated";

$modversion['blocks'][5]['file'] = "realty_blocks.php";
$modversion['blocks'][5]['name'] = _MI_REALTY_NEWBUILD;
$modversion['blocks'][5]['description'] = "Shows recent entry and bland new";
$modversion['blocks'][5]['show_func'] = "realty_show";
$modversion['blocks'][5]['edit_func'] = "option_listup";
$modversion['blocks'][5]['template'] = 'realty_blocks.html';
$modversion['blocks'][5]['options'] = "5|3|updated";

$modversion['blocks'][6]['file'] = "realty_blocks.php";
$modversion['blocks'][6]['name'] = _MI_REALTY_PROMPT_REPORT;
$modversion['blocks'][6]['description'] = "Prompt report";
$modversion['blocks'][6]['show_func'] = "realty_show";
$modversion['blocks'][6]['edit_func'] = "option_listup";
$modversion['blocks'][6]['template'] = 'realty_blocks.html';
$modversion['blocks'][6]['options'] = "4|4|prompt_report";

$modversion['blocks'][7]['file'] = "realty_blocks.php";
$modversion['blocks'][7]['name'] = _MI_REALTY_SWITCH;
$modversion['blocks'][7]['description'] = "Sale or Rent switch";
$modversion['blocks'][7]['show_func'] = "realty_switch";
$modversion['blocks'][7]['template'] = 'realty_block_switch.html';
?>