From: <txm...@us...> - 2012-06-26 14:11:18
|
Revision: 9725 http://xoops.svn.sourceforge.net/xoops/?rev=9725&view=rev Author: txmodxoops Date: 2012-06-26 14:11:03 +0000 (Tue, 26 Jun 2012) Log Message: ----------- Added new versione 1.73 beta 1 Added Paths: ----------- XoopsModules/addresses/ XoopsModules/addresses/branches/ XoopsModules/addresses/branches/timgno/ XoopsModules/addresses/branches/timgno/addresses/ XoopsModules/addresses/branches/timgno/addresses/addr.php XoopsModules/addresses/branches/timgno/addresses/admin/ XoopsModules/addresses/branches/timgno/addresses/admin/about.php XoopsModules/addresses/branches/timgno/addresses/admin/addr.php XoopsModules/addresses/branches/timgno/addresses/admin/admin_footer.php XoopsModules/addresses/branches/timgno/addresses/admin/admin_header.php XoopsModules/addresses/branches/timgno/addresses/admin/broken.php XoopsModules/addresses/branches/timgno/addresses/admin/cat.php XoopsModules/addresses/branches/timgno/addresses/admin/index.html XoopsModules/addresses/branches/timgno/addresses/admin/index.php XoopsModules/addresses/branches/timgno/addresses/admin/menu.php XoopsModules/addresses/branches/timgno/addresses/admin/votedata.php XoopsModules/addresses/branches/timgno/addresses/blocks/ XoopsModules/addresses/branches/timgno/addresses/blocks/blocks_addr.php XoopsModules/addresses/branches/timgno/addresses/blocks/blocks_broken.php XoopsModules/addresses/branches/timgno/addresses/blocks/blocks_cat.php XoopsModules/addresses/branches/timgno/addresses/blocks/blocks_votedata.php XoopsModules/addresses/branches/timgno/addresses/blocks/index.html XoopsModules/addresses/branches/timgno/addresses/broken.php XoopsModules/addresses/branches/timgno/addresses/cat.php XoopsModules/addresses/branches/timgno/addresses/class/ XoopsModules/addresses/branches/timgno/addresses/class/addresses_addr.php XoopsModules/addresses/branches/timgno/addresses/class/addresses_broken.php XoopsModules/addresses/branches/timgno/addresses/class/addresses_cat.php XoopsModules/addresses/branches/timgno/addresses/class/addresses_votedata.php XoopsModules/addresses/branches/timgno/addresses/class/index.html XoopsModules/addresses/branches/timgno/addresses/css/ XoopsModules/addresses/branches/timgno/addresses/css/index.html XoopsModules/addresses/branches/timgno/addresses/docs/ XoopsModules/addresses/branches/timgno/addresses/docs/changelog.txt XoopsModules/addresses/branches/timgno/addresses/docs/credits.txt XoopsModules/addresses/branches/timgno/addresses/docs/index.html XoopsModules/addresses/branches/timgno/addresses/docs/install.txt XoopsModules/addresses/branches/timgno/addresses/docs/lang_diff.txt XoopsModules/addresses/branches/timgno/addresses/docs/licence.txt XoopsModules/addresses/branches/timgno/addresses/docs/readme.txt XoopsModules/addresses/branches/timgno/addresses/header.php XoopsModules/addresses/branches/timgno/addresses/images/ XoopsModules/addresses/branches/timgno/addresses/images/32/ XoopsModules/addresses/branches/timgno/addresses/images/32/addresses_add.png XoopsModules/addresses/branches/timgno/addresses/images/32/addresses_broken.png XoopsModules/addresses/branches/timgno/addresses/images/32/addresses_cat.png XoopsModules/addresses/branches/timgno/addresses/images/32/addresses_stats.png XoopsModules/addresses/branches/timgno/addresses/images/32/index.html XoopsModules/addresses/branches/timgno/addresses/images/addresses_slogo.png XoopsModules/addresses/branches/timgno/addresses/images/icons/ XoopsModules/addresses/branches/timgno/addresses/images/icons/index.html XoopsModules/addresses/branches/timgno/addresses/images/icons/off.png XoopsModules/addresses/branches/timgno/addresses/images/icons/on.png XoopsModules/addresses/branches/timgno/addresses/images/index.html XoopsModules/addresses/branches/timgno/addresses/images/menu/ XoopsModules/addresses/branches/timgno/addresses/images/menu/bg.png XoopsModules/addresses/branches/timgno/addresses/images/menu/index.html XoopsModules/addresses/branches/timgno/addresses/images/menu/left_both.png XoopsModules/addresses/branches/timgno/addresses/images/menu/right_both.png XoopsModules/addresses/branches/timgno/addresses/include/ XoopsModules/addresses/branches/timgno/addresses/include/config.php XoopsModules/addresses/branches/timgno/addresses/include/functions.php XoopsModules/addresses/branches/timgno/addresses/include/index.html XoopsModules/addresses/branches/timgno/addresses/include/install.php XoopsModules/addresses/branches/timgno/addresses/index.php XoopsModules/addresses/branches/timgno/addresses/language/ XoopsModules/addresses/branches/timgno/addresses/language/index.html XoopsModules/addresses/branches/timgno/addresses/language/italian/ XoopsModules/addresses/branches/timgno/addresses/language/italian/admin.php XoopsModules/addresses/branches/timgno/addresses/language/italian/blocks.php XoopsModules/addresses/branches/timgno/addresses/language/italian/help/ XoopsModules/addresses/branches/timgno/addresses/language/italian/help/help.html XoopsModules/addresses/branches/timgno/addresses/language/italian/help/index.html XoopsModules/addresses/branches/timgno/addresses/language/italian/index.html XoopsModules/addresses/branches/timgno/addresses/language/italian/main.php XoopsModules/addresses/branches/timgno/addresses/language/italian/modinfo.php XoopsModules/addresses/branches/timgno/addresses/sql/ XoopsModules/addresses/branches/timgno/addresses/sql/index.html XoopsModules/addresses/branches/timgno/addresses/sql/mysql.sql XoopsModules/addresses/branches/timgno/addresses/templates/ XoopsModules/addresses/branches/timgno/addresses/templates/addresses_addr.html XoopsModules/addresses/branches/timgno/addresses/templates/addresses_broken.html XoopsModules/addresses/branches/timgno/addresses/templates/addresses_cat.html XoopsModules/addresses/branches/timgno/addresses/templates/addresses_footer.html XoopsModules/addresses/branches/timgno/addresses/templates/addresses_header.html XoopsModules/addresses/branches/timgno/addresses/templates/addresses_index.html XoopsModules/addresses/branches/timgno/addresses/templates/addresses_votedata.html XoopsModules/addresses/branches/timgno/addresses/templates/admin/ XoopsModules/addresses/branches/timgno/addresses/templates/admin/addresses_admin_about.html XoopsModules/addresses/branches/timgno/addresses/templates/admin/addresses_admin_help.html XoopsModules/addresses/branches/timgno/addresses/templates/admin/index.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/ XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_addr_block_day.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_addr_block_random.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_addr_block_recent.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_broken_block_day.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_broken_block_random.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_broken_block_recent.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_cat_block_day.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_cat_block_random.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_cat_block_recent.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_votedata_block_day.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_votedata_block_random.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/addresses_votedata_block_recent.html XoopsModules/addresses/branches/timgno/addresses/templates/blocks/index.html XoopsModules/addresses/branches/timgno/addresses/templates/index.html XoopsModules/addresses/branches/timgno/addresses/votedata.php XoopsModules/addresses/branches/timgno/addresses/xoops_version.php XoopsModules/addresses/releases/ XoopsModules/addresses/trunk/ XoopsModules/addresses/trunk/addresses/ XoopsModules/addresses/trunk/addresses/CHANGES+HACK.txt XoopsModules/addresses/trunk/addresses/address_broken.php XoopsModules/addresses/trunk/addresses/address_mod.php XoopsModules/addresses/trunk/addresses/address_print.php XoopsModules/addresses/trunk/addresses/address_rate.php XoopsModules/addresses/trunk/addresses/address_single.php XoopsModules/addresses/trunk/addresses/address_submit.php XoopsModules/addresses/trunk/addresses/address_visit.php XoopsModules/addresses/trunk/addresses/addresses_google_maps.php XoopsModules/addresses/trunk/addresses/admin/ XoopsModules/addresses/trunk/addresses/admin/functions.php XoopsModules/addresses/trunk/addresses/admin/index.php XoopsModules/addresses/trunk/addresses/admin/menu.php XoopsModules/addresses/trunk/addresses/blocks/ XoopsModules/addresses/trunk/addresses/blocks/addresses_categories.php XoopsModules/addresses/trunk/addresses/blocks/addresses_top.php XoopsModules/addresses/trunk/addresses/blocks/index.html XoopsModules/addresses/trunk/addresses/cat_view.php XoopsModules/addresses/trunk/addresses/class.in_progress/ XoopsModules/addresses/trunk/addresses/class.in_progress/address.php XoopsModules/addresses/trunk/addresses/class.in_progress/category.php XoopsModules/addresses/trunk/addresses/comment_delete.php XoopsModules/addresses/trunk/addresses/comment_edit.php XoopsModules/addresses/trunk/addresses/comment_new.php XoopsModules/addresses/trunk/addresses/comment_post.php XoopsModules/addresses/trunk/addresses/comment_reply.php XoopsModules/addresses/trunk/addresses/config.php XoopsModules/addresses/trunk/addresses/google_maps_popup.php XoopsModules/addresses/trunk/addresses/header.php XoopsModules/addresses/trunk/addresses/images/ XoopsModules/addresses/trunk/addresses/images/MapIt.gif XoopsModules/addresses/trunk/addresses/images/addresses_slogo.png XoopsModules/addresses/trunk/addresses/images/arrow.gif XoopsModules/addresses/trunk/addresses/images/bg.png XoopsModules/addresses/trunk/addresses/images/button_edit.png XoopsModules/addresses/trunk/addresses/images/close12.gif XoopsModules/addresses/trunk/addresses/images/down.gif XoopsModules/addresses/trunk/addresses/images/editicon.gif XoopsModules/addresses/trunk/addresses/images/editicon.org.gif XoopsModules/addresses/trunk/addresses/images/home.gif XoopsModules/addresses/trunk/addresses/images/index.html XoopsModules/addresses/trunk/addresses/images/left_both.png XoopsModules/addresses/trunk/addresses/images/link.gif XoopsModules/addresses/trunk/addresses/images/loading.gif XoopsModules/addresses/trunk/addresses/images/logo.gif XoopsModules/addresses/trunk/addresses/images/map.gif XoopsModules/addresses/trunk/addresses/images/mm_20_black.png XoopsModules/addresses/trunk/addresses/images/mm_20_blue.png XoopsModules/addresses/trunk/addresses/images/mm_20_gray.png XoopsModules/addresses/trunk/addresses/images/mm_20_green.png XoopsModules/addresses/trunk/addresses/images/mm_20_red.png XoopsModules/addresses/trunk/addresses/images/mm_20_shadow.png XoopsModules/addresses/trunk/addresses/images/mm_20_white.png XoopsModules/addresses/trunk/addresses/images/mm_20_yellow.png XoopsModules/addresses/trunk/addresses/images/newred.gif XoopsModules/addresses/trunk/addresses/images/open12.gif XoopsModules/addresses/trunk/addresses/images/pop.gif XoopsModules/addresses/trunk/addresses/images/right_both.png XoopsModules/addresses/trunk/addresses/images/shots/ XoopsModules/addresses/trunk/addresses/images/shots/01banner.jpg XoopsModules/addresses/trunk/addresses/images/shots/index.html XoopsModules/addresses/trunk/addresses/images/up.gif XoopsModules/addresses/trunk/addresses/images/update.gif XoopsModules/addresses/trunk/addresses/include/ XoopsModules/addresses/trunk/addresses/include/comment_functions.php XoopsModules/addresses/trunk/addresses/include/functions.php XoopsModules/addresses/trunk/addresses/include/index.html XoopsModules/addresses/trunk/addresses/include/notification.inc.php XoopsModules/addresses/trunk/addresses/include/search.inc.php XoopsModules/addresses/trunk/addresses/index.php XoopsModules/addresses/trunk/addresses/language/ XoopsModules/addresses/trunk/addresses/language/english/ XoopsModules/addresses/trunk/addresses/language/english/admin.php XoopsModules/addresses/trunk/addresses/language/english/blocks.php XoopsModules/addresses/trunk/addresses/language/english/index.html XoopsModules/addresses/trunk/addresses/language/english/mail_template/ XoopsModules/addresses/trunk/addresses/language/english/mail_template/category_linksubmit_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/mail_template/category_newlink_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/mail_template/global_linkbroken_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/mail_template/global_linkmodify_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/mail_template/global_linksubmit_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/mail_template/global_newlink_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/mail_template/link_approve_notify.tpl XoopsModules/addresses/trunk/addresses/language/english/main.php XoopsModules/addresses/trunk/addresses/language/english/modinfo.php XoopsModules/addresses/trunk/addresses/language/index.html XoopsModules/addresses/trunk/addresses/language/italian/ XoopsModules/addresses/trunk/addresses/language/italian/admin.php XoopsModules/addresses/trunk/addresses/language/italian/blocks.php XoopsModules/addresses/trunk/addresses/language/italian/index.html XoopsModules/addresses/trunk/addresses/language/italian/mail_template/ XoopsModules/addresses/trunk/addresses/language/italian/mail_template/category_linksubmit_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/mail_template/category_newlink_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/mail_template/global_linkbroken_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/mail_template/global_linkmodify_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/mail_template/global_linksubmit_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/mail_template/global_newcategory_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/mail_template/global_newlink_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/mail_template/link_approve_notify.tpl XoopsModules/addresses/trunk/addresses/language/italian/main.php XoopsModules/addresses/trunk/addresses/language/italian/modinfo.php XoopsModules/addresses/trunk/addresses/myheader.php XoopsModules/addresses/trunk/addresses/notification_update.php XoopsModules/addresses/trunk/addresses/sql/ XoopsModules/addresses/trunk/addresses/sql/index.html XoopsModules/addresses/trunk/addresses/sql/mysql.sql XoopsModules/addresses/trunk/addresses/templates/ XoopsModules/addresses/trunk/addresses/templates/addresses_address.html XoopsModules/addresses/trunk/addresses/templates/addresses_brokenaddress.html XoopsModules/addresses/trunk/addresses/templates/addresses_google_maps.html XoopsModules/addresses/trunk/addresses/templates/addresses_index.html XoopsModules/addresses/trunk/addresses/templates/addresses_javascript.js XoopsModules/addresses/trunk/addresses/templates/addresses_link.html XoopsModules/addresses/trunk/addresses/templates/addresses_modaddress.html XoopsModules/addresses/trunk/addresses/templates/addresses_print.html XoopsModules/addresses/trunk/addresses/templates/addresses_rateaddress.html XoopsModules/addresses/trunk/addresses/templates/addresses_singleaddress.html XoopsModules/addresses/trunk/addresses/templates/addresses_submit.html XoopsModules/addresses/trunk/addresses/templates/addresses_topten.html XoopsModules/addresses/trunk/addresses/templates/addresses_viewaddress.html XoopsModules/addresses/trunk/addresses/templates/addresses_viewcat.html XoopsModules/addresses/trunk/addresses/templates/addresses_visitaddress.html XoopsModules/addresses/trunk/addresses/templates/blocks/ XoopsModules/addresses/trunk/addresses/templates/blocks/addresses_block_categories.html XoopsModules/addresses/trunk/addresses/templates/blocks/addresses_block_new.html XoopsModules/addresses/trunk/addresses/templates/blocks/addresses_block_top.html XoopsModules/addresses/trunk/addresses/templates/blocks/index.html XoopsModules/addresses/trunk/addresses/templates/index.html XoopsModules/addresses/trunk/addresses/test.php XoopsModules/addresses/trunk/addresses/topten.php XoopsModules/addresses/trunk/addresses/xoops_version.php Property changes on: XoopsModules/addresses/branches ___________________________________________________________________ Added: svn:ignore + timgno Added: XoopsModules/addresses/branches/timgno/addresses/addr.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/addr.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/addr.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,49 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ + +include_once "header.php"; +$xoopsOption['template_main'] = 'addresses_addr.html'; +include_once XOOPS_ROOT_PATH."/header.php"; +//keywords +xoops_meta_keywords($GLOBALS['xoopsModuleConfig']['keywords']); +//description +xoops_meta_description(_MD_ADDRESSES_DESC); +// +$xoopsTpl->assign('xoops_mpageurl', ADDRESSES_URL."/addr.php"); +$xoopsTpl->assign('addresses_url', ADDRESSES_URL); +$xoopsTpl->assign('adv', $GLOBALS['xoopsModuleConfig']['advertise']); +// +$xoopsTpl->assign('barsocials', $GLOBALS['xoopsModuleConfig']['barsocials']); +$xoopsTpl->assign('fbcomments', $GLOBALS['xoopsModuleConfig']['fbcomments']); +// +$xoopsTpl->assign('copyright', $mod_copyright); +// +include_once XOOPS_ROOT_PATH."/footer.php"; +?> \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/about.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/about.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/about.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,34 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +echo $adminMenu->addNavigation("about.php"); +echo $adminMenu->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/addr.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/addr.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/addr.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,263 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +//It recovered the value of argument op in URL$ +$op = addresses_CleanVars($_REQUEST, 'op', 'list', 'string'); +switch ($op) +{ + case "list": + default: + echo $adminMenu->addNavigation('addr.php'); + $adminMenu->addItemButton(_AM_ADDRESSES_NEWADDR, 'addr.php?op=new_addr', 'add'); + echo $adminMenu->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("addr_id"); + $criteria->setOrder("ASC"); + $numrows = $addrHandler->getCount(); + $addr_arr = $addrHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_ADDRESSES_ADDR_CID."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_TITLE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_URL."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_ADDRESS."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_ZIP."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_CITY."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_COUNTRY."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_LONG."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_LAT."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_ZOOM."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_PHONE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_MOBILE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_FAX."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_CONTEMAIL."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_OPENTIME."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_LOGOURL."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_SUBMITTER."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_STATUS."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_DATE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_HITS."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_RATING."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_VOTES."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_COMMENTS."</th> + <th align='center' width='10%'>"._AM_ADDRESSES_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($addr_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + $cat =& $catHandler->get($addr_arr[$i]->getVar("addr_cid")); + $title_cat = $cat->getVar("cat_pid"); + echo "<td class='center'>".$title_cat."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_title")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_description")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_url")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_address")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_zip")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_city")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_country")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_long")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_lat")."</td>"; + + $verif_addr_zoom = ( $addr_arr[$i]->getVar("addr_zoom") == 1 ) ? _YES : _NO; + echo "<td class='center'>".$verif_addr_zoom."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_phone")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_mobile")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_fax")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_contemail")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_opentime")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_logourl")."</td>"; + echo "<td class='center'>".XoopsUser::getUnameFromId($addr_arr[$i]->getVar("addr_submitter"),"S")."</td>"; + + $verif_addr_status = ( $addr_arr[$i]->getVar("addr_status") == 1 ) ? _YES : _NO; + echo "<td class='center'>".$verif_addr_status."</td>"; + echo "<td class='center'>".formatTimeStamp($addr_arr[$i]->getVar("addr_date"),"S")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_hits")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_rating")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_votes")."</td>"; + echo "<td class='center'>".$addr_arr[$i]->getVar("addr_comments")."</td>"; + + echo "<td align='center' width='10%'> + <a href='addr.php?op=edit_addr&addr_id=".$addr_arr[$i]->getVar("addr_id")."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='addr.php?op=delete_addr&addr_id=".$addr_arr[$i]->getVar("addr_id")."'><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_ADDRESSES_ADDR_CID."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_TITLE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_URL."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_ADDRESS."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_ZIP."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_CITY."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_COUNTRY."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_LONG."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_LAT."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_ZOOM."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_PHONE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_MOBILE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_FAX."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_CONTEMAIL."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_OPENTIME."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_LOGOURL."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_SUBMITTER."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_STATUS."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_DATE."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_HITS."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_RATING."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_VOTES."</th> + <th class='center'>"._AM_ADDRESSES_ADDR_COMMENTS."</th> + <th align='center' width='10%'>"._AM_ADDRESSES_FORMACTION."</th> + </tr><tr class='errorMsg'><td colspan='24'>No Address</td></tr>"; + echo "</table><br /><br />"; + } + + break; + + case "new_addr": + echo $adminMenu->addNavigation("addr.php"); + $adminMenu->addItemButton(_AM_ADDRESSES_ADDRLIST, 'addr.php?op=list', 'list'); + echo $adminMenu->renderButton(); + + $obj =& $addrHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_addr": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("addr.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["addr_id"])) { + $obj =& $addrHandler->get($_REQUEST["addr_id"]); + } else { + $obj =& $addrHandler->create(); + } + + //Form addr_cid + $obj->setVar("addr_cid", $_REQUEST["addr_cid"]); + //Form addr_title + $obj->setVar("addr_title", $_REQUEST["addr_title"]); + //Form addr_description + $obj->setVar("addr_description", $_REQUEST["addr_description"]); + //Form addr_url + $obj->setVar("addr_url", $_REQUEST["addr_url"]); + //Form addr_address + $obj->setVar("addr_address", $_REQUEST["addr_address"]); + //Form addr_zip + $obj->setVar("addr_zip", $_REQUEST["addr_zip"]); + //Form addr_city + $obj->setVar("addr_city", $_REQUEST["addr_city"]); + //Form addr_country + $obj->setVar("addr_country", $_REQUEST["addr_country"]); + //Form addr_long + $obj->setVar("addr_long", $_REQUEST["addr_long"]); + //Form addr_lat + $obj->setVar("addr_lat", $_REQUEST["addr_lat"]); + //Form addr_zoom + $verif_addr_zoom = ($_REQUEST["addr_zoom"] == 1) ? "1" : "0"; + $obj->setVar("addr_zoom", $verif_addr_zoom); + //Form addr_phone + $obj->setVar("addr_phone", $_REQUEST["addr_phone"]); + //Form addr_mobile + $obj->setVar("addr_mobile", $_REQUEST["addr_mobile"]); + //Form addr_fax + $obj->setVar("addr_fax", $_REQUEST["addr_fax"]); + //Form addr_contemail + $obj->setVar("addr_contemail", $_REQUEST["addr_contemail"]); + //Form addr_opentime + $obj->setVar("addr_opentime", $_REQUEST["addr_opentime"]); + //Form addr_logourl + $obj->setVar("addr_logourl", $_REQUEST["addr_logourl"]); + //Form addr_submitter + $obj->setVar("addr_submitter", $_REQUEST["addr_submitter"]); + //Form addr_status + $verif_addr_status = ($_REQUEST["addr_status"] == 1) ? "1" : "0"; + $obj->setVar("addr_status", $verif_addr_status); + //Form addr_date + $obj->setVar("addr_date", strtotime($_REQUEST["addr_date"])); + //Form addr_hits + $obj->setVar("addr_hits", $_REQUEST["addr_hits"]); + //Form addr_rating + $obj->setVar("addr_rating", $_REQUEST["addr_rating"]); + //Form addr_votes + $obj->setVar("addr_votes", $_REQUEST["addr_votes"]); + //Form addr_comments + $obj->setVar("addr_comments", $_REQUEST["addr_comments"]); + + + if ($addrHandler->insert($obj)) { + redirect_header("addr.php?op=list", 2, _AM_ADDRESSES_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_addr": + echo $adminMenu->addNavigation("addr.php"); + $adminMenu->addItemButton(_AM_ADDRESSES_NEWADDR, 'addr.php?op=new_addr', 'add'); + $adminMenu->addItemButton(_AM_ADDRESSES_ADDRLIST, 'addr.php?op=list', 'list'); + echo $adminMenu->renderButton(); + $obj = $addrHandler->get($_REQUEST["addr_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_addr": + $obj =& $addrHandler->get($_REQUEST["addr_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("addr.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($addrHandler->delete($obj)) { + redirect_header("addr.php", 3, _AM_ADDRESSES_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "addr_id" => $_REQUEST["addr_id"], "op" => "delete_addr"), $_SERVER["REQUEST_URI"], sprintf(_AM_ADDRESSES_FORMSUREDEL, $obj->getVar("addr"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/admin_footer.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/admin_footer.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/admin_footer.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,36 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ + +echo "<div align='center'><a href='http://www.xoops.org' target='_blank'> + <img src='".$pathIcon32."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>"; +echo "<div class='center smallsmall italic pad5'> + <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_ADDRESSES_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); Added: XoopsModules/addresses/branches/timgno/addresses/admin/admin_header.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/admin_header.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/admin_header.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,65 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_header.php'; +include_once '../include/config.php'; +include_once '../include/functions.php'; + +$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname'); + +$pathIcon16 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); +$pathIcon32 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); +$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); +//load handlers +$brokenHandler =& xoops_getModuleHandler('addresses_broken', $thisDirname); +$catHandler =& xoops_getModuleHandler('addresses_cat', $thisDirname); +$addrHandler =& xoops_getModuleHandler('addresses_addr', $thisDirname); +$votedataHandler =& xoops_getModuleHandler('addresses_votedata', $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); +// Locad 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/addresses/branches/timgno/addresses/admin/broken.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/broken.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/broken.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,121 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +//It recovered the value of argument op in URL$ +$op = addresses_CleanVars($_REQUEST, 'op', 'list', 'string'); +switch ($op) +{ + case "list": + default: + echo $adminMenu->addNavigation('broken.php'); + $adminMenu->addItemButton(_AM_ADDRESSES_NEWADDR, 'addr.php?op=new_addr', 'add'); + echo $adminMenu->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("broken_id"); + $criteria->setOrder("ASC"); + $numrows = $brokenHandler->getCount(); + $broken_arr = $brokenHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_ADDRESSES_BROKEN_AID."</th> + <th class='center'>"._AM_ADDRESSES_BROKEN_SENDER."</th> + <th class='center'>"._AM_ADDRESSES_BROKEN_IP."</th> + <th align='center' width='10%'>"._AM_ADDRESSES_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($broken_arr) as $i) + { + if ( $broken_arr[$i]->getVar("topic_pid") == 0) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + + $addr =& $addrHandler->get($broken_arr[$i]->getVar("broken_aid")); + $title_addr = $addr->getVar("addr_cid"); + echo "<td class='center'>".$title_addr."</td>"; + echo "<td class='center'>".XoopsUser::getUnameFromId($broken_arr[$i]->getVar("broken_sender"),"S")."</td>"; + echo "<td class='center'>".$broken_arr[$i]->getVar("broken_ip")."</td>"; + + echo "<td align='center' width='10%'> + <a href='broken.php?op=edit_broken&broken_id=".$broken_arr[$i]->getVar("broken_id")."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='broken.php?op=delete_broken&broken_id=".$broken_arr[$i]->getVar("broken_id")."'><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_ADDRESSES_BROKEN_AID."</th> + <th class='center'>"._AM_ADDRESSES_BROKEN_SENDER."</th> + <th class='center'>"._AM_ADDRESSES_BROKEN_IP."</th> + <th align='center' width='10%'>"._AM_ADDRESSES_FORMACTION."</th> + </tr><tr class='errorMsg'><td colspan='4'>No Broken</td></tr>"; + echo "</table><br /><br />"; + } + + break; + + case "edit_broken": + echo $adminMenu->addNavigation("broken.php"); + $adminMenu->addItemButton(_AM_ADDRESSES_NEWBROKEN, 'addr.php?op=new_addr', 'add'); + $adminMenu->addItemButton(_AM_ADDRESSES_BROKENLIST, 'broken.php?op=list', 'list'); + echo $adminMenu->renderButton(); + $obj = $brokenHandler->get($_REQUEST["broken_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_broken": + $obj =& $brokenHandler->get($_REQUEST["broken_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("broken.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($brokenHandler->delete($obj)) { + redirect_header("broken.php", 3, _AM_ADDRESSES_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "broken_id" => $_REQUEST["broken_id"], "op" => "delete_broken"), $_SERVER["REQUEST_URI"], sprintf(_AM_ADDRESSES_FORMSUREDEL, $obj->getVar("broken"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/cat.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/cat.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/cat.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,169 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +//It recovered the value of argument op in URL$ +$op = addresses_CleanVars($_REQUEST, 'op', 'list', 'string'); +switch ($op) +{ + case "list": + default: + echo $adminMenu->addNavigation('cat.php'); + $adminMenu->addItemButton(_AM_ADDRESSES_CATLIST, 'cat.php?op=list', 'list'); + $adminMenu->addItemButton(_AM_ADDRESSES_NEWCAT, 'cat.php?op=new_cat', 'add'); + echo $adminMenu->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("cat_id"); + $criteria->setOrder("ASC"); + $numrows = $catHandler->getCount(); + $cat_arr = $catHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_ADDRESSES_CAT_PID."</th> + <th class='center'>"._AM_ADDRESSES_CAT_TITLE."</th> + <th class='center'>"._AM_ADDRESSES_CAT_DESCRIPTION."</th> + <th class='center'>"._AM_ADDRESSES_CAT_IMGURL."</th> + <th class='center'>"._AM_ADDRESSES_CAT_SHOW_MAP."</th> + <th align='center' width='10%'>"._AM_ADDRESSES_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($cat_arr) as $i) + { + if ( $cat_arr[$i]->getVar("topic_pid") == 0) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td class='center'>".$cat_arr[$i]->getVar("cat_pid")."</td>"; + echo "<td class='center'>".$cat_arr[$i]->getVar("cat_title")."</td>"; + echo "<td class='center'>".$cat_arr[$i]->getVar("cat_description")."</td>"; + echo "<td class='center'>".$cat_arr[$i]->getVar("cat_imgurl")."</td>"; + + $verif_cat_show_map = ( $cat_arr[$i]->getVar("cat_show_map") == 1 ) ? _YES : _NO; + echo "<td class='center'>".$verif_cat_show_map."</td>"; + + echo "<td align='center' width='10%'> + <a href='cat.php?op=edit_cat&cat_id=".$cat_arr[$i]->getVar("cat_id")."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='cat.php?op=delete_cat&cat_id=".$cat_arr[$i]->getVar("cat_id")."'><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_ADDRESSES_CAT_PID."</th> + <th class='center'>"._AM_ADDRESSES_CAT_TITLE."</th> + <th class='center'>"._AM_ADDRESSES_CAT_DESCRIPTION."</th> + <th class='center'>"._AM_ADDRESSES_CAT_IMGURL."</th> + <th class='center'>"._AM_ADDRESSES_CAT_SHOW_MAP."</th> + <th align='center' width='10%'>"._AM_ADDRESSES_FORMACTION."</th> + </tr><tr class='errorMsg'><td colspan='6'>No Broken</td></tr>"; + echo "</table><br /><br />"; + } + + break; + + case "new_cat": + echo $adminMenu->addNavigation("cat.php"); + $adminMenu->addItemButton(_AM_ADDRESSES_CATLIST, 'cat.php?op=list', 'list'); + echo $adminMenu->renderButton(); + + $obj =& $catHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_cat": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("cat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["cat_id"])) { + $obj =& $catHandler->get($_REQUEST["cat_id"]); + } else { + $obj =& $catHandler->create(); + } + + //Form cat_pid + $obj->setVar("cat_pid", $_REQUEST["cat_pid"]); + //Form cat_title + $obj->setVar("cat_title", $_REQUEST["cat_title"]); + //Form cat_description + $obj->setVar("cat_description", $_REQUEST["cat_description"]); + //Form cat_imgurl + $obj->setVar("cat_imgurl", $_REQUEST["cat_imgurl"]); + //Form cat_show_map + $verif_cat_show_map = ($_REQUEST["cat_show_map"] == 1) ? "1" : "0"; + $obj->setVar("cat_show_map", $verif_cat_show_map); + + + if ($catHandler->insert($obj)) { + redirect_header("cat.php?op=list", 2, _AM_ADDRESSES_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_cat": + echo $adminMenu->addNavigation("cat.php"); + $adminMenu->addItemButton(_AM_ADDRESSES_NEWCAT, 'cat.php?op=new_cat', 'add'); + $adminMenu->addItemButton(_AM_ADDRESSES_CATLIST, 'cat.php?op=list', 'list'); + echo $adminMenu->renderButton(); + $obj = $catHandler->get($_REQUEST["cat_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_cat": + $obj =& $catHandler->get($_REQUEST["cat_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("cat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($catHandler->delete($obj)) { + redirect_header("cat.php", 3, _AM_ADDRESSES_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "cat_id" => $_REQUEST["cat_id"], "op" => "delete_cat"), $_SERVER["REQUEST_URI"], sprintf(_AM_ADDRESSES_FORMSUREDEL, $obj->getVar("cat"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/index.html =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/index.html (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/index.html 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/index.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/index.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/index.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,53 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; + //count "total broken" + $count_broken = $brokenHandler->getCount(); + //count "total cat" + $count_cat = $catHandler->getCount(); + //count "total addr" + $count_addr = $addrHandler->getCount(); + //count "total votedata" + $count_votedata = $votedataHandler->getCount(); + // InfoBox votedata + $adminMenu->addInfoBox(_AM_ADDRESSES_STATISTICS); + // InfoBox broken + $adminMenu->addInfoBoxLine(_AM_ADDRESSES_STATISTICS,_AM_ADDRESSES_THEREARE_BROKEN, $count_broken); + // InfoBox cat + $adminMenu->addInfoBoxLine(_AM_ADDRESSES_STATISTICS,_AM_ADDRESSES_THEREARE_CAT, $count_cat); + // InfoBox addr + $adminMenu->addInfoBoxLine(_AM_ADDRESSES_STATISTICS,_AM_ADDRESSES_THEREARE_ADDR, $count_addr); + // InfoBox votedata + $adminMenu->addInfoBoxLine(_AM_ADDRESSES_STATISTICS,_AM_ADDRESSES_THEREARE_VOTEDATA, $count_votedata); + // Render Index + echo $adminMenu->addNavigation("index.php"); + echo $adminMenu->renderIndex(); +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/menu.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/menu.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/menu.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,61 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 12:31:43 : Timgno Exp $ + * **************************************************************************** + */ +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathIcons32 = $moduleInfo->getInfo("icons32"); +$adminmenu = array(); +$i = 1; +$adminmenu[$i]["title"] = _MI_ADDRESSES_ADMENU1; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = "../../".$pathIcons32."/home.png"; +$i++; +$adminmenu[$i]["title"] = _MI_ADDRESSES_ADMENU3; +$adminmenu[$i]["link"] = "admin/cat.php"; +$adminmenu[$i]["icon"] = "images/32/addresses_cat.png"; +$i++; +$adminmenu[$i]["title"] = _MI_ADDRESSES_ADMENU4; +$adminmenu[$i]["link"] = "admin/addr.php"; +$adminmenu[$i]["icon"] = "images/32/addresses_add.png"; +$i++; +$adminmenu[$i]["title"] = _MI_ADDRESSES_ADMENU2; +$adminmenu[$i]["link"] = "admin/broken.php"; +$adminmenu[$i]["icon"] = "images/32/addresses_broken.png"; +$i++; +$adminmenu[$i]["title"] = _MI_ADDRESSES_ADMENU5; +$adminmenu[$i]["link"] = "admin/votedata.php"; +$adminmenu[$i]["icon"] = "images/32/addresses_stats.png"; +$i++; +$adminmenu[$i]["title"] = _MI_ADDRESSES_ADMENU6; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = "../../".$pathIcons32."/about.png"; +unset( $i ); +?> \ No newline at end of file Added: XoopsModules/addresses/branches/timgno/addresses/admin/votedata.php =================================================================== --- XoopsModules/addresses/branches/timgno/addresses/admin/votedata.php (rev 0) +++ XoopsModules/addresses/branches/timgno/addresses/admin/votedata.php 2012-06-26 14:11:03 UTC (rev 9725) @@ -0,0 +1,119 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * ADDRESSES - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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. + * --------------------------------------------------------------------------- + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package addresses + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.73 Tue 2012/06/26 13:30:40 : Timgno Exp $ + * ***************************************************... [truncated message content] |