|
From: <be...@us...> - 2014-04-19 19:30:58
|
Revision: 12462
http://sourceforge.net/p/xoops/svn/12462
Author: beckmi
Date: 2014-04-19 19:30:53 +0000 (Sat, 19 Apr 2014)
Log Message:
-----------
replacing template extensions from .html to .tpl
Modified Paths:
--------------
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/categories.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/downloads.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/index.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mimetypes.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mirrors.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/permissions.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/ratings.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reportsmodifications.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reviews.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/brokenfile.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/breadcrumb.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/wfdownloads_lists.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/docs/changelog.txt
XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/directorychecker.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/filechecker.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/functions.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/index.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/mirror.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/newlist.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/ratefile.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/review.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/rss.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/singlefile.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/submit.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/topten.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/viewcat.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/visit.php
XoopsModules/wfdownloads/branches/mamba/wfdownloads/xoops_version.php
Added Paths:
-----------
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/index.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_ip_logslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_mimetypeslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_mirrorslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_permissions.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_ratingslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_reportsmodificationslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_reviewslist.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/blocks/wfdownloads_block_new.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/blocks/wfdownloads_block_top.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/blocks/wfdownloads_block_top_by_cat.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_brokenfile.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_common_breadcrumb.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_common_letterschoice.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_disclaimer.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_download.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_footer.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_header.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_index.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_mirrors.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_newlistindex.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_ratefile.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_reviews.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_singlefile.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_submit.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_topten.tpl
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_viewcat.tpl
Removed Paths:
-------------
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_ip_logslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_mimetypeslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_mirrorslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_permissions.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_ratingslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_reportsmodificationslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_reviewslist.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/blocks/wfdownloads_block_new.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/blocks/wfdownloads_block_top.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/blocks/wfdownloads_block_top_by_cat.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_brokenfile.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_common_breadcrumb.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_common_letterschoice.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_disclaimer.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_download.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_footer.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_header.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_index.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_mirrors.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_newlistindex.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_ratefile.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_reviews.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_singlefile.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_submit.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_topten.html
XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/wfdownloads_viewcat.html
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/categories.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/categories.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/categories.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -241,7 +241,7 @@
$sorted_categories = wfdownloads_sortCategories();
$GLOBALS['xoopsTpl']->assign('sorted_categories', $sorted_categories);
$GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() );
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_categorieslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_categorieslist.tpl");
} else {
redirect_header("{$currentFile}?op=category.add", 1, _AM_WFDOWNLOADS_CCATEGORY_NOEXISTS);
}
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/downloads.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/downloads.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/downloads.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -794,7 +794,7 @@
} else {
// NOP
}
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_downloadslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_downloadslist.tpl");
include 'admin_footer.php';
break;
@@ -859,7 +859,7 @@
}
}
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_ip_logslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_ip_logslist.tpl");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/index.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/index.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/index.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -216,9 +216,7 @@
$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus($path, 0777, $redirectFile));
$indexAdmin->addConfigBoxLine(FileChecker::getFileStatus($path . 'blank.gif', dirname(dirname(__FILE__)) . '/assets/images/blank.gif', $redirectFile));
$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus($path . 'thumbs' . '/', 0777, $redirectFile));
-$indexAdmin->addConfigBoxLine(
- FileChecker::getFileStatus($path . 'thumbs' . '/' . 'blank.gif', dirname(dirname(__FILE__)) . '/assets/images/blank.gif', $redirectFile)
-);
+$indexAdmin->addConfigBoxLine(FileChecker::getFileStatus($path . 'thumbs' . '/' . 'blank.gif', dirname(dirname(__FILE__)) . '/assets/images/blank.gif', $redirectFile));
$indexAdmin->addConfigBoxLine('');
@@ -226,9 +224,7 @@
$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus($path, 0777, $redirectFile));
$indexAdmin->addConfigBoxLine(FileChecker::getFileStatus($path . 'blank.gif', dirname(dirname(__FILE__)) . '/assets/images/blank.gif', $redirectFile));
$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus($path . 'thumbs' . '/', 0777, $redirectFile));
-$indexAdmin->addConfigBoxLine(
- FileChecker::getFileStatus($path . 'thumbs' . '/' . 'blank.gif', dirname(dirname(__FILE__)) . '/assets/images/blank.gif', $redirectFile)
-);
+$indexAdmin->addConfigBoxLine(FileChecker::getFileStatus($path . 'thumbs' . '/' . 'blank.gif', dirname(dirname(__FILE__)) . '/assets/images/blank.gif', $redirectFile));
//---------------------------
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mimetypes.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mimetypes.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mimetypes.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -218,7 +218,7 @@
$GLOBALS['xoopsTpl']->assign('allowAdminMimetypes', $allowAdminMimetypes);
$GLOBALS['xoopsTpl']->assign('allowUserMimetypes', $allowUserMimetypes);
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_mimetypeslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_mimetypeslist.tpl");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mirrors.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mirrors.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/mirrors.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -190,7 +190,7 @@
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_mirrorslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_mirrorslist.tpl");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/permissions.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/permissions.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/permissions.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -45,6 +45,6 @@
$GLOBALS['xoopsTpl']->assign('down_cat_form', $down_cat_form->render());
$GLOBALS['xoopsTpl']->assign('up_cat_form', $up_cat_form->render());
-$GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_permissions.html");
+$GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_permissions.tpl");
include 'admin_footer.php';
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/ratings.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/ratings.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/ratings.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -83,7 +83,7 @@
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_ratingslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_ratingslist.tpl");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reportsmodifications.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reportsmodifications.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reportsmodifications.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -404,7 +404,7 @@
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_reportsmodificationslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_reportsmodificationslist.tpl");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reviews.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reviews.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/admin/reviews.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -202,7 +202,7 @@
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
- $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_reviewslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_reviewslist.tpl");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/brokenfile.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/brokenfile.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/brokenfile.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -120,7 +120,7 @@
}
}
} else {
- $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_brokenfile.html";
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_brokenfile.tpl";
include XOOPS_ROOT_PATH . '/header.php';
// Begin Main page Heading etc
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/breadcrumb.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/breadcrumb.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/breadcrumb.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -69,7 +69,7 @@
require_once $GLOBALS['xoops']->path('class/template.php');
$breadcrumbTpl = new XoopsTpl();
$breadcrumbTpl->assign('breadcrumb', $this->_bread);
- $html = $breadcrumbTpl->fetch("db:" . $this->dirname . "_common_breadcrumb.html");
+ $html = $breadcrumbTpl->fetch("db:" . $this->dirname . "_common_breadcrumb.tpl");
unset($breadcrumbTpl);
return $html;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/wfdownloads_lists.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/wfdownloads_lists.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/class/wfdownloads_lists.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -117,7 +117,7 @@
}
break;
case "html":
- $types = "[.htm|.html|.xhtml|.php|.php3|.phtml|.txt]";
+ $types = "[.htm|.html|.xhtml|.php|.php3|.phtml|.txt|.tpl]";
if ($noselection) {
$filelist[""] = "No Selection";
}
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/docs/changelog.txt
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/docs/changelog.txt 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/docs/changelog.txt 2014-04-19 19:30:53 UTC (rev 12462)
@@ -1,4 +1,5 @@
-<b><u>=> Version 3.23 Beta (2014-04-14)</u></b>
+<b><u>=> Version 3.23 Beta (2014-04-19)</u></b>
+- replaced template extensions from .html to .tpl (mamba)
- replaced Thickbox with MagnificPopup (mamba)
- fixed: source code for HTML5/CSS3 (mamba)
- moved module.css, and /js and /images to /assets folder (mamba)
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/directorychecker.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/directorychecker.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/directorychecker.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -22,7 +22,8 @@
//defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined");
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
-xoops_loadLanguage('directorychecker', 'wfdownloads');
+$mydirname = basename(dirname(dirname(__FILE__)));
+xoops_loadLanguage('directorychecker', $mydirname);
/**
* Class DirectoryChecker
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/filechecker.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/filechecker.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/filechecker.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -22,7 +22,8 @@
//defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined");
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
-xoops_loadLanguage('filechecker', 'wfdownloads');
+$mydirname = basename(dirname(dirname(__FILE__)));
+xoops_loadLanguage('filechecker', $mydirname);
/**
* Class FileChecker
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/functions.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/functions.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/include/functions.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -364,7 +364,7 @@
$letterschoiceTpl = new XoopsTpl();
$letterschoiceTpl->caching = false; // Disable cache
$letterschoiceTpl->assign('alphabet', $alphabet_array);
- $html = $letterschoiceTpl->fetch("db:" . $wfdownloads->getModule()->dirname() . "_common_letterschoice.html");
+ $html = $letterschoiceTpl->fetch("db:" . $wfdownloads->getModule()->dirname() . "_common_letterschoice.tpl");
unset($letterschoiceTpl);
return $html;
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/index.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/index.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/index.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -45,7 +45,7 @@
$allowedDownCategoriesIds = $gperm_handler->getItemIds('WFDownCatPerm', $groups, $wfdownloads->getModule()->mid());
$allowedUpCategoriesIds = $gperm_handler->getItemIds('WFUpCatPerm', $groups, $wfdownloads->getModule()->mid());
-$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_index.html";
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_index.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/mirror.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/mirror.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/mirror.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -68,7 +68,7 @@
case "list" : // this case is not removed for backward compatibility issues
$start = WfdownloadsRequest::getInt('start', 0);
- $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_mirrors.html";
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_mirrors.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/newlist.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/newlist.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/newlist.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -21,7 +21,7 @@
$currentFile = basename(__FILE__);
include 'header.php';
-$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_newlistindex.html";
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_newlistindex.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/ratefile.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/ratefile.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/ratefile.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -116,7 +116,7 @@
echo $rating->getHtmlErrors();
}
} else {
- $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_ratefile.html";
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_ratefile.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/review.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/review.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/review.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -68,7 +68,7 @@
case "list" : // this care is not removed for backward compatibility issues
$start = WfdownloadsRequest::getInt('start', 0);
- $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_reviews.html";
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_reviews.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/rss.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/rss.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/rss.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -28,7 +28,7 @@
$feed_type = 'rss';
$contents = ob_get_clean();
header('Content-Type:text/xml; charset=utf-8');
-$xoopsOption['template_main'] = 'system_' . $feed_type . '.html';
+$xoopsOption['template_main'] = 'system_' . $feed_type . '.tpl';
error_reporting(0);
include_once(XOOPS_ROOT_PATH . "/class/template.php");
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/singlefile.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/singlefile.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/singlefile.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -58,7 +58,7 @@
}
// Load Template
-$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_singlefile.html";
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_singlefile.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/submit.php
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/submit.php 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/submit.php 2014-04-19 19:30:53 UTC (rev 12462)
@@ -71,7 +71,7 @@
switch ($op) {
case "download.disclaimer" :
// Show disclaimers
- $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_disclaimer.html";
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_disclaimer.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
@@ -168,7 +168,7 @@
$sform = $download->getForm();
}
- $xoopsOption['template_main'] = 'wfdownloads_submit.html';
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_submit.tpl";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Added: XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/index.html
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/index.html (rev 0)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/index.html 2014-04-19 19:30:53 UTC (rev 12462)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Deleted: XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.html
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.html 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.html 2014-04-19 19:30:53 UTC (rev 12462)
@@ -1,46 +0,0 @@
-<form action="categories.php" method="post" id="categoriesform">
- <fieldset>
- <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_CATEGORIES_LIST}></legend>
- <table class="outer">
- <tr>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_ID}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_WEIGHT}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_DESCRIPTION}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_ACTION}></th>
- </tr>
- <{foreach item=sorted_category from=$sorted_categories}>
- <tr class="<{cycle values='even, odd'}>">
- <td><{$sorted_category.category.cid}></td>
- <td>
- <{section name=indent loop=$sorted_category.level-1 step=1}}>-<{/section}>
- <a href='../viewcat.php?cid=<{$sorted_category.category.cid}>'><{$sorted_category.category.title}></a>
- </td>
- <td>
- <input type="text" name="new_weights[<{$sorted_category.category.cid}>]" size="5" maxlength="5"
- value="<{$sorted_category.category.weight}>"/>
- </td>
- <td><{$sorted_category.category.description}></td>
- <td align='center'>
- <a href="?op=category.edit&cid=<{$sorted_category.category.cid}>" title="<{$smarty.const._EDIT}>"><img
- src="<{xoModuleIcons16 edit.png}>" title="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>"/></a>
- <a href="?op=category.delete&cid=<{$sorted_category.category.cid}>" title="<{$smarty.const._DELETE}>"><img
- src="<{xoModuleIcons16 delete.png}>" title="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>"/></a>
- <a href="?op=category.move&cid=<{$sorted_category.category.cid}>" title="<{$smarty.const._AM_WFDOWNLOADS_BMOVE}>"><img
- src="<{xoModuleIcons16 forward.png}>" title="<{$smarty.const._AM_WFDOWNLOADS_BMOVE}>"
- alt="<{$smarty.const._AM_WFDOWNLOADS_BMOVE}>"/></a>
- </td>
- </tr>
- <{/foreach}>
- <tr>
- <td colspan="1"> </td>
- <td>
- <{$token}>
- <input type="hidden" name="op" value="categories.reorder"/>
- <input type="submit" name="submit" value="<{$smarty.const._AM_WFDOWNLOADS_BUTTON_CATEGORIES_REORDER}>"/>
- </td>
- <td colspan="2"> </td>
- </tr>
- </table>
- </fieldset>
-</form>
Added: XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.tpl
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.tpl (rev 0)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_categorieslist.tpl 2014-04-19 19:30:53 UTC (rev 12462)
@@ -0,0 +1,46 @@
+<form action="categories.php" method="post" id="categoriesform">
+ <fieldset>
+ <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_CATEGORIES_LIST}></legend>
+ <table class="outer">
+ <tr>
+ <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_ID}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_WEIGHT}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_DESCRIPTION}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_ACTION}></th>
+ </tr>
+ <{foreach item=sorted_category from=$sorted_categories}>
+ <tr class="<{cycle values='even, odd'}>">
+ <td><{$sorted_category.category.cid}></td>
+ <td>
+ <{section name=indent loop=$sorted_category.level-1 step=1}}>-<{/section}>
+ <a href='../viewcat.php?cid=<{$sorted_category.category.cid}>'><{$sorted_category.category.title}></a>
+ </td>
+ <td>
+ <input type="text" name="new_weights[<{$sorted_category.category.cid}>]" size="5" maxlength="5"
+ value="<{$sorted_category.category.weight}>"/>
+ </td>
+ <td><{$sorted_category.category.description}></td>
+ <td align='center'>
+ <a href="?op=category.edit&cid=<{$sorted_category.category.cid}>" title="<{$smarty.const._EDIT}>"><img
+ src="<{xoModuleIcons16 edit.png}>" title="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>"/></a>
+ <a href="?op=category.delete&cid=<{$sorted_category.category.cid}>" title="<{$smarty.const._DELETE}>"><img
+ src="<{xoModuleIcons16 delete.png}>" title="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>"/></a>
+ <a href="?op=category.move&cid=<{$sorted_category.category.cid}>" title="<{$smarty.const._AM_WFDOWNLOADS_BMOVE}>"><img
+ src="<{xoModuleIcons16 forward.png}>" title="<{$smarty.const._AM_WFDOWNLOADS_BMOVE}>"
+ alt="<{$smarty.const._AM_WFDOWNLOADS_BMOVE}>"/></a>
+ </td>
+ </tr>
+ <{/foreach}>
+ <tr>
+ <td colspan="1"> </td>
+ <td>
+ <{$token}>
+ <input type="hidden" name="op" value="categories.reorder"/>
+ <input type="submit" name="submit" value="<{$smarty.const._AM_WFDOWNLOADS_BUTTON_CATEGORIES_REORDER}>"/>
+ </td>
+ <td colspan="2"> </td>
+ </tr>
+ </table>
+ </fieldset>
+</form>
Deleted: XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.html
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.html 2014-04-19 16:36:55 UTC (rev 12461)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.html 2014-04-19 19:30:53 UTC (rev 12462)
@@ -1,327 +0,0 @@
-<form action="downloads.php" method="post" id="downloadsform">
-<fieldset>
- <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_MINDEX_PUBLISHEDDOWN}></legend>
- <{if ($published_downloads_count == 0)}>
- <{$smarty.const._AM_WFDOWNLOADS_MINDEX_NODOWNLOADSFOUND}>
- <{else}>
- <table class="outer">
- <tr>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ID}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_POSTER}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_SUBMITTED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ONLINESTATUS}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_PUBLISHED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_LOG}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ACTION}></th>
- </tr>
-
- <form id='form_filter' enctype='multipart/form-data' method='post' action='' name='form_filter'>
- <tr>
- <td> </td>
- <td>
- <select id='filter_title_condition' title='<{$smarty.const._AM_WFDOWNLOADS_SEARCH}>' name='filter_title_condition' size='1'>
- <option value='='
- <{if $filter_title_condition == '='}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_EQUAL}></option>
- <option value='LIKE'
- <{if $filter_title_condition == 'LIKE'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_CONTAINS}></option>
- </select>
- <input id='filter_title' type='text' value='<{$filter_title}>' maxlength='100' size='15' title='' name='filter_title'>
- </td>
- <td>
- <select id='filter_category_title_condition' title='<{$smarty.const._AM_WFDOWNLOADS_SEARCH}>'
- name='filter_category_title_condition' size='1'>
- <option value='='
- <{if $filter_category_title_condition ==
- '='}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_EQUAL}></option>
- <option value='LIKE'
- <{if $filter_category_title_condition ==
- 'LIKE'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_CONTAINS}></option>
- </select>
- <input id='filter_category_title' type='text' value='<{$filter_category_title}>' maxlength='100' size='15' title=''
- name='filter_category_title'>
- </td>
- <td><{$filter_submitter_select}></td>
- <td>
- <{*
- <select id='filter_date_condition' title='<{$smarty.const._AM_WFDOWNLOADS_SEARCH}>' name='filter_date_condition' size='1'>
- <option value='='
- <{if $filter_date_condition == '='}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_EQUAL}></option>
- <option value='>'
- <{if $filter_date_condition == '>'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_GREATERTHAN}></option>
- <option value='<'
- <{if $filter_date_condition == '<'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_LESSTHAN}></option>
- </select>
- <{$filter_date_select}>
- *}>
- </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td align='center'>
- <input id='submit' class='formButton' type='submit' title='<{$smarty.const._AM_WFDOWNLOADS_FILTER}>'
- value='<{$smarty.const._AM_WFDOWNLOADS_FILTER}>' name='submit'>
- </td>
- </tr>
- <input id='op' type='hidden' value='downloads.filter' name='op'>
- </form>
-
- <{foreach item=download from=$published_downloads}>
- <tr class="<{cycle values='even, odd'}>">
- <td align='center'><{$download.lid}></td>
- <td>
- <a href='../singlefile.php?cid=<{$download.cid}>&lid=<{$download.lid}>'><{$download.title}></a>
- </td>
- <td>
- <a href='../viewcat.php?cid=<{$download.cid}>'><{$download.category_title}></a>
- </td>
- <td><{$download.submitter_uname}></td>
- <td><{$download.published_timestamp}></td>
- <td align='center'>
- <{if $download.offline}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{else}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <{/if}>
- </td>
- <td align='center'>
- <{if $download.published}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <!--<{$download.published_timestamp}>-->
- <{else}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{/if}>
- </td>
- <td>
- <a href='?op=ip_logs.list&lid=<{$download.lid}>' title="<{$smarty.const._AM_WFDOWNLOADS_IP_LOGS}>"><{$smarty.const._AM_WFDOWNLOADS_IP_LOGS}></a>
- </td>
- <td align='center'>
- <a href='?op=download.add&lid=<{$download.lid}>' title="<{$smarty.const._EDIT}>"><img src="<{xoModuleIcons16 edit.png}>"
- title="<{$smarty.const._EDIT}>"
- alt="<{$smarty.const._EDIT}>"/></a>
- <a href='?op=download.delete&lid=<{$download.lid}>' title="<{$smarty.const._DELETE}>"><img src="<{xoModuleIcons16 delete.png}>"
- title="<{$smarty.const._DELETE}>"
- alt="<{$smarty.const._DELETE}>"/></a>
- </td>
- </tr>
- <{/foreach}>
- </table>
- <{$published_downloads_pagenav}>
- <{/if}>
-</fieldset>
-
-<br />
-
-<fieldset>
- <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_MINDEX_NEWDOWN}></legend>
- <{if ($new_downloads_count == 0)}>
- <{$smarty.const._AM_WFDOWNLOADS_MINDEX_NODOWNLOADSFOUND}>
- <{else}>
- <table class='outer'>
- <tr>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ID}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_POSTER}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_SUBMITTED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ACTION}></th>
- </tr>
- <{foreach item=new_download from=$new_downloads}>
- <tr class="<{cycle values='even, odd'}>">
- <td><{$new_download.lid}></td>
- <td><{$new_download.title}></td>
- <td><{$new_download.category_title}></td>
- <td><{$new_download.submitter_uname}></td>
- <td><{$new_download.date_timestamp}></td>
- <td align='center'>
- <a href='?op=newdownload.approve&lid=<{$new_download.lid}>' title="<{$smarty.const._AM_WFDOWNLOADS_BAPPROVE}>"><img
- src="<{xoModuleIcons16 1.png}>" title="<{$smarty.const._AM_WFDOWNLOADS_BAPPROVE}>"
- alt="<{$smarty.const._AM_WFDOWNLOADS_BAPPROVE}>"/></a>
- <a href='?op=download.edit&lid=<{$new_download.lid}>' title="<{$smarty.const._EDIT}>"><img src="<{xoModuleIcons16 edit.png}>"
- title="<{$smarty.const._EDIT}>"
- alt="<{$smarty.const._EDIT}>"/></a>
- <a href='?op=download.delete&lid=<{$new_download.lid}>' title="<{$smarty.const._DELETE}>"><img
- src="<{xoModuleIcons16 delete.png}>" title="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>"/></a>
- </td>
- </tr>
- <{/foreach}>
- </table>
- <{$newdownloads_pagenav}>
- <{/if}>
-</fieldset>
-
-<br />
-
-<fieldset>
- <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_MINDEX_AUTOPUBLISHEDDOWN}></legend>
- <br />
- <{if ($autopublished_downloads_count == 0)}>
- <{$smarty.const._AM_WFDOWNLOADS_MINDEX_NODOWNLOADSFOUND}>
- <{else}>
- <table class="outer">
- <tr>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ID}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_POSTER}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_SUBMITTED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ONLINESTATUS}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_PUBLISHED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_LOG}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ACTION}></th>
- </tr>
- <{foreach item=download from=$autopublished_downloads}>
- <tr class="<{cycle values='even, odd'}>">
- <td><{$download.lid}></td>
- <td><a href='../singlefile.php?cid=<{$download.cid}>&lid=<{$download.lid}>'><{$download.title}></a></td>
- <td><{$download.category_title}></td>
- <td><{$download.submitter_uname}></td>
- <td><{$download.published_timestamp}></td>
- <td align='center'>
- <{if $download.offline}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{else}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <{/if}>
- </td>
- <td align='center'>
- <{if $download.published}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <!--<{$download.published_timestamp}>-->
- <{else}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{/if}>
- </td>
- <td><a href='ip_logs.php?lid=<{$download.lid}>'><{$smarty.const._AM_WFDOWNLOADS_IP_LOGS}></a></td>
- <td align='center'>
- <a href='?op=download.add&lid=<{$download.lid}>' title="<{$smarty.const._EDIT}>"><img src="<{xoModuleIcons16 edit.png}>"
- title="<{$smarty.const._EDIT}>"
- alt="<{$smarty.const._EDIT}>"/></a>
- <a href='?op=download.delete&lid=<{$download.lid}>' title="<{$smarty.const._DELETE}>"><img src="<{xoModuleIcons16 delete.png}>"
- title="<{$smarty.const._DELETE}>"
- alt="<{$smarty.const._DELETE}>"/></a>
- </td>
- </tr>
- <{/foreach}>
- </table>
- <{$autopublished_downloads_pagenav}>
- <{/if}>
-</fieldset>
-
-<br />
-
-<fieldset>
- <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_MINDEX_EXPIREDDOWN}></legend>
- <br />
- <{if ($expired_downloads_count == 0)}>
- <{$smarty.const._AM_WFDOWNLOADS_MINDEX_NODOWNLOADSFOUND}>
- <{else}>
- <table class="outer">
- <tr>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ID}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_POSTER}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_SUBMITTED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ONLINESTATUS}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_PUBLISHED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_LOG}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ACTION}></th>
- </tr>
- <{foreach item=download from=$expired_downloads}>
- <tr class="<{cycle values='even, odd'}>">
- <td><{$download.lid}></td>
- <td><a href='../singlefile.php?cid=<{$download.cid}>&lid=<{$download.lid}>'><{$download.title}></a></td>
- <td><{$download.category_title}></td>
- <td><{$download.submitter_uname}></td>
- <td><{$download.published_timestamp}></td>
- <td align='center'>
- <{if $download.offline}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{else}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <{/if}>
- </td>
- <td align='center'>
- <{if $download.published}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <!--<{$download.published_timestamp}>-->
- <{else}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{/if}>
- </td>
- <td><a href='ip_logs.php?lid=<{$download.lid}>'><{$smarty.const._AM_WFDOWNLOADS_IP_LOGS}></a></td>
- <td align='center'>
- <a href='?op=download.add&lid=<{$download.lid}>' title="<{$smarty.const._EDIT}>"><img src="<{xoModuleIcons16 edit.png}>"
- title="<{$smarty.const._EDIT}>"
- alt="<{$smarty.const._EDIT}>"/></a>
- <a href='?op=download.delete&lid=<{$download.lid}>' title="<{$smarty.const._DELETE}>"><img src="<{xoModuleIcons16 delete.png}>"
- title="<{$smarty.const._DELETE}>"
- alt="<{$smarty.const._DELETE}>"/></a>
- </td>
- </tr>
- <{/foreach}>
- </table>
- <{$expired_downloads_pagenav}>
- <{/if}>
-</fieldset>
-
-<br />
-
-<fieldset>
- <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_MINDEX_OFFLINEDOWN}></legend>
- <br/>
- <{if ($offline_downloads_count == 0)}>
- <{$smarty.const._AM_WFDOWNLOADS_MINDEX_NODOWNLOADSFOUND}>
- <{else}>
- <table class="outer">
- <tr>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ID}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_POSTER}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_SUBMITTED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ONLINESTATUS}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_PUBLISHED}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_LOG}></th>
- <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ACTION}></th>
- </tr>
- <{foreach item=download from=$offline_downloads}>
- <tr class="<{cycle values='even, odd'}>">
- <td><{$download.lid}></td>
- <td><a href='../singlefile.php?cid=<{$download.cid}>&lid=<{$download.lid}>'><{$download.title}></a></td>
- <td><{$download.category_title}></td>
- <td><{$download.submitter_uname}></td>
- <td><{$download.published_timestamp}></td>
- <td align='center'>
- <{if $download.offline}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{else}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <{/if}>
- </td>
- <td align='center'>
- <{if $download.published}>
- <img src="<{xoModuleIcons16 1.png}>"/>
- <!--<{$download.published_timestamp}>-->
- <{else}>
- <img src="<{xoModuleIcons16 0.png}>"/>
- <{/if}>
- </td>
- <td><a href='ip_logs.php?lid=<{$download.lid}>'><{$smarty.const._AM_WFDOWNLOADS_IP_LOGS}></a></td>
- <td align='center'>
- <a href='?op=download.add&lid=<{$download.lid}>' title="<{$smarty.const._EDIT}>"><img src="<{xoModuleIcons16 edit.png}>"
- title="<{$smarty.const._EDIT}>"
- alt="<{$smarty.const._EDIT}>"/></a>
- <a href='?op=download.delete&lid=<{$download.lid}>' title="<{$smarty.const._DELETE}>"><img src="<{xoModuleIcons16 delete.png}>"
- title="<{$smarty.const._DELETE}>"
- alt="<{$smarty.const._DELETE}>"/></a>
- </td>
- </tr>
- <{/foreach}>
- </table>
- <{$offline_downloads_pagenav}>
- <{/if}>
-</fieldset>
-</form>
Added: XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.tpl
===================================================================
--- XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.tpl (rev 0)
+++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/templates/admin/wfdownloads_admin_downloadslist.tpl 2014-04-19 19:30:53 UTC (rev 12462)
@@ -0,0 +1,327 @@
+<form action="downloads.php" method="post" id="downloadsform">
+<fieldset>
+ <legend style='font-weight: bold; color: #900;'><{$smarty.const._AM_WFDOWNLOADS_MINDEX_PUBLISHEDDOWN}></legend>
+ <{if ($published_downloads_count == 0)}>
+ <{$smarty.const._AM_WFDOWNLOADS_MINDEX_NODOWNLOADSFOUND}>
+ <{else}>
+ <table class="outer">
+ <tr>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ID}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_TITLE}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_FCATEGORY_TITLE}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_POSTER}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_SUBMITTED}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ONLINESTATUS}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_PUBLISHED}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_LOG}></th>
+ <th><{$smarty.const._AM_WFDOWNLOADS_MINDEX_ACTION}></th>
+ </tr>
+
+ <form id='form_filter' enctype='multipart/form-data' method='post' action='' name='form_filter'>
+ <tr>
+ <td> </td>
+ <td>
+ <select id='filter_title_condition' title='<{$smarty.const._AM_WFDOWNLOADS_SEARCH}>' name='filter_title_condition' size='1'>
+ <option value='='
+ <{if $filter_title_condition == '='}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_EQUAL}></option>
+ <option value='LIKE'
+ <{if $filter_title_condition == 'LIKE'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_CONTAINS}></option>
+ </select>
+ <input id='filter_title' type='text' value='<{$filter_title}>' maxlength='100' size='15' title='' name='filter_title'>
+ </td>
+ <td>
+ <select id='filter_category_title_condition' title='<{$smarty.const._AM_WFDOWNLOADS_SEARCH}>'
+ name='filter_category_title_condition' size='1'>
+ <option value='='
+ <{if $filter_category_title_condition ==
+ '='}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_EQUAL}></option>
+ <option value='LIKE'
+ <{if $filter_category_title_condition ==
+ 'LIKE'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_CONTAINS}></option>
+ </select>
+ <input id='filter_category_title' type='text' value='<{$filter_category_title}>' maxlength='100' size='15' title=''
+ name='filter_category_title'>
+ </td>
+ <td><{$filter_submitter_select}></td>
+ <td>
+ <{*
+ <select id='filter_date_condition' title='<{$smarty.const._AM_WFDOWNLOADS_SEARCH}>' name='filter_date_condition' size='1'>
+ <option value='='
+ <{if $filter_date_condition == '='}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_EQUAL}></option>
+ <option value='>'
+ <{if $filter_date_condition == '>'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_GREATERTHAN}></option>
+ <option value='<'
+ <{if $filter_date_condition == '<'}>selected='selected'<{/if}>><{$smarty.const._AM_WFDOWNLOADS_SEARCH_LESSTHAN}></option>
+ </select>
+ <{$filter_date_select}>
+ *}>
+ </td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ <td align='center'>
+ <input id='submit' class='formButton' type='submit' title='<{$smarty.const._AM_WFDOWNLOADS_FILTER}>'
+ value='<{$smarty.const._AM_WFDOWNLOADS_FILTER}>' name='submit'>
+ </td>
+ </tr>
+ <input id='op' type='hidden' value='downloads.filter' name='op'>
+ </form>
+
+ <{foreach item=download from=$published_downloads}>
+ <tr class="<{cycle values='even, odd'}>">
+ <td align='center'><{$download.lid}></td>
+ <td>
+ <a href='../singlefile.php?cid=<{$download.cid}>&lid=<{$download.lid}>'><{$download.title}></a>
+ </td>
+ <td>
+ <a href='../viewcat.php?cid=<{$download.cid}>'><{$download.category_title}></a>
+ </td>
+ <td><{$download.submitter_uname}></td>
+ <td><{$download.published_timestamp}></td>
+ <td align='center'>
+ <{if $download.offline}>
+ <img src="<{xoModuleIcons16 0.png}>"/>
+ <{else}>
+ <img src="<{xoModuleIcons16 1.png}>"/>
+ <{/if}>
+ </td>
+ <td align='center'>
+ <{if $download.published}>
+ <img src="<{xoModuleIcons16 1.png}>"/>
+ <!--<{$download.published_timestamp}>-->
+ <{else}>
+ <img src="<{xoModuleIcons16 0.png}>"/>
+ <{/if}>
+ </td>
+ <td>
+ <a href='?op=ip_logs.list&lid=<{$download.lid}>' title="<{$smarty.const._AM_WFDOWN...
[truncated message content] |