From: <be...@us...> - 2012-05-07 04:57:11
|
Revision: 9445 http://xoops.svn.sourceforge.net/xoops/?rev=9445&view=rev Author: beckmi Date: 2012-05-07 04:57:03 +0000 (Mon, 07 May 2012) Log Message: ----------- Updating to XOOPS 2.5.x Admin GUI Modified Paths: -------------- XoopsModules/amreviews/trunk/amreviews/admin/about.php XoopsModules/amreviews/trunk/amreviews/admin/category.php XoopsModules/amreviews/trunk/amreviews/admin/functions.inc.php XoopsModules/amreviews/trunk/amreviews/admin/image.php XoopsModules/amreviews/trunk/amreviews/admin/index.php XoopsModules/amreviews/trunk/amreviews/admin/menu.php XoopsModules/amreviews/trunk/amreviews/admin/perms.php XoopsModules/amreviews/trunk/amreviews/admin/review.php XoopsModules/amreviews/trunk/amreviews/language/english/admin.php XoopsModules/amreviews/trunk/amreviews/sql/mysql.sql XoopsModules/amreviews/trunk/amreviews/templates/amr_review.html XoopsModules/amreviews/trunk/amreviews/xoops_version.php Added Paths: ----------- XoopsModules/amreviews/trunk/amreviews/admin/admin_footer.php XoopsModules/amreviews/trunk/amreviews/admin/admin_header.php XoopsModules/amreviews/trunk/amreviews/admin/main.php XoopsModules/amreviews/trunk/amreviews/docs/ XoopsModules/amreviews/trunk/amreviews/docs/changelog.txt XoopsModules/amreviews/trunk/amreviews/docs/credits.txt XoopsModules/amreviews/trunk/amreviews/docs/index.html XoopsModules/amreviews/trunk/amreviews/docs/readme.txt XoopsModules/amreviews/trunk/amreviews/language/english/help/ XoopsModules/amreviews/trunk/amreviews/language/english/help/help.html XoopsModules/amreviews/trunk/amreviews/language/english/help/index.html Removed Paths: ------------- XoopsModules/amreviews/trunk/amreviews/images/back.gif XoopsModules/amreviews/trunk/amreviews/images/bulb-grey.png XoopsModules/amreviews/trunk/amreviews/images/bulb-yell.png XoopsModules/amreviews/trunk/amreviews/images/del3.png XoopsModules/amreviews/trunk/amreviews/images/edit3.png XoopsModules/amreviews/trunk/amreviews/images/email.gif XoopsModules/amreviews/trunk/amreviews/images/exit.gif XoopsModules/amreviews/trunk/amreviews/images/pdf.gif XoopsModules/amreviews/trunk/amreviews/images/pencil.gif XoopsModules/amreviews/trunk/amreviews/images/print.gif Modified: XoopsModules/amreviews/trunk/amreviews/admin/about.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/about.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/about.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -1,221 +1,31 @@ -<?php -// $Id: about.php,v 1.1 2007/01/24 19:15:42 andrew Exp $ -// ------------------------------------------------------------------------ // -// Author: Andrew Mills // -// Email: aj...@si... // -// About: This file is part of the Articles module for Xoops v2. // -// // -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2000 XOOPS.org // -// <http://www.xoops.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -include ('../../../include/cp_header.php'); -if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { - include "../language/".$xoopsConfig['language']."/main.php"; -} else { - include "../language/english/main.php"; -} -include_once ("functions.inc.php"); -include_once("../include/config.inc.php"); -include_once (XOOPS_ROOT_PATH . "/include/xoopscodes.php"); -include_once (XOOPS_ROOT_PATH . "/class/module.errorhandler.php"); -include_once (XOOPS_ROOT_PATH . "/class/xoopsformloader.php"); -$myts =& MyTextSanitizer::getInstance(); - -// -//----------------------------------------------------------------------------// -// -if(!isset($_REQUEST['op'])) { -xoops_cp_header(); -amrev_adminmenu(0, _AM_AMREV_INDEX); - -?> - -<br /> -<table border="0" cellspacing="1" style="width: 100%;" class="outer"> - <tr> - <th>About</th> - </tr> - <tr> - <td class="odd"> - AM reviews is a review management module for XOOPS v2. - </td> - </tr> -</table> - -<br /> -<table border="0" cellspacing="1" style="width: 100%" class="outer"> - <tr> - <th colspan="2">Version info</th> - </tr> - <tr> - <td class="head" width="100">Version:</td> - <td class="odd"> version in XOOPS: <?php echo round($xoopsModule->getVar('version')/100 , 2); ?>, actual version: <?php echo _AM_AMRVERSION; ?>. </td> - </tr> - <tr> - <td class="head" width="100">Version info:</td> - <td class="odd"> See the <a href="http://support.sirium.net/modules/articles/index.php?cat_id=5" target="_blank">articles section</a> on the module web site for info on this version.</td> - </tr> - <tr> - <td class="head" width="100">Updates:</td> - <td class="odd"> - <a href="#" onclick="javascript:window.open('<?php echo $_SERVER['PHP_SELF']; ?>?op=updates', 'preview', 'height=450,width=650,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes');">Check for updates</a> - </td> - </tr> - <tr> -</table> - -<br /> -<table border="0" cellspacing="1" style="width: 100%;" class="outer"> - <tr> - <th colspan="2">Support, feature requests and comments</th> - </tr> - <tr> - <td class="head" width="100"><?php /*echo $xoopsModule->getVar('name');*/ ?>Forums:</td> - <td class="odd"> - The <?php echo $xoopsModule->getVar('name'); ?> - <a href="http://support.sirium.net/modules/newbb/index.php?cat=3" target="_blank">support forums</a> - is the preferred support method, I aim to answer all support/feature requests as soon as - possible. - </td> - </tr> - <tr> - <td class="head" width="100">E-mail:</td> - <td class="odd"> - I can also be contacted via the - <a href="http://support.sirium.net/modules/liaise/" target="_blank">contact form on the web site</a>. - </td> - </tr> - <tr> - <td class="head" width="100">General:</td> - <td class="odd"> - Please also check the forums, FAQs and Article pages to see if your problem - and/or question has already been answered. - </td> - </tr> -</table> - -<br /> -<table border="0" cellspacing="1" style="width: 100%;" class="outer"> - <tr> - <th>Credits</th> - </tr> - <tr> - <td class="odd"> - This module is made up from suggestions and ideas from many sources. - - <br/><br> - The idea of this page, and the navigation menu came from the newBB module (v2.0), - and Smartfactory modules, and the module dev documentation.<br> - <br> - <!--Thanks to everyone who has provided translations, ideas, bug reports and - support!--><br> - - </td> - </tr> -</table> - -<?php - -amrev_adminfooter(); -xoops_cp_footer(); -} // thing - -// -//----------------------------------------------------------------------------// -// -if(isset($_REQUEST['op']) AND $_REQUEST['op'] == "updates") { - - if(!@include('http://support.sirium.net/files/xoopsamreviews/version.txt')) { - echo "Sorry, I was unable to get version info!<br /> The server could be unavailable, or your host does not allow remote file fetching.<br />Please visit the main web site <a href=\"http://support.sirium.net/modules/mydownloads/\" target=\"_blank\">here</a>. "; - exit; - } -/* -$version = "0.24"; -$url = "http://support.sirium.net/modules/mydownloads/viewcat.php?cid=2"; -*/ - -/* if(!isset($version)) { - echo "Thingy not set"; - } else { - echo $version; - } -*/ -?> -<div align="center"><input type="button" value=" Close window " onclick="window.close();"></div> -<table border="0" style="width: 100%;"> - <tr> - <th colspan="2">Updates</th> - </tr> - <tr> - <td style="width: 90px; font-weight: bold;">Status:</td> - <td> -<?php - if (_AM_AMRVERSION > $version) { - echo "You are using a newer version than the latest release, you are probably using a test release."; - } - if (_AM_AMRVERSION < $version) { - echo "An update is available."; - } - if (_AM_AMRVERSION == $version) { - echo "You are using the latest version."; - } -?> - </td> - </tr> - <tr> - <td style="width: 90px; font-weight: bold; vertical-align: top;">Details:</td> - <td> - Your version: <?php echo _AM_AMRVERSION; ?><br/> - Available version: <?php echo $version; ?> - </td> - </tr> - <tr> - <td style="width: 90px; font-weight: bold; vertical-align: top;">Download:</td> - <td> - .tar.gz version: <a href="<?php echo $urlzip; ?>" target="_blank">Download</a> page.<br/> - .zip version: <a href="<?php echo $urlgzip; ?>" target="_blank">Download</a> page. - </td> - </tr> - <tr> - <td colspan="2"> - <span style="font-weight: bold;">History:</span><br /> - <pre> -<?php echo $history; ?> - </pre> - - </td> - </tr> -</table> -<div align="center"><input type="button" value=" Close window " onclick="window.close();"></div> - -<?php - -} // end - - - - -?> - \ No newline at end of file +<?php +/** + * XOOPS Profile 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 xoopsPoll + * @since 2.5.0 + * @author Mage, Mamba + * @version $Id $ + **/ + +include '../../../include/cp_header.php'; +include 'admin_header.php'; +xoops_cp_header(); + +$module_info =& $module_handler->get($xoopsModule->getVar("mid")); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/amreviews/trunk/amreviews/admin/admin_footer.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/admin_footer.php (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/admin/admin_footer.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1,10 @@ +<?php + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/amreviews/trunk/amreviews/admin/admin_header.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/admin_header.php (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/admin/admin_header.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1,37 @@ +<?php +### ============================================================= +### Mastop InfoDigital - Paix\xE3o por Internet +### ============================================================= +### Header com includes padr\xF5es para a Admin do M\xF3dulo +### ============================================================= +### Developer: Fernando Santos (topet05), fer...@ma... +### Copyright: Mastop InfoDigital \xA9 2003-2006 +### ------------------------------------------------------------- +### www.mastop.com.br +### ============================================================= +### $Id: admin_header.php,v 1.3 2007/05/15 09:17:05 topet05 Exp $ +### ============================================================= + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$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_MASTOPPUBLISH_MODULEADMIN_MISSING, false); + } \ No newline at end of file Modified: XoopsModules/amreviews/trunk/amreviews/admin/category.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/category.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/category.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -31,12 +31,7 @@ // ------------------------------------------------------------------------ // // includes -include ('../../../include/cp_header.php'); -if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { - include ("../language/".$xoopsConfig['language']."/main.php"); -} else { - include ("../language/english/main.php"); -} +include_once 'admin_header.php'; include_once("functions.inc.php"); include_once("../include/config.inc.php"); include_once (XOOPS_ROOT_PATH . "/class/xoopstree.php"); @@ -48,17 +43,21 @@ if (!isset($_REQUEST['op'])) { xoops_cp_header(); -amrev_adminmenu(1, _AM_AMREV_CAT); - /** * List categories * */ $class = ""; echo "<table border=\"0\" width=\"100%\" cellspacing=\"1\" class=\"outer\">"; - echo "<tr><th colspan=\"5\">" . _AM_AMREV_CATTBLCAP . "</th></td>"; +echo "<th colspan=\"5\">" . _AM_AMREV_CATTBLCAP . "</th></td>"; + echo "<tr><td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAPID ."</td>"; + echo "<td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAPTTL ."</td>"; + echo "<td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAP_VISIBLE ."</td>"; + echo "<td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAP_ACTIONS ."</td>"; + echo "</tr>"; + ## ## @@ -87,7 +86,7 @@ echo "<tr>"; echo "<td style=\"text-align: center; width: 20px;\" class=\"" . $rowclass . "\">" . $cats_arr[$tmpcpt]['id'] . "</td>"; - + if($cats_arr[$tmpcpt]['cat_parentid']!=0) { $cats_arr[$tmpcpt]['prefix'] = str_replace(".","-",$cats_arr[$tmpcpt]['prefix']) . ' '; //echo "thing1"; @@ -99,16 +98,16 @@ echo "<td class=\"" . $rowclass . "\">" . $cats_arr[$tmpcpt]['prefix'] . $cats_arr[$tmpcpt]['cat_title'] . "</td>"; if ($cats_arr[$tmpcpt]['cat_showme'] == 1) { - $bulb = "bulb-yell.png"; + $bulb = "1.png"; $alttxt = _AM_AMREV_STATUSSHOW; } else { - $bulb = "bulb-grey.png"; + $bulb = "0.png"; $alttxt = _AM_AMREV_STATUSHIDE; } - echo "<td style=\"text-align: center; width: 20px;\" class=\"" . $rowclass . "\"><img src=\"../images/" . $bulb . "\" title=\"". $alttxt ."\" alt=\"". $alttxt ."\"></td>"; - echo "<td style=\"text-align: center; width: 20px;\" class=\"" . $rowclass . "\"><a href=\"" . $_SERVER['PHP_SELF'] . "?op=edit&id=" . $cats_arr[$tmpcpt]['id'] . "\"><img src=\"/modules/amreviews/images/edit3.png\" title=\"Click to edit\" /></a></td>"; - echo "<td style=\"text-align: center; width: 20px;\" class=\"" . $rowclass . "\"><a href=\"" . $_SERVER['PHP_SELF'] . "?op=del&id=" . $cats_arr[$tmpcpt]['id'] . "\"><img src=\"/modules/amreviews/images/del3.png\" title=\"Click to delete\" /></a></td>"; + echo "<td style=\"text-align: center; width: 20px;\" class=\"" . $rowclass . "\"><img src=".$pathIcon16.'/'.$bulb. " title=\"". $alttxt ."\" alt=\"". $alttxt ."\"></td>"; + echo "<td style=\"text-align: center; width: 20px;\" class=\"" . $rowclass . "\"><a href=\"" . $_SERVER['PHP_SELF'] . "?op=edit&id=" . $cats_arr[$tmpcpt]['id'] . "\"><img src=".$pathIcon16."/edit.png title=\"Click to edit\" /></a>" + ."<a href=\"" . $_SERVER['PHP_SELF'] . "?op=del&id=" . $cats_arr[$tmpcpt]['id'] . "\"><img src=".$pathIcon16."/delete.png title=\"Click to delete\" /></a></td>"; echo "</tr>"; //$rowclass = ($rowclass == 'even') ? 'odd' : 'even'; @@ -132,7 +131,7 @@ include_once("catform.inc.php"); amrev_adminfooter(); -xoops_cp_footer(); +include_once 'admin_footer.php'; } // end if //----------------------------------------------------------------------------// @@ -142,7 +141,6 @@ */ if (isset($_REQUEST['op']) AND $_REQUEST['op'] == "save") { xoops_cp_header(); -//amrev_adminmenu(1, _AM_AMREV_CAT); if (isset($_POST['formdata'])) { $formdata = $_POST['formdata']; } else { $formdata = ""; } @@ -186,15 +184,14 @@ */ if (isset($_REQUEST['op']) AND $_REQUEST['op'] == "edit") { //xoops_cp_header(); -//amrev_adminmenu(1, _AM_AMREV_CAT); + /** * Load form if subop not set. */ if (!isset($_REQUEST['subop'])) { xoops_cp_header(); - //amrev_adminmenu(1, _AM_AMREV_CAT); - + if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = ""; } @@ -270,8 +267,8 @@ */ if (isset($_REQUEST['op']) AND $_REQUEST['op'] == "del") { //xoops_cp_header(); -//amrev_adminmenu(1, _AM_AMREV_CAT); + if (isset($_REQUEST['id'])) { $id = intval($_REQUEST['id']); } else { $id = ""; } Modified: XoopsModules/amreviews/trunk/amreviews/admin/functions.inc.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/functions.inc.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/functions.inc.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -33,73 +33,6 @@ // includes //include_once("header.php"); -/** -* This file holds admin functions only. -*/ - -/** -* Admin header. -*/ -function amrev_adminmenu($currentoption="0", $breadcrumb) { -global $xoopsModule, $xoopsConfig; - - /* Nice buttons styles */ - echo " - <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('" . XOOPS_URL . "/modules/"._AM_AMRMODDIR."/images/bg.png') 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('" . XOOPS_URL . "/modules/"._AM_AMRMODDIR."/images/left_both.png') 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('" . XOOPS_URL . "/modules/"._AM_AMRMODDIR."/images/right_both.png') 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> - "; - - $tblColors = Array(); - $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ''; - //$tblColors[$currentoption] = 'current'; - if($currentoption>=0) { - $tblColors[$currentoption] = 'current'; - } - - if (file_exists(XOOPS_ROOT_PATH . '/modules/'._AM_AMRMODDIR.'/language/' . $xoopsConfig['language'] . '/modinfo.php')) { - include_once XOOPS_ROOT_PATH. '/modules/'._AM_AMRMODDIR.'/language/' . $xoopsConfig['language'] . '/modinfo.php'; - } else { - include_once XOOPS_ROOT_PATH . '/modules/'._AM_AMRMODDIR.'/language/english/modinfo.php'; - } - - echo "<div id='buttontop'>"; - echo "<table border=\"0\" style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; - echo "<td style=\"width: 60%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><a class=\"nobutton\" href=\"../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid')."\">" . _AM_AMREV_GENERALSET . "</a> | <a href=\"../index.php\">" . _AM_AMREV_GOTOMOD . "</a> | <a href=\"about.php\">" . _AM_AMREV_ABOUT . "</a> | <a href=\"#\">" . _AM_AMREV_HELP . "</a></td>"; - echo "<td style=\"width: 40%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>" . $xoopsModule->name() . " " . _AM_AMREV_MODULEADMIN . "</b> " . $breadcrumb . "</td>"; - echo "</tr></table>"; - echo "</div>"; - - echo "<div id='buttonbar'>"; - echo "<ul>"; - echo "<li id='" . $tblColors[0] . "'><a href=\"index.php\"\"><span>" . _AM_AMREV_INDEX . "</span></a></li>\n"; - echo "<li id='" . $tblColors[1] . "'><a href=\"category.php\"><span>" . _AM_AMREV_CAT . "</span></a></li>\n"; - echo "<li id='" . $tblColors[2] . "'><a href=\"review.php\"><span>" . _AM_AMREV_REVIEWS . "</span></a></li>\n"; - echo "<li id='" . $tblColors[3] . "'><a href=\"image.php\"><span>" . _MI_AMREV_IMAGES . "</span></a></li>\n"; - echo "<li id='" . $tblColors[4] . "'><a href=\"perms.php\"><span>" . _AM_AMREV_PERMS . "</span></a></li>\n"; - //echo "<li id='" . $tblColors[5] . "'><a href=\"index.php\"><span>" . _MI_ . "</span></a></li>\n"; - //echo "<li id='" . $tblColors[6] . "'><a href=\"index.php\"><span>" . _MI_ . "</span></a></li>\n"; - - echo "</ul></div>"; - echo "<br /><br /><pre> </pre><pre> </pre>"; - -} // end function - -//----------------------------------------------------------------------------// - function amrev_adminfooter() { global $xoopsModule; Modified: XoopsModules/amreviews/trunk/amreviews/admin/image.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/image.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/image.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -31,12 +31,8 @@ // ------------------------------------------------------------------------ // // includes -include ('../../../include/cp_header.php'); -if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { - include ("../language/".$xoopsConfig['language']."/main.php"); -} else { - include ("../language/english/main.php"); -} +include_once 'admin_header.php'; + include_once("functions.inc.php"); include_once("../include/config.inc.php"); include_once (XOOPS_ROOT_PATH . "/class/xoopstree.php"); @@ -52,7 +48,6 @@ if (!isset($_REQUEST['op'])) { xoops_cp_header(); -amrev_adminmenu(3, _MI_AMREV_IMAGES); //echo XOOPS_ROOT_PATH . $xoopsModuleConfig['photopath'] . $destfilename; //echo XOOPS_ROOT_PATH ."/modules/". _AM_AMRMODDIR . "/cache/"; @@ -175,7 +170,7 @@ amrev_adminfooter(); -xoops_cp_footer(); +include_once 'admin_footer.php'; } // end if @@ -184,7 +179,6 @@ if (isset($_REQUEST['op']) AND $_REQUEST['op'] == "upload") { xoops_cp_header(); -//amrev_adminmenu(3, _MI_AMREV_IMAGES); #if (isset($_REQUEST['uploadfile'])) { $uploadfile = $_REQUEST['uploadfile']; } # else { $uploadfile = ""; } @@ -361,7 +355,6 @@ if (isset($_REQUEST['op']) AND $_REQUEST['op'] == "delimage") { //xoops_cp_header(); -//amrev_adminmenu(3, _MI_AMREV_IMAGES); /* if (isset($_REQUEST['formdata'])) { $formdata = $_REQUEST['formdata']; } Modified: XoopsModules/amreviews/trunk/amreviews/admin/index.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/index.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/index.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -1,11 +1,6 @@ <?php -// $Id: index.php,v 1.3 2007/01/24 19:15:59 andrew Exp $ +// $Id: index.php 8066 2011-11-06 05:09:33Z beckmi $ // ------------------------------------------------------------------------ // -// Author: Andrew Mills // -// Email: aj...@si... // -// About: This file is part of the AM Reviews module for Xoops v2. // -// // -// ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // // <http://www.xoops.org/> // @@ -29,59 +24,33 @@ // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // +// Author: Raul Recio (AKA UNFOR) // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // -// includes -include ('../../../include/cp_header.php'); -if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { - include ("../language/".$xoopsConfig['language']."/main.php"); -} else { - include ("../language/english/main.php"); -} +include_once 'admin_header.php'; include_once("functions.inc.php"); include_once("../include/config.inc.php"); - xoops_cp_header(); -amrev_adminmenu(0, _AM_AMREV_INDEX); -/** -* Summary -*/ $summary = amr_summary(); -/* -echo "<fieldset>"; -echo "<legend style=\"color: #990000; font-weight: bold;\">" . _AM_AMREV_SUMMARY . "</legend>"; -echo "<ul>"; -echo "<li>" . _AM_AMREV_WAITVAL . $summary['waitval'] . "</li>"; -echo "<li>" . _AM_AMREV_REVIEWTOT . $summary['revcount'] . "</li>"; -echo "<li>" . _AM_AMREV_CATETOT . $summary['catcount'] . "</li>"; -echo "</ul>"; -echo "</fieldset><br />"; -*/ +$indexAdmin = new ModuleAdmin(); +//----------------------- + $indexAdmin->addInfoBox(_AM_AMREV_SUMMARY); -echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">"; -echo "<tr><th colspan=\"2\">" . _AM_AMREV_SUMMARY . "</th></tr>"; -echo "<tr><td class=\"head\">". _AM_AMREV_WAITVALCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_WAITVAL, $summary['waitval']) . "</td></tr>"; -echo "<tr><td class=\"head\">". _AM_AMREV_REVIEWTOTCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_REVIEWTOT, $summary['revcount']) . "</td></tr>"; -echo "<tr><td class=\"head\">". _AM_AMREV_CATETOTCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_CATETOT, $summary['catcount']) . "</td></tr>"; -echo "<tr><td class=\"head\">". _AM_AMREV_VIEWSCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_VIEWS, $summary['views']) . "</td></tr>"; -echo "<tr><td class=\"head\">". _AM_AMREV_PUBLISHEDCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_PUBLISHED, $summary['published']) . "</td></tr>"; -echo "<tr><td class=\"head\">". _AM_AMREV_HIDDENCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_HIDDEN, $summary['hidden']) . "</td></tr>"; -echo "</table><br />"; + $indexAdmin->addInfoBoxLine(_AM_AMREV_SUMMARY, "<b>"._AM_AMREV_WAITVALCAP ."</b> ". sprintf(_AM_AMREV_WAITVAL,$summary['waitval']), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_AMREV_SUMMARY, "<b>"._AM_AMREV_REVIEWTOTCAP ."</b> ". sprintf(_AM_AMREV_REVIEWTOT, $summary['revcount']), 'Red'); +$indexAdmin->addInfoBoxLine(_AM_AMREV_SUMMARY, "<b>"._AM_AMREV_CATETOTCAP ."</b> ". sprintf(_AM_AMREV_CATETOT, $summary['catcount']), 'Red'); +$indexAdmin->addInfoBoxLine(_AM_AMREV_SUMMARY, "<b>"._AM_AMREV_VIEWSCAP ."</b> ". sprintf(_AM_AMREV_VIEWS, $summary['views']), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_AMREV_SUMMARY, "<b>"._AM_AMREV_PUBLISHEDCAP ."</b> ". sprintf(_AM_AMREV_PUBLISHED, $summary['published']), 'Red'); + $indexAdmin->addInfoBoxLine(_AM_AMREV_SUMMARY, "<b>"._AM_AMREV_HIDDENCAP ."</b> ". sprintf(_AM_AMREV_HIDDEN, $summary['hidden'])); +//---------------------------- - - - - -/** -* Do some tests -*/ +echo $indexAdmin->addNavigation('index.php'); +echo $indexAdmin->renderIndex(); amr_filechecks(); - - -amrev_adminfooter(); -xoops_cp_footer(); - -?> \ No newline at end of file +include 'admin_footer.php'; +//xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/amreviews/trunk/amreviews/admin/main.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/main.php (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/admin/main.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1,86 @@ +<?php +// $Id: main.php,v 1.3 2007/01/24 19:15:59 andrew Exp $ +// ------------------------------------------------------------------------ // +// Author: Andrew Mills // +// Email: aj...@si... // +// About: This file is part of the AM Reviews module for Xoops v2. // +// // +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +// includes +include ('../../../include/cp_header.php'); +if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { + include ("../language/".$xoopsConfig['language']."/main.php"); +} else { + include ("../language/english/main.php"); +} +include_once("functions.inc.php"); +include_once("../include/config.inc.php"); + +xoops_cp_header(); + +/** +* Summary +*/ +$summary = amr_summary(); +/* +echo "<fieldset>"; +echo "<legend style=\"color: #990000; font-weight: bold;\">" . _AM_AMREV_SUMMARY . "</legend>"; + +echo "<ul>"; +echo "<li>" . _AM_AMREV_WAITVAL . $summary['waitval'] . "</li>"; +echo "<li>" . _AM_AMREV_REVIEWTOT . $summary['revcount'] . "</li>"; +echo "<li>" . _AM_AMREV_CATETOT . $summary['catcount'] . "</li>"; +echo "</ul>"; +echo "</fieldset><br />"; +*/ + +echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">"; +echo "<tr><th colspan=\"2\">" . _AM_AMREV_SUMMARY . "</th></tr>"; +echo "<tr><td class=\"head\">". _AM_AMREV_WAITVALCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_WAITVAL, $summary['waitval']) . "</td></tr>"; +echo "<tr><td class=\"head\">". _AM_AMREV_REVIEWTOTCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_REVIEWTOT, $summary['revcount']) . "</td></tr>"; +echo "<tr><td class=\"head\">". _AM_AMREV_CATETOTCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_CATETOT, $summary['catcount']) . "</td></tr>"; +echo "<tr><td class=\"head\">". _AM_AMREV_VIEWSCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_VIEWS, $summary['views']) . "</td></tr>"; +echo "<tr><td class=\"head\">". _AM_AMREV_PUBLISHEDCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_PUBLISHED, $summary['published']) . "</td></tr>"; +echo "<tr><td class=\"head\">". _AM_AMREV_HIDDENCAP ."</td><td class=\"odd\">" . sprintf(_AM_AMREV_HIDDEN, $summary['hidden']) . "</td></tr>"; +echo "</table><br />"; + + + + + + +/** +* Do some tests +*/ +amr_filechecks(); + + + +amrev_adminfooter(); +xoops_cp_footer(); + +?> \ No newline at end of file Modified: XoopsModules/amreviews/trunk/amreviews/admin/menu.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/menu.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/menu.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -29,18 +29,57 @@ // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); -$adminmenu[0]['title'] = _MI_AMREVIEW_MENU1; -$adminmenu[0]['link'] = "admin/index.php"; -$adminmenu[1]['title'] = _MI_AMREVIEW_MENU2; -$adminmenu[1]['link'] = "admin/category.php"; -$adminmenu[2]['title'] = _MI_AMREVIEW_MENU3; -$adminmenu[2]['link'] = "admin/review.php"; -$adminmenu[3]['title'] = _MI_AMREVIEW_MENU4; -$adminmenu[3]['link'] = "admin/image.php"; -$adminmenu[4]['title'] = _MI_AMREVIEW_MENU5; -$adminmenu[4]['link'] = "admin/perms.php"; +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); +$pathModuleAdmin = $module->getInfo('dirmoduleadmin'); +$pathLanguage = $path . $pathModuleAdmin; -?> \ No newline at end of file +if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; +} + +include_once $fileinc; + +$adminmenu = array(); + +$i= 1; + +$adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME; +$adminmenu[$i]["link"] = 'admin/index.php'; +$adminmenu[$i]["icon"] = $pathIcon32 . '/home.png'; + +//$i++; +//$adminmenu[$i]["title"] =_MI_AMREVIEW_MENU1; +//$adminmenu[$i]["link"] = 'admin/main.php'; +//$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; + +$i++; +$adminmenu[$i]["title"] =_MI_AMREVIEW_MENU2; +$adminmenu[$i]["link"] = 'admin/category.php'; +$adminmenu[$i]["icon"] = $pathIcon32.'/category.png'; + +$i++; +$adminmenu[$i]["title"] = _MI_AMREVIEW_MENU3; +$adminmenu[$i]["link"] = 'admin/review.php'; +$adminmenu[$i]["icon"] = $pathIcon32.'/button_ok.png'; +$i++; +$adminmenu[$i]["title"] = _MI_AMREVIEW_MENU4; +$adminmenu[$i]["link"] = 'admin/image.php'; +$adminmenu[$i]["icon"] = $pathIcon32.'/photo.png'; +$i++; +$adminmenu[$i]["title"] = _MI_AMREVIEW_MENU5; +$adminmenu[$i]["link"] = 'admin/perms.php'; +$adminmenu[$i]["icon"] = $pathIcon32.'/permissions.png'; + +$i++; +$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT; +$adminmenu[$i]["link"] = 'admin/about.php'; +$adminmenu[$i]["icon"] = $pathIcon32 . '/about.png'; \ No newline at end of file Modified: XoopsModules/amreviews/trunk/amreviews/admin/perms.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/perms.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/perms.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -31,12 +31,7 @@ // ------------------------------------------------------------------------ // // includes -include ('../../../include/cp_header.php'); -if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { - include ("../language/".$xoopsConfig['language']."/main.php"); -} else { - include ("../language/english/main.php"); -} +include_once 'admin_header.php'; include_once("functions.inc.php"); include_once("../include/config.inc.php"); //include_once (XOOPS_ROOT_PATH . "/class/xoopstree.php"); @@ -52,7 +47,6 @@ if (!isset($_REQUEST['op'])) { xoops_cp_header(); -amrev_adminmenu(4, _AM_AMREV_PERMS); /** * For my reference, and anyone else's - how to use group perms: @@ -123,7 +117,7 @@ amrev_adminfooter(); -xoops_cp_footer(); +include_once 'admin_footer.php'; } // Modified: XoopsModules/amreviews/trunk/amreviews/admin/review.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/admin/review.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/admin/review.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -31,12 +31,7 @@ // ------------------------------------------------------------------------ // // includes -include ('../../../include/cp_header.php'); -if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { - include ("../language/".$xoopsConfig['language']."/main.php"); -} else { - include ("../language/english/main.php"); -} +include_once 'admin_header.php'; include_once("functions.inc.php"); include_once("../include/config.inc.php"); include_once (XOOPS_ROOT_PATH . "/class/xoopstree.php"); @@ -48,7 +43,6 @@ if (!isset($_REQUEST['op'])) { xoops_cp_header(); -amrev_adminmenu(2, _AM_AMREV_REVIEWS); $rowclass = ""; @@ -57,9 +51,9 @@ echo "<tr>"; echo "<td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAPID ."</td>"; echo "<td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAPTTL ."</td>"; - echo "<td class=\"head\"></td>"; - echo "<td class=\"head\"></td>"; - echo "<td class=\"head\"></td>"; + echo "<td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAP_VISIBLE ."</td>"; + echo "<td class=\"head\" style=\"text-align: center;\">". _AM_AMREW_REVCAP_ACTIONS ."</td>"; +// echo "<td class=\"head\"></td>"; echo "</tr>"; $sql = ("SELECT * FROM " .$xoopsDB->prefix('amreview_reviews') . " "); @@ -75,16 +69,16 @@ echo "<td class=\"". $rowclass ."\"><a href=\"javascript:;\" onclick=\"javascript:window.open('review.php?op=preview&id=". $myrow['id'] ."', 'preview', 'height=500,width=650,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,scrollbars=yes');\" title=\"". _AM_AMR_FRMCAPLNKPRVW ."\">". $myrow['title'] ."</a></td>"; if ($myrow['showme'] == 1) { - $bulb = "bulb-yell.png"; + $bulb = "1.png"; $alttxt = _AM_AMREV_STATUSSHOW; } else { - $bulb = "bulb-grey.png"; + $bulb = "0.png"; $alttxt = _AM_AMREV_STATUSHIDE; } - echo "<td style=\"text-align: center; width: 20px;\" class=\"". $rowclass ."\"><img src=\"../images/". $bulb ."\" title=\"". $alttxt ."\" alt=\"". $alttxt ."\" width=\"16\" height=\"16\" /></td>"; - echo "<td style=\"text-align: center; width: 20px;\" class=\"". $rowclass ."\"><a href=\"review.php?op=edit&id=". $myrow['id'] ."\"><img src=\"../images/edit3.png\" alt=\"". _AM_AMREV_CLICKEDIT ."\" title=\"". _AM_AMREV_CLICKEDIT ."\" width=\"16\" height=\"16\" /></a></td>"; - echo "<td style=\"text-align: center; width: 20px;\" class=\"". $rowclass ."\"><a href=\"review.php?op=del&id=". $myrow['id'] ."\"><img src=\"../images/del3.png\" alt=\"". _AM_AMREV_CLICKDELETE ."\" title=\"". _AM_AMREV_CLICKDELETE ."\" width=\"16\" height=\"16\" /></a></td>"; + echo "<td style=\"text-align: center; width: 20px;\" class=\"". $rowclass ."\"><img src=".$pathIcon16.'/'.$bulb. " title=\"". $alttxt ."\" alt=\"". $alttxt ."\" width=\"16\" height=\"16\" /></td>"; + echo "<td style=\"text-align: center; width: 20px;\" class=\"". $rowclass ."\"><a href=\"review.php?op=edit&id=". $myrow['id'] ."\"><img src=".$pathIcon16."/edit.png alt=\"". _AM_AMREV_CLICKEDIT ."\" title=\"". _AM_AMREV_CLICKEDIT ."\" width=\"16\" height=\"16\" /></a>" + ."<a href=\"review.php?op=del&id=". $myrow['id'] ."\"><img src=".$pathIcon16."/delete.png alt=\"". _AM_AMREV_CLICKDELETE ."\" title=\"". _AM_AMREV_CLICKDELETE ."\" width=\"16\" height=\"16\" /></a></td>"; echo "</tr>"; } } @@ -102,7 +96,7 @@ include_once("reviewform.inc.php"); amrev_adminfooter(); -xoops_cp_footer(); +include_once 'admin_footer.php'; } // end if //----------------------------------------------------------------------------// @@ -112,8 +106,8 @@ */ if (isset($_REQUEST['op']) AND $_REQUEST['op'] == "save") { xoops_cp_header(); -//amrev_adminmenu(1, _AM_AMREV_CAT); + if (isset($_POST['formdata'])) { $formdata = $_POST['formdata']; } else { $formdata = ""; } @@ -338,7 +332,7 @@ */ if (!isset($_REQUEST['subop'])) { xoops_cp_header(); - amrev_adminmenu(2, _AM_AMREV_REVIEWS); + if (isset($_GET['id'])) { $id = intval($_GET['id']); } else { $id = ""; } @@ -393,7 +387,7 @@ include_once("reviewform.inc.php"); amrev_adminfooter(); - xoops_cp_footer(); + include_once 'admin_footer.php'; } // end if no subop /** @@ -555,7 +549,6 @@ */ if (isset($_REQUEST['op']) AND $_REQUEST['op'] == "del") { //xoops_cp_header(); -//amrev_adminmenu(1, _AM_AMREV_CAT); if (isset($_REQUEST['id'])) { $id = intval($_REQUEST['id']); } else { $id = ""; } Added: XoopsModules/amreviews/trunk/amreviews/docs/changelog.txt =================================================================== --- XoopsModules/amreviews/trunk/amreviews/docs/changelog.txt (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/docs/changelog.txt 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1,7 @@ +<b><u>Version 0.1 Alpha 2 (2012-05-06)</u></b> + +- converted to XOOPS 2.5.x Admin GUI (mamba) + +<b><u>Version 0.1. Alpha 1 (2007-01-24)</u></b> + +- First Alpha release of the module. \ No newline at end of file Added: XoopsModules/amreviews/trunk/amreviews/docs/credits.txt =================================================================== --- XoopsModules/amreviews/trunk/amreviews/docs/credits.txt (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/docs/credits.txt 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1,6 @@ +CREDITS: +========= + +This module is made up from suggestions and ideas from many sources. + +The idea of this page, and the navigation menu came from the newBB module (v2.0), and Smartfactory modules, and the module dev documentation. \ No newline at end of file Added: XoopsModules/amreviews/trunk/amreviews/docs/index.html =================================================================== --- XoopsModules/amreviews/trunk/amreviews/docs/index.html (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/docs/index.html 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Added: XoopsModules/amreviews/trunk/amreviews/docs/readme.txt =================================================================== --- XoopsModules/amreviews/trunk/amreviews/docs/readme.txt (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/docs/readme.txt 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1,32 @@ +What is mymenus module (v1.0) ? +====================== +Mymenus is menu manager module that allows you to display dynamic or static menus in your website. + + +Features +====================== +- pluggable skins (skins are menu layouts, they can be navigation menus, breadcrumbs or sitemaps) +- pluggable plugins (title and links decorators for integration of module features) +- infinite menus levels(nested menus) +- auto selected menus(menus are highlighted depending on the page you are in) +- ability to assign a menu to a smarty variable(you can use my menus has a block or use it inside your theme or templates) +- ability to get a skin from the current theme folder(theme/mytheme/menu/scripts go here) +- and much more + + +Requirements +==================== +Requires xoops 2.4.x and php5 + + +How to install mymenus +==================== +Copy mymenus folder into the /modules directory of your website. +Log in to your site as administrator, go to System Admin > Modules, look for the mymenus +icon in the list of uninstalled modules and click in the install icon. +Follow the directions in the screen and you'll be ready to go. + + +Usage and developing documentation +====================== +Please refer to docs folder for more information. \ No newline at end of file Deleted: XoopsModules/amreviews/trunk/amreviews/images/back.gif =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/bulb-grey.png =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/bulb-yell.png =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/del3.png =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/edit3.png =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/email.gif =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/exit.gif =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/pdf.gif =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/pencil.gif =================================================================== (Binary files differ) Deleted: XoopsModules/amreviews/trunk/amreviews/images/print.gif =================================================================== (Binary files differ) Modified: XoopsModules/amreviews/trunk/amreviews/language/english/admin.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/language/english/admin.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/language/english/admin.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -205,6 +205,7 @@ define("_AM_AMREV_CATPERMTTL", "Category permissions"); define("_AM_AMREV_CATPERMDSC", "Select who can view which category:"); +// 0.1 Alpha 2 - -?> \ No newline at end of file +define("_AM_AMREW_REVCAP_VISIBLE", "Visible:"); +define("_AM_AMREW_REVCAP_ACTIONS", "Actions:"); Added: XoopsModules/amreviews/trunk/amreviews/language/english/help/help.html =================================================================== --- XoopsModules/amreviews/trunk/amreviews/language/english/help/help.html (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/language/english/help/help.html 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1,33 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/amreviews/admin/index.php" + title="Back to the administration of AM Reviews"> AM Reviews + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of AM Reviews"/> + </a></h1> + + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + + <p class="even">AM Reviews is a XOOPS module that allows site owners to display and manage reviews on products or services.</p> + <h4 class="odd">Install/uninstall</h4> + + <p>No special measures necessary, follow the standard installation process – extract the module folder into the + ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + + <p>Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a></p> + <h4 class="odd">Operating instructions</h4> + + <p class="even">To set up this module you need to:</p> + <ul> + <li>Configure your preferences for the module (see ‘Preferences’).</li> + <li>Add Categories.</li> + <li>Add Reviews.</li> + </ul> + + <h4 class="odd">Tutorial</h4> + + <p class="even">Currently there is no tutorial</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Added: XoopsModules/amreviews/trunk/amreviews/language/english/help/index.html =================================================================== --- XoopsModules/amreviews/trunk/amreviews/language/english/help/index.html (rev 0) +++ XoopsModules/amreviews/trunk/amreviews/language/english/help/index.html 2012-05-07 04:57:03 UTC (rev 9445) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/amreviews/trunk/amreviews/sql/mysql.sql =================================================================== --- XoopsModules/amreviews/trunk/amreviews/sql/mysql.sql 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/sql/mysql.sql 2012-05-07 04:57:03 UTC (rev 9445) @@ -43,7 +43,7 @@ `cat_weight` int(5) NOT NULL default '0', `cat_showme` int(5) NOT NULL default '1', PRIMARY KEY (`id`) -) TYPE=MyISAM; +) ENGINE=MyISAM; #-- #-- Dumping data for table `<prefix>_amreview_cat` @@ -90,7 +90,7 @@ `noimage` enum('0','1') NOT NULL default '1', `nobr` enum('0','1') NOT NULL default '1', PRIMARY KEY (`id`) -) TYPE=MyISAM; +) ENGINE=MyISAM; #-- -------------------------------------------------------- @@ -113,5 +113,5 @@ `rate_validated` int(5) NOT NULL default '0', `rate_useful` varchar(20) NOT NULL default '0/0', PRIMARY KEY (`id`) -) TYPE=MyISAM; +) ENGINE=MyISAM; Modified: XoopsModules/amreviews/trunk/amreviews/templates/amr_review.html =================================================================== --- XoopsModules/amreviews/trunk/amreviews/templates/amr_review.html 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/templates/amr_review.html 2012-05-07 04:57:03 UTC (rev 9445) @@ -109,26 +109,26 @@ <td class="itemFoot"> <!-- back --> - <a href="<{$xoops_url}>/modules/<{$mod_dir}>/"><img src="<{$xoops_url}>/modules/<{$mod_dir}>/images/back.gif" alt="<{$backcap}>" title="<{$backcap}>" /></a> + <a href="<{$xoops_url}>/modules/<{$mod_dir}>/"><img src="<{xoModuleIcons16 back.png}>" alt="<{$backcap}>" title="<{$backcap}>" /></a> <!-- switch for print --> <{if $print_switch == 1}> - <a href="<{$xoops_url}>/modules/<{$mod_dir}>/print.php?id=<{$id}>" target="_blank"><img src="<{$xoops_url}>/modules/<{$mod_dir}>/images/print.gif" alt="<{$printcap}>" title="<{$printcap}>" /></a> + <a href="<{$xoops_url}>/modules/<{$mod_dir}>/print.php?id=<{$id}>" target="_blank"><img src="<{xoModuleIcons16 printer.png}>" alt="<{$printcap}>" title="<{$printcap}>" /></a> <{/if}> <!-- switch for e-mail --> <{if $email_switch == 1}> - <a href="<{$xoops_url}>/modules/<{$mod_dir}>/email.php?id=<{$id}>"><img src="<{$xoops_url}>/modules/<{$mod_dir}>/images/email.gif" alt="<{$emailcap}>" title="<{$emailcap}>" /></a> + <a href="<{$xoops_url}>/modules/<{$mod_dir}>/email.php?id=<{$id}>"><img src="<{xoModuleIcons16 mail_forward.png}>" alt="<{$emailcap}>" title="<{$emailcap}>" /></a> <{/if}> <!-- switch for PDF --> <{if $pdf_switch == 1}> - <a href="<{$xoops_url}>/modules/<{$mod_dir}>/makepdf.php?id=<{$id}>" target="_blank"><img src="<{$xoops_url}>/modules/<{$mod_dir}>/images/pdf.gif" alt="<{$emailcap}>" title="<{$pdfcap}>" /></a> + <a href="<{$xoops_url}>/modules/<{$mod_dir}>/makepdf.php?id=<{$id}>" target="_blank"><img src="<{xoModuleIcons16 pdf.png}>" alt="<{$emailcap}>" title="<{$pdfcap}>" /></a> <{/if}> <!-- switch edit for admin --> <{if $isadmin == 1}> - <a href="<{$xoops_url}>/modules/<{$mod_dir}>/admin/review.php?op=edit&id=<{$id}>"><img src="<{$xoops_url}>/modules/<{$mod_dir}>/images/pencil.gif" alt="<{$emailcap}>" title="<{$editcap}>" /></a> + <a href="<{$xoops_url}>/modules/<{$mod_dir}>/admin/review.php?op=edit&id=<{$id}>"><img src="<{xoModuleIcons16 edit.png}>" alt="<{$emailcap}>" title="<{$editcap}>" /></a> <{/if}> <!-- switch delete for admin --> <{if $isadmin == 1}> - <a href="<{$xoops_url}>/modules/<{$mod_dir}>/admin/review.php?op=del&id=<{$id}>"><img src="<{$xoops_url}>/modules/<{$mod_dir}>/images/exit.gif" alt="<{$emailcap}>" title="<{$deletecap}>" /></a> + <a href="<{$xoops_url}>/modules/<{$mod_dir}>/admin/review.php?op=del&id=<{$id}>"><img src="<{xoModuleIcons16 delete.png}>" alt="<{$emailcap}>" title="<{$deletecap}>" /></a> <{/if}> </td> Modified: XoopsModules/amreviews/trunk/amreviews/xoops_version.php =================================================================== --- XoopsModules/amreviews/trunk/amreviews/xoops_version.php 2012-05-07 04:42:35 UTC (rev 9444) +++ XoopsModules/amreviews/trunk/amreviews/xoops_version.php 2012-05-07 04:57:03 UTC (rev 9445) @@ -37,14 +37,34 @@ $modversion['description'] = _MI_AM_REVIEW_DESC; $modversion['credits'] = ''; $modversion['author'] = 'Andrew Mills - http://support.sirium.net'; -$modversion['help'] = 'help.html'; -$modversion['license'] = 'GPL see LICENSE'; +$modversion['help'] = 'page=help'; +$modversion['license'] = 'GNU GPL 2.0'; +$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; $modversion['official'] = 0; $modversion['image'] = 'modulelogo.png'; $modversion['dirname'] = 'amreviews'; +$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; + +//about +$modversion['demo_site_url'] = ""; +$modversion['demo_site_name'] = ""; +$modversion['module_website_url'] = "http://xoops.org"; +$modversion['module_website_name'] = "XOOPS"; +$modversion['release_date'] = "2012/05/06"; +$modversion['module_status'] = "Alpha 2"; +$modversion["author_website_url"] = "http://sirium.net"; +$modversion["author_website_name"] = "Sirium.net"; +$modversion['min_php']='5.2'; +$modversion['min_xoops']="2.5.0"; +$modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +$modversion['min_admin'] = '1.1'; + // Admin $modversion['hasAdmin'] = 1; +$modversion['system_menu'] = 1; $modversion['adminindex'] = "admin/index.php"; $modversion['adminmenu'] = "admin/menu.php"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |