// 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 // // ------------------------------------------------------------------------ // include_once '../../mainfile.php'; $xoopsOption['template_main'] = 'yogurt_tribes.html'; include_once '../../header.php'; include_once 'class/yogurt_controler.php'; $controler = new YogurtControlerTribes($xoopsDB, $xoopsUser); /** * Fecthing numbers of tribes friends videos pictures etc... */ $nbSections = $controler->getNumbersSections(); $start_all = isset($_GET['start_all']) ? intval($_GET['start_all']) : 0; $start_my = isset($_GET['start_my']) ? intval($_GET['start_my']) : 0; /** * All Tribes */ $criteria_tribes = new criteria('tribe_id', 0, '>'); $nb_tribes = $controler->tribes_factory->getCount($criteria_tribes); $criteria_tribes->setLimit($xoopsModuleConfig['tribesperpage']); $criteria_tribes->setStart($start_all); $tribes = $controler->tribes_factory->getTribes($criteria_tribes); /**
// 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 // // ------------------------------------------------------------------------ // include_once '../../mainfile.php'; $xoopsOption['template_main'] = 'yogurt_tribes_results.html'; include_once '../../header.php'; include_once 'class/yogurt_controler.php'; $controler = new YogurtControlerTribes($xoopsDB, $xoopsUser); /** * Fecthing numbers of tribes friends videos pictures etc... */ $nbSections = $controler->getNumbersSections(); $start_all = isset($_GET['start_all']) ? intval($_GET['start_all']) : 0; $start_my = isset($_GET['start_my']) ? intval($_GET['start_my']) : 0; $tribe_keyword = trim(htmlspecialchars($_GET['tribe_keyword'])); /** * All Tribes */ $criteria_title = new criteria('tribe_title', '%' . $tribe_keyword . '%', 'LIKE'); $criteria_desc = new criteria('tribe_desc', '%' . $tribe_keyword . '%', 'LIKE'); $criteria_tribes = new CriteriaCompo($criteria_title); $criteria_tribes->add($criteria_desc, 'OR'); $nb_tribes = $controler->tribes_factory->getCount($criteria_tribes);