|
From: <be...@us...> - 2014-04-25 12:18:58
|
Revision: 12486
http://sourceforge.net/p/xoops/svn/12486
Author: beckmi
Date: 2014-04-25 12:18:53 +0000 (Fri, 25 Apr 2014)
Log Message:
-----------
XOOPS 2.5.7 Module Pack update (work in progress): Tag
Modified Paths:
--------------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/about.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin.tag.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_footer.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_header.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/index.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/menu.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/syn.tag.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/blocks/block.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/class/link.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/class/tag.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/docs/changelog.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/docs/lang_diff.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/footer.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/header.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/action.module.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/formtag.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/functions.ini.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/functions.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/functions.recon.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/plugin.dist.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/plugin.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/search.inc.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/tagbar.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/vars.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/index.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/english/admin.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/english/blocks.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/english/config.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/english/main.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/english/modinfo.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/list.tag.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/TDMDownloads.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/article.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/extgallery.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/newbb.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/publisher.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/smartfaq.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/xfaq.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/xforum.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/sample.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/view.tag.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/xoops_version.php
Added Paths:
-----------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/style.css
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/delimiter.gif
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/left_both.gif
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/logoTag.png
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/modadminbg.gif
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/right_both.gif
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/js/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/js/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/include/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/myalbum.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/myalbum0.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/myalbum1.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/myalbum2.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/blocks/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/blocks/tag_block_cloud.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/blocks/tag_block_top.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_bar.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_index.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_list.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_view.tpl
Removed Paths:
-------------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/css/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/images/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/french/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/schinese/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/language/schinese_utf8/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/plugin/news.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/blocks/tag_block_cloud.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/blocks/tag_block_top.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_bar.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_list.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/templates/tag_view.html
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/about.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/about.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/about.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -1,28 +1,28 @@
-<?php
-/**
- * Tag module
- *
- * 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.
- *
- * @copyright The XOOPS Project (http://www.xoops.org)
- * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
- * @package Tag
- * @since 2.5.0
- * @author Mage, Mamba
- * @version $Id $
- **/
-include_once dirname(__FILE__) . '/admin_header.php';
-
-xoops_cp_header();
-
-$aboutAdmin = new ModuleAdmin();
-
-echo $aboutAdmin->addNavigation('about.php');
-echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
-
-include 'admin_footer.php';
\ No newline at end of file
+<?php
+/**
+ * Tag module
+ *
+ * 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.
+ *
+ * @copyright The XOOPS Project (http://www.xoops.org)
+ * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package Tag
+ * @since 2.5.0
+ * @author Mage, Mamba
+ * @version $Id $
+ **/
+include_once dirname(__FILE__) . '/admin_header.php';
+
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
+
+include 'admin_footer.php';
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin.tag.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin.tag.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin.tag.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -1,143 +1,148 @@
-<?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.
-*/
-
-/**
- * XOOPS tag management module
- *
- * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @since 1.0.0
- * @author Taiwen Jiang <ph...@us...>
- * @version $Id$
- * @package tag
- */
-
-include_once 'admin_header.php';
-require_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
-$indexAdmin = new ModuleAdmin();
-
-xoops_cp_header();
-
-include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php";
-//echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(1) : "";
- echo $indexAdmin->addNavigation('admin.tag.php');
-
-$limit = 10;
-$modid = intval( empty($_GET['modid']) ? @$_POST['modid'] : $_GET['modid'] );
-$start = intval( empty($_GET['start']) ? @$_POST['start'] : $_GET['start'] );
-$status = intval( empty($_GET['status']) ? @$_POST['status'] : $_GET['status'] );
-
-$tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname"));
-
-if (!empty($_POST['tags'])) {
- foreach ($_POST['tags'] as $tag => $tag_status) {
- $tag_obj =& $tag_handler->get($tag);
- if (!is_object($tag_obj) || !$tag_obj->getVar("tag_id")) continue;
- if ($tag_status < 0) {
- $tag_handler->delete($tag_obj);
- } elseif ($tag_status != $tag_obj->getVar("tag_status")) {
- $tag_obj->setVar("tag_status", $tag_status);
- $tag_handler->insert($tag_obj);
- }
- }
- redirect_header("admin.tag.php?modid={$modid}&start={$start}&status={$status}", 2);
- exit();
-}
-
-$sql = " SELECT tag_modid, COUNT(DISTINCT tag_id) AS count_tag";
-$sql .= " FROM " . $xoopsDB->prefix("tag_link");
-$sql .= " GROUP BY tag_modid";
-$counts_module = array();
-$module_list = array();
-if ( ($result = $xoopsDB->query($sql)) == false) {
- xoops_error($xoopsDB->error());
-} else {
- while ($myrow = $xoopsDB->fetchArray($result)) {
- $counts_module[$myrow["tag_modid"]] = $myrow["count_tag"];
- }
- if (!empty($counts_module)) {
- $module_handler =& xoops_gethandler("module");
- $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN"));
- }
-}
-
-$opform = new XoopsSimpleForm('', 'moduleform', xoops_getenv("PHP_SELF"), "get");
-$tray = new XoopsFormElementTray('');
-$mod_select = new XoopsFormSelect(_SELECT, 'modid', $modid);
-$mod_select->addOption(0, _ALL);
-foreach ($module_list as $module => $module_name) {
- $mod_select->addOption($module, $module_name." (" . $counts_module[$module] . ")");
-}
-$tray->addElement($mod_select);
-$status_select = new XoopsFormRadio("", 'status', $status);
-$status_select->addOption(-1, _ALL);
-$status_select->addOption(0, TAG_AM_ACTIVE);
-$status_select->addOption(1, TAG_AM_INACTIVE);
-$tray->addElement($status_select);
-$tray->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit"));
-$opform->addElement($tray);
-$opform->display();
-
-$criteria = new CriteriaCompo();
-$criteria->setSort("a");
-$criteria->setOrder("ASC");
-$criteria->setStart($start);
-$criteria->setLimit($limit);
-if ($status >= 0) {
- $criteria->add( new Criteria("o.tag_status", $status) );
-}
-if (!empty($modid)) {
- $criteria->add( new Criteria("l.tag_modid", $modid) );
-}
-$tags = $tag_handler->getByLimit($criteria, false);
-
-$form_tags = "<form name='tags' method='post' action='" . xoops_getenv("PHP_SELF") . "'>";
-$form_tags .= "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
-$form_tags .= "<tr align='center'>";
-$form_tags .= "<td class='bg3'>" . TAG_AM_TERM . "</td>";
-$form_tags .= "<td class='bg3' width='10%'>" . TAG_AM_ACTIVE . "</td>";
-$form_tags .= "<td class='bg3' width='10%'>" . TAG_AM_INACTIVE . "</td>";
-$form_tags .= "<td class='bg3' width='10%'>" . _DELETE . "</td>";
-$form_tags .= "</tr>";
-if (empty($tags)) {
- $form_tags .= "<tr><td colspan='4'>" . _NONE . "</td></tr>";
-} else {
- $class_tr = array("odd", "even");
- $i = 0;
- foreach (array_keys($tags) as $key) {
- $form_tags .= "<tr class='" . $class_tr[(++$i) % 2] . "'>";
- $form_tags .= "<td>" . $tags[$key]["term"] . "</td>";
- $form_tags .= "<td align='center'><input type='radio' name='tags[{$key}]' value='0' " . ( $tags[$key]["status"] ? "" : " 'checked' ") . "></td>";
- $form_tags .= "<td align='center'><input type='radio' name='tags[{$key}]' value='1' " . ( $tags[$key]["status"] ? " 'checked' " : "") . "></td>";
- $form_tags .= "<td align='center'><input type='radio' name='tags[{$key}]' value='-1'></td>";
- $form_tags .= "</tr>";
- }
- if ( !empty($start) || count($tags) >= $limit ) {
- $count_tag = $tag_handler->getCount($criteria);
-
- include XOOPS_ROOT_PATH . "/class/pagenav.php";
- $nav = new XoopsPageNav($count_tag, $limit, $start, "start", "modid={$modid}&status={$status}");
- $form_tags .= "<tr><td colspan='4' align='right'>" . $nav->renderNav(4) . "</td></tr>";
- }
- $form_tags .= "<tr><td colspan='4' align='center'>";
- $form_tags .= "<input type='hidden' name='status' value='{$status}'> ";
- $form_tags .= "<input type='hidden' name='start' value='{$start}'> ";
- $form_tags .= "<input type='hidden' name='modid' value='{$modid}'> ";
- $form_tags .= "<input type='submit' name='submit' value='" . _SUBMIT . "'> ";
- $form_tags .= "<input type='reset' name='submit' value='" . _CANCEL . "'>";
- $form_tags .= "</td></tr>";
-}
-$form_tags .= "</table>";
-$form_tags .= "</form>";
-
-echo $form_tags;
-include "admin_footer.php";
-//xoops_cp_footer();
\ No newline at end of file
+<?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.
+*/
+
+/**
+ * XOOPS tag management module
+ *
+ * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @since 1.0.0
+ * @author Taiwen Jiang <ph...@us...>
+ * @version $Id$
+ * @package tag
+ */
+
+include_once 'admin_header.php';
+require_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
+$indexAdmin = new ModuleAdmin();
+
+xoops_cp_header();
+
+include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php";
+//echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(1) : "";
+ echo $indexAdmin->addNavigation('admin.tag.php');
+
+global $xoopsModuleConfig;
+
+$limit = $xoopsModuleConfig['items_perpage'];
+$modid = intval( empty($_GET['modid']) ? @$_POST['modid'] : $_GET['modid'] );
+$start = intval( empty($_GET['start']) ? @$_POST['start'] : $_GET['start'] );
+//$status = intval( empty($_GET['status']) ? @$_POST['status'] : $_GET['status']);
+
+$status = intval( (isset($_GET['status']) && $_GET['status'] >-1) ? $_GET['status'] : -1);
+
+$tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname"));
+
+if (!empty($_POST['tags'])) {
+ $msgDBUpdated='';
+ foreach ($_POST['tags'] as $tag => $tag_status) {
+ $tag_obj =& $tag_handler->get($tag);
+ if (!is_object($tag_obj) || !$tag_obj->getVar("tag_id")) continue;
+ if ($tag_status < 0) {
+ $tag_handler->delete($tag_obj);
+ } elseif ($tag_status != $tag_obj->getVar("tag_status")) {
+ $tag_obj->setVar("tag_status", $tag_status);
+ $tag_handler->insert($tag_obj);
+ $msgDBUpdated = _AM_TAG_DB_UPDATED;
+ }
+ }
+ redirect_header("admin.tag.php?modid={$modid}&start={$start}&status={$status}", 2, $msgDBUpdated);
+ exit();
+}
+
+$sql = " SELECT tag_modid, COUNT(DISTINCT tag_id) AS count_tag";
+$sql .= " FROM " . $xoopsDB->prefix("tag_link");
+$sql .= " GROUP BY tag_modid";
+$counts_module = array();
+$module_list = array();
+if ( ($result = $xoopsDB->query($sql)) == false) {
+ xoops_error($xoopsDB->error());
+} else {
+ while ($myrow = $xoopsDB->fetchArray($result)) {
+ $counts_module[$myrow["tag_modid"]] = $myrow["count_tag"];
+ }
+ if (!empty($counts_module)) {
+ $module_handler =& xoops_gethandler("module");
+ $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN"));
+ }
+}
+
+$opform = new XoopsSimpleForm('', 'moduleform', xoops_getenv("PHP_SELF"), "get");
+$tray = new XoopsFormElementTray('');
+$mod_select = new XoopsFormSelect(_SELECT, 'modid', $modid);
+$mod_select->addOption(0, _ALL);
+foreach ($module_list as $module => $module_name) {
+ $mod_select->addOption($module, $module_name." (" . $counts_module[$module] . ")");
+}
+$tray->addElement($mod_select);
+$status_select = new XoopsFormRadio("", 'status', $status);
+$status_select->addOption(-1, _ALL);
+$status_select->addOption(1, TAG_AM_ACTIVE);
+$status_select->addOption(0, TAG_AM_INACTIVE);
+$tray->addElement($status_select);
+$tray->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit"));
+$opform->addElement($tray);
+$opform->display();
+
+$criteria = new CriteriaCompo();
+$criteria->setSort("a");
+$criteria->setOrder("ASC");
+$criteria->setStart($start);
+$criteria->setLimit($limit);
+if ($status >= 0) {
+ $criteria->add( new Criteria("o.tag_status", $status) );
+}
+if (!empty($modid)) {
+ $criteria->add( new Criteria("l.tag_modid", $modid) );
+}
+$tags = $tag_handler->getByLimit($criteria, false);
+
+$form_tags = "<form name='tags' method='post' action='" . xoops_getenv("PHP_SELF") . "'>";
+$form_tags .= "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
+$form_tags .= "<tr align='center'>";
+$form_tags .= "<th class='bg3'>" . TAG_AM_TERM . "</td>";
+$form_tags .= "<th class='bg3' width='10%'>" . TAG_AM_ACTIVE . "</td>";
+$form_tags .= "<th class='bg3' width='10%'>" . TAG_AM_INACTIVE . "</td>";
+$form_tags .= "<th class='bg3' width='10%'>" . _DELETE . "</td>";
+$form_tags .= "</tr>";
+if (empty($tags)) {
+ $form_tags .= "<tr><td colspan='4'>" . _NONE . "</td></tr>";
+} else {
+ $class_tr = array("odd", "even");
+ $i = 0;
+ foreach (array_keys($tags) as $key) {
+ $form_tags .= "<tr class='" . $class_tr[(++$i) % 2] . "'>";
+ $form_tags .= "<td>" . $tags[$key]["term"] . "</td>";
+ $form_tags .= "<td align='center'><input type='radio' name='tags[{$key}]' value='1' " . ( $tags[$key]["status"] ? "checked" : " '' ") . "></td>";
+ $form_tags .= "<td align='center'><input type='radio' name='tags[{$key}]' value='0' " . ( $tags[$key]["status"] ? " '' " : "checked") . "></td>";
+ $form_tags .= "<td align='center'><input type='radio' name='tags[{$key}]' value='-1'></td>";
+ $form_tags .= "</tr>";
+ }
+ if ( !empty($start) || count($tags) >= $limit ) {
+ $count_tag = $tag_handler->getCount($criteria);
+
+ include XOOPS_ROOT_PATH . "/class/pagenav.php";
+ $nav = new XoopsPageNav($count_tag, $limit, $start, "start", "modid={$modid}&status={$status}");
+ $form_tags .= "<tr><td colspan='4' align='right'>" . $nav->renderNav(4) . "</td></tr>";
+ }
+ $form_tags .= "<tr><td colspan='4' align='center'>";
+ $form_tags .= "<input type='hidden' name='status' value='{$status}'> ";
+ $form_tags .= "<input type='hidden' name='start' value='{$start}'> ";
+ $form_tags .= "<input type='hidden' name='modid' value='{$modid}'> ";
+ $form_tags .= "<input type='submit' name='submit' value='" . _SUBMIT . "'> ";
+ $form_tags .= "<input type='reset' name='submit' value='" . _CANCEL . "'>";
+ $form_tags .= "</td></tr>";
+}
+$form_tags .= "</table>";
+$form_tags .= "</form>";
+
+echo $form_tags;
+include 'admin_footer.php';
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_footer.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_footer.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_footer.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -24,4 +24,4 @@
." " . _AM_TAG_FOOTER . "\n"
."</div>";
-xoops_cp_footer();
\ No newline at end of file
+xoops_cp_footer();
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_header.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_header.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/admin_header.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -1,106 +1,104 @@
-<?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.
-*/
-
-/**
- * XOOPS tag management module
- *
- * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @since 1.0.0
- * @author Taiwen Jiang <ph...@us...>
- * @version $Id$
- * @package tag
- */
-
-$path = dirname(dirname(dirname(dirname(__FILE__))));
-require_once $path . '/include/cp_header.php';
-
-
-require_once dirname(dirname(__FILE__)) . '/include/vars.php';
-require_once dirname(dirname(__FILE__)) . '/include/functions.php';
-
-$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
-
-// Load language files
-xoops_loadLanguage('admin', $thisModuleDir);
-xoops_loadLanguage('modinfo', $thisModuleDir);
-xoops_loadLanguage('main', $thisModuleDir);
-
-$pathIcon16 = '../'.$xoopsModule->getInfo('icons16');
-$pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
-$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
-
-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);
- }
-
-IF (!@ include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"):
-
-function loadModuleAdminMenu($currentoption, $breadcrumb = "")
-{
- if (!$adminmenu = $GLOBALS["xoopsModule"]->getAdminMenu()) {
- return false;
- }
-
- $breadcrumb = empty($breadcrumb) ? $adminmenu[$currentoption]["title"] : $breadcrumb;
- $module_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/";
- $image_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/images";
-
- $adminmenu_text ='
- <style type="text/css">
- <!--
- #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;}
- #buttonbar { float:left; width:100%; background: #e7e7e7 url("'.$image_link.'/modadminbg.gif") repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;}
- #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; }
- #buttonbar li { display:inline; margin:0; padding:0; }
- #buttonbar a { float:left; background:url("'.$image_link.'/left_both.gif") no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; }
- #buttonbar a span { float:left; display:block; background:url("'.$image_link.'/right_both.gif") no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; }
- /* Commented Backslash Hack hides rule from IE5-Mac \*/
- #buttonbar a span {float:none;}
- /* End IE5-Mac hack */
- #buttonbar a:hover span { color:#333; }
- #buttonbar .current a { background-position:0 -150px; border-width:0; }
- #buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; }
- #buttonbar a:hover { background-position:0% -150px; }
- #buttonbar a:hover span { background-position:100% -150px; }
- //-->
- </style>
- <div id="buttontop">
- <table style="width: 100%; padding: 0; " cellspacing="0">
- <tr>
- <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;">
- <a href="../index.php">' . $GLOBALS["xoopsModule"]->getVar("name") . '</a>
- </td>
- <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;">
- <strong>' . $GLOBALS["xoopsModule"]->getVar("name") . '</strong> ' . $breadcrumb . '
- </td>
- </tr>
- </table>
- </div>
- <div id="buttonbar">
- <ul>
- ';
- foreach (array_keys($adminmenu) as $key) {
- $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>';
- }
- $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS["xoopsModule"]->getVar("mid") . '"><span>' . _PREFERENCES . '</span></a></li>';
- $adminmenu_text .= '
- </ul>
- </div>
- <br style="clear:both;" />';
-
- echo $adminmenu_text;
-}
-
-ENDIF;
-?>
\ No newline at end of file
+<?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.
+*/
+
+/**
+ * XOOPS tag management module
+ *
+ * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @since 1.0.0
+ * @author Taiwen Jiang <ph...@us...>
+ * @version $Id$
+ * @package tag
+ */
+
+$path = dirname(dirname(dirname(dirname(__FILE__))));
+require_once $path . '/include/cp_header.php';
+
+require_once dirname(dirname(__FILE__)) . '/include/vars.php';
+require_once dirname(dirname(__FILE__)) . '/include/functions.php';
+
+$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
+
+// Load language files
+xoops_loadLanguage('admin', $thisModuleDir);
+xoops_loadLanguage('modinfo', $thisModuleDir);
+xoops_loadLanguage('main', $thisModuleDir);
+
+$pathIcon16 = '../'.$xoopsModule->getInfo('icons16');
+$pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
+
+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);
+ }
+
+IF (!@ include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"):
+
+function loadModuleAdminMenu($currentoption, $breadcrumb = "")
+{
+ if (!$adminmenu = $GLOBALS["xoopsModule"]->getAdminMenu()) {
+ return false;
+ }
+
+ $breadcrumb = empty($breadcrumb) ? $adminmenu[$currentoption]["title"] : $breadcrumb;
+ $module_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/";
+ $image_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/images";
+
+ $adminmenu_text ='
+ <style type="text/css">
+ <!--
+ #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;}
+ #buttonbar { float:left; width:100%; background: #e7e7e7 url("'.$image_link.'/modadminbg.gif") repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;}
+ #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; }
+ #buttonbar li { display:inline; margin:0; padding:0; }
+ #buttonbar a { float:left; background:url("'.$image_link.'/left_both.gif") no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; }
+ #buttonbar a span { float:left; display:block; background:url("'.$image_link.'/right_both.gif") no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; }
+ /* Commented Backslash Hack hides rule from IE5-Mac \*/
+ #buttonbar a span {float:none;}
+ /* End IE5-Mac hack */
+ #buttonbar a:hover span { color:#333; }
+ #buttonbar .current a { background-position:0 -150px; border-width:0; }
+ #buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; }
+ #buttonbar a:hover { background-position:0% -150px; }
+ #buttonbar a:hover span { background-position:100% -150px; }
+ //-->
+ </style>
+ <div id="buttontop">
+ <table style="width: 100%; padding: 0; " cellspacing="0">
+ <tr>
+ <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;">
+ <a href="../index.php">' . $GLOBALS["xoopsModule"]->getVar("name") . '</a>
+ </td>
+ <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;">
+ <strong>' . $GLOBALS["xoopsModule"]->getVar("name") . '</strong> ' . $breadcrumb . '
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="buttonbar">
+ <ul>
+ ';
+ foreach (array_keys($adminmenu) as $key) {
+ $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>';
+ }
+ $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS["xoopsModule"]->getVar("mid") . '"><span>' . _PREFERENCES . '</span></a></li>';
+ $adminmenu_text .= '
+ </ul>
+ </div>
+ <br style="clear:both;" />';
+
+ echo $adminmenu_text;
+}
+
+ENDIF;
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/index.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/index.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/index.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -1,70 +1,70 @@
-<?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.
-*/
-
-/**
- * XOOPS tag management module
- *
- * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @since 1.0.0
- * @author Taiwen Jiang <ph...@us...>
- * @version $Id$
- * @package tag
- */
-include_once 'admin_header.php';
-xoops_cp_header();
-
-include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php";
-//echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(0) : "";
-
-$indexAdmin = new ModuleAdmin();
-
-$tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname"));
-$count_tag = $tag_handler->getCount();
-
-$count_item = 0;
-$sql = " SELECT COUNT(DISTINCT tl_id) FROM " . $xoopsDB->prefix("tag_link");
-if ( ($result = $xoopsDB->query($sql)) == false) {
- xoops_error($xoopsDB->error());
-} else {
- list($count_item) = $xoopsDB->fetchRow($result);
-}
-
-$sql = " SELECT tag_modid, SUM(tag_count) AS count_item, COUNT(DISTINCT tag_id) AS count_tag";
-$sql .= " FROM " . $xoopsDB->prefix("tag_stats");
-$sql .= " GROUP BY tag_modid";
-$counts_module = array();
-if( ($result = $xoopsDB->query($sql)) == false) {
- xoops_error($xoopsDB->error());
-} else {
- while ($myrow = $xoopsDB->fetchArray($result)) {
- $counts_module[$myrow["tag_modid"]] = array("count_item" => $myrow["count_item"], "count_tag" => $myrow["count_tag"]);
- }
- if (!empty($counts_module)) {
- $module_handler =& xoops_gethandler("module");
- $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN"));
- }
-}
-
-$indexAdmin->addInfoBox(TAG_AM_STATS) ;
-$indexAdmin->addInfoBoxLine(TAG_AM_STATS, "<infolabel>" .TAG_AM_COUNT_TAG. "</infolabel>" , $count_tag) ;
-$indexAdmin->addInfoBoxLine(TAG_AM_STATS, "<infolabel>" .TAG_AM_COUNT_ITEM. "</infolabel>" , $count_item ."<br /><br />") ;
-$indexAdmin->addInfoBoxLine(TAG_AM_STATS, "<infolabel>" . TAG_AM_COUNT_MODULE. "</infolabel><infotext>" .TAG_AM_COUNT_MODULE_TITLE."</infotext>") ;
-
-foreach ($counts_module as $module => $count) {
- $indexAdmin->addInfoBoxLine( TAG_AM_STATS,("<infolabel>" . $module_list[$module] . ":</infolabel><infotext>" . $count["count_tag"] . " / " . $count["count_item"] . " [<a href=\"" . XOOPS_URL . "/modules/tag/admin/admin.tag.php?modid={$module}\">" . TAG_AM_EDIT . "</a>] [<a href=\"" . XOOPS_URL . "/modules/tag/admin/syn.tag.php?modid={$module}\">" . TAG_AM_SYNCHRONIZATION . "</a>]</infotext> "));
-}
-
-echo $indexAdmin->addNavigation('index.php');
-echo $indexAdmin->renderIndex();
-
-include "admin_footer.php";
-//xoops_cp_footer();
+<?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.
+*/
+
+/**
+ * XOOPS tag management module
+ *
+ * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @since 1.0.0
+ * @author Taiwen Jiang <ph...@us...>
+ * @version $Id$
+ * @package tag
+ */
+include_once 'admin_header.php';
+xoops_cp_header();
+
+include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php";
+//echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(0) : "";
+
+$indexAdmin = new ModuleAdmin();
+
+$tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname"));
+$count_tag = $tag_handler->getCount();
+
+$count_item = 0;
+$sql = " SELECT COUNT(DISTINCT tl_id) FROM " . $xoopsDB->prefix("tag_link");
+if ( ($result = $xoopsDB->query($sql)) == false) {
+ xoops_error($xoopsDB->error());
+} else {
+ list($count_item) = $xoopsDB->fetchRow($result);
+}
+
+$sql = " SELECT tag_modid, SUM(tag_count) AS count_item, COUNT(DISTINCT tag_id) AS count_tag";
+$sql .= " FROM " . $xoopsDB->prefix("tag_stats");
+$sql .= " GROUP BY tag_modid";
+$counts_module = array();
+if ( ($result = $xoopsDB->query($sql)) == false) {
+ xoops_error($xoopsDB->error());
+} else {
+ while ($myrow = $xoopsDB->fetchArray($result)) {
+ $counts_module[$myrow["tag_modid"]] = array("count_item" => $myrow["count_item"], "count_tag" => $myrow["count_tag"]);
+ }
+ if (!empty($counts_module)) {
+ $module_handler =& xoops_gethandler("module");
+ $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN"));
+ }
+}
+
+$indexAdmin->addInfoBox(TAG_AM_STATS) ;
+$indexAdmin->addInfoBoxLine(TAG_AM_STATS, "<infolabel>" .TAG_AM_COUNT_TAG. "</infolabel>" , $count_tag) ;
+$indexAdmin->addInfoBoxLine(TAG_AM_STATS, "<infolabel>" .TAG_AM_COUNT_ITEM. "</infolabel>" , $count_item ."<br /><br />") ;
+$indexAdmin->addInfoBoxLine(TAG_AM_STATS, "<infolabel>" . TAG_AM_COUNT_MODULE. "</infolabel><infotext>" .TAG_AM_COUNT_MODULE_TITLE."</infotext>") ;
+
+foreach ($counts_module as $module => $count) {
+ $indexAdmin->addInfoBoxLine( TAG_AM_STATS,("<infolabel>" . $module_list[$module] . ":</infolabel><infotext>" . $count["count_tag"] . " / " . $count["count_item"] . " [<a href=\"" . XOOPS_URL . "/modules/tag/admin/admin.tag.php?modid={$module}\">" . TAG_AM_EDIT . "</a>] [<a href=\"" . XOOPS_URL . "/modules/tag/admin/syn.tag.php?modid={$module}\">" . TAG_AM_SYNCHRONIZATION . "</a>]</infotext> "));
+}
+
+echo $indexAdmin->addNavigation('index.php');
+echo $indexAdmin->renderIndex();
+
+include 'admin_footer.php';
+//xoops_cp_footer();
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/menu.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/menu.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/menu.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -1,51 +1,51 @@
-<?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.
-*/
-
-/**
- * XOOPS tag management module
- *
- * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @since 1.0.0
- * @author Taiwen Jiang <ph...@us...>
- * @version $Id$
- * @package tag
- */
-
-if (!defined('XOOPS_ROOT_PATH')) { exit(); }
-
-$module_handler =& xoops_gethandler('module');
-$xoopsModule =& XoopsModule::getByDirname('tag');
-$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
-$pathIcon32 = $moduleInfo->getInfo('icons32');
-
-$adminmenu = array();
-
-$i = 1;
-$adminmenu[$i]["title"] = TAG_MI_ADMENU_INDEX;
-$adminmenu[$i]["link"] = "admin/index.php";
-$adminmenu[$i]["desc"] = _TAG_ADMIN_HOME_DESC;
-$adminmenu[$i]["icon"] = $pathIcon32.'/home.png';
-$i++;
-$adminmenu[$i]["title"] = TAG_MI_ADMENU_EDIT;
-$adminmenu[$i]["link"] = "admin/admin.tag.php";
-$adminmenu[$i]["desc"] = _TAG_ADMIN_ABOUT_DESC;
-$adminmenu[$i]["icon"] = $pathIcon32.'/administration.png';
-$i++;
-$adminmenu[$i]["title"] = TAG_MI_ADMENU_SYNCHRONIZATION;
-$adminmenu[$i]["link"] = "admin/syn.tag.php";
-$adminmenu[$i]["desc"] = _TAG_ADMIN_HELP_DESC;
-$adminmenu[$i]["icon"] = $pathIcon32.'/synchronized.png';
-$i++;
-$adminmenu[$i]["title"] = _TAG_ADMIN_ABOUT;
-$adminmenu[$i]["link"] = "admin/about.php";
-$adminmenu[$i]["desc"] = _TAG_ADMIN_ABOUT_DESC;
-$adminmenu[$i]["icon"] = $pathIcon32.'/about.png';
\ No newline at end of file
+<?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.
+*/
+
+/**
+ * XOOPS tag management module
+ *
+ * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @since 1.0.0
+ * @author Taiwen Jiang <ph...@us...>
+ * @version $Id$
+ * @package tag
+ */
+
+defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
+
+$module_handler =& xoops_gethandler('module');
+$xoopsModule =& XoopsModule::getByDirname('tag');
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathIcon32 = $moduleInfo->getInfo('icons32');
+
+$adminmenu = array();
+
+$i = 1;
+$adminmenu[$i]["title"] = TAG_MI_ADMENU_INDEX;
+$adminmenu[$i]["link"] = "admin/index.php";
+$adminmenu[$i]["desc"] = _TAG_ADMIN_HOME_DESC;
+$adminmenu[$i]["icon"] = $pathIcon32.'/home.png';
+++$i;
+$adminmenu[$i]["title"] = TAG_MI_ADMENU_EDIT;
+$adminmenu[$i]["link"] = "admin/admin.tag.php";
+$adminmenu[$i]["desc"] = _TAG_ADMIN_ABOUT_DESC;
+$adminmenu[$i]["icon"] = $pathIcon32.'/administration.png';
+++$i;
+$adminmenu[$i]["title"] = TAG_MI_ADMENU_SYNCHRONIZATION;
+$adminmenu[$i]["link"] = "admin/syn.tag.php";
+$adminmenu[$i]["desc"] = _TAG_ADMIN_HELP_DESC;
+$adminmenu[$i]["icon"] = $pathIcon32.'/synchronized.png';
+++$i;
+$adminmenu[$i]["title"] = _TAG_ADMIN_ABOUT;
+$adminmenu[$i]["link"] = "admin/about.php";
+$adminmenu[$i]["desc"] = _TAG_ADMIN_ABOUT_DESC;
+$adminmenu[$i]["icon"] = $pathIcon32.'/about.png';
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/syn.tag.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/syn.tag.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/admin/syn.tag.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -1,97 +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.
-*/
-
-/**
- * XOOPS tag management module
- *
- * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @since 1.0.0
- * @author Taiwen Jiang <ph...@us...>
- * @version $Id$
- * @package tag
- */
-include_once 'admin_header.php';
-require_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
-//include_once XOOPS_ROOT_PATH."/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
-$index_admin = new ModuleAdmin();
-
-
-xoops_cp_header();
-
-include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php";
-//echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : "";
- echo $index_admin->addNavigation('syn.tag.php');
-
-$limit = 10;
-$modid = intval( @$_GET['modid'] );
-$start = intval( @$_GET['start'] );
-$limit = isset($_GET['limit']) ? intval( $_GET['limit'] ) : 100;
-
-$sql = " SELECT tag_modid, COUNT(DISTINCT tag_id) AS count_tag";
-$sql .= " FROM " . $xoopsDB->prefix("tag_link");
-$sql .= " GROUP BY tag_modid";
-$counts_module = array();
-$module_list = array();
-if ( $result = $xoopsDB->query($sql)) {
- while ($myrow = $xoopsDB->fetchArray($result)) {
- $counts_module[$myrow["tag_modid"]] = $myrow["count_tag"];
- }
- if (!empty($counts_module)) {
- $module_handler =& xoops_gethandler("module");
- $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN"));
- }
-}
-
-$opform = new XoopsSimpleForm('', 'moduleform', xoops_getenv("PHP_SELF"), "get");
-$tray = new XoopsFormElementTray('');
-$mod_select = new XoopsFormSelect(_SELECT, 'modid', $modid);
-$mod_select->addOption(-1, TAG_AM_GLOBAL);
-$mod_select->addOption(0, TAG_AM_ALL);
-foreach ($module_list as $module => $module_name) {
- $mod_select->addOption($module, $module_name . " (" . $counts_module[$module] . ")");
-}
-$tray->addElement($mod_select);
-$num_select = new XoopsFormSelect(TAG_AM_NUM, 'limit', $limit);
-foreach (array(10, 50, 100, 500) as $_num) {
- $num_select->addOption($_num);
-}
-$num_select->addOption(0, _ALL);
-$tray->addElement($num_select);
-$tray->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit"));
-$tray->addElement(new XoopsFormHidden("start", $start));
-$opform->addElement($tray);
-$opform->display();
-
-
-if ( isset($_GET['start']) ) {
-
- $tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname"));
-
- $criteria = new CriteriaCompo();
- $criteria->setStart($start);
- $criteria->setLimit($limit);
- if ($modid > 0) {
- $criteria->add( new Criteria("l.tag_modid", $modid) );
- }
- $tags = $tag_handler->getByLimit($criteria, false);
- if (empty($tags)) {
- echo "<h2>" . TAG_AM_FINISHED . "</h2>";
- } else {
-
- foreach (array_keys($tags) as $tag_id) {
- $tag_handler->update_stats($tag_id, ( $modid == -1 ) ? 0 : $tags[$tag_id]["modid"]);
- }
- redirect_header("syn.tag.php?modid={$modid}&start=" . ($start + $limit) . "&limit={$limit}", 2, TAG_AM_IN_PROCESS);
- }
-}
-include "admin_footer.php";
-//xoops_cp_footer();
\ No newline at end of file
+<?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.
+*/
+
+/**
+ * XOOPS tag management module
+ *
+ * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @since 1.0.0
+ * @author Taiwen Jiang <ph...@us...>
+ * @version $Id$
+ * @package tag
+ */
+include_once 'admin_header.php';
+require_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
+//include_once XOOPS_ROOT_PATH."/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
+$index_admin = new ModuleAdmin();
+
+xoops_cp_header();
+
+include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php";
+//echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : "";
+ echo $index_admin->addNavigation('syn.tag.php');
+
+$limit = 10;
+$modid = intval( @$_GET['modid'] );
+$start = intval( @$_GET['start'] );
+$limit = isset($_GET['limit']) ? intval( $_GET['limit'] ) : 100;
+
+$sql = " SELECT tag_modid, COUNT(DISTINCT tag_id) AS count_tag";
+$sql .= " FROM " . $xoopsDB->prefix("tag_link");
+$sql .= " GROUP BY tag_modid";
+$counts_module = array();
+$module_list = array();
+if ( $result = $xoopsDB->query($sql)) {
+ while ($myrow = $xoopsDB->fetchArray($result)) {
+ $counts_module[$myrow["tag_modid"]] = $myrow["count_tag"];
+ }
+ if (!empty($counts_module)) {
+ $module_handler =& xoops_gethandler("module");
+ $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN"));
+ }
+}
+
+$opform = new XoopsSimpleForm('', 'moduleform', xoops_getenv("PHP_SELF"), "get");
+$tray = new XoopsFormElementTray('');
+$mod_select = new XoopsFormSelect(_SELECT, 'modid', $modid);
+$mod_select->addOption(-1, TAG_AM_GLOBAL);
+$mod_select->addOption(0, TAG_AM_ALL);
+foreach ($module_list as $module => $module_name) {
+ $mod_select->addOption($module, $module_name . " (" . $counts_module[$module] . ")");
+}
+$tray->addElement($mod_select);
+$num_select = new XoopsFormSelect(TAG_AM_NUM, 'limit', $limit);
+foreach (array(10, 50, 100, 500) as $_num) {
+ $num_select->addOption($_num);
+}
+$num_select->addOption(0, _ALL);
+$tray->addElement($num_select);
+$tray->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit"));
+$tray->addElement(new XoopsFormHidden("start", $start));
+$opform->addElement($tray);
+$opform->display();
+
+if ( isset($_GET['start']) ) {
+
+ $tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname"));
+
+ $criteria = new CriteriaCompo();
+ $criteria->setStart($start);
+ $criteria->setLimit($limit);
+ if ($modid > 0) {
+ $criteria->add( new Criteria("l.tag_modid", $modid) );
+ }
+ $tags = $tag_handler->getByLimit($criteria, false);
+ if (empty($tags)) {
+ echo "<h2>" . TAG_AM_FINISHED . "</h2>";
+ } else {
+
+ foreach (array_keys($tags) as $tag_id) {
+ $tag_handler->update_stats($tag_id, ( $modid == -1 ) ? 0 : $tags[$tag_id]["modid"]);
+ }
+ redirect_header("syn.tag.php?modid={$modid}&start=" . ($start + $limit) . "&limit={$limit}", 2, TAG_AM_IN_PROCESS);
+ }
+}
+include 'admin_footer.php';
+//xoops_cp_footer();
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/index.html
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/index.html (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/index.html 2014-04-25 12:18:53 UTC (rev 12486)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/style.css
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/style.css (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/css/style.css 2014-04-25 12:18:53 UTC (rev 12486)
@@ -0,0 +1,24 @@
+
+.tag-level-0 a {
+ color: #73880A;
+}
+
+.tag-level-1 a {
+ color: #C79810;
+}
+
+.tag-level-2 a {
+ color: #356AA0;
+}
+
+.tag-level-3 a {
+ color: #6BBA70;
+}
+
+.tag-level-4 a {
+ color: #3F4C6B;
+}
+
+.tag-level-5 a {
+ color: #FF7400;
+}
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/delimiter.gif
===================================================================
(Binary files differ)
Index: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/delimiter.gif
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/delimiter.gif 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/delimiter.gif 2014-04-25 12:18:53 UTC (rev 12486)
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/delimiter.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/index.html
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/index.html (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/index.html 2014-04-25 12:18:53 UTC (rev 12486)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/left_both.gif
===================================================================
(Binary files differ)
Index: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/left_both.gif
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/left_both.gif 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/left_both.gif 2014-04-25 12:18:53 UTC (rev 12486)
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/left_both.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/logoTag.png
===================================================================
(Binary files differ)
Index: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/logoTag.png
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/logoTag.png 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/logoTag.png 2014-04-25 12:18:53 UTC (rev 12486)
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/logoTag.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/modadminbg.gif
===================================================================
(Binary files differ)
Index: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/modadminbg.gif
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/modadminbg.gif 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/modadminbg.gif 2014-04-25 12:18:53 UTC (rev 12486)
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/modadminbg.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/right_both.gif
===================================================================
(Binary files differ)
Index: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/right_both.gif
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/right_both.gif 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/right_both.gif 2014-04-25 12:18:53 UTC (rev 12486)
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/images/right_both.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/index.html
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/index.html (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/index.html 2014-04-25 12:18:53 UTC (rev 12486)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/js/index.html
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/js/index.html (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/assets/js/index.html 2014-04-25 12:18:53 UTC (rev 12486)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/blocks/block.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/blocks/block.php 2014-04-25 12:15:51 UTC (rev 12485)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/tag/blocks/block.php 2014-04-25 12:18:53 UTC (rev 12486)
@@ -1,309 +1,305 @@
-<?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.
-*/
-
-/**
- * XOOPS tag management module
- *
- * @copyright The XOOPS project htt...
[truncated message content] |