From: <txm...@us...> - 2013-04-02 21:18:42
|
Revision: 11338 http://sourceforge.net/p/xoops/svn/11338 Author: txmodxoops Date: 2013-04-02 21:18:36 +0000 (Tue, 02 Apr 2013) Log Message: ----------- Adding new module realestate Added Paths: ----------- XoopsModules/txmrealestate/ XoopsModules/txmrealestate/branches/ XoopsModules/txmrealestate/releases/ XoopsModules/txmrealestate/releases/1.0/ XoopsModules/txmrealestate/releases/1.0/realestate/ XoopsModules/txmrealestate/releases/1.0/realestate/admin/ XoopsModules/txmrealestate/releases/1.0/realestate/admin/about.php XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_footer.php XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_header.php XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.html XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.php XoopsModules/txmrealestate/releases/1.0/realestate/admin/menu.php XoopsModules/txmrealestate/releases/1.0/realestate/admin/realestatee.php XoopsModules/txmrealestate/releases/1.0/realestate/blocks/ XoopsModules/txmrealestate/releases/1.0/realestate/blocks/index.html XoopsModules/txmrealestate/releases/1.0/realestate/blocks/realestatee.php XoopsModules/txmrealestate/releases/1.0/realestate/class/ XoopsModules/txmrealestate/releases/1.0/realestate/class/index.html XoopsModules/txmrealestate/releases/1.0/realestate/class/realestate_realestatee.php XoopsModules/txmrealestate/releases/1.0/realestate/css/ XoopsModules/txmrealestate/releases/1.0/realestate/css/index.html XoopsModules/txmrealestate/releases/1.0/realestate/css/style.css XoopsModules/txmrealestate/releases/1.0/realestate/docs/ XoopsModules/txmrealestate/releases/1.0/realestate/docs/changelog.txt XoopsModules/txmrealestate/releases/1.0/realestate/docs/credits.txt XoopsModules/txmrealestate/releases/1.0/realestate/docs/index.html XoopsModules/txmrealestate/releases/1.0/realestate/docs/install.txt XoopsModules/txmrealestate/releases/1.0/realestate/docs/lang_diff.txt XoopsModules/txmrealestate/releases/1.0/realestate/docs/license.txt XoopsModules/txmrealestate/releases/1.0/realestate/docs/readme.txt XoopsModules/txmrealestate/releases/1.0/realestate/header.php XoopsModules/txmrealestate/releases/1.0/realestate/images/ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/arrow.gif XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/index.html XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/off.png XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/on.png XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/32/ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/32/index.html XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/index.html XoopsModules/txmrealestate/releases/1.0/realestate/images/index.html XoopsModules/txmrealestate/releases/1.0/realestate/images/realestate_logo.png XoopsModules/txmrealestate/releases/1.0/realestate/images/txmodxoops_logo.png XoopsModules/txmrealestate/releases/1.0/realestate/include/ XoopsModules/txmrealestate/releases/1.0/realestate/include/common.php XoopsModules/txmrealestate/releases/1.0/realestate/include/functions.php XoopsModules/txmrealestate/releases/1.0/realestate/include/index.html XoopsModules/txmrealestate/releases/1.0/realestate/include/install.php XoopsModules/txmrealestate/releases/1.0/realestate/include/waiting.plugin.php XoopsModules/txmrealestate/releases/1.0/realestate/index.php XoopsModules/txmrealestate/releases/1.0/realestate/language/ XoopsModules/txmrealestate/releases/1.0/realestate/language/english/ XoopsModules/txmrealestate/releases/1.0/realestate/language/english/admin.php XoopsModules/txmrealestate/releases/1.0/realestate/language/english/blocks.php XoopsModules/txmrealestate/releases/1.0/realestate/language/english/help/ XoopsModules/txmrealestate/releases/1.0/realestate/language/english/help/help.html XoopsModules/txmrealestate/releases/1.0/realestate/language/english/help/index.html XoopsModules/txmrealestate/releases/1.0/realestate/language/english/index.html XoopsModules/txmrealestate/releases/1.0/realestate/language/english/main.php XoopsModules/txmrealestate/releases/1.0/realestate/language/english/modinfo.php XoopsModules/txmrealestate/releases/1.0/realestate/language/index.html XoopsModules/txmrealestate/releases/1.0/realestate/realestatee.php XoopsModules/txmrealestate/releases/1.0/realestate/sql/ XoopsModules/txmrealestate/releases/1.0/realestate/sql/index.html XoopsModules/txmrealestate/releases/1.0/realestate/sql/mysql.sql XoopsModules/txmrealestate/releases/1.0/realestate/templates/ XoopsModules/txmrealestate/releases/1.0/realestate/templates/admin/ XoopsModules/txmrealestate/releases/1.0/realestate/templates/admin/index.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/admin/realestate_admin_about.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/admin/realestate_admin_help.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/blocks/ XoopsModules/txmrealestate/releases/1.0/realestate/templates/blocks/index.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/blocks/realestatee_block.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/index.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/realestate_footer.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/realestate_header.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/realestate_index.html XoopsModules/txmrealestate/releases/1.0/realestate/templates/realestate_realestatee.html XoopsModules/txmrealestate/releases/1.0/realestate/xoops_version.php XoopsModules/txmrealestate/trunk/ XoopsModules/txmrealestate/trunk/realestate/ XoopsModules/txmrealestate/trunk/realestate/admin/ XoopsModules/txmrealestate/trunk/realestate/admin/about.php XoopsModules/txmrealestate/trunk/realestate/admin/admin_footer.php XoopsModules/txmrealestate/trunk/realestate/admin/admin_header.php XoopsModules/txmrealestate/trunk/realestate/admin/index.html XoopsModules/txmrealestate/trunk/realestate/admin/index.php XoopsModules/txmrealestate/trunk/realestate/admin/menu.php XoopsModules/txmrealestate/trunk/realestate/admin/realestatee.php XoopsModules/txmrealestate/trunk/realestate/blocks/ XoopsModules/txmrealestate/trunk/realestate/blocks/index.html XoopsModules/txmrealestate/trunk/realestate/blocks/realestatee.php XoopsModules/txmrealestate/trunk/realestate/class/ XoopsModules/txmrealestate/trunk/realestate/class/index.html XoopsModules/txmrealestate/trunk/realestate/class/realestate_realestatee.php XoopsModules/txmrealestate/trunk/realestate/css/ XoopsModules/txmrealestate/trunk/realestate/css/index.html XoopsModules/txmrealestate/trunk/realestate/css/style.css XoopsModules/txmrealestate/trunk/realestate/docs/ XoopsModules/txmrealestate/trunk/realestate/docs/changelog.txt XoopsModules/txmrealestate/trunk/realestate/docs/credits.txt XoopsModules/txmrealestate/trunk/realestate/docs/index.html XoopsModules/txmrealestate/trunk/realestate/docs/install.txt XoopsModules/txmrealestate/trunk/realestate/docs/lang_diff.txt XoopsModules/txmrealestate/trunk/realestate/docs/license.txt XoopsModules/txmrealestate/trunk/realestate/docs/readme.txt XoopsModules/txmrealestate/trunk/realestate/header.php XoopsModules/txmrealestate/trunk/realestate/images/ XoopsModules/txmrealestate/trunk/realestate/images/icons/ XoopsModules/txmrealestate/trunk/realestate/images/icons/16/ XoopsModules/txmrealestate/trunk/realestate/images/icons/16/arrow.gif XoopsModules/txmrealestate/trunk/realestate/images/icons/16/index.html XoopsModules/txmrealestate/trunk/realestate/images/icons/16/off.png XoopsModules/txmrealestate/trunk/realestate/images/icons/16/on.png XoopsModules/txmrealestate/trunk/realestate/images/icons/32/ XoopsModules/txmrealestate/trunk/realestate/images/icons/32/index.html XoopsModules/txmrealestate/trunk/realestate/images/icons/index.html XoopsModules/txmrealestate/trunk/realestate/images/index.html XoopsModules/txmrealestate/trunk/realestate/images/realestate_logo.png XoopsModules/txmrealestate/trunk/realestate/images/txmodxoops_logo.png XoopsModules/txmrealestate/trunk/realestate/include/ XoopsModules/txmrealestate/trunk/realestate/include/common.php XoopsModules/txmrealestate/trunk/realestate/include/functions.php XoopsModules/txmrealestate/trunk/realestate/include/index.html XoopsModules/txmrealestate/trunk/realestate/include/install.php XoopsModules/txmrealestate/trunk/realestate/include/waiting.plugin.php XoopsModules/txmrealestate/trunk/realestate/index.php XoopsModules/txmrealestate/trunk/realestate/language/ XoopsModules/txmrealestate/trunk/realestate/language/english/ XoopsModules/txmrealestate/trunk/realestate/language/english/admin.php XoopsModules/txmrealestate/trunk/realestate/language/english/blocks.php XoopsModules/txmrealestate/trunk/realestate/language/english/help/ XoopsModules/txmrealestate/trunk/realestate/language/english/help/help.html XoopsModules/txmrealestate/trunk/realestate/language/english/help/index.html XoopsModules/txmrealestate/trunk/realestate/language/english/index.html XoopsModules/txmrealestate/trunk/realestate/language/english/main.php XoopsModules/txmrealestate/trunk/realestate/language/english/modinfo.php XoopsModules/txmrealestate/trunk/realestate/language/index.html XoopsModules/txmrealestate/trunk/realestate/realestatee.php XoopsModules/txmrealestate/trunk/realestate/sql/ XoopsModules/txmrealestate/trunk/realestate/sql/index.html XoopsModules/txmrealestate/trunk/realestate/sql/mysql.sql XoopsModules/txmrealestate/trunk/realestate/templates/ XoopsModules/txmrealestate/trunk/realestate/templates/admin/ XoopsModules/txmrealestate/trunk/realestate/templates/admin/index.html XoopsModules/txmrealestate/trunk/realestate/templates/admin/realestate_admin_about.html XoopsModules/txmrealestate/trunk/realestate/templates/admin/realestate_admin_help.html XoopsModules/txmrealestate/trunk/realestate/templates/blocks/ XoopsModules/txmrealestate/trunk/realestate/templates/blocks/index.html XoopsModules/txmrealestate/trunk/realestate/templates/blocks/realestatee_block.html XoopsModules/txmrealestate/trunk/realestate/templates/index.html XoopsModules/txmrealestate/trunk/realestate/templates/realestate_footer.html XoopsModules/txmrealestate/trunk/realestate/templates/realestate_header.html XoopsModules/txmrealestate/trunk/realestate/templates/realestate_index.html XoopsModules/txmrealestate/trunk/realestate/templates/realestate_realestatee.html XoopsModules/txmrealestate/trunk/realestate/xoops_version.php Added: XoopsModules/txmrealestate/releases/1.0/realestate/admin/about.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/admin/about.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/admin/about.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,26 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 about.php 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ + +include 'admin_header.php'; +echo $adminMenu->addNavigation('about.php'); +echo $adminMenu->renderabout('YDRUY5QZQHAHS', false); +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_footer.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_footer.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_footer.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,30 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 admin_footer.php 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ + +echo "<div align='center'><a href='http://www.xoops.org' title='Visit XOOPS' target='_blank'> + <img src='".$pathIcon32."/xoopsmicrobutton.gif' alt='XOOPS' /></a> + <a href='http://www.txmodxoops.org' title='Visit TXMod Xoops' rel='external'> + <img src='../images/txmodxoops_logo.png' alt='TXMod Xoops' /></a></div>"; +echo "<div class='center smallsmall italic pad5'> + <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_REALESTATE_MAINTAINEDBY." + <a href='http://xoops.org/forums/newbb' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>"; +xoops_cp_footer(); Added: XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_header.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_header.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/admin/admin_header.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,54 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 admin_header.php 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ +require_once dirname(dirname(dirname(dirname(__FILE__)))). '/include/cp_header.php'; +$thisdir = dirname(dirname(__FILE__)); +include_once $thisdir.'/include/common.php'; +include_once $thisdir.'/include/functions.php'; + +$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname'); + +$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); +$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); +//load handlers +$realestatesHandler =& xoops_getModuleHandler('realestate_realestates', $thisDirname); + +$myts =& MyTextSanitizer::getInstance(); +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +$xoopsTpl->assign('pathIcon16', $pathIcon16); +$xoopsTpl->assign('pathIcon32', $pathIcon32); +//Load languages +xoops_loadLanguage('admin', $thisDirname); +xoops_loadLanguage('modinfo', $thisDirname); +xoops_loadLanguage('main', $thisDirname); +// Local admin menu class +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); +}else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); +} +xoops_cp_header(); +$adminMenu = new ModuleAdmin(); \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/admin/index.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,34 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 index.php 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ + +include_once 'admin_header.php'; + //count "total real" + $count_real = $realestatesHandler->getCount(); + // InfoBox realestates + $adminMenu->addInfoBox(_AM_REALESTATE_STATISTICS); + // InfoBox real + $adminMenu->addInfoBoxLine(_AM_REALESTATE_STATISTICS, _AM_REALESTATE_THEREARE_REALESTATES, $count_real); + // Render Index + echo $adminMenu->addNavigation('index.php'); + echo $adminMenu->renderIndex(); +include_once 'admin_footer.php'; +?> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/admin/menu.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/admin/menu.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/admin/menu.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,42 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 menu.php 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ + +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathIcon32 = $moduleInfo->getInfo('icons32'); +$adminmenu = array(); +$i = 1; +$adminmenu[$i]['title'] = _MI_REALESTATE_ADMENU1; +$adminmenu[$i]['link'] = 'admin/index.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png'; +$i++; +$adminmenu[$i]['title'] = _MI_REALESTATE_ADMENU2; +$adminmenu[$i]['link'] = 'admin/realestates.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/travel.png'; +$i++; +$adminmenu[$i]["title"] = _MI_REALESTATE_ADMENU3; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; +unset( $i ); +?> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/admin/realestatee.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/admin/realestatee.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/admin/realestatee.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,179 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 realestatee.php 11338 Tue 2013/04/02 21:02:02Z Timgno $ + */ + +include_once 'admin_header.php'; +//It recovered the value of argument op in URL$ +$op = realestate_CleanVars($_REQUEST, 'op', 'list', 'string'); +echo $adminMenu->addNavigation('realestatee.php'); +switch ($op) +{ + case 'list': + default: + $adminMenu->addItemButton(_AM_REALESTATE_ADD_REALESTATEE, 'realestatee.php?op=new', 'add'); + echo $adminMenu->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort('real_id'); + $criteria->setOrder('ASC'); + $numrows = $realestateeHandler->getCount(); + $realestatee_arr = $realestateeHandler->getAll($criteria); + + // Table view + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_REALESTATE_REAL_NAME."</th> + <th class='center'>"._AM_REALESTATE_REAL_SQRMETERS."</th> + <th class='center'>"._AM_REALESTATE_REAL_TOILETTES."</th> + <th class='center'>"._AM_REALESTATE_REAL_BATHROOMS."</th> + <th class='center'>"._AM_REALESTATE_REAL_CITYID."</th> + <th class='center'>"._AM_REALESTATE_REAL_SALEPRICE."</th> + <th class='center'>"._AM_REALESTATE_REAL_RENTPRICE."</th> + <th class='center'>"._AM_REALESTATE_REAL_PROPERTYTYPE."</th> + <th class='center'>"._AM_REALESTATE_REAL_DESC."</th> + <th class='center'>"._AM_REALESTATE_REAL_INPUTDATE."</th> + <th class='center'>"._AM_REALESTATE_REAL_STATUS."</th> + <th class='center'>"._AM_REALESTATE_REAL_WAITING."</th> + <th class='center'>"._AM_REALESTATE_REAL_ONLINE."</th> + <th class='center width5'>"._AM_REALESTATE_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($realestatee_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_name'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_sqrmeters'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_toilettes'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_bathrooms'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_cityid'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_saleprice'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_rentprice'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_propertytype'))."</td>"; + echo "<td class='center'>".strip_tags($realestatee_arr[$i]->getVar('real_desc'))."</td>"; + echo "<td class='center'>".formatTimeStamp($realestatee_arr[$i]->getVar('real_inputdate'),"S")."</td>"; + echo "<td class='center'>".( ($realestatee_arr[$i]->getVar('real_status') == 1 ) ? _YES : _NO)."</td>"; + echo "<td class='center'>".( ($realestatee_arr[$i]->getVar('real_waiting') == 1 ) ? _YES : _NO)."</td>"; + echo "<td class='center'>".( ($realestatee_arr[$i]->getVar('real_online') == 1 ) ? _YES : _NO)."</td>"; + + echo "<td class='center width5'> + <a href='realestatee.php?op=edit&real_id=".$i."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='realestatee.php?op=delete&real_id=".$i."'><img src=".$pathIcon16."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br /><br />"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_REALESTATE_REAL_NAME."</th> + <th class='center'>"._AM_REALESTATE_REAL_SQRMETERS."</th> + <th class='center'>"._AM_REALESTATE_REAL_TOILETTES."</th> + <th class='center'>"._AM_REALESTATE_REAL_BATHROOMS."</th> + <th class='center'>"._AM_REALESTATE_REAL_CITYID."</th> + <th class='center'>"._AM_REALESTATE_REAL_SALEPRICE."</th> + <th class='center'>"._AM_REALESTATE_REAL_RENTPRICE."</th> + <th class='center'>"._AM_REALESTATE_REAL_PROPERTYTYPE."</th> + <th class='center'>"._AM_REALESTATE_REAL_DESC."</th> + <th class='center'>"._AM_REALESTATE_REAL_INPUTDATE."</th> + <th class='center'>"._AM_REALESTATE_REAL_STATUS."</th> + <th class='center'>"._AM_REALESTATE_REAL_WAITING."</th> + <th class='center'>"._AM_REALESTATE_REAL_ONLINE."</th> + <th class='center width5'>"._AM_REALESTATE_FORMACTION."</th> + </tr><tr><td class='errorMsg' colspan='14'>There are no real</td></tr>"; + echo "</table><br /><br />"; + } + + break; + + case 'new': + $adminMenu->addItemButton(_AM_REALESTATE_REALESTATEE_LIST, 'realestatee.php', 'list'); + echo $adminMenu->renderButton(); + + $obj =& $realestateeHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case 'save': + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('realestatee.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if (isset($_REQUEST['real_id'])) { + $obj =& $realestateeHandler->get($_REQUEST['real_id']); + } else { + $obj =& $realestateeHandler->create(); + } + + // Form save fields + $obj->setVar('real_name', $_REQUEST['real_name']); + $obj->setVar('real_sqrmeters', $_REQUEST['real_sqrmeters']); + $obj->setVar('real_toilettes', $_REQUEST['real_toilettes']); + $obj->setVar('real_bathrooms', $_REQUEST['real_bathrooms']); + $obj->setVar('real_cityid', $_REQUEST['real_cityid']); + $obj->setVar('real_saleprice', $_REQUEST['real_saleprice']); + $obj->setVar('real_rentprice', $_REQUEST['real_rentprice']); + $obj->setVar('real_propertytype', $_REQUEST['real_propertytype']); + $obj->setVar('real_desc', $_REQUEST['real_desc']); + $obj->setVar('real_inputdate', strtotime($_REQUEST['real_inputdate'])); + $obj->setVar('real_status', (($_REQUEST['real_status'] == 1) ? '1' : '0')); + $obj->setVar('real_waiting', (($_REQUEST['real_waiting'] == 1) ? '1' : '0')); + $obj->setVar('real_online', (($_REQUEST['real_online'] == 1) ? '1' : '0')); + + if ($realestateeHandler->insert($obj)) { + redirect_header('realestatee.php?op=list', 2, _AM_REALESTATE_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case 'edit': + $adminMenu->addItemButton(_AM_REALESTATE_ADD_REALESTATEE, 'realestatee.php?op=new', 'add'); + $adminMenu->addItemButton(_AM_REALESTATE_REALESTATEE_LIST, 'realestatee.php', 'list'); + echo $adminMenu->renderButton(); + $obj = $realestateeHandler->get($_REQUEST['real_id']); + $form = $obj->getForm(); + $form->display(); + break; + + case 'delete': + $obj =& $realestateeHandler->get($_REQUEST['real_id']); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('realestatee.php', 3, implode(', ', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($realestateeHandler->delete($obj)) { + redirect_header('realestatee.php', 3, _AM_REALESTATE_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array('ok' => 1, 'real_id' => $_REQUEST['real_id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_REALESTATE_FORMSUREDEL, $obj->getVar('real_id'))); + } + break; +} +include_once 'admin_footer.php'; +?> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/blocks/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/blocks/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/blocks/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/blocks/realestatee.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/blocks/realestatee.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/blocks/realestatee.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,95 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 realestatee.php 11338 Tue 2013/04/02 21:02:02Z Timgno $ + */ + +include_once XOOPS_ROOT_PATH.'/modules/realestate/include/functions.php'; +function b_realestate_realestatee_show($options) +{ + include_once XOOPS_ROOT_PATH.'/modules/realestate/class/realestate_realestatee.php'; + $myts =& MyTextSanitizer::getInstance(); + + $real = array(); + $type_block = $options[0]; + $nb_realestatee = $options[1]; + $lenght_title = $options[2]; + + $realestateeHandler =& xoops_getModuleHandler('realestate_realestatee', 'realestate'); + $criteria = new CriteriaCompo(); + array_shift($options); + array_shift($options); + array_shift($options); + + if ($type_block) + { + $criteria->add(new Criteria('real_id', 0, '!=')); + $criteria->setSort('real_id'); + $criteria->setOrder('ASC'); + } + + $criteria->setLimit($nb_realestatee); + $realestatee_arr = $realestateeHandler->getAll($criteria); + foreach (array_keys($realestatee_arr) as $i) + { + $real[$i]['real_id'] = $realestatee_arr[$i]->getVar('real_id'); + $real[$i]['real_name'] = $realestatee_arr[$i]->getVar('real_name'); + $real[$i]['real_sqrmeters'] = $realestatee_arr[$i]->getVar('real_sqrmeters'); + $real[$i]['real_toilettes'] = $realestatee_arr[$i]->getVar('real_toilettes'); + $real[$i]['real_bathrooms'] = $realestatee_arr[$i]->getVar('real_bathrooms'); + $real[$i]['real_cityid'] = $realestatee_arr[$i]->getVar('real_cityid'); + $real[$i]['real_saleprice'] = $realestatee_arr[$i]->getVar('real_saleprice'); + $real[$i]['real_rentprice'] = $realestatee_arr[$i]->getVar('real_rentprice'); + $real[$i]['real_propertytype'] = $realestatee_arr[$i]->getVar('real_propertytype'); + $real[$i]['real_desc'] = $realestatee_arr[$i]->getVar('real_desc'); + $real[$i]['real_inputdate'] = $realestatee_arr[$i]->getVar('real_inputdate'); + $real[$i]['real_status'] = $realestatee_arr[$i]->getVar('real_status'); + $real[$i]['real_waiting'] = $realestatee_arr[$i]->getVar('real_waiting'); + $real[$i]['real_online'] = $realestatee_arr[$i]->getVar('real_online'); + } + return $real; +} + +function b_realestate_realestatee_edit($options) +{ + include_once XOOPS_ROOT_PATH.'/modules/realestate/class/realestate_realestatee.php'; + + $form = _MB_REALESTATE_DISPLAY."\n"; + $form .= "<input type='hidden' name='options[0]' value='".$options[0]."' />"; + $form .= "<input name='options[1]' size='5' maxlength='255' value='".$options[1]."' type='text' /> <br />"; + $form .= _MB_REALESTATE_TITLELENGTH." : <input name='options[2]' size='5' maxlength='255' value='".$options[2]."' type='text' /><br /><br />"; + $realestateeHandler =& xoops_getModuleHandler('realestate_realestatee', 'realestate'); + $criteria = new CriteriaCompo(); + array_shift($options); + array_shift($options); + array_shift($options); + $criteria->add(new Criteria('real_id', 0, '!=')); + $criteria->setSort('real_id'); + $criteria->setOrder('ASC'); + $realestatee_arr = $realestateeHandler->getAll($criteria); + $form .= _MB_REALESTATE_CATTODISPLAY."<br /><select name='options[]' multiple='multiple' size='5'>"; + $form .= "<option value='0' " . (array_search(0, $options) === false ? "" : "selected='selected'") . ">" ._MB_REALESTATE_ALLCAT . "</option>"; + foreach (array_keys($realestatee_arr) as $i) { + $real_id = $realestatee_arr[$i]->getVar('real_id'); + $form .= "<option value='" . $real_id . "' " . (array_search($real_id, $options) === false ? "" : "selected='selected'") . ">".$realestatee_arr[$i]->getVar('real_title')."</option>"; + } + $form .= "</select>"; + return $form; +} +?> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/class/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/class/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/class/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/class/realestate_realestatee.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/class/realestate_realestatee.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/class/realestate_realestatee.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,121 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 realestate_realestatee.php 11338 Tue 2013/04/02 21:02:02Z Timgno $ + */ + +if (!defined('XOOPS_ROOT_PATH')) { + die("XOOPS root path not defined"); +} + +class realestate_realestatee extends XoopsObject +{ + //Constructor + function __construct() + { + $this->XoopsObject(); + $this->initVar('real_id', XOBJ_DTYPE_INT, null, false, 8); + $this->initVar('real_name', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('real_sqrmeters', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('real_toilettes', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('real_bathrooms', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('real_cityid', XOBJ_DTYPE_INT, null, false, 11); + $this->initVar('real_saleprice', XOBJ_DTYPE_DECIMAL, null, false); + $this->initVar('real_rentprice', XOBJ_DTYPE_DECIMAL, null, false); + $this->initVar('real_propertytype', XOBJ_DTYPE_INT, null, false, 11); + $this->initVar('real_desc', XOBJ_DTYPE_TXTAREA, null, false); + $this->initVar('real_inputdate', XOBJ_DTYPE_INT, null, false, 10); + $this->initVar('real_status', XOBJ_DTYPE_INT, null, false, 10); + $this->initVar('real_waiting', XOBJ_DTYPE_INT, null, false, 10); + $this->initVar('real_online', XOBJ_DTYPE_INT, null, false, 1); + + } + + function getForm($action = false) + { + global $xoopsDB, $xoopsModuleConfig; + + if ($action === false) { + $action = $_SERVER['REQUEST_URI']; + } + + $title = $this->isNew() ? sprintf(_AM_REALESTATE_REAL_ADD) : sprintf(_AM_REALESTATE_REAL_EDIT); + + include_once(XOOPS_ROOT_PATH.'/class/xoopsformloader.php'); + + $form = new XoopsThemeForm($title, 'form', $action, 'post', true); + $form->setExtra('enctype="multipart/form-data"'); + + // Real_name + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_NAME, 'real_name', 50, 255, $this->getVar('real_name')), true); + // Real_sqrmeters + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_SQRMETERS, 'real_sqrmeters', 50, 255, $this->getVar('real_sqrmeters')), false); + // Real_toilettes + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_TOILETTES, 'real_toilettes', 50, 255, $this->getVar('real_toilettes')), false); + // Real_bathrooms + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_BATHROOMS, 'real_bathrooms', 50, 255, $this->getVar('real_bathrooms')), false); + // Real_cityid + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_CITYID, 'real_cityid', 50, 255, $this->getVar('real_cityid')), false); + // Real_saleprice + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_SALEPRICE, 'real_saleprice', 50, 255, $this->getVar('real_saleprice')), false); + // Real_rentprice + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_RENTPRICE, 'real_rentprice', 50, 255, $this->getVar('real_rentprice')), false); + // Real_propertytype + $form->addElement(new XoopsFormText(_AM_REALESTATE_REAL_PROPERTYTYPE, 'real_propertytype', 50, 255, $this->getVar('real_propertytype')), false); + // Real_desc + $editor_configs = array(); + $editor_configs['name'] = 'real_desc'; + $editor_configs['value'] = $this->getVar('real_desc', 'e'); + $editor_configs['rows'] = 10; + $editor_configs['cols'] = 80; + $editor_configs['width'] = '100%'; + $editor_configs['height'] = '400px'; + $editor_configs['editor'] = $GLOBALS['xoopsModuleConfig']['realestate_editor']; + $form->addElement( new XoopsFormEditor(_AM_REALESTATE_REAL_DESC, 'real_desc', $editor_configs), true ); + // Real_inputdate + $form->addElement(new XoopsFormTextDateSelect(_AM_REALESTATE_REAL_INPUTDATE, 'real_inputdate', '', $this->getVar('real_inputdate'))); + // Real_status + $real_status = $this->isNew() ? 0 : $this->getVar('real_status'); + $check_real_status = new XoopsFormCheckBox(_AM_REALESTATE_REAL_STATUS, 'real_status', $real_status); + $check_real_status->addOption(1, " "); + $form->addElement($check_real_status); + // Real_waiting + $real_waiting = $this->isNew() ? 0 : $this->getVar('real_waiting'); + $check_real_waiting = new XoopsFormCheckBox(_AM_REALESTATE_REAL_WAITING, 'real_waiting', $real_waiting); + $check_real_waiting->addOption(1, " "); + $form->addElement($check_real_waiting); + // Real_online + $real_online = $this->isNew() ? 0 : $this->getVar('real_online'); + $check_real_online = new XoopsFormCheckBox(_AM_REALESTATE_REAL_ONLINE, 'real_online', $real_online); + $check_real_online->addOption(1, " "); + $form->addElement($check_real_online); + + $form->addElement(new XoopsFormHidden('op', 'save')); + $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); + return $form; + } +} +class realestaterealestate_realestateeHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, 'mod_realestate_realestatee', 'realestate_realestatee', 'real_id', 'real_name'); + } +} +?> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/css/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/css/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/css/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/css/style.css =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/css/style.css (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/css/style.css 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,59 @@ +@charset "UTF-8"; +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 style.css 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ + +table { + border: 1px solid #ccc; +} + +table.realestate { + margin: 0; + padding: 2px; +} + +td.fields { + font: Verdana, Tahoma; + font-size: 12px; + font-weight: normal; +} + +div { + margin: 2px; + padding: 2px; +} + +div.outer { + color: #555; + background-color: #eee; + border: 1px solid #ccc; +} + +ul > li { + display: inline; + list-style-type: none; + list-style-image: none; +} + +li.fields { + display: block; + list-style-type: none; + list-style-image: none; +} Added: XoopsModules/txmrealestate/releases/1.0/realestate/docs/changelog.txt =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/docs/changelog.txt (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/docs/changelog.txt 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,5 @@ + +==================================== + 2013/04/02 21:14:15 Version 1.0 +==================================== + - Original release realestate (TXMod Xoops) Added: XoopsModules/txmrealestate/releases/1.0/realestate/docs/credits.txt =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/docs/credits.txt (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/docs/credits.txt 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,10 @@ +Read Me First +============= + +Originally created by the TDM Team. + +Modified by Timgno (http://www.tdmxoops.net) + +Contributors: Mamba + +Included ideas for Logo Generator from Trabis (Publisher module) and Suin (Koins module) \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/docs/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/docs/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/docs/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/docs/install.txt =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/docs/install.txt (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/docs/install.txt 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,4 @@ +Read Me First +============= + +Install just like another XOOPS module \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/docs/lang_diff.txt =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/docs/lang_diff.txt (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/docs/lang_diff.txt 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/docs/license.txt =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/docs/license.txt (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/docs/license.txt 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,66 @@ +End User License Agreement for Xoops Modules + +IMPORTANT NOTICE Read and understand this License +Agreement carefully before installing and using this Software. +It contains extremely important information. + +BY USING THIS SOFTWARE IN ANY WAY YOU ACKNOWLEDGE +THAT YOU HAVE READ, UNDERSTAND AND AGREE TO THE +TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO +THESE TERMS, DO NOT USE THIS SOFTWARE IN ANY WAY, +AND PROMPTLY RETURN IT OR DELETE ANY COPIES OF +THIS SOFTWARE IN YOUR POSSESSION. + +LICENSE GRANT the copyright holder grants you a non-exclusive +license to use this software, and any associated documentation +("The Software"), as indicated herein. + +You may install and use the Software on two computers for your use +only. + +RESTRICTIONS You MAY NOT: (a) sell or distribute this Software +package without prior written approval (b) cause or permit reverse +engineering, disassembly, decompilation or alteration of this +Software; (c) remove any product identification, copyright notices, +or other notices or proprietary restrictions from this Software; + +TERM: This License is effective until terminated. You may terminate +it at any time by destroying the Software, together with all copies +thereof. This License will also terminate if you fail to comply with any +term or condition of this Agreement. Upon such termination, you +agree to destroy the Software, together with all copies thereof. + +COPYRIGHT/OWNERSHIP This Software and its source +code are proprietary products of Pablo Software Solutions +and are protected by copyright, trade secret and other intellectual +property laws. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, +OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +This software was created to be free of defects and is designed to +function on PC computers only. While this software has been tested +and proven to run accurately, in the unlikely event of any user or +computer incompatibility issues, the end user assumes complete +liability of usage. This software contains no adware, scumware or +spyware. The maker of this software does not support any +questionable forms of use where this software could be misused in +any way. + +http://www.txmodxoops.org +http://www.xoops.org Added: XoopsModules/txmrealestate/releases/1.0/realestate/docs/readme.txt =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/docs/readme.txt (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/docs/readme.txt 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/header.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/header.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/header.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,35 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 header.php 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ + +require_once dirname(dirname(dirname(__FILE__))) . '/mainfile.php'; +$dirname = $GLOBALS['xoopsModule']->getVar('dirname'); +$pathname = XOOPS_ROOT_PATH. '/modules/'.$dirname; +include_once $pathname . '/include/common.php'; +include_once $pathname . '/include/functions.php'; +$myts =& MyTextSanitizer::getInstance(); +$style = REALESTATE_URL . '/css/style.css'; +if(file_exists($style)) + { return true; } + +xoops_loadLanguage('modinfo', $dirname); +xoops_loadLanguage('main', $dirname); +?> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/arrow.gif =================================================================== (Binary files differ) Index: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/arrow.gif =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/arrow.gif 2013-04-02 18:37:21 UTC (rev 11337) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/arrow.gif 2013-04-02 21:18:36 UTC (rev 11338) Property changes on: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/arrow.gif ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/off.png =================================================================== (Binary files differ) Index: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/off.png =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/off.png 2013-04-02 18:37:21 UTC (rev 11337) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/off.png 2013-04-02 21:18:36 UTC (rev 11338) Property changes on: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/off.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/on.png =================================================================== (Binary files differ) Index: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/on.png =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/on.png 2013-04-02 18:37:21 UTC (rev 11337) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/on.png 2013-04-02 21:18:36 UTC (rev 11338) Property changes on: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/16/on.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/32/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/32/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/32/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/icons/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/index.html =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/index.html (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/index.html 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/realestate_logo.png =================================================================== (Binary files differ) Index: XoopsModules/txmrealestate/releases/1.0/realestate/images/realestate_logo.png =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/realestate_logo.png 2013-04-02 18:37:21 UTC (rev 11337) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/realestate_logo.png 2013-04-02 21:18:36 UTC (rev 11338) Property changes on: XoopsModules/txmrealestate/releases/1.0/realestate/images/realestate_logo.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/txmrealestate/releases/1.0/realestate/images/txmodxoops_logo.png =================================================================== (Binary files differ) Index: XoopsModules/txmrealestate/releases/1.0/realestate/images/txmodxoops_logo.png =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/images/txmodxoops_logo.png 2013-04-02 18:37:21 UTC (rev 11337) +++ XoopsModules/txmrealestate/releases/1.0/realestate/images/txmodxoops_logo.png 2013-04-02 21:18:36 UTC (rev 11338) Property changes on: XoopsModules/txmrealestate/releases/1.0/realestate/images/txmodxoops_logo.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/txmrealestate/releases/1.0/realestate/include/common.php =================================================================== --- XoopsModules/txmrealestate/releases/1.0/realestate/include/common.php (rev 0) +++ XoopsModules/txmrealestate/releases/1.0/realestate/include/common.php 2013-04-02 21:18:36 UTC (rev 11338) @@ -0,0 +1,39 @@ +<?php +/* + 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. +*/ +/** + * Realestate module for xoops + * + * @copyright The TXMod XOOPS Project http://sourceforge.net/projects/thmod/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GPL 2.0 or later + * @package Realestate + * @since 2.5.x + * @author TXMod Xoops <su...@tx...> - <http://www.txmodxoops.org> + * @version $Id: 1.0 common.php 11338 Tue 2013/04/02 21:14:15Z Timgno $ + */ + +if( ! defined( "XOOPS_ROOT_PATH" ) ) exit ; +if (!defined('REALESTATE_MODULE_PATH')) { + define('REALESTATE_DIRNAME', 'realestate'); + define('REALESTATE_PATH', XOOPS_ROOT_PATH.'/modules/'.REALESTATE_DIRNAME); + define('REALESTATE_URL', XOOPS_URL.'/modules/'.REALESTATE_DIRNAME); + define('REALESTATE_ADMIN', REALESTATE_URL . '/admin/index.php'); + $logo = REALESTATE_URL . '/images/txmodxoops_logo.png'; + if(file_exists($logo)){ + define('REALESTATE_AUTHOR_LOGOIMG', $logo); + } else { + define('REALESTATE_AUTHOR_LOGOIMG', X... [truncated message content] |