You can subscribe to this list here.
| 2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
| 2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
| 2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
| 2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
| 2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <txm...@us...> - 2014-06-24 20:57:50
|
Revision: 12642
http://sourceforge.net/p/xoops/svn/12642
Author: txmodxoops
Date: 2014-06-24 20:57:46 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-24 19:48:38 UTC (rev 12641)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-24 20:57:46 UTC (rev 12642)
@@ -79,15 +79,15 @@
// Mysql file
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
// Tables
-$modversion['tables'][1] = "mod_tdmcreate_modules";
-$modversion['tables'][2] = "mod_tdmcreate_tables";
-$modversion['tables'][3] = "mod_tdmcreate_fields";
-$modversion['tables'][4] = "mod_tdmcreate_languages";
-$modversion['tables'][5] = "mod_tdmcreate_fieldtype";
-$modversion['tables'][6] = "mod_tdmcreate_fieldattributes";
-$modversion['tables'][7] = "mod_tdmcreate_fieldnull";
-$modversion['tables'][8] = "mod_tdmcreate_fieldkey";
-$modversion['tables'][9] = "mod_tdmcreate_fieldelements";
+$modversion['tables'][1] = "tdmcreate_modules";
+$modversion['tables'][2] = "tdmcreate_tables";
+$modversion['tables'][3] = "tdmcreate_fields";
+$modversion['tables'][4] = "tdmcreate_languages";
+$modversion['tables'][5] = "tdmcreate_fieldtype";
+$modversion['tables'][6] = "tdmcreate_fieldattributes";
+$modversion['tables'][7] = "tdmcreate_fieldnull";
+$modversion['tables'][8] = "tdmcreate_fieldkey";
+$modversion['tables'][9] = "tdmcreate_fieldelements";
// Scripts to run upon installation or update
$modversion['onInstall'] = "include/install.php";
//$modversion['onUpdate'] = "include/update.php";
|
|
From: <txm...@us...> - 2014-06-24 19:48:51
|
Revision: 12641
http://sourceforge.net/p/xoops/svn/12641
Author: txmodxoops
Date: 2014-06-24 19:48:38 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
removed prefix 'mod_' from mysql files
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php 2014-06-24 19:22:55 UTC (rev 12640)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php 2014-06-24 19:48:38 UTC (rev 12641)
@@ -95,10 +95,10 @@
$ret = <<<SQL
#
-# Structure table for `mod_{$module_name}_{$table_name}` {$nb_fields}
+# Structure table for `{$module_name}_{$table_name}` {$nb_fields}
#
-CREATE TABLE `mod_{$module_name}_{$table_name}` (\n
+CREATE TABLE `{$module_name}_{$table_name}` (\n
SQL;
return $ret;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql 2014-06-24 19:22:55 UTC (rev 12640)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql 2014-06-24 19:48:38 UTC (rev 12641)
@@ -1,4 +1,17 @@
-CREATE TABLE `mod_tdmcreate_modules` (
+# SQL Dump for tdmcreate module
+# PhpMyAdmin Version: 4.0.4
+# http://www.phpmyadmin.net
+#
+# Host: localhost
+# Generated on: Thu Jen 02, 2014 to 19:12
+# Server version: 5.5.24-log
+# PHP Version: 5.3.13
+
+#
+# Table structure for table `tdmcreate_modules` 37
+#
+
+CREATE TABLE `tdmcreate_modules` (
`mod_id` INT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
`mod_name` VARCHAR(255) NOT NULL DEFAULT '',
`mod_version` VARCHAR(5) NOT NULL DEFAULT '1.0',
@@ -41,7 +54,7 @@
)ENGINE =MyISAM;
-CREATE TABLE `mod_tdmcreate_tables` (
+CREATE TABLE `tdmcreate_tables` (
`table_id` INT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
`table_mid` INT(5) UNSIGNED NOT NULL DEFAULT '0',
`table_category` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
@@ -67,10 +80,10 @@
)ENGINE =MyISAM;
#
-# Table structure for table `mod_tdmcreate_fields` 21
+# Table structure for table `tdmcreate_fields` 21
#
-CREATE TABLE `mod_tdmcreate_fields` (
+CREATE TABLE `tdmcreate_fields` (
`field_id` INT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
`field_mid` INT(5) UNSIGNED NOT NULL DEFAULT '0',
`field_tid` INT(5) UNSIGNED NOT NULL DEFAULT '0',
@@ -98,10 +111,10 @@
)ENGINE =MyISAM;
#
-# Table structure for table `mod_tdmcreate_languages` 5
+# Table structure for table `tdmcreate_languages` 5
#
-CREATE TABLE `mod_tdmcreate_languages` (
+CREATE TABLE `tdmcreate_languages` (
`lng_id` INT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
`lng_mid` INT(5) UNSIGNED NOT NULL DEFAULT '0',
`lng_file` VARCHAR(255) NULL DEFAULT '',
@@ -112,16 +125,16 @@
)ENGINE =MyISAM;
#
-# Table structure for table `mod_tdmcreate_fieldtype` 2
+# Table structure for table `tdmcreate_fieldtype` 2
#
-CREATE TABLE `mod_tdmcreate_fieldtype` (
+CREATE TABLE `tdmcreate_fieldtype` (
`fieldtype_name` VARCHAR(255) NOT NULL DEFAULT '',
`fieldtype_value` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (`fieldtype_name`)
)ENGINE =MyISAM;
-INSERT INTO `mod_tdmcreate_fieldtype` (`fieldtype_name`, `fieldtype_value`) VALUES
+INSERT INTO `tdmcreate_fieldtype` (`fieldtype_name`, `fieldtype_value`) VALUES
('', ''),
('INT', 'INT'),
('TINYINT', 'TINYINT'),
@@ -147,16 +160,16 @@
('YEAR', 'YEAR');
#
-# Table structure for table `mod_tdmcreate_fieldattributes` 3
+# Table structure for table `tdmcreate_fieldattributes` 3
#
-CREATE TABLE `mod_tdmcreate_fieldattributes` (
+CREATE TABLE `tdmcreate_fieldattributes` (
`fieldattribute_name` VARCHAR(255) NOT NULL DEFAULT '',
`fieldattribute_value` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (`fieldattribute_name`)
)ENGINE =MyISAM;
-INSERT INTO `mod_tdmcreate_fieldattributes` (`fieldattribute_name`, `fieldattribute_value`) VALUES
+INSERT INTO `tdmcreate_fieldattributes` (`fieldattribute_name`, `fieldattribute_value`) VALUES
('', ''),
('BINARY', 'BINARY'),
('UNSIGNED', 'UNSIGNED'),
@@ -164,30 +177,30 @@
('CURRENT_TIMESTAMP', 'CURRENT_TIMESTAMP');
#
-# Table structure for table `mod_tdmcreate_fieldnull` 3
+# Table structure for table `tdmcreate_fieldnull` 3
#
-CREATE TABLE `mod_tdmcreate_fieldnull` (
+CREATE TABLE `tdmcreate_fieldnull` (
`fieldnull_name` VARCHAR(255) NOT NULL DEFAULT '',
`fieldnull_value` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (`fieldnull_name`)
)ENGINE =MyISAM;
-INSERT INTO `mod_tdmcreate_fieldnull` (`fieldnull_name`, `fieldnull_value`) VALUES
+INSERT INTO `tdmcreate_fieldnull` (`fieldnull_name`, `fieldnull_value`) VALUES
('NOT NULL', 'NOT NULL'),
('NULL', 'NULL');
#
-# Table structure for table `mod_tdmcreate_fieldkey` 3
+# Table structure for table `tdmcreate_fieldkey` 3
#
-CREATE TABLE `mod_tdmcreate_fieldkey` (
+CREATE TABLE `tdmcreate_fieldkey` (
`fieldkey_name` VARCHAR(255) NOT NULL DEFAULT '',
`fieldkey_value` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (`fieldkey_name`)
)ENGINE =MyISAM;
-INSERT INTO `mod_tdmcreate_fieldkey` (`fieldkey_name`, `fieldkey_value`) VALUES
+INSERT INTO `tdmcreate_fieldkey` (`fieldkey_name`, `fieldkey_value`) VALUES
('', ''),
('PRIMARY', 'PRIMARY KEY'),
('UNIQUE', 'UNIQUE KEY'),
@@ -195,10 +208,10 @@
('FULLTEXT', 'FULLTEXT');
#
-# Table structure for table `mod_tdmcreate_fieldelements` 3
+# Table structure for table `tdmcreate_fieldelements` 3
#
-CREATE TABLE `mod_tdmcreate_fieldelements` (
+CREATE TABLE `tdmcreate_fieldelements` (
`fieldelement_id` INT(5) NOT NULL AUTO_INCREMENT,
`fieldelement_mid` INT(11) NOT NULL DEFAULT '0',
`fieldelement_tid` INT(11) NOT NULL DEFAULT '0',
@@ -209,7 +222,7 @@
KEY `fieldelement_tid` (`fieldelement_tid`)
)ENGINE =MyISAM;
-INSERT INTO `mod_tdmcreate_fieldelements` (`fieldelement_id`, `fieldelement_mid`, `fieldelement_tid`, `fieldelement_name`, `fieldelement_value`) VALUES
+INSERT INTO `tdmcreate_fieldelements` (`fieldelement_id`, `fieldelement_mid`, `fieldelement_tid`, `fieldelement_name`, `fieldelement_value`) VALUES
(1, 0, 0, 'Text', 'XoopsFormText'),
(2, 0, 0, 'TextArea', 'XoopsFormTextArea'),
(3, 0, 0, 'DhtmlTextArea', 'XoopsFormDhtmlTextArea'),
@@ -220,4 +233,4 @@
(8, 0, 0, 'ColorPicker', 'XoopsFormColorPicker'),
(9, 0, 0, 'UploadImage', 'XoopsFormUploadImage'),
(10, 0, 0, 'UploadFile', 'XoopsFormUploadFile'),
- (11, 0, 0, 'TextDateSelect', 'XoopsFormTextDateSelect');
+ (11, 0, 0, 'TextDateSelect', 'XoopsFormTextDateSelect');
\ No newline at end of file
|
|
From: <txm...@us...> - 2014-06-24 19:23:03
|
Revision: 12640
http://sourceforge.net/p/xoops/svn/12640
Author: txmodxoops
Date: 2014-06-24 19:22:55 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
If there are any errors, try to comment out lines 80 and 82 of the file class/files/abstract.php
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-24 18:45:37 UTC (rev 12639)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-24 19:22:55 UTC (rev 12640)
@@ -91,10 +91,12 @@
//
foreach (array_keys($tables) as $t)
{
+ $table_id = $tables[$t]->getVar('table_id');
$table_name = $tables[$t]->getVar('table_name');
$table_admin = $tables[$t]->getVar('table_admin');
$table_user = $tables[$t]->getVar('table_user');
- $table_blocks = $tables[$t]->getVar('table_blocks');
+ $table_blocks = $tables[$t]->getVar('table_blocks');
+ $table = $this->tdmcreate->getHandler('tables')->get($table_id);
}
//
$indexFile = $this->path.'/index.html';
@@ -111,15 +113,15 @@
$this->structure->makeDir($targetDirectory);
// Copied of index.html file in "root module" folder
$this->structure->copyFile('', $indexFile, 'index.html');
- if ( $table_admin == 1) {
+ if ( $table->getVar('table_admin') == 1) {
// Creation of "admin" folder and index.html file
$this->structure->makeDirAndCopyFile('admin', $indexFile, 'index.html');
}
- if ( $table_blocks == 1) {
+ if ( $table->getVar('table_blocks') == 1) {
// Creation of "blocks" folder and index.html file
$this->structure->makeDirAndCopyFile('blocks', $indexFile, 'index.html');
}
- if ( $table_name != null) {
+ if ( $table->getVar('table_name') != null) {
// Creation of "class" folder and index.html file
$this->structure->makeDirAndCopyFile('class', $indexFile, 'index.html');
}
@@ -162,19 +164,19 @@
$this->structure->makeDirAndCopyFile('language/'.$GLOBALS['xoopsConfig']['language'], $indexFile, 'index.html');
// Creation of "language/local_language/help" folder and index.html file
$this->structure->makeDirAndCopyFile('language/'.$GLOBALS['xoopsConfig']['language']. '/help', $indexFile, 'index.html');
- if (( $table_user == 1) || ( $table_admin == 1 )) {
+ if (( $table->getVar('table_user') == 1) || ( $table->getVar('table_admin') == 1 )) {
// Creation of "templates" folder and index.html file
$this->structure->makeDirAndCopyFile('templates', $indexFile, 'index.html');
}
- if ( $table_admin == 1 ) {
+ if ( $table->getVar('table_admin') == 1 ) {
// Creation of "templates/admin" folder and index.html file
$this->structure->makeDirAndCopyFile('templates/admin', $indexFile, 'index.html');
}
- if ( $table_blocks == 1 ) {
+ if ( $table->getVar('table_blocks') == 1 ) {
// Creation of "templates/blocks" folder and index.html file
$this->structure->makeDirAndCopyFile('templates/blocks', $indexFile, 'index.html');
}
- if ( $table_name != null ) {
+ if ( $table->getVar('table_name') != null ) {
// Creation of "sql" folder and index.html file
$this->structure->makeDirAndCopyFile('sql', $indexFile, 'index.html');
}
@@ -259,7 +261,7 @@
/*var_dump($table_name); */
}
// Creation of blocks language file
- if ( $table_blocks == 1) {
+ if ( $table->getVar('table_blocks') == 1) {
// Language Blocks File
$languageBlocks = LanguageBlocks::getInstance();
$languageBlocks->write($module, $tables, 'blocks.php');
@@ -270,7 +272,7 @@
$languageModinfo->write($module, $table, $tables, 'modinfo.php');
$ret[] = $languageModinfo->render();
// Creation of admin files
- if ( $table_admin == 1) {
+ if ( $table->getVar('table_admin') == 1) {
// Admin Header File
$adminHeader = AdminHeader::getInstance();
$adminHeader->write($module, $table, $tables, 'header.php');
@@ -284,7 +286,7 @@
$adminMenu->write($module, $tables, 'menu.php');
$ret[] = $adminMenu->render();
// Creation of admin permission file
- if (( $table_permissions == 1)) {
+ if (( $table->getVar('table_permissions') == 1)) {
// Admin Permissions File
$adminPermissions = AdminPermissions::getInstance();
$adminPermissions->write($module, $tables, 'permissions.php');
@@ -320,7 +322,7 @@
$ret[] = $adminTemplatesHeader->render();
}
// Creation of notifications files
- if ( $table_notifications == 1 ) {
+ if ( $table->getVar('table_notifications') == 1 ) {
// Include Notifications File
$includeNotifications = IncludeNotifications::getInstance();
$includeNotifications->write($module, $table, 'notifications.php');
@@ -331,14 +333,14 @@
$includeInstall->write($module, $tables, 'install.php');
$ret[] = $includeInstall->render();
// Creation of sql file
- if ( $table_name != null) {
+ if ( $table->getVar('table_name') != null) {
// Sql File
$sqlFile = SqlFile::getInstance();
$sqlFile->write($module, $tables, 'mysql.sql');
$ret[] = $sqlFile->render();
}
// Creation of search file
- if ( $table_search == 1) {
+ if ( $table->getVar('table_search') == 1) {
// Include Search File
$includeSearch = IncludeSearch::getInstance();
$includeSearch->write($module, $table, 'search.php');
@@ -368,7 +370,7 @@
$ret[] = $includeComments->renderCommentsNew($module, 'comment_new');
}
// Creation of user files
- if ( ($table_user == 1)){
+ if ( ($table->getVar('table_user') == 1)) {
// Templates Index File
$userTemplatesIndex = TemplatesUserIndex::getInstance();
$userTemplatesIndex->write($module, $stl_mod_name.'_index.tpl');
@@ -390,7 +392,7 @@
$userHeader->write($module, 'header.php');
$ret[] = $userHeader->render();
// User Notification Update File
- if ( ($table_notifications == 1 )){
+ if ( ($table->getVar('table_notifications') == 1 )) {
$userNotificationUpdate = UserNotificationUpdate::getInstance();
$userNotificationUpdate->write($module, 'notification_update.php');
$ret[] = $userNotificationUpdate->render();
|
|
From: <txm...@us...> - 2014-06-24 18:45:40
|
Revision: 12639
http://sourceforge.net/p/xoops/svn/12639
Author: txmodxoops
Date: 2014-06-24 18:45:37 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
fixed bug to create a new logo because moving images folder and js folder in assets
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/logoGenerator.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js 2014-06-24 12:16:25 UTC (rev 12638)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js 2014-06-24 18:45:37 UTC (rev 12639)
@@ -40,7 +40,7 @@
if (selectDom.options[selectDom.selectedIndex].value != "") {
imgDom.src = xoopsUrl + imgDir + "/" + selectDom.options[selectDom.selectedIndex].value + extra;
} else {
- imgDom.src = xoopsUrl + "/modules/TDMCreate/images/icons/blank.gif";
+ imgDom.src = xoopsUrl + "/modules/TDMCreate/assets/images/icons/blank.gif";
}
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/logoGenerator.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/logoGenerator.php 2014-06-24 12:16:25 UTC (rev 12638)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/logoGenerator.php 2014-06-24 18:45:37 UTC (rev 12639)
@@ -52,8 +52,8 @@
$dirname = 'TDMCreate';
$iconFileName = XOOPS_ROOT_PATH . "/Frameworks/moduleclasses/icons/32/".basename($logoIcon);
- //$dirlogos = TDMC_PATH . "/images/logos";
- $dirlogos = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/logos";
+ //$dirlogos = TDMC_PATH . "/assets/images/logos";
+ $dirlogos = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/assets/images/logos";
if (!file_exists($imageBase = $dirlogos . "/xoops2.png") ||
!file_exists($font = $dirlogos . "/VeraBd.ttf") ||
!file_exists($iconFile = $iconFileName)) {
|
|
From: <txm...@us...> - 2014-06-24 12:16:36
|
Revision: 12638
http://sourceforge.net/p/xoops/svn/12638
Author: txmodxoops
Date: 2014-06-24 12:16:25 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
Renamed templates files
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_about.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_building.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_fields.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_footer.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_index.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.tpl
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/about.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/building.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/footer.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/header.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/about.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/about.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/about.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,6 +0,0 @@
-<!-- Header -->
-<{includeq file="db:header.tpl"}>
-<!-- About Page -->
-<div class="top"><{$about}></div>
-<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/building.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/building.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/building.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,50 +0,0 @@
-<!-- Header -->
-<{includeq file="db:header.tpl"}>
-<!-- Display building form -->
-<br />
-<{if $building_directory}>
- <table class="outer">
- <thead>
- <tr class="head">
- <th width="80%"><{$smarty.const._AM_TDMCREATE_BUILDING_FILES}></th>
- <th width="10%"><{$smarty.const._AM_TDMCREATE_BUILDING_SUCCESS}></th>
- <th width="10%"><{$smarty.const._AM_TDMCREATE_BUILDING_FAILED}></th>
- </tr>
- </thead>
- <tbody>
- <tr class="even">
- <{if $base_architecture}>
- <td style="padding-left: 30px;"><{$smarty.const._AM_TDMCREATE_OK_ARCHITECTURE}></td>
- <td class="center"><img src="<{xoModuleIcons16 on.png}>" alt="" /></td>
- <td> </td>
- <{else}>
- <td style="padding-left: 30px;"><{$smarty.const._AM_TDMCREATE_NOTOK_ARCHITECTURE}></td>
- <td> </td>
- <td class="center"><img src="<{xoModuleIcons16 off.png}>" alt="" /></td>
- <{/if}>
- <tr>
- <{foreach item=build from=$builds}>
- <tr class="<{cycle values='odd, even'}>">
- <{if $created}>
- <td style="padding-left: 30px;"><{$build.list}></td>
- <td class="center"><img src="<{xoModuleIcons16 on.png}>" alt="" /></td>
- <td> </td>
- <{else}>
- <td style="padding-left: 30px;"><{$build.list}></td>
- <td> </td>
- <td class="center"><img src="<{xoModuleIcons16 off.png}>" alt="" /></td>
- <{/if}>
- <tr>
- <{/foreach}>
- <tr class="<{cycle values='even, odd'}>">
- <td class="center" colspan="3"><{$building_directory}></td>
- <tr>
- </tbody>
- </table><br />
-<{else}>
- <{if $form}>
- <{$form}>
- <{/if}>
-<{/if}>
-<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,102 +0,0 @@
-<!-- Header -->
-<{includeq file="db:header.tpl"}>
-<script type="text/javascript">
- IMG_ON = '<{xoModuleIcons16 1.png}>';
- IMG_OFF = '<{xoModuleIcons16 0.png}>';
-</script>
-<!-- Display tables list -->
-<{if $tables_list}>
- <table class='outer width100'>
- <thead>
- <tr>
- <th class='center'><{$smarty.const._AM_TDMCREATE_ID_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_NAME_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_IMAGE_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_NBFIELDS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_PARENT_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_INLIST_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_INFORM_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_ADMIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_USER_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_BLOCK_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MAIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_SEARCH_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_REQUIRED_LIST}></th>
- <th class='center width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
- </tr>
- </thead>
- <tbody>
- <{foreach item=table from=$tables_list}>
- <tr id="table<{$table.id}>" class="fields toggleMain">
- <td class='center bold width5'>(<{$table.id}>)
- <a href="#" title="Toggle"><img class="imageToggle" src="<{$modPathIcon16}>/toggle.png" alt="Toggle" /></a>
- </td>
- <td class='center'><u class='bold'><{$table.name}></u></td>
- <td class='center'><img src="<{xoModuleIcons32}><{$table.image}>" alt="<{$table.name}>" height="22" /></td>
- <td class='center bold'><{$table.nbfields}></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
- <td class='xo-actions txtcenter width6'>
- <a href="tables.php?op=edit&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>">
- <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>" />
- </a> <!-- &field_mid=<{$table.mid}>&field_tid=<{$table.id}>&field_numb=<{$table.nbfields}> -->
- <a href="fields.php?op=edit&field_tid=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>">
- <img src="<{xoModuleIcons16 inserttable.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>" />
- </a>
- <a href="tables.php?op=delete&table_id=<{$table.id}>" title="<{$smarty.const._DELETE}>">
- <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" />
- </a>
- </td>
- </tr>
- <{foreach item=field from=$table.fields}>
- <tr class="<{cycle values='even,odd'}> sortable toggleChild">
- <td class='center'>[<{$field.lid}>] <img class="move" src="<{$modPathIcon16}>/drag.png" alt="<{$field.name}>" /></td>
- <td class='center'><{$field.name}></td>
- <td class='center'><img src="<{$modPathIcon16}>/tables.png" alt="Empty" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/tables.png" alt="Empty" /></td>
- <td class='center'><img id="loading_img_parent<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_parent<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_parent: <{if $field.parent}>0<{else}>1<{/if}> }, 'img_parent<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.parent}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_inlist<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_inlist<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_inlist: <{if $field.inlist}>0<{else}>1<{/if}> }, 'img_inlist<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.inlist}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_inform<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_inform<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_inform: <{if $field.inform}>0<{else}>1<{/if}> }, 'img_inform<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.inform}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_admin<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_admin<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_admin: <{if $field.admin}>0<{else}>1<{/if}> }, 'img_admin<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_user<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_user<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_user: <{if $field.user}>0<{else}>1<{/if}> }, 'img_user<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_block<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_block<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_block: <{if $field.block}>0<{else}>1<{/if}> }, 'img_block<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.block}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_main<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_main<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_main: <{if $field.main}>0<{else}>1<{/if}> }, 'img_main<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.main}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_search<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_search<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_search: <{if $field.search}>0<{else}>1<{/if}> }, 'img_search<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img id="loading_img_required<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_required<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_required: <{if $field.required}>0<{else}>1<{/if}> }, 'img_required<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.required}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
- </td>
- <td class='center'><img src="<{$modPathIcon16}>/left_right.png" alt="Empty" /></td>
- </tr>
- <{/foreach}>
- <{/foreach}>
- </tbody>
- </table><br /><br />
-<!-- Display modules navigation -->
-<div class="clear"> </div>
-<{if $pagenav}><div class="xo-pagenav floatright"><{$pagenav}></div><div class="clear spacer"></div><{/if}>
-<{/if}>
-<{if $error}>
-<div class="errorMsg">
- <strong><{$error}></strong>
-</div>
-<{/if}>
-<!-- Display module form (add,edit) -->
-<{if $form}>
- <div class="spacer"><{$form}></div>
-<{/if}>
-<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/footer.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/footer.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/footer.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,6 +0,0 @@
-<br />
-<div class='center'><a href='http://www.xoops.org' title='Visit XOOPS' target='_blank'>
- <img src="<{xoModuleIcons32 xoopsmicrobutton.gif}>" alt='XOOPS' /></a></div>
-<div class='center smallsmall italic pad5'>
- <strong><{$module_name}></strong> is maintained by the
- <a href='http://xoops.org/forums/newbb' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/header.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/header.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/header.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,4 +0,0 @@
-<div class="top">
-<span class="left"><{$navigation}></span>
-<{if $buttons}><span class="right"><{$buttons}> </span><{/if}>
-</div>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1 +0,0 @@
- <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.html 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/index.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,6 +0,0 @@
-<!-- Header -->
-<{includeq file="db:header.tpl"}>
-<!-- Index Page -->
-<div class="top"><{$index}></div>
-<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,67 +0,0 @@
-<!-- Header -->
-<{includeq file="db:header.tpl"}>
-<!-- Display modules list -->
-<{if $modules_list}>
- <table class='outer width100'>
- <tr>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ID}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NAME}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_VERSION}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_RELEASE}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_STATUS}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ADMIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_USER_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SEARCH_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_COMMENTS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_PERMISSIONS_LIST}></th>
- <th class='center width5'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
- </tr>
- <{foreach item=module from=$modules_list}>
- <tr id="module<{$module.id}>" class="modules">
- <td class='center bold'><{$module.id}></td>
- <td class='center bold green'><{$module.name}></td>
- <td class='center'><{$module.version}></td>
- <td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" height="35" /></td>
- <td class='center'><{$module.release}></td>
- <td class='center'><{$module.status}></td>
- <td class='center'><img id="loading_img_admin<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_admin<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_admin: <{if $module.admin}>0<{else}>1<{/if}> }, 'img_admin<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_user<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_user<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_user: <{if $module.user}>0<{else}>1<{/if}> }, 'img_user<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_search<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_search<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_search: <{if $module.search}>0<{else}>1<{/if}> }, 'img_search<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_comments<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_comments<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_comments: <{if $module.comments}>0<{else}>1<{/if}> }, 'img_comments<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_notifications<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_notifications<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_notifications: <{if $module.notifications}>0<{else}>1<{/if}> }, 'img_notifications<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_permissions<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_permissions<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_permissions: <{if $module.permissions}>0<{else}>1<{/if}> }, 'img_permissions<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.permissions}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='xo-actions txtcenter width5'>
- <a href="modules.php?op=edit&mod_id=<{$module.id}>" title="<{$smarty.const._EDIT}>">
- <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" />
- </a>
- <a href="modules.php?op=delete&mod_id=<{$module.id}>" title="<{$smarty.const._DELETE}>">
- <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" />
- </a>
- </td>
- </tr>
- <{/foreach}>
- </table><br /><br />
- <!-- Display modules navigation -->
- <div class="clear"> </div>
- <{if $pagenav}><div class="xo-pagenav floatright"><{$pagenav}></div><div class="clear spacer"></div><{/if}>
-<{else}> <!-- Display module images on edit page -->
- <!-- Display module form (add,edit) -->
- <{if $form}>
- <div class="spacer"><{$form}></div>
- <{/if}>
-<{/if}>
-<{if $error}>
-<div class="errorMsg">
- <strong><{$error}></strong>
-</div>
-<{/if}>
-<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl 2014-06-23 23:53:16 UTC (rev 12637)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -1,111 +0,0 @@
-<!-- Header -->
-<{includeq file="db:header.tpl"}>
-<script type="text/javascript">
- IMG_ON = '<{xoModuleIcons16 1.png}>';
- IMG_OFF = '<{xoModuleIcons16 0.png}>';
-</script>
-<!-- Display modules list -->
-<{if $modules_list}>
- <table class='outer width100'>
- <thead>
- <tr>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ID}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NAME}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NBFIELDS}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_BLOCKS}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ADMIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_USER_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SUBMENU_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SEARCH_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_COMMENTS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_PERMISSIONS_LIST}></th>
- <th class='center width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
- </tr>
- </thead>
- <tbody>
- <{foreach item=module from=$modules_list}>
- <tr id="module<{$module.id}>" class="tables toggleMain">
- <td class='center bold width5'>(<{$module.id}>)
- <a href="#" title="Toggle"><img class="imageToggle" src="<{$modPathIcon16}>/toggle.png" alt="Toggle" /></a>
- </td>
- <td class='center bold green'><{$module.name}></td>
- <td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" alt="" height="35" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" alt="16" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/blocks.png" alt="16" /></td>
- <td class='center'><img id="loading_img_admin<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_admin<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_admin: <{if $module.admin == 1}>0<{else}>1<{/if}> }, 'img_admin<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_user<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_user<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_user: <{if $module.user}>0<{else}>1<{/if}> }, 'img_user<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img src="<{$tdmc_icons_url}>/16/submenu.png" alt="Submenu" title="Submenu" /></td>
- <td class='center'><img id="loading_img_search<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_search<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_search: <{if $module.search}>0<{else}>1<{/if}> }, 'img_search<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_comments<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_comments<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_comments: <{if $module.comments}>0<{else}>1<{/if}> }, 'img_comments<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_notifications<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_notifications<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_notifications: <{if $module.notifications}>0<{else}>1<{/if}> }, 'img_notifications<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='center'><img id="loading_img_permissions<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_permissions<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_permissions: <{if $module.permissions}>0<{else}>1<{/if}> }, 'img_permissions<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.permissions}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
- </td>
- <td class='xo-actions txtcenter width6'>
- <a href="modules.php?op=edit&mod_id=<{$module.id}>" title="<{$smarty.const._EDIT}>">
- <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" />
- </a>
- <a href="modules.php?op=delete&mod_id=<{$module.id}>" title="<{$smarty.const._DELETE}>">
- <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>" />
- </a>
- </td>
- </tr>
- <{foreach item=table from=$module.tables}>
- <tr id="table<{$table.id}>" class="<{cycle values='even,odd'}> toggleChild">
- <td class='center'>[<{$table.lid}>]</td>
- <td class='center'><{$table.name}></td>
- <td class='center'><img src="<{xoModuleIcons32}><{$table.image}>" alt="<{$table.name}>" height="30" /></td>
- <td class='center'><{$table.nbfields}></td>
- <td class='center'><img id="loading_img_table_blocks<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_blocks<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_blocks: <{if $table.blocks}>0<{else}>1<{/if}> }, 'img_table_blocks<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.blocks}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='center'><img id="loading_img_table_admin<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_admin<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_admin: <{if $table.admin}>0<{else}>1<{/if}> }, 'img_table_admin<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='center'><img id="loading_img_table_user<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_user<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_user: <{if $table.user}>0<{else}>1<{/if}> }, 'img_table_user<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='center'><img id="loading_img_table_submenu<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_submenu<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_submenu: <{if $table.submenu}>0<{else}>1<{/if}> }, 'img_table_submenu<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.submenu}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='center'><img id="loading_img_table_search<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_search<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_search: <{if $table.search}>0<{else}>1<{/if}> }, 'img_table_search<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='center'><img id="loading_img_table_comments<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_comments<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_comments: <{if $table.comments}>0<{else}>1<{/if}> }, 'img_table_comments<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='center'><img id="loading_img_table_notifications<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_notifications<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_notifications: <{if $table.notifications}>0<{else}>1<{/if}> }, 'img_table_notifications<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='center'><img id="loading_img_table_permissions<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_permissions<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display', table_id: <{$table.id}>, table_permissions: <{if $table.permissions}>0<{else}>1<{/if}> }, 'img_table_permissions<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.permissions}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
- </td>
- <td class='xo-actions txtcenter width6'>
- <a href="tables.php?op=edit&table_id=<{$table.id}>" title="<{$smarty.const._EDIT}>">
- <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" />
- </a>
- <a href="fields.php?op=edit&field_tid=<{$table.id}>" title="<{$smarty.const._EDIT}>">
- <img src="<{$modPathIcon16}>/editfields.png" alt="<{$smarty.const._EDIT}>" />
- </a>
- <a href="tables.php?op=delete&table_id=<{$table.id}>" title="<{$smarty.const._DELETE}>">
- <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" />
- </a>
- </td>
- </tr>
- <{/foreach}>
- <{/foreach}>
- </tbody>
- </table><br /><br />
-<!-- Display modules navigation -->
-<div class="clear"> </div>
-<{if $pagenav}><div class="xo-pagenav floatright"><{$pagenav}></div><div class="clear spacer"></div><{/if}>
-<{/if}>
-<{if $error}>
-<div class="errorMsg">
- <strong><{$error}></strong>
-</div>
-<{/if}>
-<!-- Display module form (add,edit) -->
-<{if $form}>
-<div class="spacer"><{$form}></div>
-<{/if}>
-<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_about.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_about.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_about.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1,6 @@
+<!-- Header -->
+<{includeq file="db:tdmcreate_header.tpl"}>
+<!-- About Page -->
+<div class="top"><{$about}></div>
+<!-- Footer -->
+<{includeq file="db:tdmcreate_footer.tpl"}>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_building.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_building.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_building.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1,50 @@
+<!-- Header -->
+<{includeq file="db:tdmcreate_header.tpl"}>
+<!-- Display building form -->
+<br />
+<{if $building_directory}>
+ <table class="outer">
+ <thead>
+ <tr class="head">
+ <th width="80%"><{$smarty.const._AM_TDMCREATE_BUILDING_FILES}></th>
+ <th width="10%"><{$smarty.const._AM_TDMCREATE_BUILDING_SUCCESS}></th>
+ <th width="10%"><{$smarty.const._AM_TDMCREATE_BUILDING_FAILED}></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="even">
+ <{if $base_architecture}>
+ <td style="padding-left: 30px;"><{$smarty.const._AM_TDMCREATE_OK_ARCHITECTURE}></td>
+ <td class="center"><img src="<{xoModuleIcons16 on.png}>" alt="" /></td>
+ <td> </td>
+ <{else}>
+ <td style="padding-left: 30px;"><{$smarty.const._AM_TDMCREATE_NOTOK_ARCHITECTURE}></td>
+ <td> </td>
+ <td class="center"><img src="<{xoModuleIcons16 off.png}>" alt="" /></td>
+ <{/if}>
+ <tr>
+ <{foreach item=build from=$builds}>
+ <tr class="<{cycle values='odd, even'}>">
+ <{if $created}>
+ <td style="padding-left: 30px;"><{$build.list}></td>
+ <td class="center"><img src="<{xoModuleIcons16 on.png}>" alt="" /></td>
+ <td> </td>
+ <{else}>
+ <td style="padding-left: 30px;"><{$build.list}></td>
+ <td> </td>
+ <td class="center"><img src="<{xoModuleIcons16 off.png}>" alt="" /></td>
+ <{/if}>
+ <tr>
+ <{/foreach}>
+ <tr class="<{cycle values='even, odd'}>">
+ <td class="center" colspan="3"><{$building_directory}></td>
+ <tr>
+ </tbody>
+ </table><br />
+<{else}>
+ <{if $form}>
+ <{$form}>
+ <{/if}>
+<{/if}>
+<!-- Footer -->
+<{includeq file="db:tdmcreate_footer.tpl"}>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_fields.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_fields.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_fields.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1,102 @@
+<!-- Header -->
+<{includeq file="db:tdmcreate_header.tpl"}>
+<script type="text/javascript">
+ IMG_ON = '<{xoModuleIcons16 1.png}>';
+ IMG_OFF = '<{xoModuleIcons16 0.png}>';
+</script>
+<!-- Display tables list -->
+<{if $tables_list}>
+ <table class='outer width100'>
+ <thead>
+ <tr>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_ID_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_NAME_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_IMAGE_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_NBFIELDS_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_PARENT_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_INLIST_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_INFORM_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_ADMIN_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_USER_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_BLOCK_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MAIN_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_SEARCH_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_REQUIRED_LIST}></th>
+ <th class='center width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
+ </tr>
+ </thead>
+ <tbody>
+ <{foreach item=table from=$tables_list}>
+ <tr id="table<{$table.id}>" class="fields toggleMain">
+ <td class='center bold width5'>(<{$table.id}>)
+ <a href="#" title="Toggle"><img class="imageToggle" src="<{$modPathIcon16}>/toggle.png" alt="Toggle" /></a>
+ </td>
+ <td class='center'><u class='bold'><{$table.name}></u></td>
+ <td class='center'><img src="<{xoModuleIcons32}><{$table.image}>" alt="<{$table.name}>" height="22" /></td>
+ <td class='center bold'><{$table.nbfields}></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" /></td>
+ <td class='xo-actions txtcenter width6'>
+ <a href="tables.php?op=edit&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>">
+ <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>" />
+ </a> <!-- &field_mid=<{$table.mid}>&field_tid=<{$table.id}>&field_numb=<{$table.nbfields}> -->
+ <a href="fields.php?op=edit&field_tid=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>">
+ <img src="<{xoModuleIcons16 inserttable.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>" />
+ </a>
+ <a href="tables.php?op=delete&table_id=<{$table.id}>" title="<{$smarty.const._DELETE}>">
+ <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" />
+ </a>
+ </td>
+ </tr>
+ <{foreach item=field from=$table.fields}>
+ <tr class="<{cycle values='even,odd'}> sortable toggleChild">
+ <td class='center'>[<{$field.lid}>] <img class="move" src="<{$modPathIcon16}>/drag.png" alt="<{$field.name}>" /></td>
+ <td class='center'><{$field.name}></td>
+ <td class='center'><img src="<{$modPathIcon16}>/tables.png" alt="Empty" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/tables.png" alt="Empty" /></td>
+ <td class='center'><img id="loading_img_parent<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_parent<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_parent: <{if $field.parent}>0<{else}>1<{/if}> }, 'img_parent<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.parent}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_inlist<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_inlist<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_inlist: <{if $field.inlist}>0<{else}>1<{/if}> }, 'img_inlist<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.inlist}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_inform<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_inform<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_inform: <{if $field.inform}>0<{else}>1<{/if}> }, 'img_inform<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.inform}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_admin<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_admin<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_admin: <{if $field.admin}>0<{else}>1<{/if}> }, 'img_admin<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_user<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_user<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_user: <{if $field.user}>0<{else}>1<{/if}> }, 'img_user<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_block<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_block<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_block: <{if $field.block}>0<{else}>1<{/if}> }, 'img_block<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.block}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_main<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_main<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_main: <{if $field.main}>0<{else}>1<{/if}> }, 'img_main<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.main}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_search<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_search<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_search: <{if $field.search}>0<{else}>1<{/if}> }, 'img_search<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img id="loading_img_required<{$field.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_required<{$field.id}>" onclick="tdmcreate_setStatus( { op: 'display', field_id: <{$field.id}>, field_required: <{if $field.required}>0<{else}>1<{/if}> }, 'img_required<{$field.id}>', 'fields.php' )" src="<{xoModuleIcons16}><{$field.required}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$field.name}>" />
+ </td>
+ <td class='center'><img src="<{$modPathIcon16}>/left_right.png" alt="Empty" /></td>
+ </tr>
+ <{/foreach}>
+ <{/foreach}>
+ </tbody>
+ </table><br /><br />
+<!-- Display modules navigation -->
+<div class="clear"> </div>
+<{if $pagenav}><div class="xo-pagenav floatright"><{$pagenav}></div><div class="clear spacer"></div><{/if}>
+<{/if}>
+<{if $error}>
+<div class="errorMsg">
+ <strong><{$error}></strong>
+</div>
+<{/if}>
+<!-- Display module form (add,edit) -->
+<{if $form}>
+ <div class="spacer"><{$form}></div>
+<{/if}>
+<!-- Footer -->
+<{includeq file="db:tdmcreate_footer.tpl"}>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_footer.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_footer.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_footer.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1,6 @@
+<br />
+<div class='center'><a href='http://www.xoops.org' title='Visit XOOPS' target='_blank'>
+ <img src="<{xoModuleIcons32 xoopsmicrobutton.gif}>" alt='XOOPS' /></a></div>
+<div class='center smallsmall italic pad5'>
+ <strong><{$module_name}></strong> is maintained by the
+ <a href='http://xoops.org/forums/newbb' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1,4 @@
+<div class="top">
+<span class="left"><{$navigation}></span>
+<{if $buttons}><span class="right"><{$buttons}> </span><{/if}>
+</div>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_index.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_index.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_index.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1,6 @@
+<!-- Header -->
+<{includeq file="db:tdmcreate_header.tpl"}>
+<!-- Index Page -->
+<div class="top"><{$index}></div>
+<!-- Footer -->
+<{includeq file="db:tdmcreate_footer.tpl"}>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.tpl 2014-06-24 12:16:25 UTC (rev 12638)
@@ -0,0 +1,67 @@
+<!-- Header -->
+<{includeq file="db:tdmcreate_header.tpl"}>
+<!-- Display modules list -->
+<{if $modules_list}>
+ <table class='outer width100'>
+ <tr>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ID}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NAME}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_VERSION}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_RELEASE}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_STATUS}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ADMIN_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_USER_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SEARCH_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_COMMENTS_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_PERMISSIONS_LIST}></th>
+ <th class='center width5'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
+ </tr>
+ <{foreach item=module from=$modules_list}>
+ <tr id="module<{$module.id}>" class="modules">
+ <td class='center bold'><{$module.id}></td>
+ <td class='center bold green'><{$module.name}></td>
+ <td class='center'><{$module.version}></td>
+ <td class='center'><img src="<{$tdmc_upload_imgmod...
[truncated message content] |
|
From: <txm...@us...> - 2014-06-23 23:53:21
|
Revision: 12637
http://sourceforge.net/p/xoops/svn/12637
Author: txmodxoops
Date: 2014-06-23 23:53:16 +0000 (Mon, 23 Jun 2014)
Log Message:
-----------
- Is't necessary to uninstall and then reinstall
- The templates have changed names
- Fixed bugs
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/about.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/common.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/footer.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/footer.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/about.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/about.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -19,7 +19,7 @@
* @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $
*/
include 'header.php';
-$template_main = 'about.tpl';
+$template_main = 'tdmcreate_about.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('about.php'));
$GLOBALS['xoopsTpl']->assign('about', $adminMenu->renderAbout('6KJ7RW5DR3VTJ', false));
include 'footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -25,7 +25,7 @@
//
switch ($op) {
case 'build':
- $template_main = 'building.tpl';
+ $template_main = 'tdmcreate_building.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
// Get var module name
$mod_name = $moduleObj->getVar('mod_name');
@@ -74,7 +74,7 @@
case 'default':
default:
- $template_main = 'building.tpl';
+ $template_main = 'tdmcreate_building.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
// Redirect if there aren't modules
$nb_modules = $tdmcreate->getHandler('modules')->getCount();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -38,7 +38,7 @@
$start = XoopsRequest::getInt('start', 0);
$limit = XoopsRequest::getInt('limit', $tdmcreate->getConfig('tables_adminpager'));
// Define main template
- $template_main = 'fields.tpl';
+ $template_main = 'tdmcreate_fields.tpl';
$GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' );
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/fields.js');
@@ -134,7 +134,7 @@
case 'new':
// Define main template
- $template_main = 'fields.tpl';
+ $template_main = 'tdmcreate_fields.tpl';
$GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' );
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/fields.js');
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
@@ -157,7 +157,7 @@
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('fields.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
- $field_id = TDMCreate_CleanVars($_REQUEST, 'field_id');
+ $field_id = XoopsRequest::getInt('field_id');
// Fields Handler
$fields = $tdmcreate->getHandler('fields');
// Set Variables
@@ -224,7 +224,7 @@
case 'edit':
// Define main template
- $template_main = 'fields.tpl';
+ $template_main = 'tdmcreate_fields.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/index.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/index.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -24,7 +24,7 @@
$count_tables = $tdmcreate->getHandler('tables')->getCount($criteria);
$count_fields = $tdmcreate->getHandler('fields')->getCount($criteria);
unset($criteria);
-$template_main = 'index.tpl';
+$template_main = 'tdmcreate_index.tpl';
$adminMenu->addInfoBox(_AM_TDMCREATE_ADMIN_NUMMODULES) ;
$adminMenu->addInfoBoxLine(_AM_TDMCREATE_ADMIN_NUMMODULES, '<label>' ._AM_TDMCREATE_THEREARE_NUMMODULES. '</label>', $count_modules, 'Green') ;
$adminMenu->addInfoBoxLine(_AM_TDMCREATE_ADMIN_NUMMODULES, '<label>' ._AM_TDMCREATE_THEREARE_NUMTABLES. '</label>', $count_tables, 'Orange');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -31,7 +31,7 @@
$start = XoopsRequest::getInt('start', 0);
$limit = XoopsRequest::getInt('limit', $tdmcreate->getConfig('modules_adminpager'));
// Define main template
- $template_main = 'modules.tpl';
+ $template_main = 'tdmcreate_modules.tpl';
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
$GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' );
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
@@ -81,7 +81,7 @@
case 'new':
// Define main template
- $template_main = 'modules.tpl';
+ $template_main = 'tdmcreate_modules.tpl';
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php', 'list');
@@ -169,7 +169,7 @@
case 'edit':
// Define main template
- $template_main = 'modules.tpl';
+ $template_main = 'tdmcreate_modules.tpl';
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'modules.php?op=new', 'add');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -40,7 +40,7 @@
$start = XoopsRequest::getInt('start', 0);
$limit = XoopsRequest::getInt('limit', $tdmcreate->getConfig('modules_adminpager'));
// Define main template
- $template_main = 'tables.tpl';
+ $template_main = 'tdmcreate_tables.tpl';
$GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' );
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('tables.php'));
@@ -134,7 +134,7 @@
case 'new':
// Define main template
- $template_main = 'tables.tpl';
+ $template_main = 'tdmcreate_tables.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('tables.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
$GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
@@ -215,7 +215,7 @@
case 'edit':
// Define main template
- $template_main = 'tables.tpl';
+ $template_main = 'tdmcreate_tables.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('tables.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php?op=list', 'list');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -81,8 +81,8 @@
*/
public function createBaseFoldersFiles( $module )
{
- // Module Id
- $mod_id = $module->getVar('mod_id');
+ // Module
+ $mod_id = $module->getVar('mod_id');
// Id of tables
$criteria_tables = new CriteriaCompo();
$criteria_tables->add(new Criteria('table_mid', $mod_id));
@@ -186,8 +186,10 @@
*/
public function createFilesToBuilding( $module )
{
- // Module Id
- $mod_id = $module->getVar('mod_id');
+ // Module
+ $mod_id = $module->getVar('mod_id');
+ $mod_name = $module->getVar('mod_name');
+ $stl_mod_name = strtolower($mod_name);
// Id of tables
$criteria_tables = new CriteriaCompo();
$criteria_tables->add(new Criteria('table_mid', $mod_id));
@@ -219,7 +221,7 @@
// Admin Templates File
$adminTemplatesPages = TemplatesAdminPages::getInstance();
$adminTemplatesPages->write($module, $table);
- $ret[] = $adminTemplatesPages->renderFile('admin_'.$table_name.'.tpl');
+ $ret[] = $adminTemplatesPages->renderFile($stl_mod_name.'_'.$table_name.'.tpl');
}
// Creation of blocks
if ( $table_blocks == 1) {
@@ -230,7 +232,7 @@
// Templates Blocks Files
$templatesFiles = TemplatesBlocks::getInstance();
$templatesFiles->write($module, $table);
- $ret[] = $templatesFiles->renderFile('block_'.$table_name.'.tpl');
+ $ret[] = $templatesFiles->renderFile($stl_mod_name.'_block_'.$table_name.'.tpl');
}
// Blocks Templates File
/*$blocksTemplates = BlocksTemplates::getInstance();
@@ -252,7 +254,7 @@
// User Templates File
$userTemplatesPages = TemplatesUserPages::getInstance();
$userTemplatesPages->write($module, $table);
- $ret[] = $userTemplatesPages->renderFile('user_'.$table_name.'.tpl');
+ $ret[] = $userTemplatesPages->renderFile($stl_mod_name.'_'.$table_name.'.tpl');
}
/*var_dump($table_name); */
}
@@ -302,19 +304,19 @@
$ret[] = $languageAdmin->render();
// Templates Index File
$adminTemplatesAbout = TemplatesAdminAbout::getInstance();
- $adminTemplatesAbout->write($module, 'admin_about.tpl');
+ $adminTemplatesAbout->write($module, $stl_mod_name.'_about.tpl');
$ret[] = $adminTemplatesAbout->render();
// Templates Index File
$adminTemplatesIndex = TemplatesAdminIndex::getInstance();
- $adminTemplatesIndex->write($module, 'admin_index.tpl');
+ $adminTemplatesIndex->write($module, $stl_mod_name.'_index.tpl');
$ret[] = $adminTemplatesIndex->render();
// Templates Footer File
$adminTemplatesFooter = TemplatesAdminFooter::getInstance();
- $adminTemplatesFooter->write($module, 'admin_footer.tpl');
+ $adminTemplatesFooter->write($module, $stl_mod_name.'_footer.tpl');
$ret[] = $adminTemplatesFooter->render();
// Templates Header File
$adminTemplatesHeader = TemplatesAdminHeader::getInstance();
- $adminTemplatesHeader->write($module, 'admin_header.tpl');
+ $adminTemplatesHeader->write($module, $stl_mod_name.'_header.tpl');
$ret[] = $adminTemplatesHeader->render();
}
// Creation of notifications files
@@ -369,15 +371,15 @@
if ( ($table_user == 1)){
// Templates Index File
$userTemplatesIndex = TemplatesUserIndex::getInstance();
- $userTemplatesIndex->write($module, 'user_index.tpl');
+ $userTemplatesIndex->write($module, $stl_mod_name.'_index.tpl');
$ret[] = $userTemplatesIndex->render();
// Templates Footer File
$userTemplatesFooter = TemplatesUserFooter::getInstance();
- $userTemplatesFooter->write($module, $table, 'user_footer.tpl');
+ $userTemplatesFooter->write($module, $table, $stl_mod_name.'_footer.tpl');
$ret[] = $userTemplatesFooter->render();
// Templates Header File
$userTemplatesHeader = TemplatesUserHeader::getInstance();
- $userTemplatesHeader->write($module, $tables, 'user_header.tpl');
+ $userTemplatesHeader->write($module, $tables, $stl_mod_name.'_header.tpl');
$ret[] = $userTemplatesHeader->render();
// User Footer File
$userFooter = UserFooter::getInstance();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -145,6 +145,7 @@
/*
* @public function getXoopsFormUploadImage
* @param string $language
+ * @param string $table_name
* @param string $field_name
* @param string $required
*/
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/common.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/common.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/common.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -63,7 +63,7 @@
$awn = str_replace(" ", "", strtolower($mod_a_w_name));
$ret = <<<EOT
-if( ! defined( "XOOPS_ROOT_PATH" ) ) exit ;
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
if (!defined('{$stu_mn}_MODULE_PATH')) {
define('{$stu_mn}_DIRNAME', '{$stl_mn}');
define('{$stu_mn}_PATH', XOOPS_ROOT_PATH.'/modules/'.{$stu_mn}_DIRNAME);
@@ -77,8 +77,8 @@
if(is_dir({$stu_mn}_IMAGE_PATH) && file_exists(\$local_logo)) {
\$logo = \$local_logo;
} else {
- \$pathIcon32 = \$xoopsModule->getInfo('icons32');
- \$logo = \$pathIcon32.'/xoopsmicrobutton.gif';
+ \$sysPathIcon32 = \$GLOBALS['xoopsModule']->getInfo('icons32');
+ \$logo = \$sysPathIcon32.'/xoopsmicrobutton.gif';
}
define('{$stu_mn}_AUTHOR_LOGOIMG', \$logo);
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -50,10 +50,10 @@
* @param string $filename
*/
public function write($module, $table, $tables, $filename) {
- $this->setModule($module);
- $this->setFileName($filename);
+ $this->setModule($module);
$this->setTable($table);
$this->setTables($tables);
+ $this->setFileName($filename);
}
/*
* @public function getMain
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -61,11 +61,11 @@
$module_name = strtolower($module->getVar('mod_name'));
$content = <<<EOT
<!-- Header -->
-<{includeq file="db:admin_header.tpl"}>
+<{includeq file="db:{$module_name}_header.tpl"}>
<!-- About Page -->
<div class="top"><{\$about}></div>
<!-- Footer -->
-<{includeq file="db:admin_footer.tpl"}>
+<{includeq file="db:{$module_name}_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -61,11 +61,11 @@
$module_name = strtolower($module->getVar('mod_name'));
$content = <<<EOT
<!-- Header -->
-<{includeq file="db:admin_header.tpl"}>
+<{includeq file="db:{$module_name}_header.tpl"}>
<!-- Index Page -->
<div class="top"><{\$index}></div>
<!-- Footer -->
-<{includeq file="db:admin_footer.tpl"}>
+<{includeq file="db:{$module_name}_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -66,7 +66,7 @@
$stu_module_name = strtoupper($module_name);
$language = $this->getLanguage($module_name, 'AM');
$content = <<<EOT
-<{include file="db:admin_header.tpl"}>
+<{include file="db:{$stl_mod_name}_header.tpl"}>
<{if {$table_name}_list}>
<table class="outer {$table_name} width100">
<thead>
@@ -138,7 +138,7 @@
<{/if}>
<br />
<!-- Footer -->
-<{include file="db:admin_footer.tpl"}>
+<{include file="db:{$stl_mod_name}_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/footer.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/footer.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -70,24 +70,24 @@
\n<{if \$fbcomments != 0}>
<{include file="db:system_fbcomments.html"}>
<{/if}>
-\n<div class="left"><{\$copyright}></div>
+<div class="left"><{\$copyright}></div>\n
EOT;
if( $table->getVar('table_name') != null ) {
$content .= <<<EOT
-\n<{if \$pagenav != ''}>
+<{if \$pagenav != ''}>
<div class="right"><{\$pagenav}></div>
<{/if}>
-<br />
+<br />\n
EOT;
}
$content .= <<<EOT
-\n<{if \$xoops_isadmin}>
- <div class="center bold"><a href="<{\$admin}>"><{\$smarty.const.{$language}ADMIN}></a></div>
-<{/if}>
+<{if \$xoops_isadmin}>
+ <div class="center bold"><a href="<{\$admin}>"><{\$smarty.const.{$language}ADMIN}></a></div><br />
+<{/if}>\n
EOT;
- if ( ($module->getVar('mod_comments') != 0) && ($table->getVar('table_comments') != 0) ) {
+ if ( ($module->getVar('mod_comments') == 1) && ($table->getVar('table_comments') == 1) ) {
$content .= <<<EOT
-\n<div class="pad2 marg2">
+<div class="pad2 marg2">
<{if \$comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif \$comment_mode == "thread"}>
@@ -95,12 +95,13 @@
<{elseif \$comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>
-</div>
+</div>\n
+<br />\n
EOT;
}
- if ( ($module->getVar('mod_notifications') != 0) && ($table->getVar('table_notifications') != 0) ) {
+ if ( ($module->getVar('mod_notifications') == 1) && ($table->getVar('table_notifications') == 1) ) {
$content .= <<<EOT
-\n<{include file='db:system_notification_select.html'}>
+<{include file='db:system_notification_select.html'}>
EOT;
}
$this->tdmcfile->create($module_name, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -58,10 +58,10 @@
public function render() {
$module = $this->getModule();
$filename = $this->getFileName();
- $module_name = $module->getVar('mod_name');
+ $module_name = strtolower($module->getVar('mod_name'));
$language = $this->getLanguage($module_name, 'MA');
$content = <<<EOT
-<{include file="db:user_header.tpl"}>
+<{include file="db:{$module_name}_header.tpl"}>
<table class="outer {$module_name}">
<tbody>
<tr class="left">
@@ -69,7 +69,7 @@
</tr>
</tbody>
</table>
-<{include file="db:user_footer.tpl"}>
+<{include file="db:{$module_name}_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -66,7 +66,7 @@
//$filename = $this->getFileName();
$language = $this->getLanguage($module_name, 'MA');
$content = <<<EOT
-<{include file="db:user_header.tpl"}>
+<{include file="db:{$stl_mod_name}_header.tpl"}>
<table class="{$module_name}">
<thead class="outer">
<tr class="head">\n
@@ -123,7 +123,7 @@
</table>\n
EOT;
$content .= <<<EOT
-<{include file="db:user_footer.tpl"}>
+<{include file="db:{$stl_mod_name}_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/footer.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/footer.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -62,6 +62,7 @@
$filename = $this->getFileName();
$content = $this->getHeaderFilesComments($module, $filename);
$content .= <<<EOT
+\$GLOBALS['xoopsTpl']->assign('sysPathIcon32', \$sysPathIcon32);
\$GLOBALS['xoopsTpl']->assign('{$stl_mod_name}_url', {$stu_mod_name}_URL);
\$GLOBALS['xoopsTpl']->assign('adv', xoops_getModuleOption('advertise', \$dirname));
//
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -69,7 +69,14 @@
\$myts =& MyTextSanitizer::getInstance();
\$style = {$stu_mod_name}_URL . '/assets/css/style.css';
if(file_exists(\$style)) { return true; }
-
+//
+\$sysPathIcon16 = \$GLOBALS['xoopsModule']->getInfo('sysicons16');
+\$sysPathIcon32 = \$GLOBALS['xoopsModule']->getInfo('sysicons32');
+\$pathModuleAdmin = \$GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
+//
+\$modPathIcon16 = \$xoopsModule->getInfo('modicons16');
+\$modPathIcon32 = \$xoopsModule->getInfo('modicons32');
+//
xoops_loadLanguage('modinfo', \$dirname);
xoops_loadLanguage('main', \$dirname);
EOT;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -261,18 +261,18 @@
$tables = $this->getTables();
$ret = <<<EOT
// Templates Admin
-\$modversion['templates'][] = array('file' => 'admin_about.tpl', 'description' => '', 'type' => 'admin');
-\$modversion['templates'][] = array('file' => 'admin_header.tpl', 'description' => '', 'type' => 'admin');
-\$modversion['templates'][] = array('file' => 'admin_index.tpl', 'description' => '', 'type' => 'admin');\n
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_about.tpl', 'description' => '', 'type' => 'admin');
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_header.tpl', 'description' => '', 'type' => 'admin');
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_index.tpl', 'description' => '', 'type' => 'admin');\n
EOT;
foreach (array_keys($tables) as $t)
{
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => 'admin_{$tables[$t]->getVar('table_name')}.tpl', 'description' => '', 'type' => 'admin');\n
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_{$tables[$t]->getVar('table_name')}.tpl', 'description' => '', 'type' => 'admin');\n
EOT;
}
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => 'admin_footer.tpl', 'description' => '', 'type' => 'admin');\n
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_footer.tpl', 'description' => '', 'type' => 'admin');\n
EOT;
return $ret;
}
@@ -286,17 +286,17 @@
$tables = $this->getTables();
$ret = <<<EOT
// Templates User
-\$modversion['templates'][] = array('file' => 'user_header.tpl', 'description' => '');
-\$modversion['templates'][] = array('file' => 'user_index.tpl', 'description' => '');\n
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_header.tpl', 'description' => '');
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_index.tpl', 'description' => '');\n
EOT;
foreach (array_keys($tables) as $t)
{
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => 'user_{$tables[$t]->getVar('table_name')}.tpl', 'description' => '');\n
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_{$tables[$t]->getVar('table_name')}.tpl', 'description' => '');\n
EOT;
}
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => 'user_footer.tpl', 'description' => '');\n
+\$modversion['templates'][] = array('file' => '{$stl_mod_name}_footer.tpl', 'description' => '');\n
EOT;
return $ret;
}
@@ -350,7 +350,7 @@
'show_func' => "b_{$stl_mod_name}_{$table_name}_show",
'edit_func' => "b_{$stl_mod_name}_{$table_name}_edit",
'options' => "{$tables[$i]->getVar('table_fieldname')}|5|25|0",
- 'template' => "'block_{$table_name}.tpl");\n\n
+ 'template' => "'{$stl_mod_name}_block_{$table_name}.tpl");\n\n
EOT;
$this->setKeywords($table_name);
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-23 09:56:37 UTC (rev 12636)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-23 23:53:16 UTC (rev 12637)
@@ -68,14 +68,14 @@
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";
// Templates admin
-$modversion['templates'][] = array( 'file' => 'about.tpl', 'description' => '', 'type' => 'admin' );
-$modversion['templates'][] = array( 'file' => 'building.tpl', 'description' => '', 'type' => 'admin' );
-$modversion['templates'][] = array( 'file' => 'fields.tpl', 'description' => '', 'type' => 'admin' );
-$modversion['templates'][] = array( 'file' => 'footer.tpl', 'description' => '', 'type' => 'admin' );
-$modversion['templates'][] = array( 'file' => 'header.tpl', 'description' => '', 'type' => 'admin' );
-$modversion['templates'][] = array( 'file' => 'index.tpl', 'description' => '', 'type' => 'admin' );
-$modversion['templates'][] = array( 'file' => 'modules.tpl', 'description' => '', 'type' => 'admin' );
-$modversion['templates'][] = array( 'file' => 'tables.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_about.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_building.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_fields.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_footer.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_header.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_index.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_modules.tpl', 'description' => '', 'type' => 'admin' );
+$modversion['templates'][] = array( 'file' => 'tdmcreate_tables.tpl', 'description' => '', 'type' => 'admin' );
// Mysql file
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
// Tables
@@ -413,5 +413,5 @@
$modversion['config'][$i]['description'] = "";
$modversion['config'][$i]['formtype'] = "textbox";
$modversion['config'][$i]['valuetype'] = "text";
-$modversion['config'][$i]['default'] = '12585';
+$modversion['config'][$i]['default'] = '12636';
unset($i);
\ No newline at end of file
|
|
From: <txm...@us...> - 2014-06-23 09:56:45
|
Revision: 12636
http://sourceforge.net/p/xoops/svn/12636
Author: txmodxoops
Date: 2014-06-23 09:56:37 +0000 (Mon, 23 Jun 2014)
Log Message:
-----------
Pleace: You can test alpha 1 ???
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/blocks/blocks.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/blocks/blocks.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/blocks/blocks.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/blocks/blocks.php 2014-06-22 19:55:09 UTC (rev 12635)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/blocks/blocks.php 2014-06-23 09:56:37 UTC (rev 12636)
@@ -55,15 +55,16 @@
* @public function getBlocksShow
* @param null
*/
- public function getBlocksShow($module_name, $table_name, $table_fieldname, $table_category, $fields, $fpif, $fpmf) {
- $mod_name_lowercase = strtolower($module_name);
+ public function getBlocksShow($module_name, $table_name, $table_fieldname, $table_category, $fields, $fpif) {
+ $stu_module_name = strtoupper($module_name);
+ $stl_module_name = strtolower($module_name);
$ret = <<<EOT
include_once XOOPS_ROOT_PATH.'/modules/{$module_name}/include/functions.php';
-function b_{$mod_name_lowercase}_{$table_name}_show(\$options)
+function b_{$stl_module_name}_{$table_name}_show(\$options)
{
- include_once XOOPS_ROOT_PATH.'/modules/{$mod_name_lowercase}/class/{$table_name}.php';
+ include_once XOOPS_ROOT_PATH.'/modules/{$stl_module_name}/class/{$table_name}.php';
\$myts =& MyTextSanitizer::getInstance();
-
+ \$GLOBALS['xoopsTpl']->assign('{$stl_module_name}_upload_url', {$stu_module_name}_UPLOAD_URL);
\${$table_fieldname} = array();
\$type_block = \$options[0];
\$nb_{$table_name} = \$options[1];
@@ -78,7 +79,7 @@
if ( $table_category == 1 ) {
$ret .= <<<EOT
if (!(count(\$options) == 1 && \$options[0] == 0)) {
- \$criteria->add(new Criteria('{$table_fieldname}_category', {$mod_name_lowercase}_block_addCatSelect(\$options), 'IN'));
+ \$criteria->add(new Criteria('{$table_fieldname}_category', {$module_name}_block_addCatSelect(\$options), 'IN'));
}\n
EOT;
}
@@ -97,11 +98,17 @@
EOT;
foreach(array_keys($fields) as $f)
{
- if( $fields[$f]->getVar('field_block') == 1 ) {
+ $field_name = $fields[$f]->getVar('field_name');
+ $rp_field_name = $field_name;
+ if(strpos($field_name, '_')) {
+ $str = strpos($field_name, '_');
+ if($str !== false){
+ $rp_field_name = substr($field_name, $str + 1, strlen($field_name));
+ }
+ }
$ret .= <<<EOT
- \${$table_fieldname}['{$fpmf}'] = \${$table_name}_arr[\$i]->getVar('{$fpmf}');\n
+ \${$table_fieldname}['{$rp_field_name}'] = \${$table_name}_arr[\$i]->getVar('{$field_name}');\n
EOT;
- }
}
$ret .= <<<EOT
}
@@ -119,12 +126,14 @@
* @param string $language
*/
public function getBlocksEdit($module_name, $table_name, $fpif, $fpmf, $language) {
- $mod_name_lowercase = strtolower($module_name);
+ $stu_module_name = strtoupper($module_name);
+ $stl_module_name = strtolower($module_name);
$ret = <<<EOT
-function b_{$mod_name_lowercase}_{$table_name}_edit(\$options)
+function b_{$stl_module_name}_{$table_name}_edit(\$options)
{
- include_once XOOPS_ROOT_PATH.'/modules/{$module_name}/class/{$table_name}.php';
- \${$table_name}Handler =& xoops_getModuleHandler('{$table_name}', '{$module_name}');
+ include_once XOOPS_ROOT_PATH.'/modules/{$stl_module_name}/class/{$table_name}.php';
+ \${$table_name}Handler =& xoops_getModuleHandler('{$table_name}', '{$module_name}');
+ \$GLOBALS['xoopsTpl']->assign('{$stl_module_name}_upload_url', {$stu_module_name}_UPLOAD_URL);
\$form = {$language}DISPLAY;
\$form .= "<input type='hidden' name='options[0]' value='".\$options[0]."' />";
\$form .= "<input name='options[1]' size='5' maxlength='255' value='".\$options[1]."' type='text' /> <br />";
@@ -174,7 +183,7 @@
}
}
$content = $this->getHeaderFilesComments($module, $filename);
- $content .= $this->getBlocksShow($module_name, $table_name, $table_fieldname, $table_category, $fields, $fpif, $fpmf);
+ $content .= $this->getBlocksShow($module_name, $table_name, $table_fieldname, $table_category, $fields, $fpif);
$content .= $this->getBlocksEdit($module_name, $table_name, $fpif, $fpmf, $language);
//
$this->tdmcfile->create($module_name, 'blocks', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-22 19:55:09 UTC (rev 12635)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-23 09:56:37 UTC (rev 12636)
@@ -99,15 +99,15 @@
$rp_field_name = substr($field_name, $str + 1, strlen($field_name));
}
}
- switch( $field_element ) {
- case 9:
+ switch( $field_element ) {
+ case 8:
$content .= <<<EOT
- <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
+ <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
EOT;
break;
- case 8:
+ case 9:
$content .= <<<EOT
- <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
+ <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
EOT;
break;
default:
@@ -122,7 +122,7 @@
<{/foreach}>
</tbody>
</table>
- <!-- Display modules navigation -->
+ <!-- Display navigation -->
<div class="clear"> </div>
<{if \$pagenav}><br /><div class="xo-pagenav floatright"><{\$pagenav}></div><div class="clear spacer"></div><{/if}>
<{if \$error}>
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/blocks/blocks.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/blocks/blocks.php 2014-06-22 19:55:09 UTC (rev 12635)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/blocks/blocks.php 2014-06-23 09:56:37 UTC (rev 12636)
@@ -59,14 +59,15 @@
public function renderFile($filename) {
$module = $this->getModule();
$table = $this->getTable();
- $module_name = $module->getVar('mod_name');
+ $module_name = strtolower($module->getVar('mod_name'));
$table_name = $table->getVar('table_name');
$table_fieldname = $table->getVar('table_fieldname');
//$filename = $this->getFileName();
- $language = $this->getLanguage($module_name, 'MA');
+ $language = $this->getLanguage($module_name, 'MB');
$content = <<<EOT
-<table class="{$table_name}" cellpadding="0" cellspacing="0" width="100%">
- <tr class="head">\n
+<table class="{$table_name} width100">
+ <thead>
+ <tr class="head">\n
EOT;
$fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
@@ -74,13 +75,15 @@
$field_name = $fields[$f]->getVar('field_name');
$lang_stu_field_name = $language.strtoupper($field_name);
$content .= <<<EOT
- <th class="center"><{\$smarty.const.{$lang_stu_field_name}}></th>\n
+ <th class="center"><{\$smarty.const.{$lang_stu_field_name}}></th>\n
EOT;
}
$content .= <<<EOT
- </tr>
- <{foreach item={$table_fieldname} from=\${$table_name}}>
- <tr class="<{cycle values=\'odd, even\'}>">\n
+ </tr>
+ </thead>
+ <tbody>
+ <{foreach item={$table_fieldname} from=\${$table_name}}>
+ <tr class="<{cycle values='odd, even'}>">\n
EOT;
foreach(array_keys($fields) as $f)
{
@@ -95,21 +98,24 @@
}
if( $field_element == 9 ) {
$content .= <<<EOT
- <td class="center"><img src="<{\$xoops_url}>/uploads/{$module_name}/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
+ <td class="center">
+ <img src="<{\${$module_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}">
+ </td>\n
EOT;
} elseif( $field_element == 8 ) {
$content .= <<<EOT
- <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
+ <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
EOT;
} else {
$content .= <<<EOT
- <td class="center"><{\${$table_fieldname}.{$rp_field_name}}></td>\n
+ <td class="center"><{\${$table_fieldname}.{$rp_field_name}}></td>\n
EOT;
}
}
$content .= <<<EOT
- </tr>
- <{/foreach}>
+ </tr>
+ <{/foreach}>
+ </tbody>
</table>
EOT;
$this->tdmcfile->create($module_name, 'templates/blocks', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-22 19:55:09 UTC (rev 12635)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-23 09:56:37 UTC (rev 12636)
@@ -67,10 +67,9 @@
$language = $this->getLanguage($module_name, 'MA');
$content = <<<EOT
<{include file="db:user_header.tpl"}>
-<div class="outer">
- <table class="{$module_name}">
- <thead>
- <tr class="head">\n
+<table class="{$module_name}">
+ <thead class="outer">
+ <tr class="head">\n
EOT;
$fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
@@ -78,15 +77,15 @@
$field_name = $fields[$f]->getVar('field_name');
$lang_stu_field_name = $language.strtoupper($field_name);
$content .= <<<EOT
- <th class="center"><{\$smarty.const.{$lang_stu_field_name}}></th>\n
+ <th class="center"><{\$smarty.const.{$lang_stu_field_name}}></th>\n
EOT;
}
$content .= <<<EOT
- </tr>
- </thead>
- <tbody>
- <{foreach item={$table_fieldname} from=\${$table_name}}>
- <tr class="<{cycle values='odd, even'}>">\n
+ </tr>
+ </thead>
+ <tbody>
+ <{foreach item={$table_fieldname} from=\${$table_name}}>
+ <tr class="<{cycle values='odd, even'}>">\n
EOT;
foreach(array_keys($fields) as $f)
{
@@ -99,30 +98,29 @@
$rp_field_name = substr($field_name, $str + 1, strlen($field_name));
}
}
- if( $field_element == 9 ) {
- $content .= <<<EOT
- <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
+ switch( $field_element ) {
+ case 8:
+ $content .= <<<EOT
+ <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
EOT;
- } elseif( $field_element == 8 ) {
- $content .= <<<EOT
- <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
+ break;
+ case 9:
+ $content .= <<<EOT
+ <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
EOT;
- } else {
- $content .= <<<EOT
- <td class="center"><{\${$table_fieldname}.{$rp_field_name}}></td>\n
+ break;
+ default:
+ $content .= <<<EOT
+ <td class="center"><{\${$table_fieldname}.{$rp_field_name}}></td>\n
EOT;
+ break;
}
}
$content .= <<<EOT
- </tr>
- <{/foreach}>
- </tbody>
- </table>
-</div>
-<div class="outer">
- <div class="center">None</div>
- <br />
-</div>\n
+ </tr>
+ <{/foreach}>
+ </tbody>
+</table>\n
EOT;
$content .= <<<EOT
<{include file="db:user_footer.tpl"}>
|
|
From: <be...@us...> - 2014-06-22 19:55:14
|
Revision: 12635
http://sourceforge.net/p/xoops/svn/12635
Author: beckmi
Date: 2014-06-22 19:55:09 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
Updating docu for the correct version of tablesorter, synch with 2.5.7 changes
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php
Modified: XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-06-22 19:51:11 UTC (rev 12634)
+++ XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-06-22 19:55:09 UTC (rev 12635)
@@ -41,7 +41,7 @@
- jQuery UI 1.10.4 (mamba)
- jQuery Lightbox to 1.2.3 (mamba)
- jQuery Form to 3.50.0 (mamba)
- - jQuery Tablesorter to 2.5.11 (mamba)
+ - jQuery Tablesorter to 2.15.11 (mamba)
- jGrowl to 1.2.14 (mamba)
===============================
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php 2014-06-22 19:51:11 UTC (rev 12634)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php 2014-06-22 19:55:09 UTC (rev 12635)
@@ -17,7 +17,7 @@
* @version $Id $
**/
-include_once dirname(__FILE__) . '../../../include/cp_header.php';
+include_once dirname(__FILE__) . '/../../../include/cp_header.php';
include '../../../class/xoopsformloader.php';
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php 2014-06-22 19:51:11 UTC (rev 12634)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php 2014-06-22 19:55:09 UTC (rev 12635)
@@ -17,7 +17,7 @@
* @version $Id $
**/
-include_once dirname(__FILE__) . '../../../include/cp_header.php';
+include_once dirname(__FILE__) . '/../../../include/cp_header.php';
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php 2014-06-22 19:51:11 UTC (rev 12634)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php 2014-06-22 19:55:09 UTC (rev 12635)
@@ -1,7 +1,7 @@
<?php
// $Id$
-include_once dirname(__FILE__) . '../../../include/cp_header.php';
+include_once dirname(__FILE__) . '/../../../include/cp_header.php';
$modid = isset($_POST['modid']) ? intval($_POST['modid']) : 0;
// we don't want system module permissions to be changed here
|
|
From: <be...@us...> - 2014-06-22 19:51:21
|
Revision: 12634
http://sourceforge.net/p/xoops/svn/12634
Author: beckmi
Date: 2014-06-22 19:51:11 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
Updating docu for the correct version of tablesorter
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt
Modified: XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt 2014-06-22 13:03:57 UTC (rev 12633)
+++ XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt 2014-06-22 19:51:11 UTC (rev 12634)
@@ -36,7 +36,7 @@
- jQuery UI 1.10.4 (mamba)
- jQuery Lightbox to 1.2.3 (mamba)
- jQuery Form to 3.50.0 (mamba)
- - jQuery Tablesorter to 2.5.11 (mamba)
+ - jQuery Tablesorter to 2.15.11 (mamba)
- jGrowl to 1.2.14 (mamba)
===============================
|
|
From: <txm...@us...> - 2014-06-22 13:04:01
|
Revision: 12633
http://sourceforge.net/p/xoops/svn/12633
Author: txmodxoops
Date: 2014-06-22 13:03:57 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php 2014-06-22 12:26:45 UTC (rev 12632)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/modinfo.php 2014-06-22 13:03:57 UTC (rev 12633)
@@ -76,7 +76,7 @@
public function getMenu($language, $tables) {
$menu = 1;
$ret = <<<EOT
-// Menu
+// Admin Menu
define('{$language}ADMENU{$menu}', "Dashboard");\n
EOT;
@@ -115,6 +115,29 @@
return $ret;
}
/*
+ * @public function getSubmenu
+ * @param string $language
+ * @param array $tables
+ */
+ public function getSubmenu($language, $tables) {
+ $ret = <<<EOT
+// Blocks\n
+EOT;
+ $i = 1;
+ foreach (array_keys($tables) as $t)
+ {
+ $table_name = $tables[$t]->getVar('table_name');
+ if ( $tables[$t]->getVar('table_submenu') == 1 ) {
+ $ret .= <<<EOT
+define('{$language}SMNAME{$i}', "{$table_name}");\n
+EOT;
+ }
+ $i++;
+ }
+ unset($i);
+ return $ret;
+ }
+ /*
* @public function getBlocks
* @param string $language
* @param array $tables
@@ -259,21 +282,20 @@
$content = $this->getHeaderFilesComments($module, $filename);
$content .= $this->getMain($language, $module);
$content .= $this->getAdmin($language);
- $content .= $this->getUser($language);
- //if(is_object($tables)) {
- $content .= $this->getMenu($language, $tables);
- $content .= $this->getBlocks($language, $tables);
- //}
- if(is_object($table)) {
- $content .= $this->getConfig($language, $table);
- if ( $table->getVar('table_notifications') == 1 )
- {
- $content .= $this->getNotifications($language);
- }
- if ( $table->getVar('table_permissions') != 0 ) {
- $content .= $this->getPermissions($language);
- }
+ $content .= $this->getUser($language);
+ $content .= $this->getMenu($language, $tables);
+ $content .= $this->getBlocks($language, $tables);
+ if ( $table->getVar('table_submenu') == 1 ) {
+ $content .= $this->getSubmenu($language, $tables);
}
+ $content .= $this->getConfig($language, $table);
+ if ( $table->getVar('table_notifications') == 1 )
+ {
+ $content .= $this->getNotifications($language);
+ }
+ if ( $table->getVar('table_permissions') != 0 ) {
+ $content .= $this->getPermissions($language);
+ }
//
$this->tdmcfile->create($module_name, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-22 12:26:45 UTC (rev 12632)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-22 13:03:57 UTC (rev 12633)
@@ -301,6 +301,32 @@
return $ret;
}
/*
+ * @private function getXoopsVersionSubmenu
+ * @param string $language
+ */
+ private function getXoopsVersionSubmenu($language)
+ {
+ $ret = <<<EOT
+// Submenu list\n
+EOT;
+ $tables = $this->getTables();
+ $i = 1;
+ foreach (array_keys($tables) as $t)
+ {
+ $table_name = $tables[$t]->getVar('table_name');
+ if ( $tables[$t]->getVar('table_submenu') == 1 ) {
+ $ret .= <<<EOT
+// Sub {$table_name}
+\$modversion['sub'][{$i}]['name'] = {$language}SMNAME{$i};
+\$modversion['sub'][{$i}]['url'] = "{$table_name}.php";\n
+EOT;
+ }
+ $i++;
+ }
+ unset($i);
+ return $ret;
+ }
+ /*
* @private function getXoopsVersionBlocks
* @param string $module_name
* @param string $language
@@ -633,6 +659,9 @@
if($table->getVar('table_user') == 1) {
$content .= $this->getXoopsVersionTemplatesUser($module_name);
}
+ if ($table->getVar('table_submenu') == 1) {
+ $content .= $this->getXoopsVersionSubmenu($language);
+ }
if ($table->getVar('table_blocks') == 1) {
$content .= $this->getXoopsVersionBlocks($module_name, $language);
}
|
|
From: <txm...@us...> - 2014-06-22 12:26:54
|
Revision: 12632
http://sourceforge.net/p/xoops/svn/12632
Author: txmodxoops
Date: 2014-06-22 12:26:45 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php 2014-06-22 09:57:53 UTC (rev 12631)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php 2014-06-22 12:26:45 UTC (rev 12632)
@@ -62,8 +62,9 @@
$content = $this->getHeaderFilesComments($module, $filename);
$content .= <<<EOT
include 'header.php';
-echo \$adminMenu->addNavigation('about.php');
-echo \$adminMenu->renderAbout('{$module_donations}', false);
+\$template_main = 'admin_about.tpl';
+\$GLOBALS['xoopsTpl']->assign('navigation', \$adminMenu->addNavigation('about.php'));
+\$GLOBALS['xoopsTpl']->assign('about', \$adminMenu->renderAbout('{$module_donations}', false));
include 'footer.php';
EOT;
$this->tdmcfile->create($module_name, 'admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/index.php 2014-06-22 09:57:53 UTC (rev 12631)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/index.php 2014-06-22 12:26:45 UTC (rev 12632)
@@ -76,6 +76,8 @@
EOT;
}
$content .= <<<EOT
+// Template Index
+\$template_main = 'admin_index.tpl';
// InfoBox Statistics
\$adminMenu->addInfoBox({$language}STATISTICS);
// InfoBox\n
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-22 09:57:53 UTC (rev 12631)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-22 12:26:45 UTC (rev 12632)
@@ -91,6 +91,7 @@
\$limit = xoops_getModuleOption('adminpager');
\$start = {$module_name}_CleanVars(\$_REQUEST, 'start', 0);
\$adminMenu->addItemButton({$language}ADD_{$stu_table_fieldname}, '{$table_name}.php?op=new', 'add');
+ \$template_main = 'admin_{$table_name}.tpl';
echo \$adminMenu->renderButton();
\$criteria = new CriteriaCompo();
\$criteria->setSort('{$fpif} ASC, {$fpmf}');
@@ -100,6 +101,7 @@
unset(\$criteria);
\$GLOBALS['xoopsTpl']->assign('{$stl_mod_name}_url', {$stu_mod_name}_URL);
\$GLOBALS['xoopsTpl']->assign('{$stl_mod_name}_upload_url', {$stu_mod_name}_UPLOAD_URL);
+ \$GLOBALS['xoopsTpl']->assign('{$table_name}_list', true);
// Table view
if (\${$table_name}_rows > 0)
{
@@ -122,7 +124,7 @@
EOT;
}
$ret .= <<<EOT
- \$GLOBALS['xoopsTpl']->append('{$table_name}_list', \${$lp_field_name});
+ \$GLOBALS['xoopsTpl']->append('{$table_name}', \${$lp_field_name});
unset(\${$lp_field_name});
}
if ( \${$table_name}_rows > \$limit ) {
@@ -146,9 +148,11 @@
public function getAdminPagesNew($table_name, $language) {
$stu_table_name = strtoupper($table_name);
$ret = <<<EOT
- case 'new':
+ case 'new':
+ \$template_main = 'admin_{$table_name}.tpl';
\$adminMenu->addItemButton({$language}{$stu_table_name}_LIST, '{$table_name}.php', 'list');
echo \$adminMenu->renderButton();
+ \$GLOBALS['xoopsTpl']->append('{$table_name}_list', false);
// Get Form
\${$table_name}Obj =& \${$table_name}Handler->create();
\$form = \${$table_name}Obj->getForm();
@@ -226,9 +230,11 @@
$stu_table_name = strtoupper($table_name);
$ret = <<<EOT
case 'edit':
+ \$template_main = 'admin_{$table_name}.tpl';
\$adminMenu->addItemButton({$language}ADD_{$stu_table_name}, '{$table_name}.php?op=new', 'add');
\$adminMenu->addItemButton({$language}{$stu_table_name}_LIST, '{$table_name}.php', 'list');
echo \$adminMenu->renderButton();
+ \$GLOBALS['xoopsTpl']->assign('{$table_name}_list', false);
// Get Form
\${$table_name}Obj = \${$table_name}Handler->get(\$_REQUEST['{$fpif}']);
\$form = \${$table_name}Obj->getForm();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-06-22 09:57:53 UTC (rev 12631)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-06-22 12:26:45 UTC (rev 12632)
@@ -209,9 +209,11 @@
* @public function getLanguageAdminFoot
* @param null
*/
- public function getLanguageAdminFoot()
+ public function getLanguageAdminFoot($language)
{
$ret = <<<EOT
+// ---------------- Admin Others ----------------
+define('{$language}MAINTAINEDBY', " is maintained by ");
// ---------------- ----------------
EOT;
return $ret;
@@ -231,7 +233,7 @@
$content .= $this->getLanguageAdminPages($language, $tables);
$content .= $this->getLanguageAdminClass($language, $tables);
$content .= $this->getLanguageAdminPermissions($language);
- $content .= $this->getLanguageAdminFoot();
+ $content .= $this->getLanguageAdminFoot($language);
//
$this->tdmcfile->create($module_name, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-22 09:57:53 UTC (rev 12631)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-22 12:26:45 UTC (rev 12632)
@@ -64,11 +64,11 @@
$table_fieldname = $table->getVar('table_fieldname');
//
$stu_module_name = strtoupper($module_name);
- $language = $this->getLanguage($module_name, 'MA');
+ $language = $this->getLanguage($module_name, 'AM');
$content = <<<EOT
<{include file="db:admin_header.tpl"}>
-<div class="outer">
- <table class="{$table_name} width100">
+<{if {$table_name}_list}>
+ <table class="outer {$table_name} width100">
<thead>
<tr class="head">\n
EOT;
@@ -83,7 +83,7 @@
}
$content .= <<<EOT
</tr>
- </thead>
+ </thead>
<tbody>
<{foreach item={$table_fieldname} from=\${$table_name}}>
<tr class="<{cycle values='odd, even'}>">\n
@@ -95,22 +95,26 @@
$rp_field_name = $field_name;
if(strpos($field_name, '_')) {
$str = strpos($field_name, '_');
- if($str !== false){
+ if($str !== false) {
$rp_field_name = substr($field_name, $str + 1, strlen($field_name));
}
}
- if( $field_element == 9 ) {
- $content .= <<<EOT
+ switch( $field_element ) {
+ case 9:
+ $content .= <<<EOT
<td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
EOT;
- } elseif( $field_element == 8 ) {
- $content .= <<<EOT
+ break;
+ case 8:
+ $content .= <<<EOT
<td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
EOT;
- } else {
- $content .= <<<EOT
+ break;
+ default:
+ $content .= <<<EOT
<td class="center"><{\${$table_fieldname}.{$rp_field_name}}></td>\n
EOT;
+ break;
}
}
$content .= <<<EOT
@@ -118,11 +122,22 @@
<{/foreach}>
</tbody>
</table>
-</div>
-<div class="outer">
- <div class="center">None</div>
- <br />
-</div>
+ <!-- Display modules navigation -->
+ <div class="clear"> </div>
+ <{if \$pagenav}><br /><div class="xo-pagenav floatright"><{\$pagenav}></div><div class="clear spacer"></div><{/if}>
+ <{if \$error}>
+ <div class="errorMsg">
+ <strong><{\$error}></strong>
+ </div>
+ <{/if}>
+<{else}>
+ <!-- Display form (add,edit) -->
+ <{if \$form}>
+ <div class="spacer"><{\$form}></div>
+ <{/if}>
+<{/if}>
+<br />
+<!-- Footer -->
<{include file="db:admin_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-22 09:57:53 UTC (rev 12631)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-22 12:26:45 UTC (rev 12632)
@@ -69,7 +69,8 @@
<{include file="db:user_header.tpl"}>
<div class="outer">
<table class="{$module_name}">
- <tr class="head">\n
+ <thead>
+ <tr class="head">\n
EOT;
$fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
@@ -77,13 +78,15 @@
$field_name = $fields[$f]->getVar('field_name');
$lang_stu_field_name = $language.strtoupper($field_name);
$content .= <<<EOT
- <th class="center"><{\$smarty.const.{$lang_stu_field_name}}></th>\n
+ <th class="center"><{\$smarty.const.{$lang_stu_field_name}}></th>\n
EOT;
}
$content .= <<<EOT
- </tr>
- <{foreach item={$table_fieldname} from=\${$table_name}}>
- <tr class="<{cycle values='odd, even'}>">\n
+ </tr>
+ </thead>
+ <tbody>
+ <{foreach item={$table_fieldname} from=\${$table_name}}>
+ <tr class="<{cycle values='odd, even'}>">\n
EOT;
foreach(array_keys($fields) as $f)
{
@@ -98,21 +101,22 @@
}
if( $field_element == 9 ) {
$content .= <<<EOT
- <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
+ <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
EOT;
} elseif( $field_element == 8 ) {
$content .= <<<EOT
- <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
+ <td class="center"><span style="background-color: <{\${$table_fieldname}.{$rp_field_name}}>;"> </span></td>\n
EOT;
} else {
$content .= <<<EOT
- <td class="center"><{\${$table_fieldname}.{$rp_field_name}}></td>\n
+ <td class="center"><{\${$table_fieldname}.{$rp_field_name}}></td>\n
EOT;
}
}
$content .= <<<EOT
- </tr>
- <{/foreach}>
+ </tr>
+ <{/foreach}>
+ </tbody>
</table>
</div>
<div class="outer">
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-22 09:57:53 UTC (rev 12631)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-22 12:26:45 UTC (rev 12632)
@@ -261,6 +261,7 @@
$tables = $this->getTables();
$ret = <<<EOT
// Templates Admin
+\$modversion['templates'][] = array('file' => 'admin_about.tpl', 'description' => '', 'type' => 'admin');
\$modversion['templates'][] = array('file' => 'admin_header.tpl', 'description' => '', 'type' => 'admin');
\$modversion['templates'][] = array('file' => 'admin_index.tpl', 'description' => '', 'type' => 'admin');\n
EOT;
|
|
From: <txm...@us...> - 2014-06-22 09:58:04
|
Revision: 12631
http://sourceforge.net/p/xoops/svn/12631
Author: txmodxoops
Date: 2014-06-22 09:57:53 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/css/styles.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/footer.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/header.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/submit.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -148,20 +148,22 @@
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
- if (isset($table_id)) {
- $obj =& $tdmcreate->getHandler('tables')->get($table_id);
- } else {
- $obj =& $tdmcreate->getHandler('tables')->create();
- }
+ $tables =& $tdmcreate->getHandler('tables');
// Checking if table name exist
- $table_name_search = $tdmcreate->getHandler('tables')->getObjects(null);
+ $table_name_search = $tables->getObjects(null);
foreach (array_keys($table_name_search) as $t)
{
if( ($table_name_search[$t]->getVar('table_name') === $_POST['table_name']) &&
- ($table_name_search[$t]->getVar('table_mid') === $table_mid)) {
+ ($table_name_search[$t]->getVar('table_mid') === $table_mid) &&
+ ($table_name_search[$t]->getVar('table_id') === $table_id)) {
redirect_header('tables.php?op=new', 10, sprintf(_AM_TDMCREATE_ERROR_TABLE_NAME_EXIST, $_POST['table_name']));
- }
- }
+ }
+ }
+ if (isset($table_id)) {
+ $obj =& $tables->get($table_id);
+ } else {
+ $obj =& $tables->create();
+ }
// Form save tables
$obj->setVars(array('table_mid' => $table_mid,
'table_name' => $_POST['table_name'],
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -219,7 +219,7 @@
// Admin Templates File
$adminTemplatesPages = TemplatesAdminPages::getInstance();
$adminTemplatesPages->write($module, $table);
- $ret[] = $adminTemplatesPages->renderFile($table_name.'.tpl');
+ $ret[] = $adminTemplatesPages->renderFile('admin_'.$table_name.'.tpl');
}
// Creation of blocks
if ( $table_blocks == 1) {
@@ -230,7 +230,7 @@
// Templates Blocks Files
$templatesFiles = TemplatesBlocks::getInstance();
$templatesFiles->write($module, $table);
- $ret[] = $templatesFiles->renderFile($table_name.'.tpl');
+ $ret[] = $templatesFiles->renderFile('block_'.$table_name.'.tpl');
}
// Blocks Templates File
/*$blocksTemplates = BlocksTemplates::getInstance();
@@ -252,7 +252,7 @@
// User Templates File
$userTemplatesPages = TemplatesUserPages::getInstance();
$userTemplatesPages->write($module, $table);
- $ret[] = $userTemplatesPages->renderFile($table_name.'.tpl');
+ $ret[] = $userTemplatesPages->renderFile('user_'.$table_name.'.tpl');
}
/*var_dump($table_name); */
}
@@ -302,19 +302,19 @@
$ret[] = $languageAdmin->render();
// Templates Index File
$adminTemplatesAbout = TemplatesAdminAbout::getInstance();
- $adminTemplatesAbout->write($module, 'about.tpl');
+ $adminTemplatesAbout->write($module, 'admin_about.tpl');
$ret[] = $adminTemplatesAbout->render();
// Templates Index File
$adminTemplatesIndex = TemplatesAdminIndex::getInstance();
- $adminTemplatesIndex->write($module, 'index.tpl');
+ $adminTemplatesIndex->write($module, 'admin_index.tpl');
$ret[] = $adminTemplatesIndex->render();
// Templates Footer File
$adminTemplatesFooter = TemplatesAdminFooter::getInstance();
- $adminTemplatesFooter->write($module, 'footer.tpl');
+ $adminTemplatesFooter->write($module, 'admin_footer.tpl');
$ret[] = $adminTemplatesFooter->render();
// Templates Header File
$adminTemplatesHeader = TemplatesAdminHeader::getInstance();
- $adminTemplatesHeader->write($module, 'header.tpl');
+ $adminTemplatesHeader->write($module, 'admin_header.tpl');
$ret[] = $adminTemplatesHeader->render();
}
// Creation of notifications files
@@ -369,15 +369,15 @@
if ( ($table_user == 1)){
// Templates Index File
$userTemplatesIndex = TemplatesUserIndex::getInstance();
- $userTemplatesIndex->write($module, 'index.tpl');
+ $userTemplatesIndex->write($module, 'user_index.tpl');
$ret[] = $userTemplatesIndex->render();
// Templates Footer File
$userTemplatesFooter = TemplatesUserFooter::getInstance();
- $userTemplatesFooter->write($module, $table, 'footer.tpl');
+ $userTemplatesFooter->write($module, $table, 'user_footer.tpl');
$ret[] = $userTemplatesFooter->render();
// Templates Header File
$userTemplatesHeader = TemplatesUserHeader::getInstance();
- $userTemplatesHeader->write($module, $tables, 'header.tpl');
+ $userTemplatesHeader->write($module, $tables, 'user_header.tpl');
$ret[] = $userTemplatesHeader->render();
// User Footer File
$userFooter = UserFooter::getInstance();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -138,7 +138,7 @@
*/
public function getXoopsFormUploadFile($language, $field_name, $required = 'false') {
$ret = <<<EOT
- \$form->addElement(new XoopsFormUploadFile({$language}, '{$field_name}', \$xoopsModuleConfig['maxsize']){$required});\n
+ \$form->addElement(new XoopsFormUploadFile({$language}, '{$field_name}', \$GLOBALS['xoopsModuleConfig']['maxsize']){$required});\n
EOT;
return $ret;
}
@@ -148,9 +148,40 @@
* @param string $field_name
* @param string $required
*/
- public function getXoopsFormUploadImage($language, $field_name, $required = 'false') {
+ public function getXoopsFormUploadImage($language, $table_name, $field_name, $required = 'false') {
+ $stu_field_name = strtoupper($field_name);
$ret = <<<EOT
- \$form->addElement(new XoopsFormUploadImage({$language}, '{$field_name}', \$xoopsModuleConfig['maxsize']){$required});\n
+ //\$form->addElement(new XoopsFormUploadImage({$language}, '{$field_name}', \$GLOBALS['xoopsModuleConfig']['maxsize']){$required});
+ \$get_{$field_name} = \$this->getVar('{$field_name}');
+ \${$field_name} = \$get_{$field_name} ? \$get_{$field_name} : 'blank.gif';
+ \$iconsdir = '/Frameworks/moduleclasses/icons/32';
+ \$uploads_dir = '/uploads/'.\$GLOBALS['xoopsModule']->dirname().'/images/{$table_name}';
+ if(is_dir(XOOPS_ROOT_PATH . \$iconsdir)){
+ \$iconsdirectory = \$iconsdir;
+ }else{
+ \$iconsdirectory = \$uploads_dir;
+ }
+ //
+ \$imgtray1 = new XoopsFormElementTray({$language}{$stu_field_name},'<br />');
+ if(is_dir(XOOPS_ROOT_PATH . \$iconsdir)) {
+ \$imgpath = sprintf({$language}FORMIMAGE_PATH, ".{\$iconsdir}/");
+ }else{
+ \$imgpath = sprintf({$language}FORMIMAGE_PATH, \$uploads_dir);
+ }
+ \$imgpath1 = sprintf({$language}FORMIMAGE_PATH, ".{\$iconsdirectory}/");
+ \$imageselect1 = new XoopsFormSelect(\$imgpath1, '{$field_name}', \${$field_name}, 10);
+ \$image_array1 = XoopsLists::getImgListAsArray( XOOPS_ROOT_PATH . \$iconsdirectory );
+ foreach( \$image_array1 as \$image1 ) {
+ \$imageselect1->addOption("{\$image1}", \$image1);
+ }
+ \$imageselect1->setExtra( "onchange='showImgSelected(\"image1\", \"{$field_name}\", \"".\$iconsdirectory."\", \"\", \"".XOOPS_URL."\")'" );
+ \$imgtray1->addElement(\$imageselect1, false);
+ \$imgtray1->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".\$iconsdirectory."/".\${$field_name}."' name='image1' id='image1' alt='' />" ) );
+ \$fileseltray1 = new XoopsFormElementTray('','<br />');
+ \$fileseltray1->addElement(new XoopsFormFile({$language}FORMUPLOAD , 'attachedfile', \$GLOBALS['xoopsModuleConfig']['maxsize']));
+ \$fileseltray1->addElement(new XoopsFormLabel(''));
+ \$imgtray1->addElement(\$fileseltray1);
+ \$form->addElement(\$imgtray1{$required});\n
EOT;
return $ret;
}
@@ -327,7 +358,7 @@
$ret .= $this->getXoopsFormColorPicker($language, $field_name, $required);
break;
case 9:
- $ret .= $this->getXoopsFormUploadImage($language, $field_name, $required);
+ $ret .= $this->getXoopsFormUploadImage($language_funct, $table_name, $field_name, $required);
break;
case 10:
$ret .= $this->getXoopsFormUploadFile($language, $field_name, $required);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/css/styles.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/css/styles.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/css/styles.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -61,17 +61,28 @@
$module_name = strtolower($module->getVar('mod_name'));
//$content = $this->getHeaderFilesComments($module, $filename);
$content = <<<EOT
-table {
+table.{$module_name} {
margin: 0;
+ padding: 2px;
+ border: 1px solid #ccc;
+ width: 100%;
}
-table.{$module_name} {
+thead {
+ margin: 0;
padding: 2px;
- border: 1px solid #ccc;
}
-td.fields {
- font: Verdana, Tahoma;
+tbody {
+ margin: 0;
+ padding: 2px;
+}
+
+tr {
+ font-family: Verdana, Tahoma;
+}
+
+td {
font-size: 12px;
font-weight: normal;
}
@@ -80,12 +91,14 @@
color: #555;
background-color: #eee;
border: 1px solid #ccc;
+ width: 100%;
}
-ul.fields > li {
+ul.menu > li {
display: inline;
- list-style-type: none;
- list-style-image: none;
+ width: 100%;
+ text-align: center;
+ list-style-type: none;
}
EOT;
$this->tdmcfile->create($module_name, 'assets/css', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -98,6 +98,13 @@
EOT;
}
$ret .= <<<EOT
+// Save/Delete
+define('{$language}FORMOK', "Successfully saved");
+define('{$language}FORMDELOK', "Successfully deleted");
+define('{$language}FORMSUREDEL', "Are you sure to delete: <b><span style='color : Red'>%s </span></b>");
+define('{$language}FORMSURERENEW', "Are you sure to update: <b><span style='color : Red'>%s </span></b>");\n
+EOT;
+ $ret .= <<<EOT
// Buttons\n
EOT;
foreach (array_keys($tables) as $t)
@@ -142,7 +149,7 @@
$stu_table_name = strtoupper($table_name);
$ucf_table_name = ucfirst($table_name);
$ret .= <<<EOT
-// {$ucf_table_name} add
+// {$ucf_table_name} add/edit
define('{$language}{$stu_table_name}_ADD', "Add {$table_name}");
define('{$language}{$stu_table_name}_EDIT', "Edit {$table_name}");
// Elements of {$ucf_table_name}\n
@@ -157,8 +164,16 @@
define('{$language}{$stu_field_name}', "{$field_name_desc}");\n
EOT;
}
- }
+ }
$ret .= <<<EOT
+// General
+define('{$language}FORMUPLOAD', "Upload file");
+define('{$language}FORMIMAGE_PATH', "Files in %s ");
+define('{$language}FORMACTION', "Action");
+define('{$language}FORMEDIT', "Modification");
+define('{$language}FORMDEL', "Clear");\n
+EOT;
+ $ret .= <<<EOT
// Permissions
define('{$language}PERMISSIONS_APPROVE', "Permissions to approve");
define('{$language}PERMISSIONS_SUBMIT', "Permissions to submit");
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/about.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -61,11 +61,11 @@
$module_name = strtolower($module->getVar('mod_name'));
$content = <<<EOT
<!-- Header -->
-<{includeq file="db:header.tpl"}>
+<{includeq file="db:admin_header.tpl"}>
<!-- About Page -->
<div class="top"><{\$about}></div>
<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
+<{includeq file="db:admin_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/footer.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/footer.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -66,7 +66,7 @@
<div class='center'>
<a href='http://www.xoops.org' title='Visit XOOPS' target='_blank'><img src='<{xoModuleIcons32 xoopsmicrobutton.gif}>' alt='XOOPS' /></a>
</div>
-<div class='center smallsmall italic pad5'><strong>{$module_name}</strong> <{{$language}MAINTAINEDBY}>
+<div class='center smallsmall italic pad5'><strong>{$module_name}</strong> <{\$smarty.const.{$language}MAINTAINEDBY}>
<a href='{$support_url}' title='Visit {$support_name}' class='tooltip' rel='external'>{$support_name}</a>
</div>
EOT;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/index.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -61,11 +61,11 @@
$module_name = strtolower($module->getVar('mod_name'));
$content = <<<EOT
<!-- Header -->
-<{includeq file="db:header.tpl"}>
+<{includeq file="db:admin_header.tpl"}>
<!-- Index Page -->
<div class="top"><{\$index}></div>
<!-- Footer -->
-<{includeq file="db:footer.tpl"}>
+<{includeq file="db:admin_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -66,7 +66,7 @@
$stu_module_name = strtoupper($module_name);
$language = $this->getLanguage($module_name, 'MA');
$content = <<<EOT
-<{include file="db:header.tpl"}>
+<{include file="db:admin_header.tpl"}>
<div class="outer">
<table class="{$table_name} width100">
<thead>
@@ -123,7 +123,7 @@
<div class="center">None</div>
<br />
</div>
-<{include file="db:footer.tpl"}>
+<{include file="db:admin_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/header.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/header.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -73,7 +73,7 @@
<div class="center"><{\$adv}></div>
<{/if}>
</div>
-<table class="outer {$module_name}" cellspacing="2" cellpadding="2">
+<table class="{$module_name}">
<thead>
<tr class="center" colspan="2">
<th><{\$smarty.const.{$language}TITLE}> - <{\$smarty.const.{$language}DESC}></th>
@@ -82,26 +82,24 @@
<tbody>
<tr class="center">
<td class="center bold pad5">
- <ul class="menu center fields">
- <li><a href="<{\${$module_name}_url}>"><{\$smarty.const.{$language}INDEX}></a></li>\n
+ <ul class="menu">
+ <li><a href="<{\${$module_name}_url}>"><{\$smarty.const.{$language}INDEX}></a></li>\n
EOT;
foreach (array_keys($tables) as $i)
{
$table_name = $tables[$i]->getVar('table_name');
$stu_table_name = strtoupper($table_name);
$content .= <<<EOT
- <li> | </li>
- <li><a href="<{\${$module_name}_url}>/{$table_name}.php"><{\$smarty.const.{$language}{$stu_table_name}}></a></li>\n
+ <li> | </li>
+ <li><a href="<{\${$module_name}_url}>/{$table_name}.php"><{\$smarty.const.{$language}{$stu_table_name}}></a></li>
EOT;
}
$content .= <<<EOT
- </ul>
+ \n</ul>
</td>
</tr>
<{if \$adv != ''}>
- <tr class="center"><td class="center bold pad5"><{\$adv}></td></tr>
- <{else}>
- <tr class="center"><td class="center bold pad5"> </td></tr>
+ <tr class="center"><td class="center bold pad5"><{\$adv}></td></tr>
<{/if}>
</tbody>
</table>
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/index.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -61,7 +61,7 @@
$module_name = $module->getVar('mod_name');
$language = $this->getLanguage($module_name, 'MA');
$content = <<<EOT
-<{include file="db:header.tpl"}>
+<{include file="db:user_header.tpl"}>
<table class="outer {$module_name}">
<tbody>
<tr class="left">
@@ -69,7 +69,7 @@
</tr>
</tbody>
</table>
-<{include file="db:footer.tpl"}>
+<{include file="db:user_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -66,9 +66,9 @@
//$filename = $this->getFileName();
$language = $this->getLanguage($module_name, 'MA');
$content = <<<EOT
-<{include file="db:header.tpl"}>
+<{include file="db:user_header.tpl"}>
<div class="outer">
- <table class="{$table_name}" cellpadding="0" cellspacing="0" width="100%">
+ <table class="{$module_name}">
<tr class="head">\n
EOT;
$fields = $this->getTableFields($table->getVar('table_id'));
@@ -118,10 +118,10 @@
<div class="outer">
<div class="center">None</div>
<br />
-</div>
+</div>\n
EOT;
$content .= <<<EOT
-<{include file="db:footer.tpl"}>
+<{include file="db:user_footer.tpl"}>
EOT;
$this->tdmcfile->create($module_name, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/header.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -67,7 +67,7 @@
include_once \$pathname . '/include/common.php';
include_once \$pathname . '/include/functions.php';
\$myts =& MyTextSanitizer::getInstance();
-\$style = {$stu_mod_name}_URL . '/css/style.css';
+\$style = {$stu_mod_name}_URL . '/assets/css/style.css';
if(file_exists(\$style)) { return true; }
xoops_loadLanguage('modinfo', \$dirname);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/index.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/index.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -64,7 +64,7 @@
$content = $this->getHeaderFilesComments($module, $filename);
$content .= <<<EOT
\ninclude_once 'header.php';
-\$xoopsOption['template_main'] = 'index.tpl';
+\$xoopsOption['template_main'] = 'user_index.tpl';
include_once XOOPS_ROOT_PATH.'/header.php';
// Define Stylesheet
\$xoTheme->addStylesheet( \$style );
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -129,7 +129,7 @@
$content = $this->getHeaderFilesComments($module, $filename);
$content .= <<<EOT
\ninclude_once 'header.php';
-\$xoopsOption['template_main'] = '{$table_name}.tpl';
+\$xoopsOption['template_main'] = 'user_{$table_name}.tpl';
include_once XOOPS_ROOT_PATH . '/header.php';
\$start = {$stl_mod_name}_CleanVars( \$_REQUEST, 'start', 0);
\$limit = xoops_getModuleOption('userpager', \$dirname);
@@ -182,7 +182,7 @@
unset(\${$table_fieldname});
}
// Display Navigation
- if (\${$stl_table_name}_count > \$limit}) {
+ if (\${$stl_table_name}_count > \$limit) {
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
\$nav = new XoopsPageNav(\${$stl_table_name}_count, \$limit, \$start, 'start');
\$GLOBALS['xoopsTpl']->assign('pagenav', \$nav->renderNav(4));
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/submit.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/submit.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/submit.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -62,7 +62,7 @@
include_once 'header.php';
\$op = downloads_CleanVars(\$_REQUEST, 'op', 'form', 'string');
// Template
-\$xoopsOption['template_main'] = 'submit.tpl';
+\$xoopsOption['template_main'] = 'user_submit.tpl';
include_once XOOPS_ROOT_PATH.'/header.php';
\$xoTheme->addStylesheet( XOOPS_URL . '/modules/' . \$xoopsModule->getVar('dirname', 'n') . '/css/style.css', null );
//On recupere la valeur de l'argument op dans l'URL$
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -261,17 +261,17 @@
$tables = $this->getTables();
$ret = <<<EOT
// Templates Admin
-\$modversion['templates'][] = array('file' => 'header.tpl', 'description' => '', 'type' => 'admin');
-\$modversion['templates'][] = array('file' => 'index.tpl', 'description' => '', 'type' => 'admin');\n
+\$modversion['templates'][] = array('file' => 'admin_header.tpl', 'description' => '', 'type' => 'admin');
+\$modversion['templates'][] = array('file' => 'admin_index.tpl', 'description' => '', 'type' => 'admin');\n
EOT;
foreach (array_keys($tables) as $t)
{
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => '{$tables[$t]->getVar('table_name')}.tpl', 'description' => '', 'type' => 'admin');\n
+\$modversion['templates'][] = array('file' => 'admin_{$tables[$t]->getVar('table_name')}.tpl', 'description' => '', 'type' => 'admin');\n
EOT;
}
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => 'footer.tpl', 'description' => '', 'type' => 'admin');\n
+\$modversion['templates'][] = array('file' => 'admin_footer.tpl', 'description' => '', 'type' => 'admin');\n
EOT;
return $ret;
}
@@ -285,17 +285,17 @@
$tables = $this->getTables();
$ret = <<<EOT
// Templates User
-\$modversion['templates'][] = array('file' => 'header.tpl', 'description' => '');
-\$modversion['templates'][] = array('file' => 'index.tpl', 'description' => '');\n
+\$modversion['templates'][] = array('file' => 'user_header.tpl', 'description' => '');
+\$modversion['templates'][] = array('file' => 'user_index.tpl', 'description' => '');\n
EOT;
foreach (array_keys($tables) as $t)
{
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => '{$tables[$t]->getVar('table_name')}.tpl', 'description' => '');\n
+\$modversion['templates'][] = array('file' => 'user_{$tables[$t]->getVar('table_name')}.tpl', 'description' => '');\n
EOT;
}
$ret .= <<<EOT
-\$modversion['templates'][] = array('file' => 'footer.tpl', 'description' => '');\n
+\$modversion['templates'][] = array('file' => 'user_footer.tpl', 'description' => '');\n
EOT;
return $ret;
}
@@ -323,7 +323,7 @@
'show_func' => "b_{$stl_mod_name}_{$table_name}_show",
'edit_func' => "b_{$stl_mod_name}_{$table_name}_edit",
'options' => "{$tables[$i]->getVar('table_fieldname')}|5|25|0",
- 'template' => "{$table_name}.tpl");\n\n
+ 'template' => "'block_{$table_name}.tpl");\n\n
EOT;
$this->setKeywords($table_name);
}
@@ -617,33 +617,28 @@
$filename = $this->getFileName();
$module_name = $module->getVar('mod_name');
$language = $this->getLanguage($module_name, 'MI');
- $content = $this->getHeaderFilesComments($module, $filename);
- if(is_object($table)) {
- $content .= $this->getXoopsVersionHeader($module, $table, $language);
- $content .= $this->getXoopsVersionMySQL($module_name, $table);
- if ($table->getVar('table_search') == 1) {
- $content .= $this->getXoopsVersionSearch($module);
- }
- if ($table->getVar('table_comments') == 1) {
- $content .= $this->getXoopsVersionComments($module);
- }
- if($table->getVar('table_admin') == 1) {
- $content .= $this->getXoopsVersionTemplatesAdmin($module_name);
- }
- if($table->getVar('table_user') == 1) {
- $content .= $this->getXoopsVersionTemplatesUser($module_name);
- }
- if ($table->getVar('table_blocks') == 1) {
- $content .= $this->getXoopsVersionBlocks($module_name, $language);
- }
- $content .= $this->getXoopsVersionConfig($module, $table, $language);
- if ($table->getVar('table_notifications') == 1) {
- $content .= $this->getXoopsVersionNotifications($module, $language, $filename);
- }
- } else {
- $table = null;
- $content .= $this->getXoopsVersionHeader($module, $table, $language);
+ $content = $this->getHeaderFilesComments($module, $filename);
+ $content .= $this->getXoopsVersionHeader($module, $table, $language);
+ $content .= $this->getXoopsVersionMySQL($module_name, $table);
+ if ($table->getVar('table_search') == 1) {
+ $content .= $this->getXoopsVersionSearch($module);
}
+ if ($table->getVar('table_comments') == 1) {
+ $content .= $this->getXoopsVersionComments($module);
+ }
+ if($table->getVar('table_admin') == 1) {
+ $content .= $this->getXoopsVersionTemplatesAdmin($module_name);
+ }
+ if($table->getVar('table_user') == 1) {
+ $content .= $this->getXoopsVersionTemplatesUser($module_name);
+ }
+ if ($table->getVar('table_blocks') == 1) {
+ $content .= $this->getXoopsVersionBlocks($module_name, $language);
+ }
+ $content .= $this->getXoopsVersionConfig($module, $table, $language);
+ if ($table->getVar('table_notifications') == 1) {
+ $content .= $this->getXoopsVersionNotifications($module, $language, $filename);
+ }
$this->tdmcfile->create($module_name, '/', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -40,7 +40,7 @@
define('_AM_TDMCREATE_TABLES_FIELDS_MORE_SEARCH', "Search: Index");
define('_AM_TDMCREATE_TABLES_FIELDS_MORE_REQUIRED', "Forms: Required field");
-//General
+// General
define('_AM_TDMCREATE_FORMOK', "Successfully saved");
define('_AM_TDMCREATE_FORMDELOK', "Successfully deleted");
define('_AM_TDMCREATE_FORMSUREDEL', "Are you sure to delete: <b><span style='color : Red'>%s </span></b>");
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-22 09:29:57 UTC (rev 12630)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-22 09:57:53 UTC (rev 12631)
@@ -189,7 +189,7 @@
$modversion['config'][$i]['description'] = "";
$modversion['config'][$i]['formtype'] = "textbox";
$modversion['config'][$i]['valuetype'] = "text";
-$modversion['config'][$i]['default'] = '2.5.5';
+$modversion['config'][$i]['default'] = '2.5.7';
$i++;
$modversion['config'][$i]['name'] = "min_admin";
$modversion['config'][$i]['title'] = "_MI_TDMCREATE_MODULE_MIN_ADMIN";
|
|
From: <be...@us...> - 2014-06-22 09:30:03
|
Revision: 12630
http://sourceforge.net/p/xoops/svn/12630
Author: beckmi
Date: 2014-06-22 09:29:57 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
Fixing couple of bugs related to blocks, code cosmetics
Modified Paths:
--------------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/latest_news.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/blocks/publisher_latest_news.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_full.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_summary.tpl
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/latest_news.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/latest_news.php 2014-06-22 02:42:25 UTC (rev 12629)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/latest_news.php 2014-06-22 09:29:57 UTC (rev 12630)
@@ -196,7 +196,7 @@
}
$item['pdf'] = '';
- if ($this->publisher->getConfig('display_pdf')) {
+ if ($publisher->getConfig('display_pdf')) {
if ($options[25] == 1) {
$item['pdf'] = "<a href='" . PUBLISHER_URL . "/makepdf.php?itemid=" . $itemObj->itemid() . "' rel='nofollow'><img src='" . PUBLISHER_URL . "/assets/images/links/pdf.gif' title='"
. _CO_PUBLISHER_PDF . "' alt='" . _CO_PUBLISHER_PDF . "' /></a> ";
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/blocks/publisher_latest_news.tpl
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/blocks/publisher_latest_news.tpl 2014-06-22 02:42:25 UTC (rev 12629)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/blocks/publisher_latest_news.tpl 2014-06-22 09:29:57 UTC (rev 12630)
@@ -65,7 +65,7 @@
<{if $block.template == 'slider1'}>
-<{php}>global $xoTheme;$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');<{* xoTheme->addScript('browse.php?Frameworks/jquery/jquery-migrate-1.2.1.js');*}> $xoTheme->addStylesheet(PUBLISHER_URL . '/assets/css/publisher.css');<{/php}>
+<{php}>global $xoTheme;$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); $xoTheme->addStylesheet(PUBLISHER_URL . '/assets/css/publisher.css');<{/php}>
<script type="text/javascript">
jQuery(document).ready(function()
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_full.tpl
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_full.tpl 2014-06-22 02:42:25 UTC (rev 12629)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_full.tpl 2014-06-22 09:29:57 UTC (rev 12630)
@@ -1,30 +1,54 @@
<{include file='db:publisher_header.tpl'}>
-<!-- if we are on the index page OR inside a category that has subcats OR (inside a category with no subcats AND $display_category_summary is set to TRUE), let's display the summary table ! //--><{if $indexpage || $category.subcats || ($category && $display_category_summary)}>
+<!-- if we are on the index page OR inside a category that has subcats OR (inside a category with no subcats
+ AND $display_category_summary is set to TRUE), let's display the summary table ! //-->
+<{if $indexpage || $category.subcats || ($category && $display_category_summary)}>
-<{if $collapsable_heading == 1}>
-<div class="publisher_collaps_title">
- <a href='javascript:;' onclick="toggle('toptable'); toggleIcon('toptableicon')"><img id='toptableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/></a> <{$lang_category_summary}>
-</div>
-<div id='toptable'>
- <span class="publisher_collaps_info""><{$lang_category_summary}></span> <!-- Content under the collapsable bar //--> <{/if}>
+ <{if $collapsable_heading == 1}>
+ <div class="publisher_collaps_title">
+ <a href='javascript:;' onclick="toggle('toptable'); toggleIcon('toptableicon')">
+ <img id='toptableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/>
+ </a>
+ <{$lang_category_summary}>
+ </div>
+ <div id='toptable'>
+ <span class="publisher_collaps_info">
+ <{$lang_category_summary}>
+ </span>
+ <!-- Content under the collapsable bar //-->
+ <{/if}>
<{include file='db:publisher_categories_table.tpl'}>
<{if $collapsable_heading == 1}>
-</div> <{/if}>
-<br/><!-- End of if !$category || $category.subcats || ($category && $display_category_summary) //--><{/if}><{if $items}> <{if $collapsable_heading == 1}>
-<div class="publisher_collaps_title">
- <a href='javascript:;' onclick="toggle('bottomtable'); toggleIcon('bottomtableicon')";><img id='bottomtableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/></a> <{$lang_items_title}>
-</div>
-<div id='bottomtable'>
- <span class="publisher_collaps_info"><{$smarty.const._MD_PUBLISHER_ITEMS_INFO}></span> <{/if}>
+ </div>
+ <{/if}>
+ <br/>
+ <!-- End of if !$category || $category.subcats || ($category && $display_category_summary) //-->
+<{/if}>
+<{if $items}>
+ <{if $collapsable_heading == 1}>
+ <div class="publisher_collaps_title">
+ <a href='javascript:;' onclick="toggle('bottomtable'); toggleIcon('bottomtableicon')";>
+ <img id='bottomtableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/>
+ </a>
+ <{$lang_items_title}>
+ </div>
+ <div id='bottomtable'>
+ <span class="publisher_collaps_info"><{$smarty.const._MD_PUBLISHER_ITEMS_INFO}></span>
+ <{/if}>
<div align="right"><{$navbar}></div>
- <!-- Start item loop --> <{foreach item=item from=$items}> <{include file="db:publisher_singleitem.tpl" item=$item}> <{/foreach}> <!-- End item loop -->
+ <!-- Start item loop -->
+ <{foreach item=item from=$items}>
+ <{include file="db:publisher_singleitem.tpl" item=$item}>
+ <{/foreach}> <!-- End item loop -->
<div align="right"><{$navbar}></div>
+
<{if $collapsable_heading == 1}>
-</div> <{/if}><!-- end of if $items --> <{/if}>
+ </div>
+ <{/if}><!-- end of if $items -->
+<{/if}>
<{include file='db:publisher_footer.tpl'}>
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_summary.tpl
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_summary.tpl 2014-06-22 02:42:25 UTC (rev 12629)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_summary.tpl 2014-06-22 09:29:57 UTC (rev 12630)
@@ -1,60 +1,85 @@
<{include file='db:publisher_header.tpl'}>
-<!-- if we are on the index page OR inside a category that has subcats OR (inside a category with no subcats AND $display_category_summary is set to TRUE), let's display the summary table ! //--><{if $indexpage || $category.subcats || ($category && $display_category_summary)}>
+<!-- if we are on the index page OR inside a category that has subcats OR
+ (inside a category with no subcats AND $display_category_summary is set to TRUE),
+ let's display the summary table ! //-->
+<{if $indexpage || $category.subcats || ($category && $display_category_summary)}>
-<!-- let's begin the display of the other display type --> <{if $collapsable_heading == 1}>
-<div class="publisher_collaps_title">
- <a href='javascript:;' onclick="toggle('toptable'); toggleIcon('toptableicon')"><img id='toptableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/></a> <{$lang_category_summary}>
-</div>
-<div id='toptable'>
- <span class="publisher_collaps_info""><{$lang_category_summary}></span> <!-- Content under the collapsable bar //--> <{/if}>
+ <!-- let's begin the display of the other display type -->
+ <{if $collapsable_heading == 1}>
+ <div class="publisher_collaps_title">
+ <a href='javascript:;' onclick="toggle('toptable'); toggleIcon('toptableicon')"><img id='toptableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/></a> <{$lang_category_summary}>
+ </div>
+ <div id='toptable'>
+ <span class="publisher_collaps_info"">
+ <{$lang_category_summary}>
+ </span>
+ <!-- Content under the collapsable bar //-->
+ <{/if}>
<{include file='db:publisher_categories_table.tpl'}>
<{if $collapsable_heading == 1}>
-</div> <{/if}>
-<br/><!-- End of if !$category || $category.subcats || ($category && $display_category_summary) //--><{/if}><{if $items}> <{if $collapsable_heading == 1}>
-<div class="publisher_collaps_title">
- <a href='javascript:;' onclick="toggle('bottomtable'); toggleIcon('bottomtableicon')";><img id='bottomtableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/></a> <{$lang_items_title}>
-</div>
-<div id='bottomtable'>
- <span class="publisher_collaps_info"><{$smarty.const._MD_PUBLISHER_ITEMS_INFO}></span> <{/if}>
+ </div>
+ <{/if}>
+ <br/>
+ <!-- End of if !$category || $category.subcats || ($category && $display_category_summary) //-->
+<{/if}>
+<{if $items}>
+ <{if $collapsable_heading == 1}>
+ <div class="publisher_collaps_title">
+ <a href='javascript:;' onclick="toggle('bottomtable'); toggleIcon('bottomtableicon')";>
+ <img id='bottomtableicon' src='<{$publisher_url}>/assets/images/links/close12.gif' alt=''/>
+ </a> <{$lang_items_title}>
+ </div>
+ <div id='bottomtable'>
+ <span class="publisher_collaps_info">
+ <{$smarty.const._MD_PUBLISHER_ITEMS_INFO}>
+ </span>
+ <{/if}>
<div align="right"><{$navbar}></div>
<table border="0" width="90%" cellspacing="1" cellpadding="3" align="center" class="outer">
<tr>
<td align="left" class="itemHead" width='60%'>
- <strong><{$smarty.const._CO_PUBLISHER_TITLE}></strong></td>
+ <strong><{$smarty.const._CO_PUBLISHER_TITLE}></strong>
+ </td>
<{if $display_date_col == 1}>
- <td align="center" class="itemHead" width="30%">
- <strong><{$smarty.const._MD_PUBLISHER_DATESUB}></strong></td>
+ <td align="center" class="itemHead" width="30%">
+ <strong><{$smarty.const._MD_PUBLISHER_DATESUB}></strong>
+ </td>
<{/if}> <{if $display_hits_col == 1}>
- <td align="center" class="itemHead" width="10%">
- <strong><{$smarty.const._MD_PUBLISHER_HITS}></strong></td>
+ <td align="center" class="itemHead" width="10%">
+ <strong><{$smarty.const._MD_PUBLISHER_HITS}></strong>
+ </td>
<{/if}>
</tr>
- <!-- Start item loop --> <{foreach item=item from=$items}>
- <tr>
- <td class="even" align="left">
- <strong><{$item.titlelink}></strong>
- <{if $show_subtitle && $item.subtitle}>
- <br /><em><{$item.subtitle}></em>
+ <!-- Start item loop -->
+ <{foreach item=item from=$items}>
+ <tr>
+ <td class="even" align="left">
+ <strong><{$item.titlelink}></strong>
+ <{if $show_subtitle && $item.subtitle}>
+ <br/>
+ <em><{$item.subtitle}></em>
+ <{/if}>
+ </td>
+ <{if $display_date_col == 1}>
+ <td class="odd" align="left">
+ <div align="center"><{$item.datesub}></div>
+ </td>
+ <{/if}> <{if $display_hits_col == 1}>
+ <td class="odd" align="left">
+ <div align="center"><{$item.counter}></div>
+ </td>
<{/if}>
- </td>
- <{if $display_date_col == 1}>
- <td class="odd" align="left">
- <div align="center"><{$item.datesub}></div>
- </td>
- <{/if}> <{if $display_hits_col == 1}>
- <td class="odd" align="left">
- <div align="center"><{$item.counter}></div>
- </td>
- <{/if}>
- </tr>
+ </tr>
<{/foreach}> <!-- End item loop -->
<tr></tr>
</table>
<div align="right"><{$navbar}></div>
<{if $collapsable_heading == 1}>
-</div> <{/if}><!-- end of if $items --> <{/if}>
+ </div>
+ <{/if}><!-- end of if $items -->
+<{/if}>
<{include file='db:publisher_footer.tpl'}>
|
|
From: <be...@us...> - 2014-06-22 02:42:32
|
Revision: 12629
http://sourceforge.net/p/xoops/svn/12629
Author: beckmi
Date: 2014-06-22 02:42:25 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
updated to XOOPS 2.5.7 version of jQuery UI Tabs (noo-b/mamba)
Modified Paths:
--------------
XoopsModules/publisher/trunk/publisher/admin/about.php
XoopsModules/publisher/trunk/publisher/admin/admin_header.php
XoopsModules/publisher/trunk/publisher/admin/category.php
XoopsModules/publisher/trunk/publisher/admin/clone.php
XoopsModules/publisher/trunk/publisher/admin/file.php
XoopsModules/publisher/trunk/publisher/admin/import/news.php
XoopsModules/publisher/trunk/publisher/admin/import/smartsection.php
XoopsModules/publisher/trunk/publisher/admin/import/wfsection.php
XoopsModules/publisher/trunk/publisher/admin/import/xfsection.php
XoopsModules/publisher/trunk/publisher/admin/import.php
XoopsModules/publisher/trunk/publisher/admin/index.php
XoopsModules/publisher/trunk/publisher/admin/item.php
XoopsModules/publisher/trunk/publisher/admin/main.php
XoopsModules/publisher/trunk/publisher/admin/menu.php
XoopsModules/publisher/trunk/publisher/admin/mimetypes.php
XoopsModules/publisher/trunk/publisher/admin/pagewrap.php
XoopsModules/publisher/trunk/publisher/admin/permissions.php
XoopsModules/publisher/trunk/publisher/admin/preferences.php
XoopsModules/publisher/trunk/publisher/admin/pw_delete_file.php
XoopsModules/publisher/trunk/publisher/admin/pw_upload_file.php
XoopsModules/publisher/trunk/publisher/archive.php
XoopsModules/publisher/trunk/publisher/author_items.php
XoopsModules/publisher/trunk/publisher/backend.php
XoopsModules/publisher/trunk/publisher/blocks/category_items_sel.php
XoopsModules/publisher/trunk/publisher/blocks/date_to_date.php
XoopsModules/publisher/trunk/publisher/blocks/items_columns.php
XoopsModules/publisher/trunk/publisher/blocks/items_menu.php
XoopsModules/publisher/trunk/publisher/blocks/items_new.php
XoopsModules/publisher/trunk/publisher/blocks/items_random_item.php
XoopsModules/publisher/trunk/publisher/blocks/items_recent.php
XoopsModules/publisher/trunk/publisher/blocks/items_spot.php
XoopsModules/publisher/trunk/publisher/blocks/latest_files.php
XoopsModules/publisher/trunk/publisher/blocks/latest_news.php
XoopsModules/publisher/trunk/publisher/blocks/search.php
XoopsModules/publisher/trunk/publisher/category.php
XoopsModules/publisher/trunk/publisher/class/blockform.php
XoopsModules/publisher/trunk/publisher/class/category.php
XoopsModules/publisher/trunk/publisher/class/file.php
XoopsModules/publisher/trunk/publisher/class/form/category.php
XoopsModules/publisher/trunk/publisher/class/form/file.php
XoopsModules/publisher/trunk/publisher/class/form/item.php
XoopsModules/publisher/trunk/publisher/class/formdatetime.php
XoopsModules/publisher/trunk/publisher/class/groupperm.php
XoopsModules/publisher/trunk/publisher/class/highlighter.php
XoopsModules/publisher/trunk/publisher/class/item.php
XoopsModules/publisher/trunk/publisher/class/metagen.php
XoopsModules/publisher/trunk/publisher/class/mimetype.php
XoopsModules/publisher/trunk/publisher/class/permission.php
XoopsModules/publisher/trunk/publisher/class/publisher.php
XoopsModules/publisher/trunk/publisher/class/rating.php
XoopsModules/publisher/trunk/publisher/class/request.php
XoopsModules/publisher/trunk/publisher/class/session.php
XoopsModules/publisher/trunk/publisher/class/themetabform.php
XoopsModules/publisher/trunk/publisher/class/uploader.php
XoopsModules/publisher/trunk/publisher/comment_delete.php
XoopsModules/publisher/trunk/publisher/comment_edit.php
XoopsModules/publisher/trunk/publisher/comment_new.php
XoopsModules/publisher/trunk/publisher/comment_post.php
XoopsModules/publisher/trunk/publisher/comment_reply.php
XoopsModules/publisher/trunk/publisher/docs/ajaxrating.txt
XoopsModules/publisher/trunk/publisher/docs/changelog.txt
XoopsModules/publisher/trunk/publisher/docs/install.txt
XoopsModules/publisher/trunk/publisher/file.php
XoopsModules/publisher/trunk/publisher/footer.php
XoopsModules/publisher/trunk/publisher/header.php
XoopsModules/publisher/trunk/publisher/include/ajax_rating.php
XoopsModules/publisher/trunk/publisher/include/ajax_upload.php
XoopsModules/publisher/trunk/publisher/include/comment_functions.php
XoopsModules/publisher/trunk/publisher/include/common.php
XoopsModules/publisher/trunk/publisher/include/constants.php
XoopsModules/publisher/trunk/publisher/include/functions.php
XoopsModules/publisher/trunk/publisher/include/install.php
XoopsModules/publisher/trunk/publisher/include/media.textsanitizer.php
XoopsModules/publisher/trunk/publisher/include/notification.inc.php
XoopsModules/publisher/trunk/publisher/include/plugin.tag.php
XoopsModules/publisher/trunk/publisher/include/search.inc.php
XoopsModules/publisher/trunk/publisher/include/seo.inc.php
XoopsModules/publisher/trunk/publisher/include/seo_functions.php
XoopsModules/publisher/trunk/publisher/include/update.php
XoopsModules/publisher/trunk/publisher/index.php
XoopsModules/publisher/trunk/publisher/item.php
XoopsModules/publisher/trunk/publisher/language/english/admin.php
XoopsModules/publisher/trunk/publisher/language/english/blocks.php
XoopsModules/publisher/trunk/publisher/language/english/common.php
XoopsModules/publisher/trunk/publisher/language/english/main.php
XoopsModules/publisher/trunk/publisher/language/english/modinfo.php
XoopsModules/publisher/trunk/publisher/list.tag.php
XoopsModules/publisher/trunk/publisher/makepdf.php
XoopsModules/publisher/trunk/publisher/notification_update.php
XoopsModules/publisher/trunk/publisher/pop.php
XoopsModules/publisher/trunk/publisher/print.php
XoopsModules/publisher/trunk/publisher/rate.php
XoopsModules/publisher/trunk/publisher/search.php
XoopsModules/publisher/trunk/publisher/sql/mysql.sql
XoopsModules/publisher/trunk/publisher/submit.php
XoopsModules/publisher/trunk/publisher/thumb.php
XoopsModules/publisher/trunk/publisher/view.tag.php
XoopsModules/publisher/trunk/publisher/visit.php
XoopsModules/publisher/trunk/publisher/xoops_version.php
Added Paths:
-----------
XoopsModules/publisher/trunk/publisher/admin/import/ams.php
XoopsModules/publisher/trunk/publisher/admin/import/ams0.php
XoopsModules/publisher/trunk/publisher/admin/import/cjaycontent.php
XoopsModules/publisher/trunk/publisher/admin/import/xnews.php
XoopsModules/publisher/trunk/publisher/assets/
XoopsModules/publisher/trunk/publisher/assets/css/
XoopsModules/publisher/trunk/publisher/assets/css/images/
XoopsModules/publisher/trunk/publisher/assets/css/images/index.html
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_flat_75_ffffff_40x100.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_glass_65_ffffff_1x400.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_glass_75_dadada_1x400.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_glass_95_fef1ec_1x400.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-icons_222222_256x240.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-icons_2e83ff_256x240.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-icons_454545_256x240.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-icons_888888_256x240.png
XoopsModules/publisher/trunk/publisher/assets/css/images/ui-icons_cd0a0a_256x240.png
XoopsModules/publisher/trunk/publisher/assets/css/index.html
XoopsModules/publisher/trunk/publisher/assets/css/jquery.popeye.style.css
XoopsModules/publisher/trunk/publisher/assets/css/publisher.css
XoopsModules/publisher/trunk/publisher/assets/images/
XoopsModules/publisher/trunk/publisher/assets/images/VeraBd.ttf
XoopsModules/publisher/trunk/publisher/assets/images/arrow-bg.png
XoopsModules/publisher/trunk/publisher/assets/images/bg.gif
XoopsModules/publisher/trunk/publisher/assets/images/blank.png
XoopsModules/publisher/trunk/publisher/assets/images/bullet.gif
XoopsModules/publisher/trunk/publisher/assets/images/button_delete.png
XoopsModules/publisher/trunk/publisher/assets/images/button_edit.png
XoopsModules/publisher/trunk/publisher/assets/images/dot-grey.gif
XoopsModules/publisher/trunk/publisher/assets/images/gfx/
XoopsModules/publisher/trunk/publisher/assets/images/gfx/count-2.png
XoopsModules/publisher/trunk/publisher/assets/images/gfx/enlarge-1.png
XoopsModules/publisher/trunk/publisher/assets/images/gfx/enlarge-2.png
XoopsModules/publisher/trunk/publisher/assets/images/gfx/index.html
XoopsModules/publisher/trunk/publisher/assets/images/gfx/loading.gif
XoopsModules/publisher/trunk/publisher/assets/images/gfx/next-1.png
XoopsModules/publisher/trunk/publisher/assets/images/gfx/next-2.png
XoopsModules/publisher/trunk/publisher/assets/images/gfx/next.gif
XoopsModules/publisher/trunk/publisher/assets/images/gfx/prev-1.png
XoopsModules/publisher/trunk/publisher/assets/images/gfx/prev-2.png
XoopsModules/publisher/trunk/publisher/assets/images/gfx/prev.gif
XoopsModules/publisher/trunk/publisher/assets/images/grad-bg.png
XoopsModules/publisher/trunk/publisher/assets/images/icon/
XoopsModules/publisher/trunk/publisher/assets/images/icon/approve.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/cat.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/clone.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/close12.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/delete.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/delete.png
XoopsModules/publisher/trunk/publisher/assets/images/icon/doc.png
XoopsModules/publisher/trunk/publisher/assets/images/icon/edit.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/edit.png
XoopsModules/publisher/trunk/publisher/assets/images/icon/editcopy.png
XoopsModules/publisher/trunk/publisher/assets/images/icon/file.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/friend.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/index.html
XoopsModules/publisher/trunk/publisher/assets/images/icon/newanswer.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/open12.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/pdf.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/print.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon/subcat.gif
XoopsModules/publisher/trunk/publisher/assets/images/icon32/
XoopsModules/publisher/trunk/publisher/assets/images/icon32/editcopy.png
XoopsModules/publisher/trunk/publisher/assets/images/icon32/folder_txt.png
XoopsModules/publisher/trunk/publisher/assets/images/icon32/index.html
XoopsModules/publisher/trunk/publisher/assets/images/important-32.png
XoopsModules/publisher/trunk/publisher/assets/images/index.html
XoopsModules/publisher/trunk/publisher/assets/images/item_icon.gif
XoopsModules/publisher/trunk/publisher/assets/images/left_both.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/
XoopsModules/publisher/trunk/publisher/assets/images/links/approve.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/cat.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/clone.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/close12.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/delete.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/delete.png
XoopsModules/publisher/trunk/publisher/assets/images/links/doc.png
XoopsModules/publisher/trunk/publisher/assets/images/links/edit.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/edit.png
XoopsModules/publisher/trunk/publisher/assets/images/links/editcopy.png
XoopsModules/publisher/trunk/publisher/assets/images/links/file.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/friend.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/index.html
XoopsModules/publisher/trunk/publisher/assets/images/links/newanswer.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/next.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/open12.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/pdf.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/previous.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/print.gif
XoopsModules/publisher/trunk/publisher/assets/images/links/subcat.gif
XoopsModules/publisher/trunk/publisher/assets/images/loadingbar.gif
XoopsModules/publisher/trunk/publisher/assets/images/module_logo.png
XoopsModules/publisher/trunk/publisher/assets/images/no.gif
XoopsModules/publisher/trunk/publisher/assets/images/off.png
XoopsModules/publisher/trunk/publisher/assets/images/on.png
XoopsModules/publisher/trunk/publisher/assets/images/popeye/
XoopsModules/publisher/trunk/publisher/assets/images/popeye/bg1.png
XoopsModules/publisher/trunk/publisher/assets/images/popeye/compact3.png
XoopsModules/publisher/trunk/publisher/assets/images/popeye/enlarge3.png
XoopsModules/publisher/trunk/publisher/assets/images/popeye/index.html
XoopsModules/publisher/trunk/publisher/assets/images/popeye/loading3.gif
XoopsModules/publisher/trunk/publisher/assets/images/popeye/next3.png
XoopsModules/publisher/trunk/publisher/assets/images/popeye/prev3.png
XoopsModules/publisher/trunk/publisher/assets/images/right_both.gif
XoopsModules/publisher/trunk/publisher/assets/images/rss.gif
XoopsModules/publisher/trunk/publisher/assets/images/span-bg.gif
XoopsModules/publisher/trunk/publisher/assets/images/starrating.gif
XoopsModules/publisher/trunk/publisher/assets/images/transparent_bg.png
XoopsModules/publisher/trunk/publisher/assets/images/working.gif
XoopsModules/publisher/trunk/publisher/assets/index.html
XoopsModules/publisher/trunk/publisher/assets/js/
XoopsModules/publisher/trunk/publisher/assets/js/ajaxupload.3.9.js
XoopsModules/publisher/trunk/publisher/assets/js/behavior.js
XoopsModules/publisher/trunk/publisher/assets/js/cookies.js
XoopsModules/publisher/trunk/publisher/assets/js/funcs.js
XoopsModules/publisher/trunk/publisher/assets/js/index.html
XoopsModules/publisher/trunk/publisher/assets/js/jquery.easing.js
XoopsModules/publisher/trunk/publisher/assets/js/jquery.popeye-2.0.4.js
XoopsModules/publisher/trunk/publisher/assets/js/publisher.js
XoopsModules/publisher/trunk/publisher/assets/js/rating.js
XoopsModules/publisher/trunk/publisher/assets/js/script.easing.js
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_category_items_sel.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_date_to_date.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_columns.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_menu.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_new.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_random_item.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_recent.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_spot.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_latest_files.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_latest_news.tpl
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_search_block.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_addfile.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_archive.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_author_items.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_categories_table.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_display_full.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_display_list.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_display_summary.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_display_wfsection.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_footer.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_header.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_item.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_print.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_rss.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_search.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_singleitem.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_singleitem_block.tpl
XoopsModules/publisher/trunk/publisher/templates/publisher_submit.tpl
XoopsModules/publisher/trunk/publisher/tests/
XoopsModules/publisher/trunk/publisher/tests/index.html
Removed Paths:
-------------
XoopsModules/publisher/trunk/publisher/css/
XoopsModules/publisher/trunk/publisher/images/
XoopsModules/publisher/trunk/publisher/js/
XoopsModules/publisher/trunk/publisher/tcpdf/
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_category_items_sel.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_date_to_date.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_columns.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_menu.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_new.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_random_item.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_recent.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_items_spot.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_latest_files.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_latest_news.html
XoopsModules/publisher/trunk/publisher/templates/blocks/publisher_search_block.html
XoopsModules/publisher/trunk/publisher/templates/publisher_addfile.html
XoopsModules/publisher/trunk/publisher/templates/publisher_archive.html
XoopsModules/publisher/trunk/publisher/templates/publisher_author_items.html
XoopsModules/publisher/trunk/publisher/templates/publisher_categories_table.html
XoopsModules/publisher/trunk/publisher/templates/publisher_display_full.html
XoopsModules/publisher/trunk/publisher/templates/publisher_display_list.html
XoopsModules/publisher/trunk/publisher/templates/publisher_display_summary.html
XoopsModules/publisher/trunk/publisher/templates/publisher_display_wfsection.html
XoopsModules/publisher/trunk/publisher/templates/publisher_footer.html
XoopsModules/publisher/trunk/publisher/templates/publisher_header.html
XoopsModules/publisher/trunk/publisher/templates/publisher_item.html
XoopsModules/publisher/trunk/publisher/templates/publisher_print.html
XoopsModules/publisher/trunk/publisher/templates/publisher_rss.html
XoopsModules/publisher/trunk/publisher/templates/publisher_search.html
XoopsModules/publisher/trunk/publisher/templates/publisher_singleitem.html
XoopsModules/publisher/trunk/publisher/templates/publisher_singleitem_block.html
XoopsModules/publisher/trunk/publisher/templates/publisher_submit.html
Modified: XoopsModules/publisher/trunk/publisher/admin/about.php
===================================================================
--- XoopsModules/publisher/trunk/publisher/admin/about.php 2014-06-22 02:35:42 UTC (rev 12628)
+++ XoopsModules/publisher/trunk/publisher/admin/about.php 2014-06-22 02:42:25 UTC (rev 12629)
@@ -1,32 +1,32 @@
-<?php
-/*
- You may not change or alter any portion of this comment or credits
- of supporting developers from this source code or any supporting source code
- which is considered copyrighted (c) material of the original comment or credit authors.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-*/
-
-/**
- * Publisher
- *
- * @copyright The XOOPS Project (http://www.xoops.org)
- * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
- * @package Publisher
- * @since 1.0
- * @author Mage, Mamba
- * @version $Id$
- */
-
-include_once dirname(__FILE__) . '/admin_header.php';
-
-xoops_cp_header();
-
-$aboutAdmin = new ModuleAdmin();
-
-echo $aboutAdmin->addNavigation('about.php');
-echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
-
-xoops_cp_footer();
\ No newline at end of file
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * Publisher
+ *
+ * @copyright The XOOPS Project (http://www.xoops.org)
+ * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
+ * @package Publisher
+ * @since 1.0
+ * @author Mage, Mamba
+ * @version $Id$
+ */
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+
+xoops_cp_footer();
Modified: XoopsModules/publisher/trunk/publisher/admin/admin_header.php
===================================================================
--- XoopsModules/publisher/trunk/publisher/admin/admin_header.php 2014-06-22 02:35:42 UTC (rev 12628)
+++ XoopsModules/publisher/trunk/publisher/admin/admin_header.php 2014-06-22 02:42:25 UTC (rev 12629)
@@ -1,46 +1,46 @@
-<?php
-/*
- You may not change or alter any portion of this comment or credits
- of supporting developers from this source code or any supporting source code
- which is considered copyrighted (c) material of the original comment or credit authors.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-/**
- * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @package Publisher
- * @since 1.0
- * @author trabis <lus...@gm...>
- * @author The SmartFactory <www.smartfactory.ca>
- * @version $Id$
- */
-
-include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
-include_once dirname(dirname(__FILE__)) . '/include/common.php';
-include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
-
-//xoops_loadLanguage('admin', PUBLISHER_DIRNAME);
-xoops_loadLanguage('modinfo', PUBLISHER_DIRNAME);
-
-$imagearray = array(
- 'editimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_edit.png' alt='" . _AM_PUBLISHER_ICO_EDIT . "' align='middle' />",
- 'deleteimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_delete.png' alt='" . _AM_PUBLISHER_ICO_DELETE . "' align='middle' />",
- 'online' => "<img src='" . PUBLISHER_IMAGES_URL . "/on.png' alt='" . _AM_PUBLISHER_ICO_ONLINE . "' align='middle' />",
- 'offline' => "<img src='" . PUBLISHER_IMAGES_URL . "/off.png' alt='" . _AM_PUBLISHER_ICO_OFFLINE . "' align='middle' />",
-);
-if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
- include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
-}else{
- echo xoops_error('/Frameworks/moduleclasses/moduleadmin/ is required!!!');
-}
-/*
-$myts = MyTextSanitizer::getInstance();
-
-if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
- include_once(XOOPS_ROOT_PATH."/class/template.php");
- $xoopsTpl = new XoopsTpl();
-} */
\ No newline at end of file
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package Publisher
+ * @since 1.0
+ * @author trabis <lus...@gm...>
+ * @author The SmartFactory <www.smartfactory.ca>
+ * @version $Id$
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once dirname(dirname(__FILE__)) . '/include/common.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
+
+//xoops_loadLanguage('admin', PUBLISHER_DIRNAME);
+xoops_loadLanguage('modinfo', PUBLISHER_DIRNAME);
+
+$imagearray = array(
+ 'editimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_edit.png' alt='" . _AM_PUBLISHER_ICO_EDIT . "' align='middle' />",
+ 'deleteimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_delete.png' alt='" . _AM_PUBLISHER_ICO_DELETE . "' align='middle' />",
+ 'online' => "<img src='" . PUBLISHER_IMAGES_URL . "/on.png' alt='" . _AM_PUBLISHER_ICO_ONLINE . "' align='middle' />",
+ 'offline' => "<img src='" . PUBLISHER_IMAGES_URL . "/off.png' alt='" . _AM_PUBLISHER_ICO_OFFLINE . "' align='middle' />",
+);
+if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))) {
+ include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
+} else {
+ echo xoops_error('/Frameworks/moduleclasses/moduleadmin/ is required!!!');
+}
+/*
+$myts = MyTextSanitizer::getInstance();
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+} */
Modified: XoopsModules/publisher/trunk/publisher/admin/category.php
===================================================================
--- XoopsModules/publisher/trunk/publisher/admin/category.php 2014-06-22 02:35:42 UTC (rev 12628)
+++ XoopsModules/publisher/trunk/publisher/admin/category.php 2014-06-22 02:42:25 UTC (rev 12629)
@@ -1,410 +1,410 @@
-<?php
-/*
- You may not change or alter any portion of this comment or credits
- of supporting developers from this source code or any supporting source code
- which is considered copyrighted (c) material of the original comment or credit authors.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-/**
- * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @package Publisher
- * @since 1.0
- * @author trabis <lus...@gm...>
- * @author The SmartFactory <www.smartfactory.ca>
- * @version $Id$
- */
-
-include_once dirname(__FILE__) . '/admin_header.php';
-
-$op = PublisherRequest::getString('op');
-
-$op = isset($_POST['editor']) ? 'mod' : $op;
-if (isset($_POST['addcategory'])) {
- $op = 'addcategory';
-}
-
-// Where do we start ?
-$startcategory = PublisherRequest::getInt('startcategory');
-$categoryid = PublisherRequest::getInt('categoryid');
-
-switch ($op) {
-
- case "del":
- $categoryObj = $publisher->getHandler('category')->get($categoryid);
- $confirm = (isset($_POST['confirm'])) ? $_POST['confirm'] : 0;
- $name = (isset($_POST['name'])) ? $_POST['name'] : '';
- if ($confirm) {
- if (!$publisher->getHandler('category')->delete($categoryObj)) {
- redirect_header("category.php", 1, _AM_PUBLISHER_DELETE_CAT_ERROR);
- exit();
- }
- redirect_header("category.php", 1, sprintf(_AM_PUBLISHER_COLISDELETED, $name));
- exit();
- } else {
- xoops_cp_header();
- xoops_confirm(array('op' => 'del', 'categoryid' => $categoryObj->categoryid(), 'confirm' => 1, 'name' => $categoryObj->name()), 'category.php', _AM_PUBLISHER_DELETECOL . " '" . $categoryObj->name() . "'. <br /> <br />" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE);
- xoops_cp_footer();
- }
- break;
-
- case "mod":
- //Added by fx2024
- $nb_subcats = isset($_POST['nb_subcats']) ? intval($_POST['nb_subcats']) : 0;
- $nb_subcats = $nb_subcats + (isset($_POST['nb_sub_yet']) ? intval($_POST['nb_sub_yet']) : 4);
- //end of fx2024 code
-
- publisher_cpHeader();
- publisher_editCat(true, $categoryid, $nb_subcats);
- break;
-
- case "addcategory":
- global $modify;
-
- $parentid = PublisherRequest::getInt('parentid');
-
- if ($categoryid != 0) {
- $categoryObj = $publisher->getHandler('category')->get($categoryid);
- } else {
- $categoryObj = $publisher->getHandler('category')->create();
- }
-
- // Uploading the image, if any
- // Retreive the filename to be uploaded
- if (isset($_FILES['image_file']['name']) && $_FILES['image_file']['name'] != "") {
- $filename = $_POST["xoops_upload_file"][0];
- if (!empty($filename) || $filename != "") {
- // TODO : implement publisher mimetype management
- $max_size = $publisher->getConfig('maximum_filesize');
- $max_imgwidth = $publisher->getConfig('maximum_image_width');
- $max_imgheight = $publisher->getConfig('maximum_image_height');
- $allowed_mimetypes = publisher_getAllowedImagesTypes();
-
- if ($_FILES[$filename]['tmp_name'] == "" || !is_readable($_FILES[$filename]['tmp_name'])) {
- redirect_header('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR);
- exit();
- }
-
- xoops_load('XoopsMediaUploader');
- $uploader = new XoopsMediaUploader(publisher_getImageDir('category'), $allowed_mimetypes, $max_size, $max_imgwidth, $max_imgheight);
- if ($uploader->fetchMedia($filename) && $uploader->upload()) {
- $categoryObj->setVar('image', $uploader->getSavedFileName());
- } else {
- redirect_header('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR . $uploader->getErrors());
- exit();
- }
- }
- } else {
- if (isset($_POST['image'])) {
- $categoryObj->setVar('image', $_POST['image']);
- }
- }
- $categoryObj->setVar('parentid', (isset($_POST['parentid'])) ? intval($_POST['parentid']) : 0);
-
- $applyall = isset($_POST['applyall']) ? intval($_POST['applyall']) : 0;
- $categoryObj->setVar('weight', isset($_POST['weight']) ? intval($_POST['weight']) : 1);
-
- // Groups and permissions
- $grpread = isset($_POST['groups_read']) ? $_POST['groups_read'] : array();
- $grpsubmit = isset($_POST['groups_submit']) ? $_POST['groups_submit'] : array();
- $grpmoderation = isset($_POST['groups_moderation']) ? $_POST['groups_moderation'] : array();
-
-
- $categoryObj->setVar('name', $_POST['name']);
-
- //Added by skalpa: custom template support
- if (isset($_POST['template'])) {
- $categoryObj->setVar('template', $_POST['template']);
- }
-
- if (isset($_POST['meta_description'])) {
- $categoryObj->setVar('meta_description', $_POST['meta_description']);
- }
- if (isset($_POST['meta_keywords'])) {
- $categoryObj->setVar('meta_keywords', $_POST['meta_keywords']);
- }
- if (isset($_POST['short_url'])) {
- $categoryObj->setVar('short_url', $_POST['short_url']);
- }
- $categoryObj->setVar('moderator', intval($_POST['moderator']));
- $categoryObj->setVar('description', $_POST['description']);
-
- if (isset($_POST['header'])) {
- $categoryObj->setVar('header', $_POST['header']);
- }
-
- if ($categoryObj->isNew()) {
- $redirect_msg = _AM_PUBLISHER_CATCREATED;
- $redirect_to = 'category.php?op=mod';
- } else {
- $redirect_msg = _AM_PUBLISHER_COLMODIFIED;
- $redirect_to = 'category.php';
- }
-
- if (!$categoryObj->store()) {
- redirect_header("javascript:history.go(-1)", 3, _AM_PUBLISHER_CATEGORY_SAVE_ERROR . publisher_formatErrors($categoryObj->getErrors()));
- exit;
- }
- // TODO : put this function in the category class
- publisher_saveCategoryPermissions($grpread, $categoryObj->categoryid(), 'category_read');
- publisher_saveCategoryPermissions($grpsubmit, $categoryObj->categoryid(), 'item_submit');
- publisher_saveCategoryPermissions($grpmoderation, $categoryObj->categoryid(), 'category_moderation');
-
-
- //Added by fx2024
- $parentCat = $categoryObj->categoryid();
- $sizeof = sizeof($_POST['scname']);
- for ($i = 0; $i < $sizeof; $i++) {
- if ($_POST['scname'][$i] != '') {
- $categoryObj = $publisher->getHandler('category')->create();
- $categoryObj->setVar('name', $_POST['scname'][$i]);
- $categoryObj->setVar('parentid', $parentCat);
-
- if (!$categoryObj->store()) {
- redirect_header("javascript:history.go(-1)", 3, _AM_PUBLISHER_SUBCATEGORY_SAVE_ERROR . publisher_formatErrors($categoryObj->getErrors()));
- exit;
- }
- // TODO : put this function in the category class
- publisher_saveCategoryPermissions($grpread, $categoryObj->categoryid(), 'category_read');
- publisher_saveCategoryPermissions($grpsubmit, $categoryObj->categoryid(), 'item_submit');
- publisher_saveCategoryPermissions($grpmoderation, $categoryObj->categoryid(), 'category_moderation');
- }
- }
- //end of fx2024 code
- redirect_header($redirect_to, 2, $redirect_msg);
- exit();
- break;
-
- //Added by fx2024
-
- case "addsubcats":
- $categoryid = 0;
- $nb_subcats = intval($_POST['nb_subcats']) + $_POST['nb_sub_yet'];
-
- $categoryObj = $publisher->getHandler('category')->create();
- $categoryObj->setVar('name', $_POST['name']);
- $categoryObj->setVar('description', $_POST['description']);
- $categoryObj->setVar('weight', $_POST['weight']);
- if (isset($parentCat)) {
- $categoryObj->setVar('parentid', $parentCat);
- }
-
- publisher_cpHeader();
- publisher_editCat(true, $categoryid, $nb_subcats, $categoryObj);
- exit();
-
- break;
- //end of fx2024 code
-
- case "cancel":
- redirect_header("category.php", 1, sprintf(_AM_PUBLISHER_BACK2IDX, ''));
- exit();
-
- case "default":
- default:
- publisher_cpHeader();
- //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES);
-
- echo "<br />\n";
- echo "<form><div style=\"margin-bottom: 12px;\">";
- echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> ";
- //echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> ";
- echo "</div></form>";
-
- // Creating the objects for top categories
- $categoriesObj = $publisher->getHandler('category')->getCategories($publisher->getConfig('idxcat_perpage'), $startcategory, 0);
-
- publisher_openCollapsableBar('createdcategories', 'createdcategoriesicon', _AM_PUBLISHER_CATEGORIES_TITLE, _AM_PUBLISHER_CATEGORIES_DSC);
-
- echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
- echo "<tr>";
- echo "<th class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>";
- echo "<th width='60' class='bg3' width='65' align='center'><strong>" . _CO_PUBLISHER_WEIGHT . "</strong></td>";
- echo "<th width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>";
- echo "</tr>";
- $totalCategories = $publisher->getHandler('category')->getCategoriesCount(0);
- if (count($categoriesObj) > 0) {
- foreach ($categoriesObj as $key => $thiscat) {
- publisher_displayCategory($thiscat);
- }
- } else {
- echo "<tr>";
- echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOCAT . "</td>";
- echo "</tr>";
- $categoryid = '0';
- }
- echo "</table>\n";
- include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_perpage'), $startcategory, 'startcategory');
- echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
- echo "<br />";
- publisher_closeCollapsableBar('createdcategories', 'createdcategoriesicon');
- echo "<br>";
- //editcat(false);
- break;
-}
-
-xoops_cp_footer();
-
-function publisher_displayCategory($categoryObj, $level = 0)
-{
- $publisher = PublisherPublisher::getInstance();
-
- $description = $categoryObj->description();
- if (!XOOPS_USE_MULTIBYTES) {
- if (strlen($description) >= 100) {
- $description = substr($description, 0, (100 - 1)) . "...";
- }
- }
- $modify = "<a href='category.php?op=mod&categoryid=" . $categoryObj->categoryid() . "&parentid=" . $categoryObj->parentid() . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>";
- $delete = "<a href='category.php?op=del&categoryid=" . $categoryObj->categoryid() . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETECOL . "' alt='" . _AM_PUBLISHER_DELETECOL . "' /></a>";
-
- $spaces = '';
- for ($j = 0; $j < $level; $j++) {
- $spaces .= ' ';
- }
-
- echo "<tr>";
- echo "<td class='even' align='left'>" . $spaces . "<a href='" . PUBLISHER_URL . "/category.php?categoryid=" . $categoryObj->categoryid() . "'><img src='" . PUBLISHER_URL . "/images/links/subcat.gif' alt='' /> " . $categoryObj->name() . "</a></td>";
- echo "<td class='even' align='center'>" . $categoryObj->weight() . "</td>";
- echo "<td class='even' align='center'> $modify $delete </td>";
- echo "</tr>";
- $subCategoriesObj = $publisher->getHandler('category')->getCategories(0, 0, $categoryObj->categoryid());
- if (count($subCategoriesObj) > 0) {
- $level++;
- foreach ($subCategoriesObj as $key => $thiscat) {
- publisher_displayCategory($thiscat, $level);
- }
- }
- unset($categoryObj);
-}
-
-function publisher_editCat($showmenu = false, $categoryid = 0, $nb_subcats = 4, $categoryObj = null)
-{
- $publisher = PublisherPublisher::getInstance();
-
- // if there is a parameter, and the id exists, retrieve data: we're editing a category
- if ($categoryid != 0) {
- // Creating the category object for the selected category
- $categoryObj = $publisher->getHandler('category')->get($categoryid);
- if ($categoryObj->notLoaded()) {
- redirect_header("category.php", 1, _AM_PUBLISHER_NOCOLTOEDIT);
- exit();
- }
- } else {
- if (!$categoryObj) {
- $categoryObj = $publisher->getHandler('category')->create();
- }
- }
-
- if ($categoryid != 0) {
- if ($showmenu) {
- //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_EDITING);
- }
- echo "<br />\n";
- publisher_openCollapsableBar('edittable', 'edittableicon', _AM_PUBLISHER_EDITCOL, _AM_PUBLISHER_CATEGORY_EDIT_INFO);
- } else {
- if ($showmenu) {
- //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_CREATINGNEW);
- }
- publisher_openCollapsableBar('createtable', 'createtableicon', _AM_PUBLISHER_CATEGORY_CREATE, _AM_PUBLISHER_CATEGORY_CREATE_INFO);
- }
-
- $sform = $categoryObj->getForm($nb_subcats);
- $sform->display();
-
- if (!$categoryid) {
- publisher_closeCollapsableBar('createtable', 'createtableicon');
- } else {
- publisher_closeCollapsableBar('edittable', 'edittableicon');
- }
-
- //Added by fx2024
- if ($categoryid) {
- $sel_cat = $categoryid;
-
- publisher_openCollapsableBar('subcatstable', 'subcatsicon', _AM_PUBLISHER_SUBCAT_CAT, _AM_PUBLISHER_SUBCAT_CAT_DSC);
- // Get the total number of sub-categories
- $categoriesObj = $publisher->getHandler('category')->get($sel_cat);
- $totalsubs = $publisher->getHandler('category')->getCategoriesCount($sel_cat);
- // creating the categories objects that are published
- $subcatsObj = $publisher->getHandler('category')->getCategories(0, 0, $categoriesObj->categoryid());
- $totalSCOnPage = count($subcatsObj);
- echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
- echo "<tr>";
- echo "<td width='60' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATID . "</strong></td>";
- echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATCOLNAME . "</strong></td>";
- echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_SUBDESCRIPT . "</strong></td>";
- echo "<td width='60' class='bg3' align='right'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>";
- echo "</tr>";
- if ($totalsubs > 0) {
- foreach ($subcatsObj as $subcat) {
- $modify = "<a href='category.php?op=mod&categoryid=" . $subcat->categoryid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_MODIFY . "' alt='" . _AM_PUBLISHER_MODIFY . "' /></a>";
- $delete = "<a href='category.php?op=del&categoryid=" . $subcat->categoryid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETE . "' alt='" . _AM_PUBLISHER_DELETE . "' /></a>";
- echo "<tr>";
- echo "<td class='head' align='left'>" . $subcat->categoryid() . "</td>";
- echo "<td class='even' align='left'><a href='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/category.php?categoryid=" . $subcat->categoryid() . "&parentid=" . $subcat->parentid() . "'>" . $subcat->name() . "</a></td>";
- echo "<td class='even' align='left'>" . $subcat->description() . "</td>";
- echo "<td class='even' align='right'> {$modify} {$delete} </td>";
- echo "</tr>";
- }
- } else {
- echo "<tr>";
- echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOSUBCAT . "</td>";
- echo "</tr>";
- }
- echo "</table>\n";
- echo "<br />\n";
- publisher_closeCollapsableBar('subcatstable', 'subcatsicon');
-
- publisher_openCollapsableBar('bottomtable', 'bottomtableicon', _AM_PUBLISHER_CAT_ITEMS, _AM_PUBLISHER_CAT_ITEMS_DSC);
- $startitem = PublisherRequest::getInt('startitem');
- // Get the total number of published ITEMS
- $totalitems = $publisher->getHandler('item')->getItemsCount($sel_cat, array(_PUBLISHER_STATUS_PUBLISHED));
- // creating the items objects that are published
- $itemsObj = $publisher->getHandler('item')->getAllPublished($publisher->getConfig('idxcat_perpage'), $startitem, $sel_cat);
- $totalitemsOnPage = count($itemsObj);
- $allcats = $publisher->getHandler('category')->getObjects(null, true);
- echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
- echo "<tr>";
- echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>";
- echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCOLNAME . "</strong></td>";
- echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMDESC . "</strong></td>";
- echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>";
- echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>";
- echo "</tr>";
- if ($totalitems > 0) {
- for ($i = 0; $i < $totalitemsOnPage; $i++) {
- $categoryObj = $allcats[$itemsObj[$i]->categoryid()];
- $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->itemid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>";
- $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->itemid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>";
- echo "<tr>";
- echo "<td class='head' align='center'>" . $itemsObj[$i]->itemid() . "</td>";
- echo "<td class='even' align='left'>" . $categoryObj->name() . "</td>";
- echo "<td class='even' align='left'>" . $itemsObj[$i]->getitemLink() . "</td>";
- echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub('s') . "</td>";
- echo "<td class='even' align='center'> $modify $delete </td>";
- echo "</tr>";
- }
- } else {
- $itemid = -1;
- echo "<tr>";
- echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS . "</td>";
- echo "</tr>";
- }
- echo "</table>\n";
- echo "<br />\n";
- $parentid = PublisherRequest::getInt('parentid');
- $pagenav_extra_args = "op=mod&categoryid=$sel_cat&parentid=$parentid";
- xoops_load('XoopsPageNav');
- $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $startitem, 'startitem', $pagenav_extra_args);
- echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
- echo "<input type='button' name='button' onclick=\"location='item.php?op=mod&categoryid=" . $sel_cat . "'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> ";
- echo "</div>";
- }
- //end of fx2024 code
-}
\ No newline at end of file
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package Publisher
+ * @since 1.0
+ * @author trabis <lus...@gm...>
+ * @author The SmartFactory <www.smartfactory.ca>
+ * @version $Id$
+ */
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+$op = PublisherRequest::getString('op');
+
+$op = isset($_POST['editor']) ? 'mod' : $op;
+if (isset($_POST['addcategory'])) {
+ $op = 'addcategory';
+}
+
+// Where do we start ?
+$startcategory = PublisherRequest::getInt('startcategory');
+$categoryid = PublisherRequest::getInt('categoryid');
+
+switch ($op) {
+
+ case "del":
+ $categoryObj = $publisher->getHandler('category')->get($categoryid);
+ $confirm = (isset($_POST['confirm'])) ? $_POST['confirm'] : 0;
+ $name = (isset($_POST['name'])) ? $_POST['name'] : '';
+ if ($confirm) {
+ if (!$publisher->getHandler('category')->delete($categoryObj)) {
+ redirect_header("category.php", 1, _AM_PUBLISHER_DELETE_CAT_ERROR);
+ exit();
+ }
+ redirect_header("category.php", 1, sprintf(_AM_PUBLISHER_COLISDELETED, $name));
+ exit();
+ } else {
+ xoops_cp_header();
+ xoops_confirm(array('op' => 'del', 'categoryid' => $categoryObj->categoryid(), 'confirm' => 1, 'name' => $categoryObj->name()), 'category.php', _AM_PUBLISHER_DELETECOL . " '" . $categoryObj->name() . "'. <br /> <br />" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE);
+ xoops_cp_footer();
+ }
+ break;
+
+ case "mod":
+ //Added by fx2024
+ $nb_subcats = isset($_POST['nb_subcats']) ? intval($_POST['nb_subcats']) : 0;
+ $nb_subcats = $nb_subcats + (isset($_POST['nb_sub_yet']) ? intval($_POST['nb_sub_yet']) : 4);
+ //end of fx2024 code
+
+ publisher_cpHeader();
+ publisher_editCat(true, $categoryid, $nb_subcats);
+ break;
+
+ case "addcategory":
+ global $modify;
+
+ $parentid = PublisherRequest::getInt('parentid');
+
+ if ($categoryid != 0) {
+ $categoryObj = $publisher->getHandler('category')->get($categoryid);
+ } else {
+ $categoryObj = $publisher->getHandler('category')->create();
+ }
+
+ // Uploading the image, if any
+ // Retreive the filename to be uploaded
+ if (isset($_FILES['image_file']['name']) && $_FILES['image_file']['name'] != "") {
+ $filename = $_POST["xoops_upload_file"][0];
+ if (!empty($filename) || $filename != "") {
+ // TODO : implement publisher mimetype management
+ $max_size = $publisher->getConfig('maximum_filesize');
+ $max_imgwidth = $publisher->getConfig('maximum_image_width');
+ $max_imgheight = $publisher->getConfig('maximum_image_height');
+ $allowed_mimetypes = publisher_getAllowedImagesTypes();
+
+ if ($_FILES[$filename]['tmp_name'] == "" || !is_readable($_FILES[$filename]['tmp_name'])) {
+ redirect_header('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR);
+ exit();
+ }
+
+ xoops_load('XoopsMediaUploader');
+ $uploader = new XoopsMediaUploader(publisher_getImageDir('category'), $allowed_mimetypes, $max_size, $max_imgwidth, $max_imgheight);
+ if ($uploader->fetchMedia($filename) && $uploader->upload()) {
+ $categoryObj->setVar('image', $uploader->getSavedFileName());
+ } else {
+ redirect_header('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR . $uploader->getErrors());
+ exit();
+ }
+ }
+ } else {
+ if (isset($_POST['image'])) {
+ $categoryObj->setVar('image', $_POST['image']);
+ }
+ }
+ $categoryObj->setVar('parentid', (isset($_POST['parentid'])) ? intval($_POST['parentid']) : 0);
+
+ $applyall = isset($_POST['applyall']) ? intval($_POST['applyall']) : 0;
+ $categoryObj->setVar('weight', isset($_POST['weight']) ? intval($_POST['weight']) : 1);
+
+ // Groups and permissions
+ $grpread = isset($_POST['groups_read']) ? $_POST['groups_read'] : array();
+ $grpsubmit = isset($_POST['groups_submit']) ? $_POST['groups_submit'] : array();
+ $grpmoderation = isset($_POST['groups_moderation']) ? $_POST['groups_moderation'] : array();
+
+ $categoryObj->setVar('name', $_POST['name']);
+
+ //Added by skalpa: custom template support
+ if (isset($_POST['template'])) {
+ $categoryObj->setVar('template', $_POST['template']);
+ }
+
+ if (isset($_POST['meta_description'])) {
+ $categoryObj->setVar('meta_description', $_POST['meta_description']);
+ }
+ if (isset($_POST['meta_keywords'])) {
+ $categoryObj->setVar('meta_keywords', $_POST['meta_keywords']);
+ }
+ if (isset($_POST['short_url'])) {
+ $categoryObj->setVar('short_url', $_POST['short_url']);
+ }
+ $categoryObj->setVar('moderator', intval($_POST['moderator']));
+ $categoryObj->setVar('description', $_POST['description']);
+
+ if (isset($_POST['header'])) {
+ $categoryObj->setVar('header', $_POST['header']);
+ }
+
+ if ($categoryObj->isNew()) {
+ $redirect_msg = _AM_PUBLISHER_CATCREATED;
+ $redirect_to = 'category.php?op=mod';
+ } else {
+ $redirect_msg = _AM_PUBLISHER_COLMODIFIED;
+ $redirect_to = 'category.php';
+ }
+
+ if (!$categoryObj->store()) {
+ redirect_header("javascript:history.go(-1)", 3, _AM_PUBLISHER_CATEGORY_SAVE_ERROR . publisher_formatErrors($categoryObj->getErrors()));
+ exit;
+ }
+ // TODO : put this function in the category class
+ publisher_saveCategoryPermissions($grpread, $categoryObj->categoryid(), 'category_read');
+ publisher_saveCategoryPermissions($grpsubmit, $categoryObj->categoryid(), 'item_submit');
+ publisher_saveCategoryPermissions($grpmoderation, $categoryObj->categoryid(), 'category_moderation');
+
+ //Added by fx2024
+ $parentCat = $categoryObj->categoryid();
+ $sizeof = sizeof($_POST['scname']);
+ for ($i = 0; $i < $sizeof; ++$i) {
+ if ($_POST['scname'][$i] != '') {
+ $categoryObj = $publisher->getHandler('category')->create();
+ $categoryObj->setVar('name', $_POST['scname'][$i]);
+ $categoryObj->setVar('parentid', $parentCat);
+
+ if (!$categoryObj->store()) {
+ redirect_header("javascript:history.go(-1)", 3, _AM_PUBLISHER_SUBCATEGORY_SAVE_ERROR . publisher_formatErrors($categoryObj->getErrors()));
+ exit;
+ }
+ // TODO : put this function in the category class
+ publisher_saveCategoryPermissions($grpread, $categoryObj->categoryid(), 'category_read');
+ publisher_saveCategoryPermissions($grpsubmit, $categoryObj->categoryid(), 'item_submit');
+ publisher_saveCategoryPermissions($grpmoderation, $categoryObj->categoryid(), 'category_moderation');
+ }
+ }
+ //end of fx2024 code
+ redirect_header($redirect_to, 2, $redirect_msg);
+ exit();
+ break;
+
+ //Added by fx2024
+
+ case "addsubcats":
+ $categoryid = 0;
+ $nb_subcats = intval($_POST['nb_subcats']) + $_POST['nb_sub_yet'];
+
+ $categoryObj = $publisher->getHandler('category')->create();
+ $categoryObj->setVar('name', $_POST['name']);
+ $categoryObj->setVar('description', $_POST['description']);
+ $categoryObj->setVar('weight', $_POST['weight']);
+ if (isset($parentCat)) {
+ $categoryObj->setVar('parentid', $parentCat);
+ }
+
+ publisher_cpHeader();
+ publisher_editCat(true, $categoryid, $nb_subcats, $categoryObj);
+ exit();
+
+ break;
+ //end of fx2024 code
+
+ case "cancel":
+ redirect_header("category.php", 1, sprintf(_AM_PUBLISHER_BACK2IDX, ''));
+ exit();
+
+ case "default":
+ default:
+ publisher_cpHeader();
+ //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES);
+
+ echo "<br />\n";
+ echo "<form><div style=\"margin-bottom: 12px;\">";
+ echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> ";
+ //echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> ";
+ echo "</div></form>";
+
+ // Creating the objects for top categories
+ $categoriesObj = $publisher->getHandler('category')->getCategories($publisher->getConfig('idxcat_perpage'), $startcategory, 0);
+
+ publisher_openCollapsableBar('createdcategories', 'createdcategoriesicon', _AM_PUBLISHER_CATEGORIES_TITLE, _AM_PUBLISHER_CATEGORIES_DSC);
+
+ echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
+ echo "<tr>";
+ echo "<th width='20' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMCATEGORY_ID . "</strong></td>";
+ echo "<th class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>";
+ echo "<th width='60' class='bg3' width='65' align='center'><strong>" . _CO_PUBLISHER_WEIGHT . "</strong></td>";
+ echo "<th width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>";
+ echo "</tr>";
+ $totalCategories = $publisher->getHandler('category')->getCategoriesCount(0);
+ if (count($categoriesObj) > 0) {
+ foreach ($categoriesObj as $key => $thiscat) {
+ publisher_displayCategory($thiscat);
+ }
+ } else {
+ echo "<tr>";
+ echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOCAT . "</td>";
+ echo "</tr>";
+ $categoryid = '0';
+ }
+ echo "</table>\n";
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_perpage'), $startcategory, 'startcategory');
+ echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
+ echo "<br />";
+ publisher_closeCollapsableBar('createdcategories', 'createdcategoriesicon');
+ echo "<br>";
+ //editcat(false);
+ break;
+}
+
+xoops_cp_footer();
+
+function publisher_displayCategory($categoryObj, $level = 0)
+{
+ $publisher = PublisherPublisher::getInstance();
+
+ $description = $categoryObj->description();
+ if (!XOOPS_USE_MULTIBYTES) {
+ if (strlen($description) >= 100) {
+ $description = substr($description, 0, (100 - 1)) . "...";
+ }
+ }
+ $modify = "<a href='category.php?op=mod&categoryid=" . $categoryObj->categoryid() . "&parentid=" . $categoryObj->parentid() . "'><img src='" . PUBLISHER_URL . "/assets/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>";
+ $delete = "<a href='category.php?op=del&categoryid=" . $categ...
[truncated message content] |
|
From: <be...@us...> - 2014-06-22 02:35:50
|
Revision: 12628
http://sourceforge.net/p/xoops/svn/12628
Author: beckmi
Date: 2014-06-22 02:35:42 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
adding clean-up routine for old directories/files
Modified Paths:
--------------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/update.php
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/update.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/update.php 2014-06-22 02:18:47 UTC (rev 12627)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/update.php 2014-06-22 02:35:42 UTC (rev 12628)
@@ -16,9 +16,53 @@
* @version $Id$
*/
-function xoops_module_update_publisher($module, $version)
+function xoops_module_update_publisher($module, $oldversion = null)
{
+
+ if ($oldversion < 102) {
+ // delete old html template files
+ $templateDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/templates/";
+ $template_list = array_diff(scandir($templateDirectory), array('..', '.'));
+ foreach ($template_list as $k => $v) {
+ $fileinfo = new SplFileInfo($templateDirectory . $v);
+ if ($fileinfo->getExtension() == 'html' && $fileinfo->getFilename() != 'index.html') {
+ @unlink($templateDirectory . $v);
+ }
+ }
+ // delete old block html template files
+ $templateDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/templates/blocks/";
+ $template_list = array_diff(scandir($templateDirectory), array('..', '.'));
+ foreach ($template_list as $k => $v) {
+ $fileinfo = new SplFileInfo($templateDirectory . $v);
+ if ($fileinfo->getExtension() == 'html' && $fileinfo->getFilename() != 'index.html') {
+ @unlink($templateDirectory . $v);
+ }
+ }
+ // Load class XoopsFile
+ xoops_load('xoopsfile');
+ //delete /images directory
+ $imagesDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/images/";
+ $folderHandler = XoopsFile::getHandler("folder", $imagesDirectory);
+ $folderHandler->delete($imagesDirectory);
+ //delete /css directory
+ $cssDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/css/";
+ $folderHandler = XoopsFile::getHandler("folder", $cssDirectory);
+ $folderHandler->delete($cssDirectory);
+ //delete /js directory
+ $jsDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/js/";
+ $folderHandler = XoopsFile::getHandler("folder", $jsDirectory);
+ $folderHandler->delete($jsDirectory);
+ //delete /tcpdf directory
+ $tcpdfDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/tcpdf/";
+ $folderHandler = XoopsFile::getHandler("folder", $tcpdfDirectory);
+ $folderHandler->delete($tcpdfDirectory);
+ //delete /templates/style.css file
+// $cssFile = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/templates/style.css";
+// $folderHandler = XoopsFile::getHandler("file", $cssFile);
+// $folderHandler->delete($cssFile);
+ }
+
$gperm_handler = xoops_gethandler('groupperm');
-
return $gperm_handler->deleteByModule($module->getVar('mid'), "item_read");
}
+
|
|
From: <be...@us...> - 2014-06-22 02:18:55
|
Revision: 12627
http://sourceforge.net/p/xoops/svn/12627
Author: beckmi
Date: 2014-06-22 02:18:47 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
Adding Publisher 1.0 to SVN Release Archive
Added Paths:
-----------
XoopsModules/publisher/releases/1.0/
XoopsModules/publisher/releases/1.0/publisher/
XoopsModules/publisher/releases/1.0/publisher/admin/
XoopsModules/publisher/releases/1.0/publisher/admin/about.php
XoopsModules/publisher/releases/1.0/publisher/admin/admin_header.php
XoopsModules/publisher/releases/1.0/publisher/admin/category.php
XoopsModules/publisher/releases/1.0/publisher/admin/clone.php
XoopsModules/publisher/releases/1.0/publisher/admin/file.php
XoopsModules/publisher/releases/1.0/publisher/admin/import/
XoopsModules/publisher/releases/1.0/publisher/admin/import/index.html
XoopsModules/publisher/releases/1.0/publisher/admin/import/news.php
XoopsModules/publisher/releases/1.0/publisher/admin/import/smartsection.php
XoopsModules/publisher/releases/1.0/publisher/admin/import/wfsection.php
XoopsModules/publisher/releases/1.0/publisher/admin/import/xfsection.php
XoopsModules/publisher/releases/1.0/publisher/admin/import.php
XoopsModules/publisher/releases/1.0/publisher/admin/index.php
XoopsModules/publisher/releases/1.0/publisher/admin/item.php
XoopsModules/publisher/releases/1.0/publisher/admin/main.php
XoopsModules/publisher/releases/1.0/publisher/admin/menu.php
XoopsModules/publisher/releases/1.0/publisher/admin/mimetypes.php
XoopsModules/publisher/releases/1.0/publisher/admin/pagewrap.php
XoopsModules/publisher/releases/1.0/publisher/admin/permissions.php
XoopsModules/publisher/releases/1.0/publisher/admin/preferences.php
XoopsModules/publisher/releases/1.0/publisher/admin/pw_delete_file.php
XoopsModules/publisher/releases/1.0/publisher/admin/pw_upload_file.php
XoopsModules/publisher/releases/1.0/publisher/archive.php
XoopsModules/publisher/releases/1.0/publisher/author_items.php
XoopsModules/publisher/releases/1.0/publisher/backend.php
XoopsModules/publisher/releases/1.0/publisher/blocks/
XoopsModules/publisher/releases/1.0/publisher/blocks/category_items_sel.php
XoopsModules/publisher/releases/1.0/publisher/blocks/date_to_date.php
XoopsModules/publisher/releases/1.0/publisher/blocks/index.html
XoopsModules/publisher/releases/1.0/publisher/blocks/items_columns.php
XoopsModules/publisher/releases/1.0/publisher/blocks/items_menu.php
XoopsModules/publisher/releases/1.0/publisher/blocks/items_new.php
XoopsModules/publisher/releases/1.0/publisher/blocks/items_random_item.php
XoopsModules/publisher/releases/1.0/publisher/blocks/items_recent.php
XoopsModules/publisher/releases/1.0/publisher/blocks/items_spot.php
XoopsModules/publisher/releases/1.0/publisher/blocks/latest_files.php
XoopsModules/publisher/releases/1.0/publisher/blocks/latest_news.php
XoopsModules/publisher/releases/1.0/publisher/blocks/search.php
XoopsModules/publisher/releases/1.0/publisher/category.php
XoopsModules/publisher/releases/1.0/publisher/class/
XoopsModules/publisher/releases/1.0/publisher/class/blockform.php
XoopsModules/publisher/releases/1.0/publisher/class/category.php
XoopsModules/publisher/releases/1.0/publisher/class/file.php
XoopsModules/publisher/releases/1.0/publisher/class/form/
XoopsModules/publisher/releases/1.0/publisher/class/form/category.php
XoopsModules/publisher/releases/1.0/publisher/class/form/file.php
XoopsModules/publisher/releases/1.0/publisher/class/form/index.html
XoopsModules/publisher/releases/1.0/publisher/class/form/item.php
XoopsModules/publisher/releases/1.0/publisher/class/formdatetime.php
XoopsModules/publisher/releases/1.0/publisher/class/groupperm.php
XoopsModules/publisher/releases/1.0/publisher/class/highlighter.php
XoopsModules/publisher/releases/1.0/publisher/class/index.html
XoopsModules/publisher/releases/1.0/publisher/class/item.php
XoopsModules/publisher/releases/1.0/publisher/class/metagen.php
XoopsModules/publisher/releases/1.0/publisher/class/mimetype.php
XoopsModules/publisher/releases/1.0/publisher/class/permission.php
XoopsModules/publisher/releases/1.0/publisher/class/publisher.php
XoopsModules/publisher/releases/1.0/publisher/class/rating.php
XoopsModules/publisher/releases/1.0/publisher/class/request.php
XoopsModules/publisher/releases/1.0/publisher/class/session.php
XoopsModules/publisher/releases/1.0/publisher/class/themetabform.php
XoopsModules/publisher/releases/1.0/publisher/class/uploader.php
XoopsModules/publisher/releases/1.0/publisher/comment_delete.php
XoopsModules/publisher/releases/1.0/publisher/comment_edit.php
XoopsModules/publisher/releases/1.0/publisher/comment_new.php
XoopsModules/publisher/releases/1.0/publisher/comment_post.php
XoopsModules/publisher/releases/1.0/publisher/comment_reply.php
XoopsModules/publisher/releases/1.0/publisher/css/
XoopsModules/publisher/releases/1.0/publisher/css/images/
XoopsModules/publisher/releases/1.0/publisher/css/images/index.html
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_flat_0_aaaaaa_40x100.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_flat_75_ffffff_40x100.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_glass_55_fbf9ee_1x400.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_glass_65_ffffff_1x400.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_glass_75_dadada_1x400.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_glass_75_e6e6e6_1x400.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_glass_95_fef1ec_1x400.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-icons_222222_256x240.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-icons_2e83ff_256x240.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-icons_454545_256x240.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-icons_888888_256x240.png
XoopsModules/publisher/releases/1.0/publisher/css/images/ui-icons_cd0a0a_256x240.png
XoopsModules/publisher/releases/1.0/publisher/css/index.html
XoopsModules/publisher/releases/1.0/publisher/css/jquery-ui-1.7.1.custom.css
XoopsModules/publisher/releases/1.0/publisher/css/jquery.popeye.style.css
XoopsModules/publisher/releases/1.0/publisher/css/publisher.css
XoopsModules/publisher/releases/1.0/publisher/docs/
XoopsModules/publisher/releases/1.0/publisher/docs/ajaxrating.txt
XoopsModules/publisher/releases/1.0/publisher/docs/changelog.txt
XoopsModules/publisher/releases/1.0/publisher/docs/credits.txt
XoopsModules/publisher/releases/1.0/publisher/docs/index.html
XoopsModules/publisher/releases/1.0/publisher/docs/install.txt
XoopsModules/publisher/releases/1.0/publisher/docs/lang_diff.txt
XoopsModules/publisher/releases/1.0/publisher/docs/license.txt
XoopsModules/publisher/releases/1.0/publisher/docs/readme.txt
XoopsModules/publisher/releases/1.0/publisher/extra/
XoopsModules/publisher/releases/1.0/publisher/extra/index.html
XoopsModules/publisher/releases/1.0/publisher/extra/seo/
XoopsModules/publisher/releases/1.0/publisher/extra/seo/index.html
XoopsModules/publisher/releases/1.0/publisher/extra/seo/sample.htaccess
XoopsModules/publisher/releases/1.0/publisher/extra/seo/seo.txt
XoopsModules/publisher/releases/1.0/publisher/file.php
XoopsModules/publisher/releases/1.0/publisher/footer.php
XoopsModules/publisher/releases/1.0/publisher/header.php
XoopsModules/publisher/releases/1.0/publisher/images/
XoopsModules/publisher/releases/1.0/publisher/images/VeraBd.ttf
XoopsModules/publisher/releases/1.0/publisher/images/arrow-bg.png
XoopsModules/publisher/releases/1.0/publisher/images/bg.gif
XoopsModules/publisher/releases/1.0/publisher/images/blank.png
XoopsModules/publisher/releases/1.0/publisher/images/bullet.gif
XoopsModules/publisher/releases/1.0/publisher/images/button_delete.png
XoopsModules/publisher/releases/1.0/publisher/images/button_edit.png
XoopsModules/publisher/releases/1.0/publisher/images/dot-grey.gif
XoopsModules/publisher/releases/1.0/publisher/images/gfx/
XoopsModules/publisher/releases/1.0/publisher/images/gfx/count-2.png
XoopsModules/publisher/releases/1.0/publisher/images/gfx/enlarge-1.png
XoopsModules/publisher/releases/1.0/publisher/images/gfx/enlarge-2.png
XoopsModules/publisher/releases/1.0/publisher/images/gfx/index.html
XoopsModules/publisher/releases/1.0/publisher/images/gfx/loading.gif
XoopsModules/publisher/releases/1.0/publisher/images/gfx/next-1.png
XoopsModules/publisher/releases/1.0/publisher/images/gfx/next-2.png
XoopsModules/publisher/releases/1.0/publisher/images/gfx/next.gif
XoopsModules/publisher/releases/1.0/publisher/images/gfx/prev-1.png
XoopsModules/publisher/releases/1.0/publisher/images/gfx/prev-2.png
XoopsModules/publisher/releases/1.0/publisher/images/gfx/prev.gif
XoopsModules/publisher/releases/1.0/publisher/images/grad-bg.png
XoopsModules/publisher/releases/1.0/publisher/images/icon/
XoopsModules/publisher/releases/1.0/publisher/images/icon/approve.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/cat.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/clone.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/close12.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/delete.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/delete.png
XoopsModules/publisher/releases/1.0/publisher/images/icon/doc.png
XoopsModules/publisher/releases/1.0/publisher/images/icon/edit.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/edit.png
XoopsModules/publisher/releases/1.0/publisher/images/icon/editcopy.png
XoopsModules/publisher/releases/1.0/publisher/images/icon/file.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/friend.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/index.html
XoopsModules/publisher/releases/1.0/publisher/images/icon/newanswer.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/open12.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/pdf.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/print.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon/subcat.gif
XoopsModules/publisher/releases/1.0/publisher/images/icon32/
XoopsModules/publisher/releases/1.0/publisher/images/icon32/editcopy.png
XoopsModules/publisher/releases/1.0/publisher/images/icon32/folder_txt.png
XoopsModules/publisher/releases/1.0/publisher/images/icon32/index.html
XoopsModules/publisher/releases/1.0/publisher/images/important-32.png
XoopsModules/publisher/releases/1.0/publisher/images/index.html
XoopsModules/publisher/releases/1.0/publisher/images/item_icon.gif
XoopsModules/publisher/releases/1.0/publisher/images/left_both.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/
XoopsModules/publisher/releases/1.0/publisher/images/links/approve.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/cat.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/clone.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/close12.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/delete.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/delete.png
XoopsModules/publisher/releases/1.0/publisher/images/links/doc.png
XoopsModules/publisher/releases/1.0/publisher/images/links/edit.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/edit.png
XoopsModules/publisher/releases/1.0/publisher/images/links/editcopy.png
XoopsModules/publisher/releases/1.0/publisher/images/links/file.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/friend.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/index.html
XoopsModules/publisher/releases/1.0/publisher/images/links/newanswer.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/next.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/open12.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/pdf.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/previous.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/print.gif
XoopsModules/publisher/releases/1.0/publisher/images/links/subcat.gif
XoopsModules/publisher/releases/1.0/publisher/images/loadingbar.gif
XoopsModules/publisher/releases/1.0/publisher/images/module_logo.png
XoopsModules/publisher/releases/1.0/publisher/images/no.gif
XoopsModules/publisher/releases/1.0/publisher/images/off.png
XoopsModules/publisher/releases/1.0/publisher/images/on.png
XoopsModules/publisher/releases/1.0/publisher/images/popeye/
XoopsModules/publisher/releases/1.0/publisher/images/popeye/bg1.png
XoopsModules/publisher/releases/1.0/publisher/images/popeye/compact3.png
XoopsModules/publisher/releases/1.0/publisher/images/popeye/enlarge3.png
XoopsModules/publisher/releases/1.0/publisher/images/popeye/index.html
XoopsModules/publisher/releases/1.0/publisher/images/popeye/loading3.gif
XoopsModules/publisher/releases/1.0/publisher/images/popeye/next3.png
XoopsModules/publisher/releases/1.0/publisher/images/popeye/prev3.png
XoopsModules/publisher/releases/1.0/publisher/images/right_both.gif
XoopsModules/publisher/releases/1.0/publisher/images/rss.gif
XoopsModules/publisher/releases/1.0/publisher/images/span-bg.gif
XoopsModules/publisher/releases/1.0/publisher/images/starrating.gif
XoopsModules/publisher/releases/1.0/publisher/images/transparent_bg.png
XoopsModules/publisher/releases/1.0/publisher/images/working.gif
XoopsModules/publisher/releases/1.0/publisher/include/
XoopsModules/publisher/releases/1.0/publisher/include/ajax_rating.php
XoopsModules/publisher/releases/1.0/publisher/include/ajax_upload.php
XoopsModules/publisher/releases/1.0/publisher/include/comment_functions.php
XoopsModules/publisher/releases/1.0/publisher/include/common.php
XoopsModules/publisher/releases/1.0/publisher/include/constants.php
XoopsModules/publisher/releases/1.0/publisher/include/functions.php
XoopsModules/publisher/releases/1.0/publisher/include/index.html
XoopsModules/publisher/releases/1.0/publisher/include/install.php
XoopsModules/publisher/releases/1.0/publisher/include/media.textsanitizer.php
XoopsModules/publisher/releases/1.0/publisher/include/notification.inc.php
XoopsModules/publisher/releases/1.0/publisher/include/plugin.tag.php
XoopsModules/publisher/releases/1.0/publisher/include/search.inc.php
XoopsModules/publisher/releases/1.0/publisher/include/seo.inc.php
XoopsModules/publisher/releases/1.0/publisher/include/seo_functions.php
XoopsModules/publisher/releases/1.0/publisher/include/update.php
XoopsModules/publisher/releases/1.0/publisher/index.php
XoopsModules/publisher/releases/1.0/publisher/item.php
XoopsModules/publisher/releases/1.0/publisher/js/
XoopsModules/publisher/releases/1.0/publisher/js/ajaxupload.3.9.js
XoopsModules/publisher/releases/1.0/publisher/js/behavior.js
XoopsModules/publisher/releases/1.0/publisher/js/cookies.js
XoopsModules/publisher/releases/1.0/publisher/js/funcs.js
XoopsModules/publisher/releases/1.0/publisher/js/index.html
XoopsModules/publisher/releases/1.0/publisher/js/jquery.easing.js
XoopsModules/publisher/releases/1.0/publisher/js/jquery.popeye-2.0.4.js
XoopsModules/publisher/releases/1.0/publisher/js/publisher.js
XoopsModules/publisher/releases/1.0/publisher/js/rating.js
XoopsModules/publisher/releases/1.0/publisher/js/script.easing.js
XoopsModules/publisher/releases/1.0/publisher/js/ui.core.js
XoopsModules/publisher/releases/1.0/publisher/js/ui.tabs.js
XoopsModules/publisher/releases/1.0/publisher/language/
XoopsModules/publisher/releases/1.0/publisher/language/english/
XoopsModules/publisher/releases/1.0/publisher/language/english/admin.php
XoopsModules/publisher/releases/1.0/publisher/language/english/blocks.php
XoopsModules/publisher/releases/1.0/publisher/language/english/common.php
XoopsModules/publisher/releases/1.0/publisher/language/english/help/
XoopsModules/publisher/releases/1.0/publisher/language/english/help/help.html
XoopsModules/publisher/releases/1.0/publisher/language/english/help/index.html
XoopsModules/publisher/releases/1.0/publisher/language/english/index.html
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/category_item_published.tpl
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/category_item_submitted.tpl
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/global_item_category_created.tpl
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/global_item_published.tpl
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/global_item_submitted.tpl
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/index.html
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/item_approved.tpl
XoopsModules/publisher/releases/1.0/publisher/language/english/mail_template/item_rejected.tpl
XoopsModules/publisher/releases/1.0/publisher/language/english/main.php
XoopsModules/publisher/releases/1.0/publisher/language/english/modinfo.php
XoopsModules/publisher/releases/1.0/publisher/language/index.html
XoopsModules/publisher/releases/1.0/publisher/list.tag.php
XoopsModules/publisher/releases/1.0/publisher/makepdf.php
XoopsModules/publisher/releases/1.0/publisher/notification_update.php
XoopsModules/publisher/releases/1.0/publisher/pop.php
XoopsModules/publisher/releases/1.0/publisher/print.php
XoopsModules/publisher/releases/1.0/publisher/rate.php
XoopsModules/publisher/releases/1.0/publisher/search.php
XoopsModules/publisher/releases/1.0/publisher/sql/
XoopsModules/publisher/releases/1.0/publisher/sql/index.html
XoopsModules/publisher/releases/1.0/publisher/sql/mysql.sql
XoopsModules/publisher/releases/1.0/publisher/submit.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/
XoopsModules/publisher/releases/1.0/publisher/tcpdf/CHANGELOG.TXT
XoopsModules/publisher/releases/1.0/publisher/tcpdf/LICENSE.TXT
XoopsModules/publisher/releases/1.0/publisher/tcpdf/README.TXT
XoopsModules/publisher/releases/1.0/publisher/tcpdf/cache/
XoopsModules/publisher/releases/1.0/publisher/tcpdf/cache/index.html
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/index.html
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/ar.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/de.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/en.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/fa.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/fr.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/index.html
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/lang/nl.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/config/tcpdf_config.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/almohanad.ctg.z
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/almohanad.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/almohanad.z
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/dejavusans.ctg.z
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/dejavusans.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/dejavusans.z
XoopsModules/publisher/releases/1.0/publisher/tcpdf/fonts/index.html
XoopsModules/publisher/releases/1.0/publisher/tcpdf/htmlcolors.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/images/
XoopsModules/publisher/releases/1.0/publisher/tcpdf/images/index.html
XoopsModules/publisher/releases/1.0/publisher/tcpdf/index.html
XoopsModules/publisher/releases/1.0/publisher/tcpdf/tcpdf.php
XoopsModules/publisher/releases/1.0/publisher/tcpdf/unicode_data.php
XoopsModules/publisher/releases/1.0/publisher/templates/
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/index.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_category_items_sel.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_date_to_date.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_items_columns.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_items_menu.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_items_new.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_items_random_item.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_items_recent.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_items_spot.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_latest_files.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_latest_news.html
XoopsModules/publisher/releases/1.0/publisher/templates/blocks/publisher_search_block.html
XoopsModules/publisher/releases/1.0/publisher/templates/index.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_addfile.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_archive.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_author_items.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_categories_table.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_display_full.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_display_list.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_display_summary.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_display_wfsection.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_footer.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_header.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_item.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_print.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_rss.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_search.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_singleitem.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_singleitem_block.html
XoopsModules/publisher/releases/1.0/publisher/templates/publisher_submit.html
XoopsModules/publisher/releases/1.0/publisher/thumb.php
XoopsModules/publisher/releases/1.0/publisher/view.tag.php
XoopsModules/publisher/releases/1.0/publisher/visit.php
XoopsModules/publisher/releases/1.0/publisher/xoops_version.php
Added: XoopsModules/publisher/releases/1.0/publisher/admin/about.php
===================================================================
--- XoopsModules/publisher/releases/1.0/publisher/admin/about.php (rev 0)
+++ XoopsModules/publisher/releases/1.0/publisher/admin/about.php 2014-06-22 02:18:47 UTC (rev 12627)
@@ -0,0 +1,32 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * Publisher
+ *
+ * @copyright The XOOPS Project (http://www.xoops.org)
+ * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
+ * @package Publisher
+ * @since 1.0
+ * @author Mage, Mamba
+ * @version $Id$
+ */
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+
+xoops_cp_footer();
\ No newline at end of file
Property changes on: XoopsModules/publisher/releases/1.0/publisher/admin/about.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/publisher/releases/1.0/publisher/admin/admin_header.php
===================================================================
--- XoopsModules/publisher/releases/1.0/publisher/admin/admin_header.php (rev 0)
+++ XoopsModules/publisher/releases/1.0/publisher/admin/admin_header.php 2014-06-22 02:18:47 UTC (rev 12627)
@@ -0,0 +1,46 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package Publisher
+ * @since 1.0
+ * @author trabis <lus...@gm...>
+ * @author The SmartFactory <www.smartfactory.ca>
+ * @version $Id$
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once dirname(dirname(__FILE__)) . '/include/common.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
+
+//xoops_loadLanguage('admin', PUBLISHER_DIRNAME);
+xoops_loadLanguage('modinfo', PUBLISHER_DIRNAME);
+
+$imagearray = array(
+ 'editimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_edit.png' alt='" . _AM_PUBLISHER_ICO_EDIT . "' align='middle' />",
+ 'deleteimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_delete.png' alt='" . _AM_PUBLISHER_ICO_DELETE . "' align='middle' />",
+ 'online' => "<img src='" . PUBLISHER_IMAGES_URL . "/on.png' alt='" . _AM_PUBLISHER_ICO_ONLINE . "' align='middle' />",
+ 'offline' => "<img src='" . PUBLISHER_IMAGES_URL . "/off.png' alt='" . _AM_PUBLISHER_ICO_OFFLINE . "' align='middle' />",
+);
+if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
+}else{
+ echo xoops_error('/Frameworks/moduleclasses/moduleadmin/ is required!!!');
+}
+/*
+$myts = MyTextSanitizer::getInstance();
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+} */
\ No newline at end of file
Property changes on: XoopsModules/publisher/releases/1.0/publisher/admin/admin_header.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/publisher/releases/1.0/publisher/admin/category.php
===================================================================
--- XoopsModules/publisher/releases/1.0/publisher/admin/category.php (rev 0)
+++ XoopsModules/publisher/releases/1.0/publisher/admin/category.php 2014-06-22 02:18:47 UTC (rev 12627)
@@ -0,0 +1,410 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package Publisher
+ * @since 1.0
+ * @author trabis <lus...@gm...>
+ * @author The SmartFactory <www.smartfactory.ca>
+ * @version $Id$
+ */
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+$op = PublisherRequest::getString('op');
+
+$op = isset($_POST['editor']) ? 'mod' : $op;
+if (isset($_POST['addcategory'])) {
+ $op = 'addcategory';
+}
+
+// Where do we start ?
+$startcategory = PublisherRequest::getInt('startcategory');
+$categoryid = PublisherRequest::getInt('categoryid');
+
+switch ($op) {
+
+ case "del":
+ $categoryObj = $publisher->getHandler('category')->get($categoryid);
+ $confirm = (isset($_POST['confirm'])) ? $_POST['confirm'] : 0;
+ $name = (isset($_POST['name'])) ? $_POST['name'] : '';
+ if ($confirm) {
+ if (!$publisher->getHandler('category')->delete($categoryObj)) {
+ redirect_header("category.php", 1, _AM_PUBLISHER_DELETE_CAT_ERROR);
+ exit();
+ }
+ redirect_header("category.php", 1, sprintf(_AM_PUBLISHER_COLISDELETED, $name));
+ exit();
+ } else {
+ xoops_cp_header();
+ xoops_confirm(array('op' => 'del', 'categoryid' => $categoryObj->categoryid(), 'confirm' => 1, 'name' => $categoryObj->name()), 'category.php', _AM_PUBLISHER_DELETECOL . " '" . $categoryObj->name() . "'. <br /> <br />" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE);
+ xoops_cp_footer();
+ }
+ break;
+
+ case "mod":
+ //Added by fx2024
+ $nb_subcats = isset($_POST['nb_subcats']) ? intval($_POST['nb_subcats']) : 0;
+ $nb_subcats = $nb_subcats + (isset($_POST['nb_sub_yet']) ? intval($_POST['nb_sub_yet']) : 4);
+ //end of fx2024 code
+
+ publisher_cpHeader();
+ publisher_editCat(true, $categoryid, $nb_subcats);
+ break;
+
+ case "addcategory":
+ global $modify;
+
+ $parentid = PublisherRequest::getInt('parentid');
+
+ if ($categoryid != 0) {
+ $categoryObj = $publisher->getHandler('category')->get($categoryid);
+ } else {
+ $categoryObj = $publisher->getHandler('category')->create();
+ }
+
+ // Uploading the image, if any
+ // Retreive the filename to be uploaded
+ if (isset($_FILES['image_file']['name']) && $_FILES['image_file']['name'] != "") {
+ $filename = $_POST["xoops_upload_file"][0];
+ if (!empty($filename) || $filename != "") {
+ // TODO : implement publisher mimetype management
+ $max_size = $publisher->getConfig('maximum_filesize');
+ $max_imgwidth = $publisher->getConfig('maximum_image_width');
+ $max_imgheight = $publisher->getConfig('maximum_image_height');
+ $allowed_mimetypes = publisher_getAllowedImagesTypes();
+
+ if ($_FILES[$filename]['tmp_name'] == "" || !is_readable($_FILES[$filename]['tmp_name'])) {
+ redirect_header('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR);
+ exit();
+ }
+
+ xoops_load('XoopsMediaUploader');
+ $uploader = new XoopsMediaUploader(publisher_getImageDir('category'), $allowed_mimetypes, $max_size, $max_imgwidth, $max_imgheight);
+ if ($uploader->fetchMedia($filename) && $uploader->upload()) {
+ $categoryObj->setVar('image', $uploader->getSavedFileName());
+ } else {
+ redirect_header('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR . $uploader->getErrors());
+ exit();
+ }
+ }
+ } else {
+ if (isset($_POST['image'])) {
+ $categoryObj->setVar('image', $_POST['image']);
+ }
+ }
+ $categoryObj->setVar('parentid', (isset($_POST['parentid'])) ? intval($_POST['parentid']) : 0);
+
+ $applyall = isset($_POST['applyall']) ? intval($_POST['applyall']) : 0;
+ $categoryObj->setVar('weight', isset($_POST['weight']) ? intval($_POST['weight']) : 1);
+
+ // Groups and permissions
+ $grpread = isset($_POST['groups_read']) ? $_POST['groups_read'] : array();
+ $grpsubmit = isset($_POST['groups_submit']) ? $_POST['groups_submit'] : array();
+ $grpmoderation = isset($_POST['groups_moderation']) ? $_POST['groups_moderation'] : array();
+
+
+ $categoryObj->setVar('name', $_POST['name']);
+
+ //Added by skalpa: custom template support
+ if (isset($_POST['template'])) {
+ $categoryObj->setVar('template', $_POST['template']);
+ }
+
+ if (isset($_POST['meta_description'])) {
+ $categoryObj->setVar('meta_description', $_POST['meta_description']);
+ }
+ if (isset($_POST['meta_keywords'])) {
+ $categoryObj->setVar('meta_keywords', $_POST['meta_keywords']);
+ }
+ if (isset($_POST['short_url'])) {
+ $categoryObj->setVar('short_url', $_POST['short_url']);
+ }
+ $categoryObj->setVar('moderator', intval($_POST['moderator']));
+ $categoryObj->setVar('description', $_POST['description']);
+
+ if (isset($_POST['header'])) {
+ $categoryObj->setVar('header', $_POST['header']);
+ }
+
+ if ($categoryObj->isNew()) {
+ $redirect_msg = _AM_PUBLISHER_CATCREATED;
+ $redirect_to = 'category.php?op=mod';
+ } else {
+ $redirect_msg = _AM_PUBLISHER_COLMODIFIED;
+ $redirect_to = 'category.php';
+ }
+
+ if (!$categoryObj->store()) {
+ redirect_header("javascript:history.go(-1)", 3, _AM_PUBLISHER_CATEGORY_SAVE_ERROR . publisher_formatErrors($categoryObj->getErrors()));
+ exit;
+ }
+ // TODO : put this function in the category class
+ publisher_saveCategoryPermissions($grpread, $categoryObj->categoryid(), 'category_read');
+ publisher_saveCategoryPermissions($grpsubmit, $categoryObj->categoryid(), 'item_submit');
+ publisher_saveCategoryPermissions($grpmoderation, $categoryObj->categoryid(), 'category_moderation');
+
+
+ //Added by fx2024
+ $parentCat = $categoryObj->categoryid();
+ $sizeof = sizeof($_POST['scname']);
+ for ($i = 0; $i < $sizeof; $i++) {
+ if ($_POST['scname'][$i] != '') {
+ $categoryObj = $publisher->getHandler('category')->create();
+ $categoryObj->setVar('name', $_POST['scname'][$i]);
+ $categoryObj->setVar('parentid', $parentCat);
+
+ if (!$categoryObj->store()) {
+ redirect_header("javascript:history.go(-1)", 3, _AM_PUBLISHER_SUBCATEGORY_SAVE_ERROR . publisher_formatErrors($categoryObj->getErrors()));
+ exit;
+ }
+ // TODO : put this function in the category class
+ publisher_saveCategoryPermissions($grpread, $categoryObj->categoryid(), 'category_read');
+ publisher_saveCategoryPermissions($grpsubmit, $categoryObj->categoryid(), 'item_submit');
+ publisher_saveCategoryPermissions($grpmoderation, $categoryObj->categoryid(), 'category_moderation');
+ }
+ }
+ //end of fx2024 code
+ redirect_header($redirect_to, 2, $redirect_msg);
+ exit();
+ break;
+
+ //Added by fx2024
+
+ case "addsubcats":
+ $categoryid = 0;
+ $nb_subcats = intval($_POST['nb_subcats']) + $_POST['nb_sub_yet'];
+
+ $categoryObj = $publisher->getHandler('category')->create();
+ $categoryObj->setVar('name', $_POST['name']);
+ $categoryObj->setVar('description', $_POST['description']);
+ $categoryObj->setVar('weight', $_POST['weight']);
+ if (isset($parentCat)) {
+ $categoryObj->setVar('parentid', $parentCat);
+ }
+
+ publisher_cpHeader();
+ publisher_editCat(true, $categoryid, $nb_subcats, $categoryObj);
+ exit();
+
+ break;
+ //end of fx2024 code
+
+ case "cancel":
+ redirect_header("category.php", 1, sprintf(_AM_PUBLISHER_BACK2IDX, ''));
+ exit();
+
+ case "default":
+ default:
+ publisher_cpHeader();
+ //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES);
+
+ echo "<br />\n";
+ echo "<form><div style=\"margin-bottom: 12px;\">";
+ echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> ";
+ //echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> ";
+ echo "</div></form>";
+
+ // Creating the objects for top categories
+ $categoriesObj = $publisher->getHandler('category')->getCategories($publisher->getConfig('idxcat_perpage'), $startcategory, 0);
+
+ publisher_openCollapsableBar('createdcategories', 'createdcategoriesicon', _AM_PUBLISHER_CATEGORIES_TITLE, _AM_PUBLISHER_CATEGORIES_DSC);
+
+ echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
+ echo "<tr>";
+ echo "<th class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>";
+ echo "<th width='60' class='bg3' width='65' align='center'><strong>" . _CO_PUBLISHER_WEIGHT . "</strong></td>";
+ echo "<th width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>";
+ echo "</tr>";
+ $totalCategories = $publisher->getHandler('category')->getCategoriesCount(0);
+ if (count($categoriesObj) > 0) {
+ foreach ($categoriesObj as $key => $thiscat) {
+ publisher_displayCategory($thiscat);
+ }
+ } else {
+ echo "<tr>";
+ echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOCAT . "</td>";
+ echo "</tr>";
+ $categoryid = '0';
+ }
+ echo "</table>\n";
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_perpage'), $startcategory, 'startcategory');
+ echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
+ echo "<br />";
+ publisher_closeCollapsableBar('createdcategories', 'createdcategoriesicon');
+ echo "<br>";
+ //editcat(false);
+ break;
+}
+
+xoops_cp_footer();
+
+function publisher_displayCategory($categoryObj, $level = 0)
+{
+ $publisher = PublisherPublisher::getInstance();
+
+ $description = $categoryObj->description();
+ if (!XOOPS_USE_MULTIBYTES) {
+ if (strlen($description) >= 100) {
+ $description = substr($description, 0, (100 - 1)) . "...";
+ }
+ }
+ $modify = "<a href='category.php?op=mod&categoryid=" . $categoryObj->categoryid() . "&parentid=" . $categoryObj->parentid() . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>";
+ $delete = "<a href='category.php?op=del&categoryid=" . $categoryObj->categoryid() . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETECOL . "' alt='" . _AM_PUBLISHER_DELETECOL . "' /></a>";
+
+ $spaces = '';
+ for ($j = 0; $j < $level; $j++) {
+ $spaces .= ' ';
+ }
+
+ echo "<tr>";
+ echo "<td class='even' align='left'>" . $spaces . "<a href='" . PUBLISHER_URL . "/category.php?categoryid=" . $categoryObj->categoryid() . "'><img src='" . PUBLISHER_URL . "/images/links/subcat.gif' alt='' /> " . $categoryObj->name() . "</a></td>";
+ echo "<td class='even' align='center'>" . $categoryObj->weight() . "</td>";
+ echo "<td class='even' align='center'> $modify $delete </td>";
+ echo "</tr>";
+ $subCategoriesObj = $publisher->getHandler('category')->getCategories(0, 0, $categoryObj->categoryid());
+ if (count($subCategoriesObj) > 0) {
+ $level++;
+ foreach ($subCategoriesObj as $key => $thiscat) {
+ publisher_displayCategory($thiscat, $level);
+ }
+ }
+ unset($categoryObj);
+}
+
+function publisher_editCat($showmenu = false, $categoryid = 0, $nb_subcats = 4, $categoryObj = null)
+{
+ $publisher = PublisherPublisher::getInstance();
+
+ // if there is a parameter, and the id exists, retrieve data: we're editing a category
+ if ($categoryid != 0) {
+ // Creating the category object for the selected category
+ $categoryObj = $publisher->getHandler('category')->get($categoryid);
+ if ($categoryObj->notLoaded()) {
+ redirect_header("category.php", 1, _AM_PUBLISHER_NOCOLTOEDIT);
+ exit();
+ }
+ } else {
+ if (!$categoryObj) {
+ $categoryObj = $publisher->getHandler('category')->create();
+ }
+ }
+
+ if ($categoryid != 0) {
+ if ($showmenu) {
+ //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_EDITING);
+ }
+ echo "<br />\n";
+ publisher_openCollapsableBar('edittable', 'edittableicon', _AM_PUBLISHER_EDITCOL, _AM_PUBLISHER_CATEGORY_EDIT_INFO);
+ } else {
+ if ($showmenu) {
+ //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_CREATINGNEW);
+ }
+ publisher_openCollapsableBar('createtable', 'createtableicon', _AM_PUBLISHER_CATEGORY_CREATE, _AM_PUBLISHER_CATEGORY_CREATE_INFO);
+ }
+
+ $sform = $categoryObj->getForm($nb_subcats);
+ $sform->display();
+
+ if (!$categoryid) {
+ publisher_closeCollapsableBar('createtable', 'createtableicon');
+ } else {
+ publisher_closeCollapsableBar('edittable', 'edittableicon');
+ }
+
+ //Added by fx2024
+ if ($categoryid) {
+ $sel_cat = $categoryid;
+
+ publisher_openCollapsableBar('subcatstable', 'subcatsicon', _AM_PUBLISHER_SUBCAT_CAT, _AM_PUBLISHER_SUBCAT_CAT_DSC);
+ // Get the total number of sub-categories
+ $categoriesObj = $publisher->getHandler('category')->get($sel_cat);
+ $totalsubs = $publisher->getHandler('category')->getCategoriesCount($sel_cat);
+ // creating the categories objects that are published
+ $subcatsObj = $publisher->getHandler('category')->getCategories(0, 0, $categoriesObj->categoryid());
+ $totalSCOnPage = count($subcatsObj);
+ echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
+ echo "<tr>";
+ echo "<td width='60' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATID . "</strong></td>";
+ echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATCOLNAME . "</strong></td>";
+ echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_SUBDESCRIPT . "</strong></td>";
+ echo "<td width='60' class='bg3' align='right'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>";
+ echo "</tr>";
+ if ($totalsubs > 0) {
+ foreach ($subcatsObj as $subcat) {
+ $modify = "<a href='category.php?op=mod&categoryid=" . $subcat->categoryid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_MODIFY . "' alt='" . _AM_PUBLISHER_MODIFY . "' /></a>";
+ $delete = "<a href='category.php?op=del&categoryid=" . $subcat->categoryid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETE . "' alt='" . _AM_PUBLISHER_DELETE . "' /></a>";
+ echo "<tr>";
+ echo "<td class='head' align='left'>" . $subcat->categoryid() . "</td>";
+ echo "<td class='even' align='left'><a href='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/category.php?categoryid=" . $subcat->categoryid() . "&parentid=" . $subcat->parentid() . "'>" . $subcat->name() . "</a></td>";
+ echo "<td class='even' align='left'>" . $subcat->description() . "</td>";
+ echo "<td class='even' align='right'> {$modify} {$delete} </td>";
+ echo "</tr>";
+ }
+ } else {
+ echo "<tr>";
+ echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOSUBCAT . "</td>";
+ echo "</tr>";
+ }
+ echo "</table>\n";
+ echo "<br />\n";
+ publisher_closeCollapsableBar('subcatstable', 'subcatsicon');
+
+ publisher_openCollapsableBar('bottomtable', 'bottomtableicon', _AM_PUBLISHER_CAT_ITEMS, _AM_PUBLISHER_CAT_ITEMS_DSC);
+ $startitem = PublisherRequest::getInt('startitem');
+ // Get the total number of published ITEMS
+ $totalitems = $publisher->getHandler('item')->getItemsCount($sel_cat, array(_PUBLISHER_STATUS_PUBLISHED));
+ // creating the items objects that are published
+ $itemsObj = $publisher->getHandler('item')->getAllPublished($publisher->getConfig('idxcat_perpage'), $startitem, $sel_cat);
+ $totalitemsOnPage = count($itemsObj);
+ $allcats = $publisher->getHandler('category')->getObjects(null, true);
+ echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
+ echo "<tr>";
+ echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>";
+ echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCOLNAME . "</strong></td>";
+ echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMDESC . "</strong></td>";
+ echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>";
+ echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>";
+ echo "</tr>";
+ if ($totalitems > 0) {
+ for ($i = 0; $i < $totalitemsOnPage; $i++) {
+ $categoryObj = $allcats[$itemsObj[$i]->categoryid()];
+ $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->itemid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>";
+ $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->itemid() . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>";
+ echo "<tr>";
+ echo "<td class='head' align='center'>" . $itemsObj[$i]->itemid() . "</td>";
+ echo "<td class='even' align='left'>" . $categoryObj->name() . "</td>";
+ echo "<td class='even' align='left'>" . $itemsObj[$i]->getitemLink() . "</td>";
+ echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub('s') . "</td>";
+ echo "<td class='even' align='center'> $modify $delete </td>";
+ echo "</tr>";
+ }
+ } else {
+ $itemid = -1;
+ echo "<tr>";
+ echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS . "</td>";
+ echo "</tr>";
+ }
+ echo "</table>\n";
+ echo "<br />\n";
+ $parentid = PublisherRequest::getInt('parentid');
+ $pagenav_extra_args = "op=mod&categoryid=$sel_cat&parentid=$parentid";
+ xoops_load('XoopsPageNav');
+ $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $startitem, 'startitem', $pagenav_extra_args);
+ echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
+ echo "<input type='button' name='button' onclick=\"location='item.php?op=mod&categoryid=" . $sel_cat . "'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> ";
+ echo "</div>";
+ }
+ //end of fx2024 code
+}
\ No newline at end of file
Property changes on: XoopsModules/publisher/releases/1.0/publisher/admin/category.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/publisher/releases/1.0/publisher/admin/clone.php
===================================================================
--- XoopsModules/publisher/releases/1.0/publisher/admin/clone.php (rev 0)
+++ XoopsModules/publisher/releases/1.0/publisher/admin/clone.php 2014-06-22 02:18:47 UTC (rev 12627)
@@ -0,0 +1,167 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package Publisher
+ * @since 1.0
+ * @author trabis <lus...@gm...>
+ * @version $Id$
+ */
+
+include_once dirname(__FILE__) . "/admin_header.php";
+
+publisher_cpHeader();
+//publisher_adminMenu(-1, _AM_PUBLISHER_CLONE);
+publisher_openCollapsableBar('clone', 'cloneicon', _AM_PUBLISHER_CLONE, _AM_PUBLISHER_CLONE_DSC);
+
+if (@$_POST['op'] == 'submit') {
+
+ if (!$GLOBALS['xoopsSecurity']->check()) {
+ redirect_header('clone.php', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
+ exit();
+ }
+
+ $clone = $_POST['clone'];
+
+ //check if name is valid
+ if (empty($clone) || preg_match('/[^a-zA-Z0-9\_\-]/', $clone)) {
+ redirect_header('clone.php', 3, sprintf(_AM_PUBLISHER_CLONE_INVALIDNAME, $clone));
+ exit();
+ }
+
+ // Check wether the cloned module exists or not
+ if ($clone && is_dir(XOOPS_ROOT_PATH . '/modules/' . $clone)) {
+ redirect_header('clone.php', 3, sprintf(_AM_PUBLISHER_CLONE_EXISTS, $clone));
+ }
+
+ $patterns = array(
+ strtolower(PUBLISHER_DIRNAME) => strtolower($clone),
+ strtoupper(PUBLISHER_DIRNAME) => strtoupper($clone),
+ ucfirst(strtolower(PUBLISHER_DIRNAME)) => ucfirst(strtolower($clone))
+ );
+
+ $patKeys = array_keys($patterns);
+ $patValues = array_values($patterns);
+ publisher_cloneFileFolder(PUBLISHER_ROOT_PATH);
+ $logocreated = publisher_createLogo(strtolower($clone));
+
+ $msg = "";
+ if (is_dir(XOOPS_ROOT_PATH . '/modules/' . strtolower($clone))) {
+ $msg .= sprintf(_AM_PUBLISHER_CLONE_CONGRAT, "<a href='" . XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin'>" . ucfirst(strtolower($clone)) . "</a>") . "<br />\n";
+ if (!$logocreated) {
+ $msg .= _AM_PUBLISHER_CLONE_IMAGEFAIL;
+ }
+ } else {
+ $msg .= _AM_PUBLISHER_CLONE_FAIL;
+ }
+ echo $msg;
+
+} else {
+ include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
+ $form = new XoopsThemeForm(sprintf(_AM_PUBLISHER_CLONE_TITLE, $publisher->getModule()->getVar('name', 'E')), 'clone', 'clone.php', 'post', true);
+ $clone = new XoopsFormText(_AM_PUBLISHER_CLONE_NAME, 'clone', 20, 20, '');
+ $clone->setDescription(_AM_PUBLISHER_CLONE_NAME_DSC);
+ $form->addElement($clone, true);
+ $form->addElement(new XoopsFormHidden('op', 'submit'));
+ $form->addElement(new XoopsFormButton('', '', _SUBMIT, 'submit'));
+ $form->display();
+}
+
+// End of collapsable bar
+publisher_closeCollapsableBar('clone', 'cloneicon');
+xoops_cp_footer();
+
+// work around for PHP < 5.0.x
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data, $file_append = false)
+ {
+ if ($fp = fopen($filename, (!$file_append ? 'w+' : 'a+'))) {
+ fputs($fp, $data);
+ fclose($fp);
+ }
+ }
+}
+
+// recursive clonning script
+function publisher_cloneFileFolder($path)
+{
+ global $patKeys;
+ global $patValues;
+
+ $newPath = str_replace($patKeys[0], $patValues[0], $path);
+
+ if (is_dir($path)) {
+ // create new dir
+ mkdir($newPath);
+
+ // check all files in dir, and process it
+ if ($handle = opendir($path)) {
+ while ($file = readdir($handle)) {
+ if ($file != '.' && $file != '..' && $file != '.svn') {
+ publisher_cloneFileFolder("{$path}/{$file}");
+ }
+ }
+ closedir($handle);
+ }
+ } else {
+
+ if (preg_match('/(.jpg|.gif|.png|.zip)$/i', $path)) {
+ // image
+ copy($path, $newPath);
+ } else {
+ // file, read it
+ $content = file_get_contents($path);
+ $content = str_replace($patKeys, $patValues, $content);
+ file_put_contents($newPath, $content);
+ }
+ }
+}
+
+function publisher_createLogo($dirname)
+{
+ if (!extension_loaded("gd")) {
+ return false;
+ } else {
+ $required_functions = array("imagecreatetruecolor", "imagecolorallocate", "imagefilledrectangle", "imagejpeg", "imagedestroy", "imageftbbox");
+ foreach ($required_functions as $func) {
+ if (!function_exists($func)) {
+ return false;
+ }
+ }
+ }
+
+ if (!file_exists($imageBase = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/module_logo.png") || !file_exists($font = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/VeraBd.ttf")) {
+ return false;
+ }
+
+ $imageModule = imagecreatefrompng($imageBase);
+
+ //Erase old text
+ $grey_color = imagecolorallocate($imageModule, 237, 237, 237);
+ imagefilledrectangle($imageModule, 5, 35, 85, 46, $grey_color);
+
+ // Write text
+ $text_color = imagecolorallocate($imageModule, 0, 0, 0);
+ $space_to_border = (80 - strlen($dirname) * 6.5) / 2;
+ imagefttext($imageModule, 8.5, 0, $space_to_border, 45, $text_color, $font, ucfirst($dirname), array());
+
+ // Set transparency color
+ $white = imagecolorallocatealpha($imageModule, 255, 255, 255, 127);
+ imagefill($imageModule, 0, 0, $white);
+ imagecolortransparent($imageModule, $white);
+ imagepng($imageModule, XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/module_logo.png");
+ imagedestroy($imageModule);
+ return true;
+}
+
+?>
\ No newline at end of file
Property changes on: XoopsModules/publisher/releases/1.0/publisher/admin/clone.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/publisher/releases/1.0/publisher/admin/file.php
===================================================================
--- XoopsModules/publisher/releases/1.0/publisher/admin/file.php (rev 0)
+++ XoopsModules/publisher/releases/1.0/publisher/admin/file.php 2014-06-22 02:18:47 UTC (rev 12627)
@@ -0,0 +1,163 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package Publisher
+ * @since 1.0
+ * @author trabis <lus...@gm...>
+ * @author The SmartFactory <www.smartfactory.ca>
+ * @version $Id$
+ */
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+$op = PublisherRequest::getString('op');
+
+function publisher_editFile($showmenu = false, $fileid = 0, $itemid = 0)
+{
+ $publisher = PublisherPublisher::getInstance();
+ include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
+
+ // if there is a parameter, and the id exists, retrieve data: we're editing a file
+ if ($fileid != 0) {
+
+ // Creating the File object
+ $fileObj = $publisher->getHandler('file')->get($fileid);
+
+ if ($fileObj->notLoaded()) {
+ redirect_header("javascript:history.go(-1)", 1, _AM_PUBLISHER_NOFILESELECTED);
+ exit();
+ }
+
+ if ($showmenu) {
+ //publisher_adminMenu(2, _AM_PUBLISHER_FILE . " > " . _AM_PUBLISHER_EDITING);
+ }
+
+ echo "<br />\n";
+ echo "<span style='color: #2F5376; font-weight: bold; font-size: 16px; margin: 6px 06 0 0; '>" . _AM_PUBLISHER_FILE_EDITING . "</span>";
+ echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_PUBLISHER_FILE_EDITING_DSC . "</span>";
+ publisher_openCollapsableBar('editfile', 'editfileicon', _AM_PUBLISHER_FILE_INFORMATIONS);
+ } else {
+ // there's no parameter, so we're adding an item
+ $fileObj = $publisher->getHandler('file')->create();
+ $fileObj->setVar('itemid', $itemid);
+ if ($showmenu) {
+ //publisher_adminMenu(2, _AM_PUBLISHER_FILE . " > " . _AM_PUBLISHER_FILE_ADD);
+ }
+ echo "<span style='color: #2F5376; font-weight: bold; font-size: 16px; margin: 6px 06 0 0; '>" . _AM_PUBLISHER_FILE_ADDING . "</span>";
+ echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_PUBLISHER_FILE_ADDING_DSC . "</span>";
+ publisher_openCollapsableBar('addfile', 'addfileicon', _AM_PUBLISHER_FILE_INFORMATIONS);
+ }
+
+ // FILES UPLOAD FORM
+ $files_form = $fileObj->getForm();
+ $files_form->display();
+
+ if ($fileid != 0) {
+ publisher_closeCollapsableBar('editfile', 'editfileicon');
+ } else {
+ publisher_closeCollapsableBar('addfile', 'addfileicon');
+ }
+
+}
+
+$false = false;
+/* -- Available operations -- */
+switch ($op) {
+ case "uploadfile";
+ publisher_uploadFile(false, true, $false);
+ exit;
+ break;
+
+ case "uploadanother";
+ publisher_uploadFile(true, true, $false);
+ exit;
+ break;
+
+ case "mod":
+ $fileid = isset($_GET['fileid']) ? $_GET['fileid'] : 0;...
[truncated message content] |
|
From: <be...@us...> - 2014-06-22 01:36:56
|
Revision: 12626
http://sourceforge.net/p/xoops/svn/12626
Author: beckmi
Date: 2014-06-22 01:36:49 +0000 (Sun, 22 Jun 2014)
Log Message:
-----------
- updated to XOOPS 2.5.7 version of jQuery UI Tabs (noo-b/mamba)
Modified Paths:
--------------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/ams.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/xnews.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/menu.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/funcs.js
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/category_items_sel.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/date_to_date.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/items_columns.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/items_menu.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/items_new.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/items_random_item.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/items_recent.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/items_spot.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/latest_files.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/latest_news.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/blocks/search.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/blockform.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/category.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/file.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/form/category.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/form/file.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/form/item.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/formdatetime.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/groupperm.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/item.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/metagen.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/mimetype.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/permission.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/publisher.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/rating.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/session.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/class/themetabform.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/docs/changelog.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/docs/install.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/footer.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/common.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/functions.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/notification.inc.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/plugin.tag.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/search.inc.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/seo.inc.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/include/seo_functions.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/item.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/language/english/admin.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/language/english/modinfo.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/makepdf.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/submit.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/blocks/publisher_items_spot.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/blocks/publisher_latest_news.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_addfile.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_full.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_list.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_summary.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_display_wfsection.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_header.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_item.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/templates/publisher_submit.tpl
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/thumb.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/xoops_version.php
Added Paths:
-----------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/tests/
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/tests/index.html
Removed Paths:
-------------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/css/jquery-ui-1.7.1.custom.css
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.core.js
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.tabs.js
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/tcpdf/
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/ams.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/ams.php 2014-06-21 18:15:34 UTC (rev 12625)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/ams.php 2014-06-22 01:36:49 UTC (rev 12626)
@@ -177,12 +177,12 @@
publisher_openCollapsableBar('amsimportgo', 'amsimportgoicon', sprintf(_AM_PUBLISHER_IMPORT_FROM, $importFromModuleName), _AM_PUBLISHER_IMPORT_RESULT);
$module_handler = xoops_gethandler('module');
- $moduleObj = $module_handler->getByDirname('ams');
- $ams_module_id = $moduleObj->getVar('mid');
+ $moduleObj = $module_handler->getByDirname('ams');
+ $ams_module_id = $moduleObj->getVar('mid');
$gperm_handler = xoops_gethandler('groupperm');
- $cnt_imported_cat = 0;
+ $cnt_imported_cat = 0;
$cnt_imported_articles = 0;
$parentId = $_POST['parent_category'];
@@ -197,13 +197,13 @@
$imgcat_handler =& xoops_gethandler('imagecategory');
// $criteria = new criteriaCombo;
- //\xA0get\xA0the\xA0total\xA0number\xA0of\xA0subcats\xA0for\xA0this\xA0category
-// \xA0\xA0\xA0\xA0$criteria\xA0=\xA0new\xA0CriteriaCompo();
-// \xA0\xA0\xA0\xA0$criteria->add(new\xA0Criteria('imagecategory',\xA0$catObj->getVar('cid'),\xA0'='));
-// \xA0\xA0\xA0\xA0$childCount\xA0=\xA0intval($mylinksCatHandler->getCount($criteria));
+// get the total number of subcats for this category
+// $criteria = new CriteriaCompo();
+// $criteria->add(new Criteria('imagecategory', $catObj->getVar('cid'), '='));
+// $childCount = intval($mylinksCatHandler->getCount($criteria));
-$criteria = new Criteria('imgcat_name', PUBLISHER_DIRNAME);
-$imageCategoryId = $imgcat_handler->getObjects($criteria);
+ $criteria = new Criteria('imgcat_name', PUBLISHER_DIRNAME);
+ $imageCategoryId = $imgcat_handler->getObjects($criteria);
// $criteria = new CriteriaCompo();
// $criteria->add(new Criteria("imagecategory", PUBLISHER_DIRNAME, "="));
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/xnews.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/xnews.php 2014-06-21 18:15:34 UTC (rev 12625)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/import/xnews.php 2014-06-22 01:36:49 UTC (rev 12626)
@@ -217,10 +217,10 @@
$imgcat_handler =& xoops_gethandler('imagecategory');
// $criteria = new criteriaCombo;
- //\xA0get\xA0the\xA0total\xA0number\xA0of\xA0subcats\xA0for\xA0this\xA0category
-// \xA0\xA0\xA0\xA0$criteria\xA0=\xA0new\xA0CriteriaCompo();
-// \xA0\xA0\xA0\xA0$criteria->add(new\xA0Criteria('imagecategory',\xA0$catObj->getVar('cid'),\xA0'='));
-// \xA0\xA0\xA0\xA0$childCount\xA0=\xA0intval($mylinksCatHandler->getCount($criteria));
+// get the total number of subcats for this category
+// $criteria = new CriteriaCompo();
+// $criteria->add(new Criteria('imagecategory', $catObj->getVar('cid'), '='));
+// $childCount = intval($mylinksCatHandler->getCount($criteria));
$criteria = new Criteria('imgcat_name', PUBLISHER_DIRNAME);
$imageCategoryId = $imgcat_handler->getObjects($criteria);
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/menu.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/menu.php 2014-06-21 18:15:34 UTC (rev 12625)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/admin/menu.php 2014-06-22 01:36:49 UTC (rev 12626)
@@ -19,7 +19,7 @@
* @version $Id: menu.php 10374 2012-12-12 23:39:48Z trabis $
*/
-defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined");
+// defined("XOOPS_ROOT_PATH") || die("XOOPS root path not defined");
$dirname = basename(dirname(dirname(__FILE__)));
$module_handler = xoops_gethandler('module');
Deleted: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/css/jquery-ui-1.7.1.custom.css
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/css/jquery-ui-1.7.1.custom.css 2014-06-21 18:15:34 UTC (rev 12625)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/css/jquery-ui-1.7.1.custom.css 2014-06-22 01:36:49 UTC (rev 12626)
@@ -1,1574 +0,0 @@
-/*
-* jQuery UI CSS Framework
-* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
-* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
-*/
-/* Layout helpers
-----------------------------------*/
-.ui-helper-hidden {
- display: none;
-}
-
-.ui-helper-hidden-accessible {
- position: absolute;
- left: -99999999px;
-}
-
-.ui-helper-reset {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- line-height: 1.3;
- text-decoration: none;
- font-size: 100%;
- list-style: none;
-}
-
-.ui-helper-clearfix:after {
- content: ".";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
-}
-
-.ui-helper-clearfix {
- display: inline-block;
-}
-
-/* required comment for clearfix to work in Opera \*/
-* html .ui-helper-clearfix {
- height: 1%;
-}
-
-.ui-helper-clearfix {
- display: block;
-}
-
-/* end clearfix */
-.ui-helper-zfix {
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- position: absolute;
- opacity: 0;
- filter: Alpha(Opacity = 0);
-}
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-disabled {
- cursor: default !important;
-}
-
-/* Icons
-----------------------------------*/
-/* states and images */
-.ui-icon {
- display: block;
- text-indent: -99999px;
- overflow: hidden;
- background-repeat: no-repeat;
-}
-
-/* Misc visuals
-----------------------------------*/
-/* Overlays */
-.ui-widget-overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
-}
-
-/*
-* jQuery UI CSS Framework
-* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
-* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
-* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
-*/
-/* Component containers
-----------------------------------*/
-.ui-widget {
- font-family: Verdana, Arial, sans-serif;
- font-size: 1.1em;
-}
-
-.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
- font-family: Verdana, Arial, sans-serif;
- font-size: 1em;
-}
-
-.ui-widget-content {
- border: 1px solid #aaaaaa;
- background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;
- color: #222222;
-}
-
-.ui-widget-content a {
- color: #222222;
-}
-
-.ui-widget-header {
- border: 1px solid #aaaaaa;
- background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;
- color: #222222;
- font-weight: bold;
-}
-
-.ui-widget-header a {
- color: #222222;
-}
-
-/* Interaction states
-----------------------------------*/
-.ui-state-default, .ui-widget-content .ui-state-default {
- border: 1px solid #d3d3d3;
- background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
- font-weight: normal;
- color: #555555;
- outline: none;
-}
-
-.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited {
- color: #555555;
- text-decoration: none;
- outline: none;
-}
-
-.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus {
- border: 1px solid #999999;
- background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;
- font-weight: normal;
- color: #212121;
- outline: none;
-}
-
-.ui-state-hover a, .ui-state-hover a:hover {
- color: #212121;
- text-decoration: none;
- outline: none;
-}
-
-.ui-state-active, .ui-widget-content .ui-state-active {
- border: 1px solid #aaaaaa;
- background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
- font-weight: normal;
- color: #212121;
- outline: none;
-}
-
-.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
- color: #212121;
- outline: none;
- text-decoration: none;
-}
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-highlight, .ui-widget-content .ui-state-highlight {
- border: 1px solid #fcefa1;
- background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;
- color: #363636;
-}
-
-.ui-state-highlight a, .ui-widget-content .ui-state-highlight a {
- color: #363636;
-}
-
-.ui-state-error, .ui-widget-content .ui-state-error {
- border: 1px solid #cd0a0a;
- background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;
- color: #cd0a0a;
-}
-
-.ui-state-error a, .ui-widget-content .ui-state-error a {
- color: #cd0a0a;
-}
-
-.ui-state-error-text, .ui-widget-content .ui-state-error-text {
- color: #cd0a0a;
-}
-
-.ui-state-disabled, .ui-widget-content .ui-state-disabled {
- opacity: .35;
- filter: Alpha(Opacity = 35);
- background-image: none;
-}
-
-.ui-priority-primary, .ui-widget-content .ui-priority-primary {
- font-weight: bold;
-}
-
-.ui-priority-secondary, .ui-widget-content .ui-priority-secondary {
- opacity: .7;
- filter: Alpha(Opacity = 70);
- font-weight: normal;
-}
-
-/* Icons
-----------------------------------*/
-/* states and images */
-.ui-icon {
- width: 16px;
- height: 16px;
- background-image: url(images/ui-icons_222222_256x240.png);
-}
-
-.ui-widget-content .ui-icon {
- background-image: url(images/ui-icons_222222_256x240.png);
-}
-
-.ui-widget-header .ui-icon {
- background-image: url(images/ui-icons_222222_256x240.png);
-}
-
-.ui-state-default .ui-icon {
- background-image: url(images/ui-icons_888888_256x240.png);
-}
-
-.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {
- background-image: url(images/ui-icons_454545_256x240.png);
-}
-
-.ui-state-active .ui-icon {
- background-image: url(images/ui-icons_454545_256x240.png);
-}
-
-.ui-state-highlight .ui-icon {
- background-image: url(images/ui-icons_2e83ff_256x240.png);
-}
-
-.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {
- background-image: url(images/ui-icons_cd0a0a_256x240.png);
-}
-
-/* positioning */
-.ui-icon-carat-1-n {
- background-position: 0 0;
-}
-
-.ui-icon-carat-1-ne {
- background-position: -16px 0;
-}
-
-.ui-icon-carat-1-e {
- background-position: -32px 0;
-}
-
-.ui-icon-carat-1-se {
- background-position: -48px 0;
-}
-
-.ui-icon-carat-1-s {
- background-position: -64px 0;
-}
-
-.ui-icon-carat-1-sw {
- background-position: -80px 0;
-}
-
-.ui-icon-carat-1-w {
- background-position: -96px 0;
-}
-
-.ui-icon-carat-1-nw {
- background-position: -112px 0;
-}
-
-.ui-icon-carat-2-n-s {
- background-position: -128px 0;
-}
-
-.ui-icon-carat-2-e-w {
- background-position: -144px 0;
-}
-
-.ui-icon-triangle-1-n {
- background-position: 0 -16px;
-}
-
-.ui-icon-triangle-1-ne {
- background-position: -16px -16px;
-}
-
-.ui-icon-triangle-1-e {
- background-position: -32px -16px;
-}
-
-.ui-icon-triangle-1-se {
- background-position: -48px -16px;
-}
-
-.ui-icon-triangle-1-s {
- background-position: -64px -16px;
-}
-
-.ui-icon-triangle-1-sw {
- background-position: -80px -16px;
-}
-
-.ui-icon-triangle-1-w {
- background-position: -96px -16px;
-}
-
-.ui-icon-triangle-1-nw {
- background-position: -112px -16px;
-}
-
-.ui-icon-triangle-2-n-s {
- background-position: -128px -16px;
-}
-
-.ui-icon-triangle-2-e-w {
- background-position: -144px -16px;
-}
-
-.ui-icon-arrow-1-n {
- background-position: 0 -32px;
-}
-
-.ui-icon-arrow-1-ne {
- background-position: -16px -32px;
-}
-
-.ui-icon-arrow-1-e {
- background-position: -32px -32px;
-}
-
-.ui-icon-arrow-1-se {
- background-position: -48px -32px;
-}
-
-.ui-icon-arrow-1-s {
- background-position: -64px -32px;
-}
-
-.ui-icon-arrow-1-sw {
- background-position: -80px -32px;
-}
-
-.ui-icon-arrow-1-w {
- background-position: -96px -32px;
-}
-
-.ui-icon-arrow-1-nw {
- background-position: -112px -32px;
-}
-
-.ui-icon-arrow-2-n-s {
- background-position: -128px -32px;
-}
-
-.ui-icon-arrow-2-ne-sw {
- background-position: -144px -32px;
-}
-
-.ui-icon-arrow-2-e-w {
- background-position: -160px -32px;
-}
-
-.ui-icon-arrow-2-se-nw {
- background-position: -176px -32px;
-}
-
-.ui-icon-arrowstop-1-n {
- background-position: -192px -32px;
-}
-
-.ui-icon-arrowstop-1-e {
- background-position: -208px -32px;
-}
-
-.ui-icon-arrowstop-1-s {
- background-position: -224px -32px;
-}
-
-.ui-icon-arrowstop-1-w {
- background-position: -240px -32px;
-}
-
-.ui-icon-arrowthick-1-n {
- background-position: 0 -48px;
-}
-
-.ui-icon-arrowthick-1-ne {
- background-position: -16px -48px;
-}
-
-.ui-icon-arrowthick-1-e {
- background-position: -32px -48px;
-}
-
-.ui-icon-arrowthick-1-se {
- background-position: -48px -48px;
-}
-
-.ui-icon-arrowthick-1-s {
- background-position: -64px -48px;
-}
-
-.ui-icon-arrowthick-1-sw {
- background-position: -80px -48px;
-}
-
-.ui-icon-arrowthick-1-w {
- background-position: -96px -48px;
-}
-
-.ui-icon-arrowthick-1-nw {
- background-position: -112px -48px;
-}
-
-.ui-icon-arrowthick-2-n-s {
- background-position: -128px -48px;
-}
-
-.ui-icon-arrowthick-2-ne-sw {
- background-position: -144px -48px;
-}
-
-.ui-icon-arrowthick-2-e-w {
- background-position: -160px -48px;
-}
-
-.ui-icon-arrowthick-2-se-nw {
- background-position: -176px -48px;
-}
-
-.ui-icon-arrowthickstop-1-n {
- background-position: -192px -48px;
-}
-
-.ui-icon-arrowthickstop-1-e {
- background-position: -208px -48px;
-}
-
-.ui-icon-arrowthickstop-1-s {
- background-position: -224px -48px;
-}
-
-.ui-icon-arrowthickstop-1-w {
- background-position: -240px -48px;
-}
-
-.ui-icon-arrowreturnthick-1-w {
- background-position: 0 -64px;
-}
-
-.ui-icon-arrowreturnthick-1-n {
- background-position: -16px -64px;
-}
-
-.ui-icon-arrowreturnthick-1-e {
- background-position: -32px -64px;
-}
-
-.ui-icon-arrowreturnthick-1-s {
- background-position: -48px -64px;
-}
-
-.ui-icon-arrowreturn-1-w {
- background-position: -64px -64px;
-}
-
-.ui-icon-arrowreturn-1-n {
- background-position: -80px -64px;
-}
-
-.ui-icon-arrowreturn-1-e {
- background-position: -96px -64px;
-}
-
-.ui-icon-arrowreturn-1-s {
- background-position: -112px -64px;
-}
-
-.ui-icon-arrowrefresh-1-w {
- background-position: -128px -64px;
-}
-
-.ui-icon-arrowrefresh-1-n {
- background-position: -144px -64px;
-}
-
-.ui-icon-arrowrefresh-1-e {
- background-position: -160px -64px;
-}
-
-.ui-icon-arrowrefresh-1-s {
- background-position: -176px -64px;
-}
-
-.ui-icon-arrow-4 {
- background-position: 0 -80px;
-}
-
-.ui-icon-arrow-4-diag {
- background-position: -16px -80px;
-}
-
-.ui-icon-extlink {
- background-position: -32px -80px;
-}
-
-.ui-icon-newwin {
- background-position: -48px -80px;
-}
-
-.ui-icon-refresh {
- background-position: -64px -80px;
-}
-
-.ui-icon-shuffle {
- background-position: -80px -80px;
-}
-
-.ui-icon-transfer-e-w {
- background-position: -96px -80px;
-}
-
-.ui-icon-transferthick-e-w {
- background-position: -112px -80px;
-}
-
-.ui-icon-folder-collapsed {
- background-position: 0 -96px;
-}
-
-.ui-icon-folder-open {
- background-position: -16px -96px;
-}
-
-.ui-icon-document {
- background-position: -32px -96px;
-}
-
-.ui-icon-document-b {
- background-position: -48px -96px;
-}
-
-.ui-icon-note {
- background-position: -64px -96px;
-}
-
-.ui-icon-mail-closed {
- background-position: -80px -96px;
-}
-
-.ui-icon-mail-open {
- background-position: -96px -96px;
-}
-
-.ui-icon-suitcase {
- background-position: -112px -96px;
-}
-
-.ui-icon-comment {
- background-position: -128px -96px;
-}
-
-.ui-icon-person {
- background-position: -144px -96px;
-}
-
-.ui-icon-print {
- background-position: -160px -96px;
-}
-
-.ui-icon-trash {
- background-position: -176px -96px;
-}
-
-.ui-icon-locked {
- background-position: -192px -96px;
-}
-
-.ui-icon-unlocked {
- background-position: -208px -96px;
-}
-
-.ui-icon-bookmark {
- background-position: -224px -96px;
-}
-
-.ui-icon-tag {
- background-position: -240px -96px;
-}
-
-.ui-icon-home {
- background-position: 0 -112px;
-}
-
-.ui-icon-flag {
- background-position: -16px -112px;
-}
-
-.ui-icon-calendar {
- background-position: -32px -112px;
-}
-
-.ui-icon-cart {
- background-position: -48px -112px;
-}
-
-.ui-icon-pencil {
- background-position: -64px -112px;
-}
-
-.ui-icon-clock {
- background-position: -80px -112px;
-}
-
-.ui-icon-disk {
- background-position: -96px -112px;
-}
-
-.ui-icon-calculator {
- background-position: -112px -112px;
-}
-
-.ui-icon-zoomin {
- background-position: -128px -112px;
-}
-
-.ui-icon-zoomout {
- background-position: -144px -112px;
-}
-
-.ui-icon-search {
- background-position: -160px -112px;
-}
-
-.ui-icon-wrench {
- background-position: -176px -112px;
-}
-
-.ui-icon-gear {
- background-position: -192px -112px;
-}
-
-.ui-icon-heart {
- background-position: -208px -112px;
-}
-
-.ui-icon-star {
- background-position: -224px -112px;
-}
-
-.ui-icon-link {
- background-position: -240px -112px;
-}
-
-.ui-icon-cancel {
- background-position: 0 -128px;
-}
-
-.ui-icon-plus {
- background-position: -16px -128px;
-}
-
-.ui-icon-plusthick {
- background-position: -32px -128px;
-}
-
-.ui-icon-minus {
- background-position: -48px -128px;
-}
-
-.ui-icon-minusthick {
- background-position: -64px -128px;
-}
-
-.ui-icon-close {
- background-position: -80px -128px;
-}
-
-.ui-icon-closethick {
- background-position: -96px -128px;
-}
-
-.ui-icon-key {
- background-position: -112px -128px;
-}
-
-.ui-icon-lightbulb {
- background-position: -128px -128px;
-}
-
-.ui-icon-scissors {
- background-position: -144px -128px;
-}
-
-.ui-icon-clipboard {
- background-position: -160px -128px;
-}
-
-.ui-icon-copy {
- background-position: -176px -128px;
-}
-
-.ui-icon-contact {
- background-position: -192px -128px;
-}
-
-.ui-icon-image {
- background-position: -208px -128px;
-}
-
-.ui-icon-video {
- background-position: -224px -128px;
-}
-
-.ui-icon-script {
- background-position: -240px -128px;
-}
-
-.ui-icon-alert {
- background-position: 0 -144px;
-}
-
-.ui-icon-info {
- background-position: -16px -144px;
-}
-
-.ui-icon-notice {
- background-position: -32px -144px;
-}
-
-.ui-icon-help {
- background-position: -48px -144px;
-}
-
-.ui-icon-check {
- background-position: -64px -144px;
-}
-
-.ui-icon-bullet {
- background-position: -80px -144px;
-}
-
-.ui-icon-radio-off {
- background-position: -96px -144px;
-}
-
-.ui-icon-radio-on {
- background-position: -112px -144px;
-}
-
-.ui-icon-pin-w {
- background-position: -128px -144px;
-}
-
-.ui-icon-pin-s {
- background-position: -144px -144px;
-}
-
-.ui-icon-play {
- background-position: 0 -160px;
-}
-
-.ui-icon-pause {
- background-position: -16px -160px;
-}
-
-.ui-icon-seek-next {
- background-position: -32px -160px;
-}
-
-.ui-icon-seek-prev {
- background-position: -48px -160px;
-}
-
-.ui-icon-seek-end {
- background-position: -64px -160px;
-}
-
-.ui-icon-seek-first {
- background-position: -80px -160px;
-}
-
-.ui-icon-stop {
- background-position: -96px -160px;
-}
-
-.ui-icon-eject {
- background-position: -112px -160px;
-}
-
-.ui-icon-volume-off {
- background-position: -128px -160px;
-}
-
-.ui-icon-volume-on {
- background-position: -144px -160px;
-}
-
-.ui-icon-power {
- background-position: 0 -176px;
-}
-
-.ui-icon-signal-diag {
- background-position: -16px -176px;
-}
-
-.ui-icon-signal {
- background-position: -32px -176px;
-}
-
-.ui-icon-battery-0 {
- background-position: -48px -176px;
-}
-
-.ui-icon-battery-1 {
- background-position: -64px -176px;
-}
-
-.ui-icon-battery-2 {
- background-position: -80px -176px;
-}
-
-.ui-icon-battery-3 {
- background-position: -96px -176px;
-}
-
-.ui-icon-circle-plus {
- background-position: 0 -192px;
-}
-
-.ui-icon-circle-minus {
- background-position: -16px -192px;
-}
-
-.ui-icon-circle-close {
- background-position: -32px -192px;
-}
-
-.ui-icon-circle-triangle-e {
- background-position: -48px -192px;
-}
-
-.ui-icon-circle-triangle-s {
- background-position: -64px -192px;
-}
-
-.ui-icon-circle-triangle-w {
- background-position: -80px -192px;
-}
-
-.ui-icon-circle-triangle-n {
- background-position: -96px -192px;
-}
-
-.ui-icon-circle-arrow-e {
- background-position: -112px -192px;
-}
-
-.ui-icon-circle-arrow-s {
- background-position: -128px -192px;
-}
-
-.ui-icon-circle-arrow-w {
- background-position: -144px -192px;
-}
-
-.ui-icon-circle-arrow-n {
- background-position: -160px -192px;
-}
-
-.ui-icon-circle-zoomin {
- background-position: -176px -192px;
-}
-
-.ui-icon-circle-zoomout {
- background-position: -192px -192px;
-}
-
-.ui-icon-circle-check {
- background-position: -208px -192px;
-}
-
-.ui-icon-circlesmall-plus {
- background-position: 0 -208px;
-}
-
-.ui-icon-circlesmall-minus {
- background-position: -16px -208px;
-}
-
-.ui-icon-circlesmall-close {
- background-position: -32px -208px;
-}
-
-.ui-icon-squaresmall-plus {
- background-position: -48px -208px;
-}
-
-.ui-icon-squaresmall-minus {
- background-position: -64px -208px;
-}
-
-.ui-icon-squaresmall-close {
- background-position: -80px -208px;
-}
-
-.ui-icon-grip-dotted-vertical {
- background-position: 0 -224px;
-}
-
-.ui-icon-grip-dotted-horizontal {
- background-position: -16px -224px;
-}
-
-.ui-icon-grip-solid-vertical {
- background-position: -32px -224px;
-}
-
-.ui-icon-grip-solid-horizontal {
- background-position: -48px -224px;
-}
-
-.ui-icon-gripsmall-diagonal-se {
- background-position: -64px -224px;
-}
-
-.ui-icon-grip-diagonal-se {
- background-position: -80px -224px;
-}
-
-/* Misc visuals
-----------------------------------*/
-/* Corner radius */
-.ui-corner-tl {
- -moz-border-radius-topleft: 4px;
- -webkit-border-top-left-radius: 4px;
-}
-
-.ui-corner-tr {
- -moz-border-radius-topright: 4px;
- -webkit-border-top-right-radius: 4px;
-}
-
-.ui-corner-bl {
- -moz-border-radius-bottomleft: 4px;
- -webkit-border-bottom-left-radius: 4px;
-}
-
-.ui-corner-br {
- -moz-border-radius-bottomright: 4px;
- -webkit-border-bottom-right-radius: 4px;
-}
-
-.ui-corner-top {
- -moz-border-radius-topleft: 4px;
- -webkit-border-top-left-radius: 4px;
- -moz-border-radius-topright: 4px;
- -webkit-border-top-right-radius: 4px;
-}
-
-.ui-corner-bottom {
- -moz-border-radius-bottomleft: 4px;
- -webkit-border-bottom-left-radius: 4px;
- -moz-border-radius-bottomright: 4px;
- -webkit-border-bottom-right-radius: 4px;
-}
-
-.ui-corner-right {
- -moz-border-radius-topright: 4px;
- -webkit-border-top-right-radius: 4px;
- -moz-border-radius-bottomright: 4px;
- -webkit-border-bottom-right-radius: 4px;
-}
-
-.ui-corner-left {
- -moz-border-radius-topleft: 4px;
- -webkit-border-top-left-radius: 4px;
- -moz-border-radius-bottomleft: 4px;
- -webkit-border-bottom-left-radius: 4px;
-}
-
-.ui-corner-all {
- -moz-border-radius: 4px;
- -webkit-border-radius: 4px;
-}
-
-/* Overlays */
-.ui-widget-overlay {
- background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
- opacity: .30;
- filter: Alpha(Opacity = 30);
-}
-
-.ui-widget-shadow {
- margin: -8px 0 0 -8px;
- padding: 8px;
- background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
- opacity: .30;
- filter: Alpha(Opacity = 30);
- -moz-border-radius: 8px;
- -webkit-border-radius: 8px;
-}
-
-/* Accordion
-----------------------------------*/
-.ui-accordion .ui-accordion-header {
- cursor: pointer;
- position: relative;
- margin-top: 1px;
- zoom: 1;
-}
-
-.ui-accordion .ui-accordion-li-fix {
- display: inline;
-}
-
-.ui-accordion .ui-accordion-header-active {
- border-bottom: 0 !important;
-}
-
-.ui-accordion .ui-accordion-header a {
- display: block;
- font-size: 1em;
- padding: .5em .5em .5em 2.2em;
-}
-
-.ui-accordion .ui-accordion-header .ui-icon {
- position: absolute;
- left: .5em;
- top: 50%;
- margin-top: -8px;
-}
-
-.ui-accordion .ui-accordion-content {
- padding: 1em 2.2em;
- border-top: 0;
- margin-top: -2px;
- position: relative;
- top: 1px;
- margin-bottom: 2px;
- overflow: auto;
- display: none;
-}
-
-.ui-accordion .ui-accordion-content-active {
- display: block;
-}
-
-/* Datepicker
-----------------------------------*/
-.ui-datepicker {
- width: 17em;
- padding: .2em .2em 0;
-}
-
-.ui-datepicker .ui-datepicker-header {
- position: relative;
- padding: .2em 0;
-}
-
-.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
- position: absolute;
- top: 2px;
- width: 1.8em;
- height: 1.8em;
-}
-
-.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover {
- top: 1px;
-}
-
-.ui-datepicker .ui-datepicker-prev {
- left: 2px;
-}
-
-.ui-datepicker .ui-datepicker-next {
- right: 2px;
-}
-
-.ui-datepicker .ui-datepicker-prev-hover {
- left: 1px;
-}
-
-.ui-datepicker .ui-datepicker-next-hover {
- right: 1px;
-}
-
-.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
- display: block;
- position: absolute;
- left: 50%;
- margin-left: -8px;
- top: 50%;
- margin-top: -8px;
-}
-
-.ui-datepicker .ui-datepicker-title {
- margin: 0 2.3em;
- line-height: 1.8em;
- text-align: center;
-}
-
-.ui-datepicker .ui-datepicker-title select {
- float: left;
- font-size: 1em;
- margin: 1px 0;
-}
-
-.ui-datepicker select.ui-datepicker-month-year {
- width: 100%;
-}
-
-.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
- width: 49%;
-}
-
-.ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
- float: right;
-}
-
-.ui-datepicker table {
- width: 100%;
- font-size: .9em;
- border-collapse: collapse;
- margin: 0 0 .4em;
-}
-
-.ui-datepicker th {
- padding: .7em .3em;
- text-align: center;
- font-weight: bold;
- border: 0;
-}
-
-.ui-datepicker td {
- border: 0;
- padding: 1px;
-}
-
-.ui-datepicker td span, .ui-datepicker td a {
- display: block;
- padding: .2em;
- text-align: right;
- text-decoration: none;
-}
-
-.ui-datepicker .ui-datepicker-buttonpane {
- background-image: none;
- margin: .7em 0 0 0;
- padding: 0 .2em;
- border-left: 0;
- border-right: 0;
- border-bottom: 0;
-}
-
-.ui-datepicker .ui-datepicker-buttonpane button {
- float: right;
- margin: .5em .2em .4em;
- cursor: pointer;
- padding: .2em .6em .3em .6em;
- width: auto;
- overflow: visible;
-}
-
-.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
- float: left;
-}
-
-/* with multiple calendars */
-.ui-datepicker.ui-datepicker-multi {
- width: auto;
-}
-
-.ui-datepicker-multi .ui-datepicker-group {
- float: left;
-}
-
-.ui-datepicker-multi .ui-datepicker-group table {
- width: 95%;
- margin: 0 auto .4em;
-}
-
-.ui-datepicker-multi-2 .ui-datepicker-group {
- width: 50%;
-}
-
-.ui-datepicker-multi-3 .ui-datepicker-group {
- width: 33.3%;
-}
-
-.ui-datepicker-multi-4 .ui-datepicker-group {
- width: 25%;
-}
-
-.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header {
- border-left-width: 0;
-}
-
-.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
- border-left-width: 0;
-}
-
-.ui-datepicker-multi .ui-datepicker-buttonpane {
- clear: left;
-}
-
-.ui-datepicker-row-break {
- clear: both;
- width: 100%;
-}
-
-/* RTL support */
-.ui-datepicker-rtl {
- direction: rtl;
-}
-
-.ui-datepicker-rtl .ui-datepicker-prev {
- right: 2px;
- left: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-next {
- left: 2px;
- right: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-prev:hover {
- right: 1px;
- left: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-next:hover {
- left: 1px;
- right: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-buttonpane {
- clear: right;
-}
-
-.ui-datepicker-rtl .ui-datepicker-buttonpane button {
- float: left;
-}
-
-.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current {
- float: right;
-}
-
-.ui-datepicker-rtl .ui-datepicker-group {
- float: right;
-}
-
-.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header {
- border-right-width: 0;
- border-left-width: 1px;
-}
-
-.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
- border-right-width: 0;
- border-left-width: 1px;
-}
-
-/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
-.ui-datepicker-cover {
- display: none; /*sorry for IE5*/
- display /**/: block; /*sorry for IE5*/
- position: absolute; /*must have*/
- z-index: -1; /*must have*/
- filter: mask(); /*must have*/
- top: -4px; /*must have*/
- left: -4px; /*must have*/
- width: 200px; /*must have*/
- height: 200px; /*must have*/
-}
-
-/* Dialog
-----------------------------------*/
-.ui-dialog {
- position: relative;
- padding: .2em;
- width: 300px;
-}
-
-.ui-dialog .ui-dialog-titlebar {
- padding: .5em .3em .3em 1em;
- position: relative;
-}
-
-.ui-dialog .ui-dialog-title {
- float: left;
- margin: .1em 0 .2em;
-}
-
-.ui-dialog .ui-dialog-titlebar-close {
- position: absolute;
- right: .3em;
- top: 50%;
- width: 19px;
- margin: -10px 0 0 0;
- padding: 1px;
- height: 18px;
-}
-
-.ui-dialog .ui-dialog-titlebar-close span {
- display: block;
- margin: 1px;
-}
-
-.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus {
- padding: 0;
-}
-
-.ui-dialog .ui-dialog-content {
- border: 0;
- padding: .5em 1em;
- background: none;
- overflow: auto;
- zoom: 1;
-}
-
-.ui-dialog .ui-dialog-buttonpane {
- text-align: left;
- border-width: 1px 0 0 0;
- background-image: none;
- margin: .5em 0 0 0;
- padding: .3em 1em .5em .4em;
-}
-
-.ui-dialog .ui-dialog-buttonpane button {
- float: right;
- margin: .5em .4em .5em 0;
- cursor: pointer;
- padding: .2em .6em .3em .6em;
- line-height: 1.4em;
- width: auto;
- overflow: visible;
-}
-
-.ui-dialog .ui-resizable-se {
- width: 14px;
- height: 14px;
- right: 3px;
- bottom: 3px;
-}
-
-.ui-draggable .ui-dialog-titlebar {
- cursor: move;
-}
-
-/* Progressbar
-----------------------------------*/
-.ui-progressbar {
- height: 2em;
- text-align: left;
-}
-
-.ui-progressbar .ui-progressbar-value {
- margin: -1px;
- height: 100%;
-}
-
-/* Resizable
-----------------------------------*/
-.ui-resizable {
- position: relative;
-}
-
-.ui-resizable-handle {
- position: absolute;
- font-size: 0.1px;
- z-index: 99999;
- display: block;
-}
-
-.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle {
- display: none;
-}
-
-.ui-resizable-n {
- cursor: n-resize;
- height: 7px;
- width: 100%;
- top: -5px;
- left: 0px;
-}
-
-.ui-resizable-s {
- cursor: s-resize;
- height: 7px;
- width: 100%;
- bottom: -5px;
- left: 0px;
-}
-
-.ui-resizable-e {
- cursor: e-resize;
- width: 7px;
- right: -5px;
- top: 0px;
- height: 100%;
-}
-
-.ui-resizable-w {
- cursor: w-resize;
- width: 7px;
- left: -5px;
- top: 0px;
- height: 100%;
-}
-
-.ui-resizable-se {
- cursor: se-resize;
- width: 12px;
- height: 12px;
- right: 1px;
- bottom: 1px;
-}
-
-.ui-resizable-sw {
- cursor: sw-resize;
- width: 9px;
- height: 9px;
- left: -5px;
- bottom: -5px;
-}
-
-.ui-resizable-nw {
- cursor: nw-resize;
- width: 9px;
- height: 9px;
- left: -5px;
- top: -5px;
-}
-
-.ui-resizable-ne {
- cursor: ne-resize;
- width: 9px;
- height: 9px;
- right: -5px;
- top: -5px;
-}
-
-/* Slider
-----------------------------------*/
-.ui-slider {
- position: relative;
- text-align: left;
-}
-
-.ui-slider .ui-slider-handle {
- position: absolute;
- z-index: 2;
- width: 1.2em;
- height: 1.2em;
- cursor: default;
-}
-
-.ui-slider .ui-slider-range {
- position: absolute;
- z-index: 1;
- font-size: .7em;
- display: block;
- border: 0;
-}
-
-.ui-slider-horizontal {
- height: .8em;
-}
-
-.ui-slider-horizontal .ui-slider-handle {
- top: -.3em;
- margin-left: -.6em;
-}
-
-.ui-slider-horizontal .ui-slider-range {
- top: 0;
- height: 100%;
-}
-
-.ui-slider-horizontal .ui-slider-range-min {
- left: 0;
-}
-
-.ui-slider-horizontal .ui-slider-range-max {
- right: 0;
-}
-
-.ui-slider-vertical {
- width: .8em;
- height: 100px;
-}
-
-.ui-slider-vertical .ui-slider-handle {
- left: -.3em;
- margin-left: 0;
- margin-bottom: -.6em;
-}
-
-.ui-slider-vertical .ui-slider-range {
- left: 0;
- width: 100%;
-}
-
-.ui-slider-vertical .ui-slider-range-min {
- bottom: 0;
-}
-
-.ui-slider-vertical .ui-slider-range-max {
- top: 0;
-}
-
-/* Tabs
-----------------------------------*/
-.ui-tabs {
- padding: .2em;
- zoom: 1;
-}
-
-.ui-tabs .ui-tabs-nav {
- list-style: none;
- position: relative;
- padding: .2em .2em 0;
-}
-
-.ui-tabs .ui-tabs-nav li {
- position: relative;
- float: left;
- border-bottom-width: 0 !important;
- margin: 0 .2em -1px 0;
- padding: 0;
- list-style: none;
-}
-
-.ui-tabs .ui-tabs-nav li a {
- float: left;
- text-decoration: none;
- padding: .5em 1em;
-}
-
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
- padding-bottom: 1px;
- border-bottom-width: 0;
-}
-
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a {
- cursor: text;
-}
-
-.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
- cursor: pointer;
-}
-
-/* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
-.ui-tabs .ui-tabs-panel {
- padding: 1em 1.4em;
- display: block;
- border-width: 0;
- background: none;
-}
-
-.ui-tabs .ui-tabs-hide {
- display: none !important;
-}
\ No newline at end of file
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/funcs.js
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/funcs.js 2014-06-21 18:15:34 UTC (rev 12625)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/funcs.js 2014-06-22 01:36:49 UTC (rev 12626)
@@ -153,9 +153,9 @@
}
var iconClose = new Image();
-iconClose.src = '../images/links/close12.gif';
+iconClose.src = '../assets/images/links/close12.gif';
var iconOpen = new Image();
-iconOpen.src = '../images/links/open12.gif';
+iconOpen.src = '../assets/images/links/open12.gif';
function toggleIcon ( iconName )
{
@@ -165,4 +165,4 @@
document.images[iconName].src = window.iconOpen.src;
}
return;
-}
\ No newline at end of file
+}
Deleted: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.core.js
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.core.js 2014-06-21 18:15:34 UTC (rev 12625)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.core.js 2014-06-22 01:36:49 UTC (rev 12626)
@@ -1,519 +0,0 @@
-/*
- * jQuery UI 1.7.1
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI
- */
-;jQuery.ui || (function($) {
-
-var _remove = $.fn.remove,
- isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9);
-
-//Helper functions and ui object
-$.ui = {
- version: "1.7.1",
-
- // $.ui.plugin is deprecated. Use the proxy pattern instead.
- plugin: {
- add: function(module, option, set) {
- var proto = $.ui[module].prototype;
- for(var i in set) {
- proto.plugins[i] = proto.plugins[i] || [];
- proto.plugins[i].push([option, set[i]]);
- }
- },
- call: function(instance, name, args) {
- var set = instance.plugins[name];
- if(!set || !instance.element[0].parentNode) { return; }
-
- for (var i = 0; i < set.length; i++) {
- if (instance.options[set[i][0]]) {
- set[i][1].apply(instance.element, args);
- }
- }
- }
- },
-
- contains: function(a, b) {
- return document.compareDocumentPosition
- ? a.compareDocumentPosition(b) & 16
- : a !== b && a.contains(b);
- },
-
- hasScroll: function(el, a) {
-
- //If overflow is hidden, the element might have extra content, but the user wants to hide it
- if ($(el).css('overflow') == 'hidden') { return false; }
-
- var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop',
- has = false;
-
- if (el[scroll] > 0) { return true; }
-
- // TODO: determine which cases actually cause this to happen
- // if the element doesn't have the scroll set, see if it's possible to
- // set the scroll
- el[scroll] = 1;
- has = (el[scroll] > 0);
- el[scroll] = 0;
- return has;
- },
-
- isOverAxis: function(x, reference, size) {
- //Determines when x coordinate is over "b" element axis
- return (x > reference) && (x < (reference + size));
- },
-
- isOver: function(y, x, top, left, height, width) {
- //Determines when x, y coordinates is over "b" element
- return $.ui.isOverAxis(y, top, height) && $.ui.isOverAxis(x, left, width);
- },
-
- keyCode: {
- BACKSPACE: 8,
- CAPS_LOCK: 20,
- COMMA: 188,
- CONTROL: 17,
- DELETE: 46,
- DOWN: 40,
- END: 35,
- ENTER: 13,
- ESCAPE: 27,
- HOME: 36,
- INSERT: 45,
- LEFT: 37,
- NUMPAD_ADD: 107,
- NUMPAD_DECIMAL: 110,
- NUMPAD_DIVIDE: 111,
- NUMPAD_ENTER: 108,
- NUMPAD_MULTIPLY: 106,
- NUMPAD_SUBTRACT: 109,
- PAGE_DOWN: 34,
- PAGE_UP: 33,
- PERIOD: 190,
- RIGHT: 39,
- SHIFT: 16,
- SPACE: 32,
- TAB: 9,
- UP: 38
- }
-};
-
-// WAI-ARIA normalization
-if (isFF2) {
- var attr = $.attr,
- removeAttr = $.fn.removeAttr,
- ariaNS = "http://www.w3.org/2005/07/aaa",
- ariaState = /^aria-/,
- ariaRole = /^wairole:/;
-
- $.attr = function(elem, name, value) {
- var set = value !== undefined;
-
- return (name == 'role'
- ? (set
- ? attr.call(this, elem, name, "wairole:" + value)
- : (attr.apply(this, arguments) || "").replace(ariaRole, ""))
- : (ariaState.test(name)
- ? (set
- ? elem.setAttributeNS(ariaNS,
- name.replace(ariaState, "aaa:"), value)
- : attr.call(this, elem, name.replace(ariaState, "aaa:")))
- : attr.apply(this, arguments)));
- };
-
- $.fn.removeAttr = function(name) {
- return (ariaState.test(name)
- ? this.each(function() {
- this.removeAttributeNS(ariaNS, name.replace(ariaState, ""));
- }) : removeAttr.call(this, name));
- };
-}
-
-//jQuery plugins
-$.fn.extend({
- remove: function() {
- // Safari has a native remove event which actually removes DOM elements,
- // so we have to use triggerHandler instead of trigger (#3037).
- $("*", this).add(this).each(function() {
- $(this).triggerHandler("remove");
- });
- return _remove.apply(this, arguments );
- },
-
- enableSelection: function() {
- return this
- .attr('unselectable', 'off')
- .css('MozUserSelect', '')
- .unbind('selectstart.ui');
- },
-
- disableSelection: function() {
- return this
- .attr('unselectable', 'on')
- .css('MozUserSelect', 'none')
- .bind('selectstart.ui', function() { return false; });
- },
-
- scrollParent: function() {
- var scrollParent;
- if(($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) {
- scrollParent = this.parents().filter(function() {
- return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));
- }).eq(0);
- } else {
- scrollParent = this.parents().filter(function() {
- return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));
- }).eq(0);
- }
-
- return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;
- }
-});
-
-
-//Additional selectors
-$.extend($.expr[':'], {
- data: function(elem, i, match) {
- return !!$.data(elem, match[3]);
- },
-
- focusable: function(element) {
- var nodeName = element.nodeName.toLowerCase(),
- tabIndex = $.attr(element, 'tabindex');
- return (/input|select|textarea|button|object/.test(nodeName)
- ? !element.disabled
- : 'a' == nodeName || 'area' == nodeName
- ? element.href || !isNaN(tabIndex)
- : !isNaN(tabIndex))
- // the element and all of its ancestors must be visible
- // the browser may report that the area is hidden
- && !$(element)['area' == nodeName ? 'parents' : 'closest'](':hidden').length;
- },
-
- tabbable: function(element) {
- var tabIndex = $.attr(element, 'tabindex');
- return (isNaN(tabIndex) || tabIndex >= 0) && $(element).is(':focusable');
- }
-});
-
-
-// $.widget is a factory to create jQuery plugins
-// taking some boilerplate code out of the plugin code
-function getter(namespace, plugin, method, args) {
- function getMethods(type) {
- var methods = $[namespace][plugin][type] || [];
- return (typeof methods == 'string' ? methods.split(/,?\s+/) : methods);
- }
-
- var methods = getMethods('getter');
- if (args.length == 1 && typeof args[0] == 'string') {
- methods = methods.concat(getMethods('getterSetter'));
- }
- return ($.inArray(method, methods) != -1);
-}
-
-$.widget = function(name, prototype) {
- var namespace = name.split(".")[0];
- name = name.split(".")[1];
-
- // create plugin method
- $.fn[name] = function(options) {
- var isMethodCall = (typeof options == 'string'),
- args = Array.prototype.slice.call(arguments, 1);
-
- // prevent calls to internal methods
- if (isMethodCall && options.substring(0, 1) == '_') {
- return this;
- }
-
- // handle getter methods
- if (isMethodCall && getter(namespace, name, options, args)) {
- var instance = $.data(this[0], name);
- return (instance ? instance[options].apply(instance, args)
- : undefined);
- }
-
- // handle initialization and non-getter methods
- return this.each(function() {
- var instance = $.data(this, name);
-
- // constructor
- (!instance && !isMethodCall &&
- $.data(this, name, new $[namespace][name](this, options))._init());
-
- // method call
- (instance && isMethodCall && $.isFunction(instance[options]) &&
- instance[options].apply(instance, args));
- });
- };
-
- // create widget constructor
- $[namespace] = $[namespace] || {};
- $[namespace][name] = function(element, options) {
- var self = this;
-
- this.namespace = namespace;
- this.widgetName = name;
- this.widgetEventPrefix = $[namespace][name].eventPrefix || name;
- this.widgetBaseClass = namespace + '-' + name;
-
- this.options = $.extend({},
- $.widget.defaults,
- $[namespace][name].defaults,
- $.metadata && $.metadata.get(element)[name],
- options);
-
- this.element = $(element)
- .bind('setData.' + name, function(event, key, value) {
- if (event.target == element) {
- return self._setData(key, value);
- }
- })
- .bind('getData.' + name, function(event, key) {
- if (event.target == element) {
- return self._getData(key);
- }
- })
- .bind('remove', function() {
- return self.destroy();
- });
- };
-
- // add widget prototype
- $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype);
-
- // TODO: merge getter and getterSetter properties from widget prototype
- // and plugin prototype
- $[namespace][name].getterSetter = 'option';
-};
-
-$.widget.prototype = {
- _init: function() {},
- destroy: function() {
- this.element.removeData(this.widgetName)
- .removeClass(this.widgetBaseClass + '-disabled' + ' ' + this.namespace + '-state-disabled')
- .removeAttr('aria-disabled');
- },
-
- option: function(key, value) {
- var options = key,
- self = this;
-
- if (typeof key == "string") {
- if (value === undefined) {
- return this._getData(key);
- }
- options = {};
- options[key] = value;
- }
-
- $.each(options, function(key, value) {
- self._setData(key, value);
- });
- },
- _getData: function(key) {
- return this.options[key];
- },
- _setData: function(key, value) {
- this.options[key] = value;
-
- if (key == 'disabled') {
- this.element
- [value ? 'addClass' : 'removeClass'](
- this.widgetBaseClass + '-disabled' + ' ' +
- this.namespace + '-state-disabled')
- .attr("aria-disabled", value);
- }
- },
-
- enable: function() {
- this._setData('disabled', false);
- },
- disable: function() {
- this._setData('disabled', true);
- },
-
- _trigger: function(type, event, data) {
- var callback = this.options[type],
- eventName = (type == this.widgetEventPrefix
- ? type : this.widgetEventPrefix + type);
-
- event = $.Event(event);
- event.type = eventName;
-
- // copy original event properties over to the new event
- // this would happen if we could call $.event.fix instead of $.Event
- // but we don't have a way to force an event to be fixed multiple times
- if (event.originalEvent) {
- for (var i = $.event.props.length, prop; i;) {
- prop = $.event.props[--i];
- event[prop] = event.originalEvent[prop];
- }
- }
-
- this.element.trigger(event, data);
-
- return !($.isFunction(callback) && callback.call(this.element[0], event, data) === false
- || event.isDefaultPrevented());
- }
-};
-
-$.widget.defaults = {
- disabled: false
-};
-
-
-/** Mouse Interaction Plugin **/
-
-$.ui.mouse = {
- _mouseInit: function() {
- var self = this;
-
- this.element
- .bind('mousedown.'+this.widgetName, function(event) {
- return self._mouseDown(event);
- })
- .bind('click.'+this.widgetName, function(event) {
- if(self._preventClickEvent) {
- self._preventClickEvent = false;
- event.stopImmediatePropagation();
- return false;
- }
- });
-
- // Prevent text selection in IE
- if ($.browser.msie) {
- this._mouseUnselectable = this.element.attr('unselectable');
- this.element.attr('unselectable', 'on');
- }
-
- this.started = false;
- },
-
- // TODO: make sure destroying one instance of mouse doesn't mess with
- // other instances of mouse
- _mouseDestroy: function() {
- this.element.unbind('.'+this.widgetName);
-
- // Restore text selection in IE
- ($.browser.msie
- && this.element.attr('unselectable', this._mouseUnselectable));
- },
-
- _mouseDown: function(event) {
- // don't let more than one widget handle mouseStart
- // TODO: figure out why we have to use originalEvent
- event.originalEvent = event.originalEvent || {};
- if (event.originalEvent.mouseHandled) { return; }
-
- // we may have missed mouseup (out of window)
- (this._mouseStarted && this._mouseUp(event));
-
- this._mouseDownEvent = event;
-
- var self = this,
- btnIsLeft = (event.which == 1),
- elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).parents().add(event.target).filter(this.options.cancel).length : false);
- if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
- return true;
- }
-
- this.mouseDelayMet = !this.options.delay;
- if (!this.mouseDelayMet) {
- this._mouseDelayTimer = setTimeout(function() {
- self.mouseDelayMet = true;
- }, this.options.delay);
- }
-
- if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
- this._mouseStarted = (this._mouseStart(event) !== false);
- if (!this._mouseStarted) {
- event.preventDefault();
- return true;
- }
- }
-
- // these delegates are required to keep context
- this._mouseMoveDelegate = function(event) {
- return self._mouseMove(event);
- };
- this._mouseUpDelegate = function(event) {
- return self._mouseUp(event);
- };
- $(document)
- .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
- .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
-
- // preventDefault() is used to prevent the selection of text here -
- // however, in Safari, this causes select boxes not to be selectable
- // anymore, so this fix is needed
- ($.browser.safari || event.preventDefault());
-
- event.originalEvent.mouseHandled = true;
- return true;
- },
-
- _mouseMove: function(event) {
- // IE mouseup check - mouseup happened when mouse was out of window
- if ($.browser.msie && !event.button) {
- return this._mouseUp(event);
- }
-
- if (this._mouseStarted) {
- this._mouseDrag(event);
- return event.preventDefault();
- }
-
- if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
- this._mouseStarted =
- (this._mouseStart(this._mouseDownEvent, event) !== false);
- (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
- }
-
- return !this._mouseStarted;
- },
-
- _mouseUp: function(event) {
- $(document)
- .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
- .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
-
- if (this._mouseStarted) {
- this._mouseStarted = false;
- this._preventClickEvent = (event.target == this._mouseDownEvent.target);
- this._mouseStop(event);
- }
-
- return false;
- },
-
- _mouseDistanceMet: function(event) {
- return (Math.max(
- Math.abs(this._mouseDownEvent.pageX - event.pageX),
- Math.abs(this._mouseDownEvent.pageY - event.pageY)
- ) >= this.options.distance
- );
- },
-
- _mouseDelayMet: function(event) {
- return this.mouseDelayMet;
- },
-
- // These are placeholder methods, to be overriden by extending plugin
- _mouseStart: function(event) {},
- _mouseDrag: function(event) {},
- _mouseStop: function(event) {},
- _mouseCapture: function(event) { return true; }
-};
-
-$.ui.mouse.defaults = {
- cancel: null,
- distance: 1,
- delay: 0
-};
-
-})(jQuery);
Deleted: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.tabs.js
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.tabs.js 2014-06-21 18:15:34 UTC (rev 12625)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/assets/js/ui.tabs.js 2014-06-22 01:36:49 UTC (rev 12626)
@@ -1,685 +0,0 @@
-/*
- * jQuery UI Tabs 1.7.1
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Tabs
- *
- * Depends:
- * ui.core.js
- */
-(function($) {
-
-$.widget("ui.tabs", {
-
- _init: function() {
- if (this.options.deselectable !== undefined) {
- this.options.collapsible = this.options.deselectable;
- }
- this._tabify(true);
- },
-
- _setData: function(key, value) {
- if (key == 'selected') {
- if (this.options.collapsible && value == this.options.selected) {
- return;
- }
- this.select(value);
- }
- else {
- this.options[key] = value;
- if (key == 'deselectable') {
- this.options.collapsible = value;
- }
- this._tabify();
- }
- },
-
- _tabId: function(a) {
- return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '') ||
- this.options.idPrefix + $.data(a);
- },
-
- _sanitizeSelector: function(hash) {
- return hash.replace(/:/g, '\\:'); // we need this because an id may contain a ":"
- },
-
- _cookie: function() {
- var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + $.data(this.list[0]));
- return $.cookie.apply(null, [cookie].concat($.makeArray(arguments)));
- },
-
- _ui: function(tab, panel) {
- return {
- tab: tab,
- panel: panel,
- index: this.anchors.index(tab)
- };
- },
-
- _cleanup: function() {
- // restore all former loading tabs labels
- this.lis.filter('.ui-state-processing').removeClass('ui-state-processing')
- .find('span:data(label.tabs)')
- .each(function() {
- var el = $(this);
- el.html(el.data('label.tabs')).removeData('label.tabs');
- });
- },
-
- _tabify: function(init) {
-
- this.list =...
[truncated message content] |
|
From: <txm...@us...> - 2014-06-21 18:15:44
|
Revision: 12625
http://sourceforge.net/p/xoops/svn/12625
Author: txmodxoops
Date: 2014-06-21 18:15:34 +0000 (Sat, 21 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-21 17:27:22 UTC (rev 12624)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-21 18:15:34 UTC (rev 12625)
@@ -80,16 +80,17 @@
* @param string $table_name
* @param string $language
*/
- public function getAdminPagesList($module_name, $table_name, $language, $fields, $fpif, $fpmf) {
+ public function getAdminPagesList($module_name, $table_name, $table_fieldname, $language, $fields, $fpif, $fpmf) {
$stu_mod_name = strtoupper($module_name);
$stl_mod_name = strtolower($module_name);
- $stu_table_name = strtoupper($table_name);
+ $stu_table_name = strtoupper($table_name);
+ $stu_table_fieldname = strtoupper($table_fieldname);
$ret = <<<EOT
case 'list':
default:
\$limit = xoops_getModuleOption('adminpager');
\$start = {$module_name}_CleanVars(\$_REQUEST, 'start', 0);
- \$adminMenu->addItemButton({$language}ADD_{$stu_table_name}, '{$table_name}.php?op=new', 'add');
+ \$adminMenu->addItemButton({$language}ADD_{$stu_table_fieldname}, '{$table_name}.php?op=new', 'add');
echo \$adminMenu->renderButton();
\$criteria = new CriteriaCompo();
\$criteria->setSort('{$fpif} ASC, {$fpmf}');
@@ -286,6 +287,7 @@
$table = $this->getTable();
$module_name = $module->getVar('mod_name');
$table_name = $table->getVar('table_name');
+ $table_fieldname = $table->getVar('table_fieldname');
$language = $this->getLanguage($module_name, 'AM');
$fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
@@ -300,7 +302,7 @@
}
$content = $this->getHeaderFilesComments($module, $filename);
$content .= $this->getAdminPagesHeader($module_name, $table_name);
- $content .= $this->getAdminPagesList($module_name, $table_name, $language, $fields, $fpif, $fpmf);
+ $content .= $this->getAdminPagesList($module_name, $table_name, $table_fieldname, $language, $fields, $fpif, $fpmf);
$content .= $this->getAdminPagesNew($table_name, $language);
$content .= $this->getAdminPagesSave($module_name, $table_name, $language, $fields, $fpif, $fpmf);
$content .= $this->getAdminPagesEdit($table_name, $language, $fpif);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-06-21 17:27:22 UTC (rev 12624)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-06-21 18:15:34 UTC (rev 12625)
@@ -61,7 +61,7 @@
public function getLanguageAdminIndex($language, $tables)
{
$ret = <<<EOT
-// ---------------- Index ----------------
+// ---------------- Admin Index ----------------
define('{$language}STATISTICS', "Statistics");
// There are\n
EOT;
@@ -73,7 +73,56 @@
$ret .= <<<EOT
define('{$language}THEREARE_{$stu_table_name}', "There are <span class='bold'>%s</span> {$stl_table_name} in the database");\n
EOT;
+ }
+ return $ret;
+ }
+ /*
+ * @public function getLanguageAdminPages
+ * @param string $language
+ * @param string $tables
+ */
+ public function getLanguageAdminPages($language, $tables)
+ {
+ $ret = <<<EOT
+// ---------------- Admin Files ----------------
+// There aren't\n
+EOT;
+ foreach (array_keys($tables) as $t)
+ {
+ $table_name = $tables[$t]->getVar('table_name');
+
+ $stu_table_name = strtoupper($table_name);
+ $stl_table_name = strtolower($table_name);
+ $ret .= <<<EOT
+define('{$language}THEREARENT_{$stu_table_name}', "There aren't {$stl_table_name}");\n
+EOT;
}
+ $ret .= <<<EOT
+// Buttons\n
+EOT;
+ foreach (array_keys($tables) as $t)
+ {
+ $table_name = $tables[$t]->getVar('table_name');
+ $table_fieldname = $tables[$t]->getVar('table_fieldname');
+ $stu_table_fieldname = strtoupper($table_fieldname);
+ $ucf_table_fieldname = ucfirst($table_fieldname);
+ $ret .= <<<EOT
+define('{$language}ADD_{$stu_table_fieldname}', "Add {$ucf_table_fieldname}");\n
+EOT;
+ }
+ $ret .= <<<EOT
+// Lists\n
+EOT;
+ foreach (array_keys($tables) as $t)
+ {
+ $table_name = $tables[$t]->getVar('table_name');
+ $table_fieldname = $tables[$t]->getVar('table_fieldname');
+ $stu_table_name = strtoupper($table_name);
+ $ucf_table_name = ucfirst($table_name);
+ $ret .= <<<EOT
+define('{$language}{$stu_table_name}_LIST', "List of {$ucf_table_name}");\n
+EOT;
+ }
return $ret;
}
/*
@@ -84,7 +133,7 @@
public function getLanguageAdminClass($language, $tables)
{
$ret = <<<EOT
-// ---------------- Class ----------------\n
+// ---------------- Admin Classes ----------------\n
EOT;
foreach (array_keys($tables) as $t)
{
@@ -93,7 +142,7 @@
$stu_table_name = strtoupper($table_name);
$ucf_table_name = ucfirst($table_name);
$ret .= <<<EOT
-// {$ucf_table_name}
+// {$ucf_table_name} add
define('{$language}{$stu_table_name}_ADD', "Add {$table_name}");
define('{$language}{$stu_table_name}_EDIT', "Edit {$table_name}");
// Elements of {$ucf_table_name}\n
@@ -124,7 +173,7 @@
public function getLanguageAdminPermissions($language)
{
$ret = <<<EOT
-// ---------------- Admin ----------------
+// ---------------- Admin Permissions ----------------
// Permissions
define('{$language}GLOBAL', "Permissions global");
define('{$language}GLOBAL_DESC', "Permissions global");
@@ -164,6 +213,7 @@
$language = $this->getLanguage($module_name, 'AM');
$content = $this->getHeaderFilesComments($module, $filename);
$content .= $this->getLanguageAdminIndex($language, $tables);
+ $content .= $this->getLanguageAdminPages($language, $tables);
$content .= $this->getLanguageAdminClass($language, $tables);
$content .= $this->getLanguageAdminPermissions($language);
$content .= $this->getLanguageAdminFoot();
|
|
From: <txm...@us...> - 2014-06-21 17:27:32
|
Revision: 12624
http://sourceforge.net/p/xoops/svn/12624
Author: txmodxoops
Date: 2014-06-21 17:27:22 +0000 (Sat, 21 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/menu.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/classes.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/menu.php 2014-06-21 17:07:35 UTC (rev 12623)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/menu.php 2014-06-21 17:27:22 UTC (rev 12624)
@@ -96,7 +96,7 @@
$content .= <<<EOT
\n\$adminmenu[\$i]['title'] = {$language}{$menu};
\$adminmenu[\$i]['link'] = 'admin/permissions.php';
-\$adminmenu[\$i]['icon'] = \$pathIcon32.'/permissions.png';
+\$adminmenu[\$i]['icon'] = \$sysPathIcon32.'/permissions.png';
\$i++;
EOT;
}
@@ -104,7 +104,7 @@
$content .= <<<EOT
\n\$adminmenu[\$i]['title'] = {$language}{$menu};
\$adminmenu[\$i]['link'] = 'admin/about.php';
-\$adminmenu[\$i]['icon'] = \$pathIcon32.'/about.png';
+\$adminmenu[\$i]['icon'] = \$sysPathIcon32.'/about.png';
unset( \$i );
EOT;
unset( $menu );
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/classes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/classes.php 2014-06-21 17:07:35 UTC (rev 12623)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/classes.php 2014-06-21 17:27:22 UTC (rev 12624)
@@ -186,7 +186,7 @@
public function getForm(\$action = false)
{
if (\$action === false) {
- \$action = filter_input(INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_ENCODED);
+ \$action = \$_SERVER['REQUEST_URI'];
}
\$title = \$this->isNew() ? sprintf({$language}{$stu_table_name}_ADD) : sprintf({$language}{$stu_table_name}_EDIT);
|
|
From: <txm...@us...> - 2014-06-21 17:07:43
|
Revision: 12623
http://sourceforge.net/p/xoops/svn/12623
Author: txmodxoops
Date: 2014-06-21 17:07:35 +0000 (Sat, 21 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-21 16:51:00 UTC (rev 12622)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-21 17:07:35 UTC (rev 12623)
@@ -91,8 +91,8 @@
* @public function getForm
*
* @param integer $field_mid
- * @param integer $f_tid
- * @param integer $f_numb
+ * @param integer $field_tid
+ * @param integer $field_numb
* @param string $f_name
* @param mixed $action
*/
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-21 16:51:00 UTC (rev 12622)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-21 17:07:35 UTC (rev 12623)
@@ -88,7 +88,7 @@
case 'list':
default:
\$limit = xoops_getModuleOption('adminpager');
- \$start = TDMCreate_CleanVars(\$_REQUEST, 'start', 0);
+ \$start = {$module_name}_CleanVars(\$_REQUEST, 'start', 0);
\$adminMenu->addItemButton({$language}ADD_{$stu_table_name}, '{$table_name}.php?op=new', 'add');
echo \$adminMenu->renderButton();
\$criteria = new CriteriaCompo();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php 2014-06-21 16:51:00 UTC (rev 12622)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/sql/mysql.php 2014-06-21 17:07:35 UTC (rev 12623)
@@ -87,6 +87,8 @@
* @param string $module_name
* @param string $table_name
* @param integer $nb_fields
+ *
+ * Unused IF NOT EXISTS
*/
public function getHeadDatabaseTable($module_name, $table_name, $nb_fields)
{
@@ -96,7 +98,7 @@
# Structure table for `mod_{$module_name}_{$table_name}` {$nb_fields}
#
-CREATE TABLE IF NOT EXISTS `mod_{$module_name}_{$table_name}` (\n
+CREATE TABLE `mod_{$module_name}_{$table_name}` (\n
SQL;
return $ret;
}
|
|
From: <txm...@us...> - 2014-06-21 16:51:10
|
Revision: 12622
http://sourceforge.net/p/xoops/svn/12622
Author: txmodxoops
Date: 2014-06-21 16:51:00 +0000 (Sat, 21 Jun 2014)
Log Message:
-----------
- Updated
- Now we can edit and update fields
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-06-20 07:31:22 UTC (rev 12621)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-06-21 16:51:00 UTC (rev 12622)
@@ -149,7 +149,7 @@
var_dump($field_mid);
var_dump($field_tid);
var_dump($field_numb);
- var_dump($field_name);
+ var_dump($field_name);
break;
case 'save':
@@ -167,7 +167,7 @@
case 'new':
$fieldsObj =& $fields->create();
break;
- case 'edit':
+ default:
$fieldsObj =& $fields->get($value);
break;
}
@@ -230,13 +230,14 @@
$adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
$adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
$GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
-
- $fieldsObj = $tdmcreate->getHandler('fields')->get( $field_tid );
+
+ /*$fieldsObj = $tdmcreate->getHandler('fields')->get( $field_tid );
$form = $fieldsObj->getForm(null, $field_tid);
- $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());*/
+ $form = TDMCreate_getFieldsForm($field_mid, $field_tid);
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
var_dump($field_tid);
- var_dump($field_numb);
break;
case 'drag':
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-06-20 07:31:22 UTC (rev 12621)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-06-21 16:51:00 UTC (rev 12622)
@@ -195,8 +195,7 @@
'table_comments' => (($_REQUEST['table_comments'] == 1) ? '1' : '0'),
'table_notifications' => (($_REQUEST['table_notifications'] == 1) ? '1' : '0'),
'table_permissions' => (($_REQUEST['table_permissions'] == 1) ? '1' : '0')));
- //$session_table = TDMCreateSession::getInstance();
- //$session_table->setSession('session_table_name', $_POST['table_name']);
+ //
if( $tdmcreate->getHandler('tables')->insert($obj) ) {
if( $obj->isNew() ) {
$table_iid = $GLOBALS['xoopsDB']->getInsertId();
@@ -206,7 +205,7 @@
redirect_header('tables.php', 5, sprintf(_AM_TDMCREATE_TABLE_FORM_UPDATED_OK, $_POST['table_name']));
}
}
-
+ //
$GLOBALS['xoopsTpl']->assign('error', $obj->getHtmlErrors());
$form = $obj->getForm();
$GLOBALS['xoopsTpl']->assign('form', $form->render());
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-20 07:31:22 UTC (rev 12621)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-21 16:51:00 UTC (rev 12622)
@@ -90,22 +90,17 @@
/*
* @public function getForm
*
- * @param integer $f_mid
+ * @param integer $field_mid
* @param integer $f_tid
* @param integer $f_numb
* @param string $f_name
* @param mixed $action
*/
- public function getForm($f_mid = null, $f_tid = null, $f_numb = null, $f_name = null, $action = false)
+ public function getForm($field_mid = null, $field_tid = null, $field_numb = null, $f_name = null, $action = false)
{
if ($action === false) {
$action = $_SERVER['REQUEST_URI'];
}
- $isNew = $this->isNew();
- $title = $isNew ? sprintf(_AM_TDMCREATE_FIELD_ADD) : sprintf(_AM_TDMCREATE_FIELD_EDIT);
-
- $field_mid = $isNew ? $f_mid : $this->getVar('field_mid');
- $field_tid = $isNew ? $f_tid : $this->getVar('field_tid');
$form = new TDMCreateThemeForm(null, 'form', $action, 'post', true);
$form->setExtra('enctype="multipart/form-data"');
@@ -113,7 +108,7 @@
// New Object HtmlTable
$form->addElement(new TDMCreateFormLabel('<table border="0" cellspacing="1" class="outer width100">'));
$form->addElement(new TDMCreateFormLabel('<thead class="center">'));
- $form->addElement(new TDMCreateFormLabel('<tr class="head"><th colspan="9">'.$title.'</th></tr>'));
+ $form->addElement(new TDMCreateFormLabel('<tr class="head"><th colspan="9">'._AM_TDMCREATE_FIELD_ADD.'</th></tr>'));
$form->addElement(new TDMCreateFormLabel('<tr class="head width5">'));
$form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_NUMBER.'</td>'));
$form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_NAME.'</td>'));
@@ -125,28 +120,120 @@
$form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_KEY.'</th>'));
$form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_PARAMETERS.'</th>'));
$form->addElement(new TDMCreateFormLabel('</tr></thead>'));
- $form->addElement(new TDMCreateFormLabel('<tbody>'));
+ $form->addElement(new TDMCreateFormLabel('<tbody>'));
+ $table_autoincrement = $this->tdmcreate->getHandler('tables')->get($field_tid);
//
$class = 'even';
- if($isNew) {
- for($i = 1; $i <= $f_numb; $i++) {
- $class = ($class == 'even') ? 'odd' : 'even';
- $this->getFormElements($form, $isNew, 'new', $i, $f_name, $field_mid, $field_tid, $this, $class);
+ for($i = 1; $i <= $field_numb; $i++) {
+ $class = ($class == 'even') ? 'odd' : 'even';
+ $form->addElement(new XoopsFormHidden('field_id['.$i.']', 'new'));
+ $form->addElement(new XoopsFormHidden('field_mid', $field_mid));
+ $form->addElement(new XoopsFormHidden('field_tid', $field_tid));
+
+ $form->addElement(new TDMCreateFormLabel('<tr class="'.$class.'">'));
+ // Index ID
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$i.'</td>'));
+ // Field Name
+ $this_field_name = (!empty($f_name) ? $f_name . '_' : '');
+ $field_name = new XoopsFormText(_AM_TDMCREATE_FIELD_NAME, 'field_name['.$i.']', 15, 255, $this_field_name);
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_name->render().'</td>'));
+ // Field Type
+ $fieldtype_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_TYPE, 'field_type['.$i.']');
+ $fieldtype_select->addOptionArray($this->tdmcreate->getHandler('fieldtype')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$fieldtype_select->render().'</td>'));
+ // Field Value
+ $value = ($i == 1) && ($table_autoincrement->getVar('table_autoincrement') == 1) ? '8' : '';
+ $field_value = new XoopsFormText(_AM_TDMCREATE_FIELD_VALUE, 'field_value['.$i.']', 5, 20, $value);
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_value->render().'</td>'));
+ // Field Attributes
+ $field_attributes_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_TYPE, 'field_attribute['.$i.']');
+ $field_attributes_select->addOptionArray($this->tdmcreate->getHandler('fieldattributes')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_attributes_select->render().'</td>'));
+ // Field Null
+ $field_null_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_NULL, 'field_null['.$i.']');
+ $field_null_select->addOptionArray($this->tdmcreate->getHandler('fieldnull')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_null_select->render().'</td>'));
+ // Field Default
+ $field_default = new XoopsFormText(_AM_TDMCREATE_FIELD_DEFAULT, 'field_default['.$i.']', 15, 25);
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_default->render().'</td>'));
+ // Field Key
+ $field_key_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_KEY, 'field_key['.$i.']');
+ $field_key_select->addOptionArray($this->tdmcreate->getHandler('fieldkey')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_key_select->render().'</td>'));
+ // Field Void
+ if( ($i == 1) && ($table_autoincrement->getVar('table_autoincrement') == 1)) {
+ $form->addElement(new TDMCreateFormLabel('<td> </td></tr>'));
+ } else {
+ // Box header row
+ $parameters_tray = new XoopsFormElementTray('', '<br />');
+ // Field Elements
+ $criteria_element = new CriteriaCompo();
+ $criteria_element->add(new Criteria('fieldelement_tid', 0));
+ $criteria_table = new CriteriaCompo();
+ $criteria_table->add(new Criteria('fieldelement_mid', $field_mid));
+ $field_elements_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_ELEMENT_NAME, 'field_element['.$i.']');
+ $field_elements_select->addOptionArray($this->tdmcreate->getHandler('fieldelements')->getList($criteria_element));
+ $field_elements_select->addOptionArray($this->tdmcreate->getHandler('fieldelements')->getList($criteria_table));
+ unset($criteria_element); unset($criteria_table);
+ $parameters_tray->addElement($field_elements_select);
+
+ $field_parent = 0;
+ $check_field_parent = new XoopsFormCheckBox(' ', 'field_parent['.$i.']');
+ $check_field_parent->addOption($field_parent, _AM_TDMCREATE_FIELD_PARENT );
+ $parameters_tray->addElement($check_field_parent);
+
+ $field_inlist = 0;
+ $check_field_inlist = new XoopsFormCheckBox(' ', 'field_inlist['.$i.']', $field_inlist);
+ $check_field_inlist->addOption(1, _AM_TDMCREATE_FIELD_INLIST);
+ $parameters_tray->addElement($check_field_inlist);
+
+ $field_inform = 0;
+ $check_field_inform = new XoopsFormCheckBox(' ', 'field_inform['.$i.']', $field_inform);
+ $check_field_inform->addOption(1, _AM_TDMCREATE_FIELD_INFORM);
+ $parameters_tray->addElement($check_field_inform);
+
+ $field_admin = 0;
+ $check_field_admin = new XoopsFormCheckBox(' ', 'field_admin['.$i.']', $field_admin);
+ $check_field_admin->addOption(1, _AM_TDMCREATE_FIELD_ADMIN);
+ $parameters_tray->addElement($check_field_admin);
+
+ $field_user = 0;
+ $check_field_user = new XoopsFormCheckBox(' ', 'field_user['.$i.']', $field_user);
+ $check_field_user->addOption(1, _AM_TDMCREATE_FIELD_USER);
+ $parameters_tray->addElement($check_field_user);
+
+ $field_block = 0;
+ $check_field_block = new XoopsFormCheckBox('', 'field_block['.$i.']', $field_block);
+ $check_field_block->addOption(1, _AM_TDMCREATE_FIELD_BLOCK);
+ $parameters_tray->addElement($check_field_block);
+
+ if(($i == 1) && ($table_autoincrement->getVar('table_autoincrement') == 1)) {
+ $field_main = 0;
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$i.']', $field_main);
+ $check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
+ } elseif(($i == 2) && ($table_autoincrement->getVar('table_autoincrement') == 1)) {
+ $field_main = 1;
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$i.']', $field_main);
+ $check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
+ } else {
+ $field_main = 0;
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$i.']');
+ $check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
+ }
+ $parameters_tray->addElement($check_field_main);
+
+ $field_search = 0;
+ $check_field_search = new XoopsFormCheckBox(' ', 'field_search['.$i.']', $field_search);
+ $check_field_search->addOption(1, _AM_TDMCREATE_FIELD_SEARCH);
+ $parameters_tray->addElement($check_field_search);
+
+ $field_required = 0;
+ $check_field_required = new XoopsFormCheckBox(' ', 'field_required['.$i.']', $field_required);
+ $check_field_required->addOption(1, _AM_TDMCREATE_FIELD_REQUIRED);
+ $parameters_tray->addElement($check_field_required);
+ $form->addElement(new TDMCreateFormLabel('<td><div class="portlet"><div class="portlet-header">'._AM_TDMCREATE_FIELD_PARAMETERS_LIST.'</div><div class="portlet-content">'.$parameters_tray->render().'</div></div></td></tr>'));
}
- } else {
- // Get the list of fields
- $criteria = new CriteriaCompo();
- $criteria->add(new Criteria('field_tid', $field_tid));
- $fields = $this->tdmcreate->getHandler('fields')->getObjects($criteria);
- unset($criteria);
- $i = 1;
- foreach($fields as $field) {
- $class = ($class == 'even') ? 'odd' : 'even';
- $this->getFormElements($form, $isNew, 'edit', $i, null, $field_mid, $field_tid, $field, $class);
- $i++;
- }
- unset($i);
- }
+ }
// Send Form Data
$form->addElement(new TDMCreateFormLabel('</tbody>'));
$form->addElement(new TDMCreateFormLabel('<tfoot><tr>'));
@@ -156,125 +243,6 @@
$form->addElement(new TDMCreateFormLabel('<td>'.$form_button->render().'</td>'));
$form->addElement(new TDMCreateFormLabel('</tr></tfoot></table>'));
return $form;
- }
-
- /*
- * @private function getFormElements
- *
- * @param object $form
- * @param boolean $isNew
- * @param string $type
- * @param integer $id
- * @param string $f_name
- * @param string $field_mid
- * @param string $field_tid
- * @param object $field
- * @param string $class
- */
- private function getFormElements($form, $isNew, $type, $id, $f_name = null, $field_mid, $field_tid, $field, $class = 'even')
- {
- $form->addElement(new XoopsFormHidden('field_id['.$id.']', $type));
- $form->addElement(new XoopsFormHidden('field_mid', $field_mid));
- $form->addElement(new XoopsFormHidden('field_tid', $field_tid));
-
- $form->addElement(new TDMCreateFormLabel('<tr class="'.$class.'">'));
- // Index ID
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$id.'</td>'));
- // Field Name
- $this_field_name = $isNew ? (!empty($f_name) ? $f_name . '_' : '') : $field->getVar('field_name');
- $field_name = new XoopsFormText(_AM_TDMCREATE_FIELD_NAME, 'field_name['.$id.']', 15, 255, $this_field_name);
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_name->render().'</td>'));
- // Field Type
- $fieldtype_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_TYPE, 'field_type['.$id.']', $field->getVar('field_type'));
- $fieldtype_select->addOptionArray($this->tdmcreate->getHandler('fieldtype')->getList());
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$fieldtype_select->render().'</td>'));
- // Field Value
- $field_value = new XoopsFormText(_AM_TDMCREATE_FIELD_VALUE, 'field_value['.$id.']', 5, 20, $field->getVar('field_value'));
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_value->render().'</td>'));
- // Field Attributes
- $field_attributes_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_TYPE, 'field_attribute['.$id.']', $field->getVar('field_attribute'));
- $field_attributes_select->addOptionArray($this->tdmcreate->getHandler('fieldattributes')->getList());
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_attributes_select->render().'</td>'));
- // Field Null
- $field_null_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_NULL, 'field_null['.$id.']', $field->getVar('field_null'));
- $field_null_select->addOptionArray($this->tdmcreate->getHandler('fieldnull')->getList());
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_null_select->render().'</td>'));
- // Field Default
- $field_default = new XoopsFormText(_AM_TDMCREATE_FIELD_DEFAULT, 'field_default['.$id.']', 15, 25, $field->getVar('field_default'));
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_default->render().'</td>'));
- // Field Key
- $field_key_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_KEY, 'field_key['.$id.']', $field->getVar('field_key'));
- $field_key_select->addOptionArray($this->tdmcreate->getHandler('fieldkey')->getList());
- $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_key_select->render().'</td>'));
- // Field Void
- $table_autoincrement = $this->tdmcreate->getHandler('tables')->get($field_tid);
- if( ($id == 1) && ($table_autoincrement->getVar('table_autoincrement') == 1)) {
- $form->addElement(new TDMCreateFormLabel('<td> </td></tr>'));
- } else {
- // Box header row
- $parameters_tray = new XoopsFormElementTray('', '<br />');
- // Field Elements
- $criteria_element = new CriteriaCompo();
- $criteria_element->add(new Criteria('fieldelement_tid', 0));
- $criteria_table = new CriteriaCompo();
- $criteria_table->add(new Criteria('fieldelement_mid', $field_mid));
- $field_elements_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_ELEMENT_NAME, 'field_element['.$id.']', $field->getVar('field_element'));
- $field_elements_select->addOptionArray($this->tdmcreate->getHandler('fieldelements')->getList($criteria_element));
- $field_elements_select->addOptionArray($this->tdmcreate->getHandler('fieldelements')->getList($criteria_table));
- unset($criteria_element); unset($criteria_table);
- $parameters_tray->addElement($field_elements_select);
-
- $field_parent = $isNew ? 0 : $field->getVar('field_parent');
- $check_field_parent = new XoopsFormCheckBox(' ', 'field_parent['.$id.']');
- $check_field_parent->addOption($field_parent, _AM_TDMCREATE_FIELD_PARENT );
- $parameters_tray->addElement($check_field_parent);
-
- $field_inlist = $isNew ? 0 : $field->getVar('field_inlist');
- $check_field_inlist = new XoopsFormCheckBox(' ', 'field_inlist['.$id.']', $field_inlist);
- $check_field_inlist->addOption(1, _AM_TDMCREATE_FIELD_INLIST);
- $parameters_tray->addElement($check_field_inlist);
-
- $field_inform = $isNew ? 0 : $field->getVar('field_inform');
- $check_field_inform = new XoopsFormCheckBox(' ', 'field_inform['.$id.']', $field_inform);
- $check_field_inform->addOption(1, _AM_TDMCREATE_FIELD_INFORM);
- $parameters_tray->addElement($check_field_inform);
-
- $field_admin = $isNew ? 0 : $field->getVar('field_admin');
- $check_field_admin = new XoopsFormCheckBox(' ', 'field_admin['.$id.']', $field_admin);
- $check_field_admin->addOption(1, _AM_TDMCREATE_FIELD_ADMIN);
- $parameters_tray->addElement($check_field_admin);
-
- $field_user = $isNew ? 0 : $field->getVar('field_user');
- $check_field_user = new XoopsFormCheckBox(' ', 'field_user['.$id.']', $field_user);
- $check_field_user->addOption(1, _AM_TDMCREATE_FIELD_USER);
- $parameters_tray->addElement($check_field_user);
-
- $field_block = $isNew ? 0 : $field->getVar('field_block');
- $check_field_block = new XoopsFormCheckBox('', 'field_block['.$id.']', $field_block);
- $check_field_block->addOption(1, _AM_TDMCREATE_FIELD_BLOCK);
- $parameters_tray->addElement($check_field_block);
-
- $main = $field->getVar('field_main');
- $field_main = $isNew ? $id : $main;
- if($main == 1) {
- $check_field_main = new XoopsFormRadio('', 'field_main['.$id.']', $field_main);
- } else {
- $check_field_main = new XoopsFormRadio('', 'field_main['.$id.']');
- }
- $check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
- $parameters_tray->addElement($check_field_main);
-
- $field_search = $isNew ? 0 : $field->getVar('field_search');
- $check_field_search = new XoopsFormCheckBox(' ', 'field_search['.$id.']', $field_search);
- $check_field_search->addOption(1, _AM_TDMCREATE_FIELD_SEARCH);
- $parameters_tray->addElement($check_field_search);
-
- $field_required = $isNew ? 0 : $field->getVar('field_required');
- $check_field_required = new XoopsFormCheckBox(' ', 'field_required['.$id.']', $field_required);
- $check_field_required->addOption(1, _AM_TDMCREATE_FIELD_REQUIRED);
- $parameters_tray->addElement($check_field_required);
- $form->addElement(new TDMCreateFormLabel('<td><div class="portlet"><div class="portlet-header">'._AM_TDMCREATE_FIELD_PARAMETERS_LIST.'</div><div class="portlet-content">'.$parameters_tray->render().'</div></div></td></tr>'));
- }
}
}
/*
@@ -289,7 +257,7 @@
*/
public function __construct(&$db)
{
- parent::__construct($db, 'mod_tdmcreate_fields', 'tdmcreatefields', 'field_tid', 'field_name');
+ parent::__construct($db, 'mod_tdmcreate_fields', 'tdmcreatefields', 'field_id', 'field_name');
}
/**
@@ -305,13 +273,13 @@
/**
* retrieve a field
*
- * @param int $id field id
+ * @param int $i field id
*
* @return mixed reference to the {@link TDMCreateFields} object
*/
- public function &get($id = null, $fields = null)
+ public function &get($i = null, $fields = null)
{
- return parent::get($id, $fields);
+ return parent::get($i, $fields);
}
/**
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php 2014-06-20 07:31:22 UTC (rev 12621)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php 2014-06-21 16:51:00 UTC (rev 12622)
@@ -129,4 +129,156 @@
function phpFunction($val='')
{ // create php function here
echo $val;
-}*/
\ No newline at end of file
+}*/
+
+/*
+* @function getFieldsForm
+*
+* @param integer $field_mid
+* @param integer $field_tid
+* @param mixed $action
+*/
+function TDMCreate_getFieldsForm($field_mid = null, $field_tid = null, $action = false)
+{
+ if ($action === false) {
+ $action = $_SERVER['REQUEST_URI'];
+ }
+ $tdmcreate = TDMCreate::getInstance();
+
+ require_once TDMC_PATH . '/class/html/simplelabel.php';
+ require_once TDMC_PATH . '/class/form/themeform.php';
+ $form = new TDMCreateThemeForm(null, 'form', $action, 'post', true);
+ $form->setExtra('enctype="multipart/form-data"');
+
+ // New Object HtmlTable
+ $form->addElement(new TDMCreateFormLabel('<table border="0" cellspacing="1" class="outer width100">'));
+ $form->addElement(new TDMCreateFormLabel('<thead class="center">'));
+ $form->addElement(new TDMCreateFormLabel('<tr class="head"><th colspan="9">'._AM_TDMCREATE_FIELD_EDIT.'</th></tr>'));
+ $form->addElement(new TDMCreateFormLabel('<tr class="head width5">'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_NUMBER.'</td>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_NAME.'</td>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_TYPE.'</td>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_VALUE.'</th>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_ATTRIBUTE.'</th>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_NULL.'</th>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_DEFAULT.'</th>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_KEY.'</th>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'._AM_TDMCREATE_FIELD_PARAMETERS.'</th>'));
+ $form->addElement(new TDMCreateFormLabel('</tr></thead>'));
+ $form->addElement(new TDMCreateFormLabel('<tbody>'));
+ //
+ $class = 'even';
+ // Get the list of fields
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('field_tid', $field_tid));
+ $fields = $tdmcreate->getHandler('fields')->getObjects($criteria);
+ unset($criteria);
+ $id = 1;
+ foreach($fields as $field) {
+ $class = ($class == 'even') ? 'odd' : 'even';
+ $field_id = $field->getVar('field_id');
+ $form->addElement(new XoopsFormHidden('field_id['.$field_id.']', $field_id));
+ $form->addElement(new XoopsFormHidden('field_mid', $field_mid));
+ $form->addElement(new XoopsFormHidden('field_tid', $field_tid));
+
+ $form->addElement(new TDMCreateFormLabel('<tr class="'.$class.'">'));
+ // Index ID
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$id.'</td>'));
+ // Field Name
+ $field_name = new XoopsFormText(_AM_TDMCREATE_FIELD_NAME, 'field_name['.$field_id.']', 15, 255, $field->getVar('field_name'));
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_name->render().'</td>'));
+ // Field Type
+ $fieldtype_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_TYPE, 'field_type['.$field_id.']', $field->getVar('field_type'));
+ $fieldtype_select->addOptionArray($tdmcreate->getHandler('fieldtype')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$fieldtype_select->render().'</td>'));
+ // Field Value
+ $field_value = new XoopsFormText(_AM_TDMCREATE_FIELD_VALUE, 'field_value['.$field_id.']', 5, 20, $field->getVar('field_value'));
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_value->render().'</td>'));
+ // Field Attributes
+ $field_attributes_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_TYPE, 'field_attribute['.$field_id.']', $field->getVar('field_attribute'));
+ $field_attributes_select->addOptionArray($tdmcreate->getHandler('fieldattributes')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_attributes_select->render().'</td>'));
+ // Field Null
+ $field_null_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_NULL, 'field_null['.$field_id.']', $field->getVar('field_null'));
+ $field_null_select->addOptionArray($tdmcreate->getHandler('fieldnull')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_null_select->render().'</td>'));
+ // Field Default
+ $field_default = new XoopsFormText(_AM_TDMCREATE_FIELD_DEFAULT, 'field_default['.$field_id.']', 15, 25, $field->getVar('field_default'));
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_default->render().'</td>'));
+ // Field Key
+ $field_key_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_KEY, 'field_key['.$field_id.']', $field->getVar('field_key'));
+ $field_key_select->addOptionArray($tdmcreate->getHandler('fieldkey')->getList());
+ $form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_key_select->render().'</td>'));
+ // Field Void
+ $table_autoincrement = $tdmcreate->getHandler('tables')->get($field_tid);
+ if( ($id == 1) && ($table_autoincrement->getVar('table_autoincrement') == 1)) {
+ $form->addElement(new TDMCreateFormLabel('<td> </td></tr>'));
+ } else {
+ // Box header row
+ $parameters_tray = new XoopsFormElementTray('', '<br />');
+ // Field Elements
+ $criteria_element = new CriteriaCompo();
+ $criteria_element->add(new Criteria('fieldelement_tid', 0));
+ $criteria_table = new CriteriaCompo();
+ $criteria_table->add(new Criteria('fieldelement_mid', $field_mid));
+ $field_elements_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_ELEMENT_NAME, 'field_element['.$field_id.']', $field->getVar('field_element'));
+ $field_elements_select->addOptionArray($tdmcreate->getHandler('fieldelements')->getList($criteria_element));
+ $field_elements_select->addOptionArray($tdmcreate->getHandler('fieldelements')->getList($criteria_table));
+ unset($criteria_element); unset($criteria_table);
+ $parameters_tray->addElement($field_elements_select);
+
+ $check_field_parent = new XoopsFormCheckBox(' ', 'field_parent['.$field_id.']', $field->getVar('field_parent'));
+ $check_field_parent->addOption(1, _AM_TDMCREATE_FIELD_PARENT );
+ $parameters_tray->addElement($check_field_parent);
+
+ $check_field_inlist = new XoopsFormCheckBox(' ', 'field_inlist['.$field_id.']', $field->getVar('field_inlist'));
+ $check_field_inlist->addOption(1, _AM_TDMCREATE_FIELD_INLIST);
+ $parameters_tray->addElement($check_field_inlist);
+
+ $check_field_inform = new XoopsFormCheckBox(' ', 'field_inform['.$field_id.']', $field->getVar('field_inform'));
+ $check_field_inform->addOption(1, _AM_TDMCREATE_FIELD_INFORM);
+ $parameters_tray->addElement($check_field_inform);
+
+ $check_field_admin = new XoopsFormCheckBox(' ', 'field_admin['.$field_id.']', $field->getVar('field_admin'));
+ $check_field_admin->addOption(1, _AM_TDMCREATE_FIELD_ADMIN);
+ $parameters_tray->addElement($check_field_admin);
+
+ $check_field_user = new XoopsFormCheckBox(' ', 'field_user['.$field_id.']', $field->getVar('field_user'));
+ $check_field_user->addOption(1, _AM_TDMCREATE_FIELD_USER);
+ $parameters_tray->addElement($check_field_user);
+
+ $check_field_block = new XoopsFormCheckBox('', 'field_block['.$field_id.']', $field->getVar('field_block'));
+ $check_field_block->addOption(1, _AM_TDMCREATE_FIELD_BLOCK);
+ $parameters_tray->addElement($check_field_block);
+
+ $field_main = $field->getVar('field_main');
+ if($field_main == 1) {
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$field_id.']', $field_main);
+ } else {
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$field_id.']');
+ }
+ $check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
+ $parameters_tray->addElement($check_field_main);
+
+ $check_field_search = new XoopsFormCheckBox(' ', 'field_search['.$field_id.']', $field->getVar('field_search'));
+ $check_field_search->addOption(1, _AM_TDMCREATE_FIELD_SEARCH);
+ $parameters_tray->addElement($check_field_search);
+
+ $check_field_required = new XoopsFormCheckBox(' ', 'field_required['.$field_id.']', $field->getVar('field_required'));
+ $check_field_required->addOption(1, _AM_TDMCREATE_FIELD_REQUIRED);
+ $parameters_tray->addElement($check_field_required);
+ $form->addElement(new TDMCreateFormLabel('<td><div class="portlet"><div class="portlet-header">'._AM_TDMCREATE_FIELD_PARAMETERS_LIST.'</div><div class="portlet-content">'.$parameters_tray->render().'</div></div></td></tr>'));
+ }
+ $id++;
+ }
+ unset($id);
+ // Send Form Data
+ $form->addElement(new TDMCreateFormLabel('</tbody>'));
+ $form->addElement(new TDMCreateFormLabel('<tfoot><tr>'));
+ $form_hidden = new XoopsFormHidden('op', 'save');
+ $form_button = new XoopsFormButton('', 'submit', _SUBMIT, 'submit');
+ $form->addElement(new TDMCreateFormLabel('<td colspan="8">'.$form_hidden->render().'</td>'));
+ $form->addElement(new TDMCreateFormLabel('<td>'.$form_button->render().'</td>'));
+ $form->addElement(new TDMCreateFormLabel('</tr></tfoot></table>'));
+ return $form;
+}
\ No newline at end of file
|
|
From: <be...@us...> - 2014-06-20 07:31:31
|
Revision: 12621
http://sourceforge.net/p/xoops/svn/12621
Author: beckmi
Date: 2014-06-20 07:31:22 +0000 (Fri, 20 Jun 2014)
Log Message:
-----------
Adding 2.5.7 translation for /install/language/english/install.php
Modified Paths:
--------------
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php 2014-06-19 21:07:49 UTC (rev 12620)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php 2014-06-20 07:31:22 UTC (rev 12621)
@@ -13,17 +13,13 @@
* @author dugris <du...@fr...>
* @version $Id$
*/
-
// _LANGCODE: en
// _CHARSET : UTF-8
// Translator: XOOPS Translation Team
-
define( "SHOW_HIDE_HELP", "Pokaż/ukryj tekst pomocy" );
-
// License
define('LICENSE_NOT_WRITEABLE', 'Licencja jest %s . <br/><font style="colour:#ff0000">Ustaw prawo do zapisu dla pliku ../include/license.php </font>');
define('LICENSE_IS_WRITEABLE', 'Licencja jest %s');
-
// Configuration check page
define( "SERVER_API", "Serwer API" );
define( "PHP_EXTENSION", "%s rozszerzenie" );
@@ -41,10 +37,8 @@
define( "SUCCESS", "Pozytywnie" );
define( "WARNING", "Ostrzeżenie" );
define( "FAILED", "Błędnie" );
-
// Titles (main and pages)
define( "XOOPS_INSTALL_WIZARD", "Kreator instalacji XOOPS" );
-
define( "LANGUAGE_SELECTION", "Wybór języka" );
define( "LANGUAGE_SELECTION_TITLE", "Wybierz swój język"); // L128
define( "INTRODUCTION", "Wprowadzenie" );
@@ -67,25 +61,19 @@
define( "DATA_INSERTION_TITLE", "Zapisz swoje ustawienia do bazy danych" );
define( "WELCOME", "Witaj" );
define( "WELCOME_TITLE", "Witaj w swoim serwisie CMS XOOPS" ); // L0
-
// Settings (labels and help text)
define( "XOOPS_PATHS", "Fizyczna ścieżka XOOPS" );
define( "XOOPS_URLS", "Lokalizacja sieciowa" );
-
define( "XOOPS_ROOT_PATH_LABEL", "Fizyczna ścieżka na serwerze do głównego katalogu XOOPS" );
define( "XOOPS_ROOT_PATH_HELP", "Fizyczna ścieżka na serwerze do głównego katalogu XOOPS (katalogu z plikiem mainfile.php) BEZ końcowego ukośnika (unix np. /home/www/htdoc lub windows np. c:\htdoc)" );
-
define( "XOOPS_LIB_PATH_LABEL", "Katalog bibliotek XOOPS - XOOPS_lib" );
define( "XOOPS_LIB_PATH_HELP", "Physical path to the XOOPS library directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of " . XOOPS_ROOT_PATH_LABEL . " to make it secure.");
define( "XOOPS_DATA_PATH_LABEL", "Katalog danych XOOPS - XOOPS_data" );
define( "XOOPS_DATA_PATH_HELP", "Physical path to the XOOPS data files (writable) directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of " . XOOPS_ROOT_PATH_LABEL . " to make it secure." );
-
define( "XOOPS_URL_LABEL", "Adres witryny www (URL)" ); // L56
define( "XOOPS_URL_HELP", "Główny adres URL który będzie używany do dostępu do instalacji CMS XOOPS" ); // L58
-
define( "LEGEND_CONNECTION", "Połączenie z serwerem" );
define( "LEGEND_DATABASE", "Baza danych" ); // L51
-
define( "DB_HOST_LABEL", "Nazwa serwera (server hostname)" ); // L27
define( "DB_HOST_HELP", "Nazwa serwera bazy danych. Jeśli nie jesteś pewien, typową nazwą jest <em>localhost</em>"); // L67
define( "DB_USER_LABEL", "Nazwa użytkownika" ); // L28
@@ -103,25 +91,20 @@
define( "DB_PCONNECT_LABEL", "Użyj stałego połączenia" ); // L54
define( "DB_PCONNECT_HELP", "Domyślnie jest 'Nie'. Pozostaw puste jeśli nie jesteś pewien"); // L69
define( "DB_DATABASE_LABEL", "Baza danych" );
-
define( "LEGEND_ADMIN_ACCOUNT", "Konto administratora" );
define( "ADMIN_LOGIN_LABEL", "Login Admina" ); // L37
define( "ADMIN_EMAIL_LABEL", "E-mail Admina" ); // L38
define( "ADMIN_PASS_LABEL", "Hasło Admina" ); // L39
define( "ADMIN_CONFIRMPASS_LABEL", "Potwierdź hasło" ); // L74
-
// Buttons
define( "BUTTON_PREVIOUS", "Wstecz" ); // L42
define( "BUTTON_NEXT", "Dalej" ); // L47
-
// Messages
define( "XOOPS_FOUND", "%s znaleziono" );
define( "CHECKING_PERMISSIONS", "Sprawdzanie uprawnień do plików i katalogów..." ); // L82
define( "IS_NOT_WRITABLE", "%s NIE jest zapisywalny." ); // L83
define( "IS_WRITABLE", "%s jest zapisywalny." ); // L84
-
define( "XOOPS_PATH_FOUND", "Ścieżka znaleziona." );
-
define( "READY_CREATE_TABLES", "Nie odnaleziono tablic bazy XOOPS.<br />Instalator jest gotowy do stworzenia systemu tablic bazy danych XOOPS.<br />Naciśnij <em>Dalej</em> aby rozpocząć." );
define( "XOOPS_TABLES_FOUND", "System tablic XOOPS już istnieje w podanej bazie danych.<br />Naciśnij <em>Dalej</em> aby kontynuować." ); // L131
define( "XOOPS_TABLES_CREATED", "System tablic XOOPS został stworzony.<br />Naciśnij <em>Dalej</em> aby kontynuować." );
@@ -131,7 +114,6 @@
define( "SAVED_MAINFILE_MSG", "Instalator zapisał ustawienia do pliku <em>mainfile.php</em>. Naciśnij <em>Dalej</em> aby kontynuować." );
define( "DATA_ALREADY_INSERTED", "Dane XOOPSa już znajdują się w bazie danych.<br />Naciśnij <em>Dalej</em> aby kontynuować." );
define( "DATA_INSERTED", "Wstępne dane zostały wprowadzone do bazy danych.<br />Naciśnij <em>Dalej</em> aby kontynuować." );
-
// %s is database name
define( "DATABASE_CREATED", "Baza danych %s utworzona!" ); // L43
// %s is table name
@@ -143,7 +125,6 @@
define( "TABLE_NOT_ALTERED", "Błąd aktualizacji tabeli %s."); // L134
define( "TABLE_DROPPED", "Tabela %s została usunięta."); // L163
define( "TABLE_NOT_DROPPED", "Błąd usuwania tabeli %s."); // L164
-
// Error messages
define( "ERR_COULD_NOT_ACCESS", "Brak dostępu do podanego folderu. Proszę sprawdzić czy on istnieje i/lub czy jest dostępny." );
define( "ERR_NO_XOOPS_FOUND", "Nie znaleziono instalacji XOOPSa we wskazanym folderze" );
@@ -154,58 +135,47 @@
define( "ERR_NO_DATABASE", "Nie można utworzyć bazy danych. Skontaktuj się z administratorem serwera w tej sprawie." ); // L31
define( "ERR_NO_DBCONNECTION", "Nie można połączyć się z serwerem bazy danych." ); // L106
define( "ERR_WRITING_CONSTANT", "Błąd zapisu wartości %s." ); // L122
-
define( "ERR_COPY_MAINFILE", "Nie można skopiować danych do pliku mainfile.php" );
define( "ERR_WRITE_MAINFILE", "lik mainfile.php nie jest dostępny do zapisu. Proszę sprawdzić uprawnienia i spróbować ponownie.");
define( "ERR_READ_MAINFILE", "Plik mainfile.php nie jest dostępny do odczytu" );
-
define( "ERR_INVALID_DBCHARSET", "Kodowanie '%s' nie jest dostępne." );
define( "ERR_INVALID_DBCOLLATION", "Metoda porównywania '%s' nie jest dostępna." );
define( "ERR_CHARSET_NOT_SET", "Domyślny zestaw znaków nie jest zestawem znaków bazy danych XOOPS." );
-
define("_INSTALL_CHARSET", "UTF-8");
-
define( "SUPPORT", "Wsparcie");
-
define( "LOGIN", "Auten");
define( "LOGIN_TITLE", "Weryfikacja tożsamości");
define( "USER_LOGIN", "Login administratora" );
define( "USERNAME", "Użytkownik :");
define( "PASSWORD", "Hasło :");
-
define( "ICONV_CONVERSION", "Konwersja znaków");
define( "ZLIB_COMPRESSION", "Kompresja Zlib");
define( "IMAGE_FUNCTIONS", "Funkcje związane z obrazami");
define( "IMAGE_METAS", "Image meta data (exif)");
define( "FILTER_FUNCTIONS", "Funkcje filtrujące");
-
define( "ADMIN_EXIST", "Konto administratora już jest utworzone.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
-
define( "CONFIG_SITE", "Konfiguracja witryny" );
define( "CONFIG_SITE_TITLE", "Konfiguracja witryny" );
define( "MODULES", "Instalacja modułów" );
define( "MODULES_TITLE", "Instalacja modułów" );
define( "THEME", "Wybierz motyw graficzny - theme " );
define( "THEME_TITLE", "Wybierz domyślny motyw graficzny - theme" );
-
define( "INSTALLED_MODULES", "Zainstalowane moduły.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
define( "NO_MODULES_FOUND", "Nie znaleziono modułów.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
define( "NO_INSTALLED_MODULES", "Nie zainstalowano modułów.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
-
define( "THEME_NO_SCREENSHOT", "Nie znaleziono zdjęcia ekranu");
-
define( "IS_VALOR", " => ");
-
// password message
define( "PASSWORD_LABEL", "Siła hasła : ");
define( "PASSWORD_DESC", "Hasło nie zostało wprowadzone");
define( "PASSWORD_GENERATOR", "Generator haseł");
define( "PASSWORD_GENERATE", "Generuj");
define( "PASSWORD_COPY", "Kopiuj");
-
define( "PASSWORD_VERY_WEAK", "Bardzo słabe!");
define( "PASSWORD_WEAK", "Słabe!");
define( "PASSWORD_BETTER", "W miarę");
define( "PASSWORD_MEDIUM", "Przeciętne");
define( "PASSWORD_STRONG", "Mocne");
define( "PASSWORD_STRONGEST", "Bardzo mocne");
+//2.5.7
+define('WRITTEN_LICENSE',"Zapisana Licencja XOOPS %s Klucz licencyjny: <strong>%s</strong>");
|
|
From: <be...@us...> - 2014-06-19 21:07:58
|
Revision: 12620
http://sourceforge.net/p/xoops/svn/12620
Author: beckmi
Date: 2014-06-19 21:07:49 +0000 (Thu, 19 Jun 2014)
Log Message:
-----------
Fix path specified for include
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/admin/about.php
XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/groupperm.php
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/admin/about.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/admin/about.php 2014-06-18 22:38:58 UTC (rev 12619)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/admin/about.php 2014-06-19 21:07:49 UTC (rev 12620)
@@ -17,7 +17,7 @@
* @version $Id $
**/
-include_once dirname(__FILE__) . '../../../include/cp_header.php';
+include_once dirname(__FILE__) . '/../../../include/cp_header.php';
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/groupperm.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/groupperm.php 2014-06-18 22:38:58 UTC (rev 12619)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/groupperm.php 2014-06-19 21:07:49 UTC (rev 12620)
@@ -1,7 +1,7 @@
<?php
// $Id$
-include_once dirname(__FILE__) . '../../../include/cp_header.php';
+include_once dirname(__FILE__) . '/../../../include/cp_header.php';
$modid = isset($_POST['modid']) ? intval($_POST['modid']) : 0;
// we don't want system module permissions to be changed here
|
|
From: <txm...@us...> - 2014-06-18 22:39:07
|
Revision: 12619
http://sourceforge.net/p/xoops/svn/12619
Author: txmodxoops
Date: 2014-06-18 22:38:58 +0000 (Wed, 18 Jun 2014)
Log Message:
-----------
- Updated
- Work in progress
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/repository.php
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/repository.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/repository.php 2014-06-18 17:18:31 UTC (rev 12618)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/repository.php 2014-06-18 22:38:58 UTC (rev 12619)
@@ -1,231 +0,0 @@
-<?php
-/*
- You may not change or alter any portion of this comment or credits
- of supporting developers from this source code or any supporting source code
- which is considered copyrighted (c) material of the original comment or credit authors.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-/**
- * tdmcreate module
- *
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
- * @package tdmcreate
- * @since 2.5.5
- * @author Txmod Xoops <su...@tx...>
- * @version $Id: 1.59 repository.php 11297 2013-03-24 10:58:10Z timgno $
- */
-include 'header.php';
-// Recovered value of argument op in the URL $
-$op = TDMCreateRequest::getString('op', 'list');
-//
-$mod_id = TDMCreateRequest::getInt('mod_id');
-//
-switch ($op)
-{
- case 'list':
- default:
- $start = TDMCreateRequest::getInt('start', 0);
- $limit = TDMCreateRequest::getInt('limit', $tdmcreate->getConfig('repository_adminpager'));
- // Define main template
- $template_main = 'repository.tpl';
- $GLOBALS['xoTheme']->addScript('modules/TDMCreate/js/functions.js');
- $GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/css/admin/style.css' );
- $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('repository.php'));
- $adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'repository.php?op=new', 'add');
- $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
- $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
- $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgrep_url', TDMC_UPLOAD_IMGREP_URL);
- $GLOBALS['xoopsTpl']->assign('modPathIcon16', $modPathIcon16);
- $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);
- $criteria = new CriteriaCompo();
- $criteria->setSort('mod_id ASC, mod_name');
- $criteria->setOrder('ASC');
- $nb_modules = $tdmcreate->getHandler('repository')->getCount( $criteria );
- $mods_arr = $tdmcreate->getHandler('repository')->getAll( $criteria );
- unset($criteria);
- // Redirect if there aren't repository
- if ( $nb_modules == 0 ) {
- redirect_header('repository.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
- }
- // Display repository list
- if ( $nb_modules > 0 ) {
- foreach (array_keys($mods_arr) as $i) {
- $mod['id'] = $i;
- $mod['name'] = $mods_arr[$i]->getVar('mod_name');
- $mod['version'] = $mods_arr[$i]->getVar('mod_version');
- $mod['image'] = $mods_arr[$i]->getVar('mod_image');
- $mod['release'] = $mods_arr[$i]->getVar('mod_release');
- $mod['status'] = $mods_arr[$i]->getVar('mod_status');
- $mod['admin'] = $mods_arr[$i]->getVar('mod_admin');
- $mod['user'] = $mods_arr[$i]->getVar('mod_user');
- $mod['search'] = $mods_arr[$i]->getVar('mod_search');
- $mod['comments'] = $mods_arr[$i]->getVar('mod_comments');
- $mod['notifications'] = $mods_arr[$i]->getVar('mod_notifications');
- $mod['permissions'] = $mods_arr[$i]->getVar('mod_permissions');
- $GLOBALS['xoopsTpl']->append('repository_list', $mod);
- unset($mod);
- }
- if ( $nb_modules > $limit ) {
- include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- $pagenav = new XoopsPageNav($nb_modules, $limit, $start, 'start', 'op=list&limit=' . $limit);
- $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
- }
- } else {
- $GLOBALS['xoopsTpl']->assign('error', _AM_TDMCREATE_THEREARENT_MODULES);
- }
- break;
-
- case 'new':
- // Define main template
- $template_main = 'repository.tpl';
- $GLOBALS['xoTheme']->addScript('modules/TDMCreate/js/functions.js');
- $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('repository.php'));
- $adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'repository.php', 'list');
- $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
-
- $obj =& $tdmcreate->getHandler('repository')->create();
- $form = $obj->getForm();
- $GLOBALS['xoopsTpl']->assign('form', $form->render());
- break;
-
- case 'save':
- if ( !$GLOBALS['xoopsSecurity']->check() ) {
- redirect_header('repository.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
- }
- if (isset($mod_id)) {
- $obj =& $tdmcreate->getHandler('repository')->get($mod_id);
- } else {
- $obj =& $tdmcreate->getHandler('repository')->create();
- }
- //Form module save
- $obj->setVars(array('mod_name' => $_POST['mod_name'],
- 'mod_version' => $_POST['mod_version'],
- 'mod_since' => $_POST['mod_since'],
- 'mod_min_php' => $_POST['mod_min_php'],
- 'mod_min_xoops' => $_POST['mod_min_xoops'],
- 'mod_min_admin' => $_POST['mod_min_admin'],
- 'mod_min_mysql' => $_POST['mod_min_mysql'],
- 'mod_description' => $_POST['mod_description'],
- 'mod_author' => $_POST['mod_author'],
- 'mod_author_mail' => $_POST['mod_author_mail'],
- 'mod_author_website_url' => $_POST['mod_author_website_url'],
- 'mod_author_website_name' => $_POST['mod_author_website_name'],
- 'mod_credits' => $_POST['mod_credits'],
- 'mod_license' => $_POST['mod_license'],
- 'mod_release_info' => $_POST['mod_release_info'],
- 'mod_release_file' => $_POST['mod_release_file'],
- 'mod_manual' => $_POST['mod_manual'],
- 'mod_manual_file' => $_POST['mod_manual_file']));
- //Form mod_image
- include_once XOOPS_ROOT_PATH . '/class/uploader.php';
- $uploader = new XoopsMediaUploader(TDMC_UPLOAD_IMGMOD_PATH, $tdmcreate->getConfig('mimetypes'),
- $tdmcreate->getConfig('maxsize'), null, null);
- if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
- $extension = preg_replace( '/^.+\.([^.]+)$/sU' , '\\1' , $_FILES['attachedfile']['name']);
- $name_img = strtolower($_POST['mod_name']).'_slogo.'.$extension;
- $uploader->setPrefix($name_img);
- $uploader->fetchMedia($_POST['xoops_upload_file'][0]);
- if (!$uploader->upload()) {
- $errors = $uploader->getErrors();
- redirect_header('javascript:history.go(-1)',3, $errors);
- } else {
- $obj->setVar('mod_image', $uploader->getSavedFileName());
- }
- } else {
- $obj->setVar('mod_image', $_POST['mod_image']);
- }
- //Form module save
- $obj->setVars(array('mod_demo_site_url' => $_POST['mod_demo_site_url'],
- 'mod_demo_site_name' => $_POST['mod_demo_site_name'],
- 'mod_support_url' => $_POST['mod_support_url'],
- 'mod_support_name' => $_POST['mod_support_name'],
- 'mod_website_url' => $_POST['mod_website_url'],
- 'mod_website_name' => $_POST['mod_website_name'],
- 'mod_release' => $_POST['mod_release'],
- 'mod_status' => $_POST['mod_status'],
- 'mod_admin' => (($_REQUEST['mod_admin'] == 1) ? '1' : '0'),
- 'mod_user' => (($_REQUEST['mod_user'] == 1) ? '1' : '0'),
- 'mod_search' => (($_REQUEST['mod_search'] == 1) ? '1' : '0'),
- 'mod_comments' => (($_REQUEST['mod_comments'] == 1) ? '1' : '0'),
- 'mod_notifications' => (($_REQUEST['mod_notifications'] == 1) ? '1' : '0'),
- 'mod_permissions' => (($_REQUEST['mod_permissions'] == 1) ? '1' : '0'),
- 'mod_inroot_copy' => (($_REQUEST['mod_inroot_copy'] == 1) ? '1' : '0'),
- 'mod_donations' => $_POST['mod_donations'],
- 'mod_subversion' => $_POST['mod_subversion'])
- );
-
- if ($tdmcreate->getHandler('repository')->insert($obj)) {
- redirect_header('repository.php', 2, _AM_TDMCREATE_FORMOK);
- }
-
- $GLOBALS['xoopsTpl']->assign('error', $obj->getHtmlErrors());
- $form =& $obj->getForm();
- $GLOBALS['xoopsTpl']->assign('form', $form->render());
- break;
-
- case 'edit':
- // Define main template
- $template_main = 'repository.tpl';
- $GLOBALS['xoTheme']->addScript('modules/TDMCreate/js/functions.js');
- $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('repository.php'));
- $adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'repository.php?op=new', 'add');
- $adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'repository.php', 'list');
- $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
-
- $obj = $tdmcreate->getHandler('repository')->get($mod_id);
- $form = $obj->getForm();
- $GLOBALS['xoopsTpl']->assign('form', $form->render());
- break;
-
- case 'delete':
- $obj =& $tdmcreate->getHandler('repository')->get($mod_id);
- if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
- if ( !$GLOBALS['xoopsSecurity']->check() ) {
- redirect_header('repository.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
- }
- if ($tdmcreate->getHandler('repository')->delete($obj)) {
- redirect_header('repository.php', 3, _AM_TDMCREATE_FORMDELOK);
- } else {
- $GLOBALS['xoopsTpl']->assign('error', $obj->getHtmlErrors());
- }
- } else {
- xoops_confirm(array('ok' => 1, 'mod_id' => $mod_id, 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('mod_name')));
- }
- break;
-
- case 'display':
- $mod_admin = TDMCreateRequest::getInt('mod_admin');
- $mod_user = TDMCreateRequest::getInt('mod_user');
- $mod_search = TDMCreateRequest::getInt('mod_search');
- $mod_comments = TDMCreateRequest::getInt('mod_comments');
- $mod_notifications = TDMCreateRequest::getInt('mod_notifications');
- $mod_permissions = TDMCreateRequest::getInt('mod_permissions');
-
- if ( $mod_id > 0 ) {
- $obj =& $tdmcreate->getHandler('repository')->get($mod_id);
- if(isset($mod_adminm)) {
- $obj->setVar('mod_admin', $mod_admin);
- } elseif(isset($mod_user)) {
- $obj->setVar('mod_user', $mod_user);
- } elseif(isset($mod_search)) {
- $obj->setVar('mod_search', $mod_search);
- } elseif(isset($mod_comments)) {
- $obj->setVar('mod_comments', $mod_comments);
- } elseif(isset($mod_notifications)) {
- $obj->setVar('mod_notifications', $mod_notifications);
- } elseif(isset($mod_permissions)) {
- $obj->setVar('mod_permissions', $mod_permissions);
- }
- if ($tdmcreate->getHandler('repository')->insert($obj, true)) {
- redirect_header('repository.php', 1, _AM_TDMCREATE_TOGGLE_SUCCESS);
- } else {
- redirect_header('repository.php', 1, _AM_TDMCREATE_TOGGLE_FAILED);
- }
- }
- break;
-}
-include 'footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-18 17:18:31 UTC (rev 12618)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-18 22:38:58 UTC (rev 12619)
@@ -252,7 +252,8 @@
$field_block = $isNew ? 0 : $field->getVar('field_block');
$check_field_block = new XoopsFormCheckBox('', 'field_block['.$id.']', $field_block);
$check_field_block->addOption(1, _AM_TDMCREATE_FIELD_BLOCK);
- $parameters_tray->addElement($check_field_block);
+ $parameters_tray->addElement($check_field_block);
+
$main = $field->getVar('field_main');
$field_main = $isNew ? $id : $main;
if($main == 1) {
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-18 17:18:31 UTC (rev 12618)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/pages.php 2014-06-18 22:38:58 UTC (rev 12619)
@@ -80,7 +80,9 @@
* @param string $table_name
* @param string $language
*/
- public function getAdminPagesList($table_name, $language, $fields, $fpif, $fpmf) {
+ public function getAdminPagesList($module_name, $table_name, $language, $fields, $fpif, $fpmf) {
+ $stu_mod_name = strtoupper($module_name);
+ $stl_mod_name = strtolower($module_name);
$stu_table_name = strtoupper($table_name);
$ret = <<<EOT
case 'list':
@@ -95,7 +97,8 @@
\${$table_name}_rows = \${$table_name}Handler->getCount(\$criteria);
\${$table_name}_arr = \${$table_name}Handler->getAll(\$criteria);
unset(\$criteria);
-
+ \$GLOBALS['xoopsTpl']->assign('{$stl_mod_name}_url', {$stu_mod_name}_URL);
+ \$GLOBALS['xoopsTpl']->assign('{$stl_mod_name}_upload_url', {$stu_mod_name}_UPLOAD_URL);
// Table view
if (\${$table_name}_rows > 0)
{
@@ -297,7 +300,7 @@
}
$content = $this->getHeaderFilesComments($module, $filename);
$content .= $this->getAdminPagesHeader($module_name, $table_name);
- $content .= $this->getAdminPagesList($table_name, $language, $fields, $fpif, $fpmf);
+ $content .= $this->getAdminPagesList($module_name, $table_name, $language, $fields, $fpif, $fpmf);
$content .= $this->getAdminPagesNew($table_name, $language);
$content .= $this->getAdminPagesSave($module_name, $table_name, $language, $fields, $fpif, $fpmf);
$content .= $this->getAdminPagesEdit($table_name, $language, $fpif);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-18 17:18:31 UTC (rev 12618)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/admin/pages.php 2014-06-18 22:38:58 UTC (rev 12619)
@@ -58,7 +58,8 @@
public function renderFile($filename) {
$module = $this->getModule();
$table = $this->getTable();
- $module_name = $module->getVar('mod_name');
+ $module_name = $module->getVar('mod_name');
+ $stl_mod_name = strtolower($module_name);
$table_name = $table->getVar('table_name');
$table_fieldname = $table->getVar('table_fieldname');
//
@@ -100,7 +101,7 @@
}
if( $field_element == 9 ) {
$content .= <<<EOT
- <td class="center"><img src="<{\$xoops_url}>/uploads/{$module_name}/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
+ <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
EOT;
} elseif( $field_element == 8 ) {
$content .= <<<EOT
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-18 17:18:31 UTC (rev 12618)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/templates/user/pages.php 2014-06-18 22:38:58 UTC (rev 12619)
@@ -60,6 +60,7 @@
$module = $this->getModule();
$table = $this->getTable();
$module_name = $module->getVar('mod_name');
+ $stl_mod_name = strtolower($module_name);
$table_name = $table->getVar('table_name');
$table_fieldname = $table->getVar('table_fieldname');
//$filename = $this->getFileName();
@@ -82,7 +83,7 @@
$content .= <<<EOT
</tr>
<{foreach item={$table_fieldname} from=\${$table_name}}>
- <tr class="<{cycle values=\'odd, even\'}>">\n
+ <tr class="<{cycle values='odd, even'}>">\n
EOT;
foreach(array_keys($fields) as $f)
{
@@ -97,7 +98,7 @@
}
if( $field_element == 9 ) {
$content .= <<<EOT
- <td class="center"><img src="<{\$xoops_url}>/uploads/{$module_name}/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
+ <td class="center"><img src="<{\${$stl_mod_name}_upload_url}>/images/{$table_name}/<{\${$table_fieldname}.{$rp_field_name}}>" alt="{$table_name}"></td>\n
EOT;
} elseif( $field_element == 8 ) {
$content .= <<<EOT
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php 2014-06-18 17:18:31 UTC (rev 12618)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/pages.php 2014-06-18 22:38:58 UTC (rev 12619)
@@ -71,7 +71,7 @@
\${$table_name}_rows = \${$table_name}Handler->getCount();
\${$table_name}_arr = \${$table_name}Handler->getAll(\$criteria);
unset(\$criteria);
-
+
// Table view
if (\${$table_name}_rows > 0)
{
@@ -138,6 +138,8 @@
// Get Handler
\${$stl_table_name}Handler =& xoops_getModuleHandler('{$stl_table_name}', \$dirname);
//
+\$GLOBALS['xoopsTpl']->assign('{$stl_mod_name}_upload_url', {$stu_mod_name}_UPLOAD_URL);
+//
\$criteria = new CriteriaCompo();
\${$stl_table_name}_count = \${$stl_table_name}Handler->getCount(\$criteria);
\${$stl_table_name}_arr = \${$stl_table_name}Handler->getAll(\$criteria);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-18 17:18:31 UTC (rev 12618)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-06-18 22:38:58 UTC (rev 12619)
@@ -55,7 +55,7 @@
$modversion['min_php'] = "5.3";
$modversion['min_xoops'] = "2.5.7";
$modversion['min_admin'] = "1.1";
-$modversion['min_db'] = array('mysql' => '5.5.8', 'mysqli' => '5.5.8');
+$modversion['min_db'] = array('mysql' => '5.0.7', 'mysqli' => '5.0.7');
//about
$modversion['demo_site_url'] = "http://www.xoops.org/";
$modversion['demo_site_name'] = "Xoops TDM";
|
|
From: <rgr...@us...> - 2014-06-18 17:18:34
|
Revision: 12618
http://sourceforge.net/p/xoops/svn/12618
Author: rgriffith
Date: 2014-06-18 17:18:31 +0000 (Wed, 18 Jun 2014)
Log Message:
-----------
For use on servers where write to root is not possible.
Added Paths:
-----------
XoopsCore/branches/2.5.x/2.5.7/extras/mainfile.php
Added: XoopsCore/branches/2.5.x/2.5.7/extras/mainfile.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/extras/mainfile.php (rev 0)
+++ XoopsCore/branches/2.5.x/2.5.7/extras/mainfile.php 2014-06-18 17:18:31 UTC (rev 12618)
@@ -0,0 +1,19 @@
+<?php
+/**
+ * This is a dummy placeholder for mainfile.php, the XOOPS configuration file
+ *
+ * This is only needed for installation on servers that cannot write a file directly
+ * into the main XOOPS root directory. On these servers, the install will stop
+ * progressing after configuring the database (install/page_dbconnection.php)
+ *
+ * If you experience this problem:
+ * - copy this file to the XOOPS root directory
+ * - set the file permissions to make it writeable
+ * - rerun the install
+ *
+ * Typical writable permission would be 665 (user read/write, group read/write, other read)
+ * If problems persist, escalate permission to 777 (world read/write/execute) as a last resort.
+ */
+if (! defined('XOOPS_INSTALL')) {
+ header('Location: install/index.php');
+}
|