From: <lor...@us...> - 2012-07-19 09:19:36
|
Revision: 9900 http://xoops.svn.sourceforge.net/xoops/?rev=9900&view=rev Author: lord_venom Date: 2012-07-19 09:19:29 +0000 (Thu, 19 Jul 2012) Log Message: ----------- re-news category Modified Paths: -------------- XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_tpfile.html XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php Modified: XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php 2012-07-18 13:40:59 UTC (rev 9899) +++ XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php 2012-07-19 09:19:29 UTC (rev 9900) @@ -89,31 +89,35 @@ $parent_link = TDMPICTURE_URL."/viewcat.php?ct=".$this->_tree[$this->_tree[$key]['parent']]['obj']->getVar('cat_id')."&tris=".$tris."&limit=".$limit; $GLOBALS['navbar'] .= '<a href ="'.$parent_link.'" title="'. $this->_tree[$this->_tree[$key]['parent']]['obj']->getVar('cat_title').'">' . $this->_tree[$this->_tree[$key]['parent']]['obj']->getVar('cat_title'). '</a> > '; - } + } + - $GLOBALS['cat_count'] = $count; + //$GLOBALS['cat_count'] = $count; $GLOBALS['cat_title'] = $this->_tree[$key]['obj']->getVar('cat_title'); + $select = $this->makeSelBox('cat_pid', 'cat_title','-', $selected, '', $this->_tree[$key]['obj']->getVar('cat_id'), "OnChange='window.document.location=this.options[this.selectedIndex].value;'", 'tdmpicture_catview'); - $ret2 = '<li class="'.$GLOBALS['class'].'"><div><div id="img">'.$picture. '<br/><span id="tree_num"> ('.$count.')</span></div><div id="tree_detail"><h2><a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'">'. $this->_tree[$key]['obj']->getVar( $fieldName ). '</h2></a><span id="tree_text">'. $this->_tree[$key]['obj']->getVar('cat_text'). '</span></div><br style="clear: both;" /><div id="tree_form">'.$GLOBALS['navbar'].$select.' | '._MD_TDMPICTURE_TRIBY.' > '.$navtrie.'</div></div></div></li>'; - } + } //if ((!$prefix_curr) && ($this->_tree[$key]['obj']->getVar('cat_pid') == $selected)) { - if (($scat_display) && $this->_tree[$key]['obj']->getVar('cat_pid') == $selected) { + if (($scat_display) && $this->_tree[$key]['obj']->getVar('cat_pid') == $selected) { - if (!empty( $this->_tree[$key]['child'] )) { + if ((!$prefix_curr) || ($xoopsModuleConfig['tdmpicture_cat_display'])) { + + if (!empty( $this->_tree[$key]['child'] ) && ($xoopsModuleConfig['tdmpicture_cat_select'])) { $select = $this->makeSelBox('cat_pid', 'cat_title','-', 0, '', $this->_tree[$key]['obj']->getVar('cat_id'), "OnChange='window.document.location=this.options[this.selectedIndex].value;'", 'tdmpicture_catview'); } else { $select = false; } + + $cat_title = (strlen($this->_tree[$key]['obj']->getVar('cat_title')) > 30 ? substr($this->_tree[$key]['obj']->getVar('cat_title'),0,(30)) : $this->_tree[$key]['obj']->getVar('cat_title')); - $cat_text = (strlen($this->_tree[$key]['obj']->getVar('cat_text')) > 120 ? substr($this->_tree[$key]['obj']->getVar('cat_text'),0,(120))."..." : $this->_tree[$key]['obj']->getVar('cat_text')); + $cat_text = (strlen($this->_tree[$key]['obj']->getVar('cat_text')) > 120 ? substr($this->_tree[$key]['obj']->getVar('cat_text'),0,(120))."..." : $this->_tree[$key]['obj']->getVar('cat_text')); + $ret .= '<li style="width:46%;" class="'.$GLOBALS['class'].'"><div><div id="img">'.$picture. '<br/><span id="tree_num"> ('.$count.')</span></div><div id="tree_detail"><h2><a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'">'. $cat_title. '</h2></a><span id="tree_text">'. $cat_text. '</span></div><br style="clear: both;" /><div id="tree_form">'.$select.'</div></div></div></li>'; + } - - $ret .= '<li style="width:46%;" class="'.$GLOBALS['class'].'"><div><div id="img">'.$picture. '<br/><span id="tree_num"> ('.$count.')</span></div><div id="tree_detail"><h2><a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'">'. $cat_title. '</h2></a><span id="tree_text">'. $cat_text. '</span></div><br style="clear: both;" /><div id="tree_form">'.$select.'</div></div></div></li>'; - } Modified: XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php 2012-07-18 13:40:59 UTC (rev 9899) +++ XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php 2012-07-19 09:19:29 UTC (rev 9900) @@ -79,10 +79,10 @@ //version 1.5 //define("_MI_TDMPICTURE_CAT_CEL","Affichage catégorie : Nombre de colonne"); -//define("_MI_TDMPICTURE_CAT_DISPLAY","Affichage : Style des catégories"); -//define("_MI_TDMPICTURE_CAT_DISPLAY_TEXT","Catégorie puis sous-catégorie (sans image)"); -//define("_MI_TDMPICTURE_CAT_DISPLAY_TEXTIMG","Catégorie puis sous-catégorie (avec image)"); -//define("_MI_TDMPICTURE_CAT_DISPLAY_SUB","Catégorie et sous-catégorie (sans image)"); +define("_MI_TDMPICTURE_CAT_DISPLAY","Catégorie: Afficher les sous-catégorie"); +//define("_MI_TDMPICTURE_CAT_DISPLAY_BLOCK","Block"); +define("_MI_TDMPICTURE_CAT_SELECT","Catégorie: Afficher les Select"); +//define("_MI_TDMPICTURE_CAT_DISPLAY_ALL","Les deux"); //define("_MI_TDMPICTURE_CAT_DISPLAY_SUBIMG","Catégorie et sous-catégorie (avec image)"); //define("_MI_TDMPICTURE_CAT_DISPLAY_IMG","Image"); //define("_MI_TDMPICTURE_CAT_DISPLAY_NONE","Non"); Modified: XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_tpfile.html =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_tpfile.html 2012-07-18 13:40:59 UTC (rev 9899) +++ XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_tpfile.html 2012-07-19 09:19:29 UTC (rev 9900) @@ -9,7 +9,7 @@ <li> <div class="switch_img"> -<a href="<{$smarty.const.TDMPICTURE_URL}>/viewfile.php?st=<{$file.id}>&tris=<{$tris}>"><img src="<{$file.img}>" slide="<{$file.img_popup}>" rel="group1" title="<{$file.title}>" alt="<{$file.title}>" /></a> +<a href="<{$smarty.const.TDMPICTURE_URL}>/viewfile.php?st=<{$file.id}>&tris=<{$tris}>"><img src="<{$file.img}>" slide="<{$file.img_popup}>" class="group1" rel="group1" title="<{$file.title}>" alt="<{$file.title}>" /></a> </div> Modified: XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php 2012-07-18 13:40:59 UTC (rev 9899) +++ XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php 2012-07-19 09:19:29 UTC (rev 9900) @@ -272,14 +272,20 @@ $modversion['config'][$i]['default'] = 400; $i++; //version 1.5 -//$modversion['config'][$i]['name'] = 'tdmpicture_cat_display'; -//$modversion['config'][$i]['title'] = '_MI_TDMPICTURE_CAT_DISPLAY'; -//$modversion['config'][$i]['description'] = ''; -//$modversion['config'][$i]['formtype'] = 'select'; -//$modversion['config'][$i]['valuetype'] = 'text'; -//$modversion['config'][$i]['default'] = 'text'; -//$modversion['config'][$i]['options'] = array(_MI_TDMPICTURE_CAT_DISPLAY_NONE => 'none' , _MI_TDMPICTURE_CAT_DISPLAY_SUB => 'sub', _MI_TDMPICTURE_CAT_DISPLAY_SUBIMG => 'subimg', _MI_TDMPICTURE_CAT_DISPLAY_TEXT => 'text', _MI_TDMPICTURE_CAT_DISPLAY_TEXTIMG => 'textimg', _MI_TDMPICTURE_CAT_DISPLAY_IMG => 'img'); -//$i++; +$modversion['config'][$i]['name'] = 'tdmpicture_cat_display'; +$modversion['config'][$i]['title'] = '_MI_TDMPICTURE_CAT_DISPLAY'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'tdmpicture_cat_select'; +$modversion['config'][$i]['title'] = '_MI_TDMPICTURE_CAT_SELECT'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = '1'; +$i++; //$modversion['config'][$i]['name'] = 'tdmpicture_cat_cel'; //$modversion['config'][$i]['title'] = '_MI_TDMPICTURE_CAT_CEL'; //$modversion['config'][$i]['description'] = ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lor...@us...> - 2012-07-21 07:35:54
|
Revision: 9904 http://xoops.svn.sourceforge.net/xoops/?rev=9904&view=rev Author: lord_venom Date: 2012-07-21 07:35:48 +0000 (Sat, 21 Jul 2012) Log Message: ----------- Modified Paths: -------------- XoopsModules/TDMPicture/trunk/TDMPicture/admin/about.php XoopsModules/TDMPicture/trunk/TDMPicture/language/french/admin.php XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php Modified: XoopsModules/TDMPicture/trunk/TDMPicture/admin/about.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/admin/about.php 2012-07-21 07:10:19 UTC (rev 9903) +++ XoopsModules/TDMPicture/trunk/TDMPicture/admin/about.php 2012-07-21 07:35:48 UTC (rev 9904) @@ -22,7 +22,10 @@ xoops_cp_header(); $aboutAdmin = new ModuleAdmin(); - +$file_protection = "Tatane, Xoopsfr<br /><br /> +Cesag, Xoopsfr<br /><br />Grosdunord, Xoopsfr<br /><br />Phira, Xoopsfr<br />"; +$aboutAdmin->addInfoBox(_AM_TDMPICTURE_TEST); +$aboutAdmin->addInfoBoxLine(_AM_TDMPICTURE_TEST, $file_protection, '', '', 'information'); echo $aboutAdmin->addNavigation('about.php'); echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', FALSE); Modified: XoopsModules/TDMPicture/trunk/TDMPicture/language/french/admin.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/language/french/admin.php 2012-07-21 07:10:19 UTC (rev 9903) +++ XoopsModules/TDMPicture/trunk/TDMPicture/language/french/admin.php 2012-07-21 07:35:48 UTC (rev 9904) @@ -25,6 +25,7 @@ define("_AM_TDMPICTURE_NAVPERMISSIONS","Permissions"); define("_AM_TDMPICTURE_NAVUPDATE","Update"); define("_AM_TDMPICTURE_NAVABOUT","About"); +define("_AM_TDMPICTURE_TEST","Beta Testeur"); Modified: XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php 2012-07-21 07:10:19 UTC (rev 9903) +++ XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php 2012-07-21 07:35:48 UTC (rev 9904) @@ -24,8 +24,8 @@ $modversion['name'] = "TDMPicture"; $modversion['version'] = 1.067; $modversion['description'] = 'Image manager'; -$modversion['credits'] = "none"; -$modversion['author'] = 'TDM'; +$modversion['credits'] = ""; +$modversion['author'] = 'TDM, Venom'; $modversion['pseudo'] = 'Venom'; $modversion['website'] = ''; $modversion['name_website'] = ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lor...@us...> - 2012-07-24 10:57:40
|
Revision: 9917 http://xoops.svn.sourceforge.net/xoops/?rev=9917&view=rev Author: lord_venom Date: 2012-07-24 10:57:29 +0000 (Tue, 24 Jul 2012) Log Message: ----------- Modified Paths: -------------- XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_viewfile.html XoopsModules/TDMPicture/trunk/TDMPicture/viewfile.php Modified: XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_viewfile.html =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_viewfile.html 2012-07-23 23:14:15 UTC (rev 9916) +++ XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_viewfile.html 2012-07-24 10:57:29 UTC (rev 9917) @@ -165,6 +165,6 @@ <{/if}> -<br class="clear"/> <br /> +<br class="clear"/><br /> </div> \ No newline at end of file Modified: XoopsModules/TDMPicture/trunk/TDMPicture/viewfile.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/viewfile.php 2012-07-23 23:14:15 UTC (rev 9916) +++ XoopsModules/TDMPicture/trunk/TDMPicture/viewfile.php 2012-07-24 10:57:29 UTC (rev 9917) @@ -97,7 +97,7 @@ //$cat_cel = $xoopsModuleConfig['tdmpicture_cat_cel']; $display_cat = $mytree->makeCatBox($file_handler, 'cat_title','-', $ct); $xoopsTpl->assign('display_cat', $display_cat); - $xoopsTpl->assign('numfile', $GLOBALS['cat_count']); + //navigation $navigation = ''; @@ -158,7 +158,7 @@ $criteria2->setLimit(1); $file_arr = $file_handler->getObjects($criteria2); $numfile = $file_handler->getCount($criteria2); - //$xoopsTpl->assign('numfile', $numfile); + $xoopsTpl->assign('numfile', $numfile); $file = array(); $files = array(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lor...@us...> - 2013-01-08 21:45:30
|
Revision: 10203 http://xoops.svn.sourceforge.net/xoops/?rev=10203&view=rev Author: lord_venom Date: 2013-01-08 21:45:19 +0000 (Tue, 08 Jan 2013) Log Message: ----------- all modif Modified Paths: -------------- XoopsModules/TDMPicture/trunk/TDMPicture/admin/cat.php XoopsModules/TDMPicture/trunk/TDMPicture/admin/menu.php XoopsModules/TDMPicture/trunk/TDMPicture/css/tdmpicture.css XoopsModules/TDMPicture/trunk/TDMPicture/images/diapo.png XoopsModules/TDMPicture/trunk/TDMPicture/images/down.png XoopsModules/TDMPicture/trunk/TDMPicture/images/min_demo.png XoopsModules/TDMPicture/trunk/TDMPicture/images/min_down.png XoopsModules/TDMPicture/trunk/TDMPicture/images/min_photo.png XoopsModules/TDMPicture/trunk/TDMPicture/images/photo.png XoopsModules/TDMPicture/trunk/TDMPicture/images/upload.png XoopsModules/TDMPicture/trunk/TDMPicture/images/user.png XoopsModules/TDMPicture/trunk/TDMPicture/images/view_choose.png XoopsModules/TDMPicture/trunk/TDMPicture/images/zoom.png XoopsModules/TDMPicture/trunk/TDMPicture/include/common.php XoopsModules/TDMPicture/trunk/TDMPicture/include/functions.php XoopsModules/TDMPicture/trunk/TDMPicture/include/jquery.php XoopsModules/TDMPicture/trunk/TDMPicture/index.php XoopsModules/TDMPicture/trunk/TDMPicture/js/AudioPlayer.js XoopsModules/TDMPicture/trunk/TDMPicture/language/french/main.php XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_index.html XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_tpfile.html XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_viewcat.html XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_viewfile.html XoopsModules/TDMPicture/trunk/TDMPicture/viewcat.php XoopsModules/TDMPicture/trunk/TDMPicture/viewfile.php XoopsModules/TDMPicture/trunk/TDMPicture/xoops_version.php Added Paths: ----------- XoopsModules/TDMPicture/trunk/TDMPicture/admin/import.php XoopsModules/TDMPicture/trunk/TDMPicture/class/tree2.php XoopsModules/TDMPicture/trunk/TDMPicture/css/Base.css XoopsModules/TDMPicture/trunk/TDMPicture/css/BreadCrumb.css XoopsModules/TDMPicture/trunk/TDMPicture/images/Chevron.gif XoopsModules/TDMPicture/trunk/TDMPicture/images/ChevronOverlay.png XoopsModules/TDMPicture/trunk/TDMPicture/images/IconHome.gif XoopsModules/TDMPicture/trunk/TDMPicture/images/asc.png XoopsModules/TDMPicture/trunk/TDMPicture/images/desc.png XoopsModules/TDMPicture/trunk/TDMPicture/images/user.gif XoopsModules/TDMPicture/trunk/TDMPicture/js/jquery.jBreadCrumb.1.1.js Modified: XoopsModules/TDMPicture/trunk/TDMPicture/admin/cat.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/admin/cat.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/admin/cat.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -178,14 +178,14 @@ //Parameters $criteria = new CriteriaCompo(); - $limit = 10; - if (isset($_REQUEST['start'])) { - $criteria->setStart($_REQUEST['start']); - $start = $_REQUEST['start']; - } else { - $criteria->setStart(0); - $start = 0; - } + //$limit = 10; + //if (isset($_REQUEST['start'])) { + //$criteria->setStart($_REQUEST['start']); + //$start = $_REQUEST['start']; + //} else { + //$criteria->setStart(0); + //$start = 0; + //} if (isset($_REQUEST['cat_display'])) { $criteria->add(new Criteria('cat_display', $_REQUEST['cat_display'])); @@ -198,12 +198,12 @@ $numrows = $cat_handler->getCount(); //nav - if ( $numrows > $limit ) { - $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&cat_display='.$_REQUEST['cat_display']); - $pagenav = $pagenav->renderNav(2); - } else { - $pagenav = ''; - } + //if ( $numrows > $limit ) { + //$pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&cat_display='.$_REQUEST['cat_display']); + //$pagenav = $pagenav->renderNav(2); + //} else { + //$pagenav = ''; + //} //Affichage du tableau des cat\xE9gories if ($numrows>0) { echo '<table width="100%" cellspacing="1" class="outer" >'; @@ -250,7 +250,7 @@ echo '</tr>'; } echo '</table><br /><br />'; - echo '<div align=right>'.$pagenav.'</div>'; + //echo '<div align=right>'.$pagenav.'</div>'; } else{ echo '<div class="errorMsg" style="text-align: center;">' . sprintf(_AM_TDMPICTURE_THEREARE_CAT,0) . '</div>'; } Added: XoopsModules/TDMPicture/trunk/TDMPicture/admin/import.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/admin/import.php (rev 0) +++ XoopsModules/TDMPicture/trunk/TDMPicture/admin/import.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -0,0 +1,108 @@ +<?php +/** + * **************************************************************************** + * - TDMSpot By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence PRO Copyright (c) (http://www.) + * + * Cette licence, contient des limitations + * + * 1. Vous devez poss\xE9der une permission d'ex\xE9cuter le logiciel, pour n'importe quel usage. + * 2. Vous ne devez pas l' \xE9tudier ni l'adapter \xE0 vos besoins, + * 3. Vous ne devez le redistribuer ni en faire des copies, + * 4. Vous n'avez pas la libert\xE9 de l'am\xE9liorer ni de rendre publiques les modifications + * + * @license TDMFR GNU public license + * @author TDMFR ; TEAM DEV MODULE + * + * **************************************************************************** + */ +include 'admin_header.php'; +xoops_cp_header(); + + +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list'; + + switch($op) { + + + case "contact": + global $xoopsConfig, $xoopsDB, $xoopsUser, $xoopsModule; + + $error = $xoopsDB->queryF("INSERT INTO ".$xoopsDB->prefix('tdmmp_contact')." + (id, userid, contact, name, uname, regdate) + SELECT + '', ct_userid, ct_contact, ct_name , ct_uname , ct_regdate + FROM ".$xoopsDB->prefix("priv_msgscont")); + +if ($error) { + redirect_header('import.php', 2, _PM_AM_BASE); +} else { +redirect_header('import.php', 2, _PM_AM_BASEERROR); +} + + break; + + case "list": + default: +$aboutAdmin = new ModuleAdmin(); +$file_protection = "Tatane, Xoopsfr<br /><br /> +Cesag, Xoopsfr<br /><br />Grosdunord, Xoopsfr<br /><br />Phira, Xoopsfr<br />"; +$aboutAdmin->addInfoBox(_AM_TDMPICTURE_TEST); +$aboutAdmin->addInfoBoxLine(_AM_TDMPICTURE_TEST, $file_protection, '', '', 'information'); +echo $aboutAdmin->addNavigation('about.php'); + echo $aboutAdmin->renderInfoBox(); + + +//menu +echo '<div class="CPbigTitle" style="background-image: url(../images/decos/import.png); background-repeat: no-repeat; background-position: left; padding-left: 60px; padding-top:20px; padding-bottom:15px;"><h3><strong>'._PM_AM_MANAGE_IMPORT.'</strong></h3>'; +echo '</div><br />'; + + +$sq1 = "SHOW TABLE STATUS FROM `".XOOPS_DB_NAME."` LIKE '".$xoopsDB->prefix("priv_msgscont")."'"; +$result1=$xoopsDB->queryF($sq1); +$contact=$xoopsDB->fetchArray($result1); + + echo '<fieldset><legend class="CPmediumTitle">priv_msgscont</legend> + + <br/>'; + if ($contact > 0) { + echo '<b><span style="color: green; padding-left: 20px;"><img src="./../images/on.gif" > ' .$contact['Name']. ' : '.tdmmp_PrettySize($contact['Data_length'] + $contact['Index_length']) . ' | <b><a href="import.php?op=contact">'._PM_AM_IMPORT.'</a></b>'; + } else { + echo '<b><span style="color: red; padding-left: 20px;"><img src="./../images/off.gif"> '. _PM_AM_IMPORT_NONE .'</a></span></b>'; + } + echo '<br /><br /> + </fieldset><br />'; + + +//$sq1 = "SHOW TABLE STATUS FROM `".XOOPS_DB_NAME."` LIKE '".$xoopsDB->prefix("wfs_article")."'"; +//$result1=$xoopsDB->queryF($sq1); +//$wf=$xoopsDB->fetchArray($result1); + +// echo '<fieldset><legend class="CPmediumTitle">'._AM_SPOT_IMPORT_WFSECTION.'</legend> +// <br/>'; +// if ($wf > 0) { +// echo '<b><span style="color: green; padding-left: 20px;"><img src="./../images/on.gif" > ' . tdmspot_PrettySize($wf['Data_length'] + $wf['Index_length']) . '</span></b> | <b><a href="index.php?op=wfsection">'._AM_SPOT_IMPORT.'</a></b>'; +// } else { +// echo '<b><span style="color: red; padding-left: 20px;"><img src="./../images/off.gif"> '. _AM_SPOT_IMPORT_NONE .'</a></span></b>'; +// } +// echo '<br /><br /> +// </fieldset><br />'; + +//$sq1 = "SHOW TABLE STATUS FROM `".XOOPS_DB_NAME."` LIKE '".$xoopsDB->prefix("xfs_article")."'"; +//$result1=$xoopsDB->queryF($sq1); +//$xf=$xoopsDB->fetchArray($result1); + +// echo '<fieldset><legend class="CPmediumTitle">'._AM_SPOT_IMPORT_XFSECTION.'</legend> +// <br/>'; +// if ($xf > 0) { +// echo '<b><span style="color: green; padding-left: 20px;"><img src="./../images/on.gif" > ' . tdmspot_PrettySize($xf['Data_length'] + $xf['Index_length']) . '</span></b> | <b><a href="index.php?op=xfsection">'._AM_SPOT_IMPORT.'</a></b>'; +// } else { +// echo '<b><span style="color: red; padding-left: 20px;"><img src="./../images/off.gif"> '. _AM_SPOT_IMPORT_NONE .'</a></span></b>'; +// } +// echo '<br /><br /> +// </fieldset><br />'; + + break; + } +include 'admin_footer.php'; +?> Modified: XoopsModules/TDMPicture/trunk/TDMPicture/admin/menu.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/admin/menu.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/admin/menu.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -69,8 +69,14 @@ $adminmenu[$i]["link"] = "admin/about.php"; $adminmenu[$i]["icon"] = $pathIcon32 . '/about.png'; +//1.07 +$i++; +$adminmenu[$i]['title'] = _MI_TDMPICTURE_ADMENUIMPORT; +$adminmenu[$i]["link"] = "admin/import.php"; +$adminmenu[$i]["icon"] = $pathIcon32 . '/about.png'; + //$adminmenu[0]['title'] = _MI_TDMPICTURE_ADMENUINDEX; //$adminmenu[0]['link'] = "admin/index.php"; Added: XoopsModules/TDMPicture/trunk/TDMPicture/class/tree2.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/class/tree2.php (rev 0) +++ XoopsModules/TDMPicture/trunk/TDMPicture/class/tree2.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -0,0 +1,291 @@ +<?php +/* **************************************************************************** + * TDMMoney - MODULE FOR XOOPS + * Copyright (c) G. Mage (www.tdmxoops.net) + * + * 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 G. Mage (www.tdmxoops.net) + * @license ??? + * @package TDMMoney + * @author G. Mage (www.tdmxoops.net) + * + * ***************************************************************************/ +if (!defined("XOOPS_ROOT_PATH")) { + die("XOOPS root path not defined"); +} + + + include_once XOOPS_ROOT_PATH . '/class/tree.php'; + +class TDMCATObjectTree extends XoopsObjectTree { + + //function __constrcut(){ + //} + function _makeArrayTreeOptions( $fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '' ) { + if ( $key > 0 ) { + + $value = $this->_tree[$key]['obj']->getVar( $this->_myId ); + $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar( $fieldName ); + $prefix_curr .= $prefix_orig; + + } + + if ( isset( $this->_tree[$key]['child'] ) && !empty( $this->_tree[$key]['child'] ) ) { + foreach ( $this->_tree[$key]['child'] as $childkey ) { + + $this->_makeArrayTreeOptions( $fieldName, $childkey, $ret, $prefix_orig, $prefix_curr ); + } + } + } + + function makeArrayTree( $fieldName, $prefix = '-', $key = 0) { + $ret = array(); + $this->_makeArrayTreeOptions( $fieldName, $key, $ret, $prefix ); + return $ret; + } + + function _makeCatBoxOptions( $item_handler, $fieldName, $selected, $key, &$ret, &$ret2, $prefix_orig, $prefix_curr = '') { +Global $xoopsModule, $xoopsModuleConfig, $cat_display, $cat_cel, $groups, $start, $limit, $tris ; + + + $gperm_handler =& xoops_gethandler('groupperm'); + $parent = ""; + $prefix_class = ""; + $scat_display = isset($GLOBALS['scat_display']) ? $GLOBALS['scat_display'] : true; + //$GLOBALS['navbar'] .= ""; + + + if ( $key > 0 && $gperm_handler->checkRight('tdmpicture_catview', $this->_tree[$key]['obj']->getVar('cat_id'), $groups, $xoopsModule->getVar('mid'))) { + $value = $this->_tree[$key]['obj']->getVar( $this->_myId ); + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('file_cat', $this->_tree[$key]['obj']->getVar('cat_id'))); + $criteria->add(new Criteria('file_display', 1)); + $GLOBALS['count'] = $count = $item_handler->getCount($criteria); + //$cat_link = tdmspot_seo_genUrl( $xoopsModuleConfig['tdmspot_seo_cat'], $this->_tree[$key]['obj']->getVar('id'), $this->_tree[$key]['obj']->getVar('title'), $start, $limit, $tris ); + $cat_link = TDMPICTURE_URL."/viewcat.php?ct=".$this->_tree[$key]['obj']->getVar('cat_id')."&tris=".$tris."&limit=".$limit; + //recherche image + $imgpath = TDMPICTURE_CAT_PATH . $this->_tree[$key]['obj']->getVar('cat_img'); + if (file_exists($imgpath) && $this->_tree[$key]['obj']->getVar('cat_img') != "blank.gif") { + $picture = '<a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'"><img src="' . TDMPICTURE_CAT_URL . $this->_tree[$key]['obj']->getVar('cat_img').'" class="img" width="'.$xoopsModuleConfig['tdmpicture_cat_width'].'" height="'.$xoopsModuleConfig['tdmpicture_cat_height'].'"></a>'; + } else { + $picture = '<a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'"><img src="' . TDMPICTURE_CAT_URL . 'no_picture.png" class="img" width="'.$xoopsModuleConfig['tdmpicture_cat_width'].'" height="'.$xoopsModuleConfig['tdmpicture_cat_height'].'"></a>'; + } + + if (empty($prefix_curr)) { + //echo $this->_tree[$key]['obj']->getVar('cat_title'); + $prefix_class = "class=last"; + }else { + $prefix_class = ""; + //echo "passe"; + } + + if (isset($selected) && $value == $selected ) { + + if ( isset( $this->_tree[$this->_tree[$key]['parent']]['obj'] ) ) { + $category_parent = $this->getAllParent($key); + $category_parent = array_reverse($category_parent); + + foreach (array_keys($category_parent) as $j) { + $parent_link = TDMPICTURE_URL."/viewcat.php?ct=".$category_parent[$j]->getVar('cat_id')."&tris=".$tris."&limit=".$limit; + $ret .= '<li class=last><a href="' .$parent_link . '">' . $category_parent[$j]->getVar('cat_title') . '</a></li>'; + } + + } + + + $prefix_class = "class=last"; + $GLOBALS['cat_title'] = $this->_tree[$key]['obj']->getVar('cat_title'); + $ret .= '<li class=last><a href ="'.$cat_link.'" title="('.$count.')">'.$this->_tree[$key]['obj']->getVar('cat_title'). '</a></li>'; + + } + + if ($this->_tree[$key]['obj']->getVar('cat_pid') == $selected) { + + $cat_title = (strlen($this->_tree[$key]['obj']->getVar('cat_title')) > 30 ? substr($this->_tree[$key]['obj']->getVar('cat_title'),0,(30)) : $this->_tree[$key]['obj']->getVar('cat_title')); + $cat_text = (strlen($this->_tree[$key]['obj']->getVar('cat_text')) > 120 ? substr($this->_tree[$key]['obj']->getVar('cat_text'),0,(120))."..." : $this->_tree[$key]['obj']->getVar('cat_text')); + + $ret .= '<li '.$prefix_class.'><a href ="'.$cat_link.'" title="('.$count.')">'.$cat_title. '</a></li>'; + //$ret .= $select; + //echo $cat_title; + //} + } + + //} + + $prefix_curr++; + + //} + + } + + + + + if ( isset( $this->_tree[$key]['child'] ) && !empty( $this->_tree[$key]['child'] ) ) { + foreach ( $this->_tree[$key]['child'] as $childkey ) { + $this->_makeCatBoxOptions( $item_handler, $fieldName, $selected, $childkey, $ret, $ret2, $prefix_orig, $prefix_curr); + + + } + } + + } + + + function _makeSelBoxOptions( $fieldName, $selected, $key, &$ret, $perm, $prefix_orig, $prefix_curr = '' ) { + + global $start, $tris, $limit, $groups, $xoopsUser, $xoopsModule, $xoopsModuleConfig; + + //perm + $gperm_handler =& xoops_gethandler('groupperm'); + if (is_object($xoopsUser)) { + $groups = $xoopsUser->getGroups(); + $uid = $xoopsUser->getVar('uid'); + } else { + $groups = XOOPS_GROUP_ANONYMOUS; + $uid = 0; + } + // + if ( $key > 0 ) { + $value = $this->_tree[$key]['obj']->getVar( $this->_myId ); + //$url = "viewcat.php?ct=".$this->_tree[$key]['obj']->getVar($this->_myId)."&tris=".$tris."&limit=".$limit; + //$value = tdmspot_seo_genUrl( $xoopsModuleConfig['tdmspot_seo_cat'], $this->_tree[$key]['obj']->getVar('id'), $this->_tree[$key]['obj']->getVar('title'), $start, $limit, $tris ); + + if ( !empty( $perm ) && $gperm_handler->checkRight($perm, $value, $groups, $xoopsModule->getVar('mid'))) { + + $ret .= '<option value="' . $value . '"'; + + if ( $value == $selected ) { + $ret .= ' selected="selected"'; + } + $ret .= '>' . $prefix_curr . $this->_tree[$key]['obj']->getVar( $fieldName ) . '</option>'; + } + $prefix_curr .= $prefix_orig; + } + if ( isset( $this->_tree[$key]['child'] ) && !empty( $this->_tree[$key]['child'] ) ) { + foreach ( $this->_tree[$key]['child'] as $childkey ) { + $this->_makeSelBoxOptions( $fieldName, $selected, $childkey, $ret, $perm, $prefix_orig, $prefix_curr ); + } + } + } + + function _makeCatBoxOptions2( $fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '', $i=0) { + + global $start, $tris, $limit, $groups, $xoopsUser, $xoopsModule, $xoopsModuleConfig, $count, $xoopsTpl; + + //perm + $gperm_handler =& xoops_gethandler('groupperm'); + if (is_object($xoopsUser)) { + $groups = $xoopsUser->getGroups(); + $uid = $xoopsUser->getVar('uid'); + } else { + $groups = XOOPS_GROUP_ANONYMOUS; + $uid = 0; + } + // + if ( $key > 0 && $this->_tree[$key]['obj']->getVar('cat_pid') !=0 ) { + $value = $this->_tree[$key]['obj']->getVar( $this->_myId ); + $url = "viewcat.php?ct=".$this->_tree[$key]['obj']->getVar($this->_myId)."&tris=".$tris."&limit=".$limit; + //$value = tdmspot_seo_genUrl( $xoopsModuleConfig['tdmspot_seo_cat'], $this->_tree[$key]['obj']->getVar('id'), $this->_tree[$key]['obj']->getVar('title'), $start, $limit, $tris ); + + + if ($value == $selected) { + //$ret .= '<li class=last><a href ="'.$cat_link.'" title="('.$count.')">'. $cat_title. '</a></li>'; + $prefix_curr = "class=last"; + + $GLOBALS['cat_title'] = $this->_tree[$key]['obj']->getVar('cat_title'); + + } + + if ( $key > 0 && $gperm_handler->checkRight('tdmpicture_catview', $this->_tree[$key]['obj']->getVar('cat_id'), $groups, $xoopsModule->getVar('mid'))) { + + //if ( $value == $selected ) { + // $ret .= ' selected="selected"'; + //} + $this->_tree[$key]['obj']->getVar( $fieldName ); + + $ret .= '<li '.$prefix_curr.'><a href="' . $url . '" title="'.$count.'">' . $this->_tree[$key]['obj']->getVar( $fieldName ) . '</a></li>'; + + } + $prefix_curr .= $prefix_orig; + $i++; + } + if ( isset( $this->_tree[$key]['child'] ) && !empty( $this->_tree[$key]['child'] ) ) { + foreach ( $this->_tree[$key]['child'] as $childkey ) { + + //sous cat + if ($i<=1){ + $this->_makeCatBoxOptions2( $fieldName, $selected, $childkey, $ret, $prefix_orig, $prefix_curr, $i ); + $i++; + } + + } + } + } + + //fonction du trie + function makeSelTris($cat, $tris, $order) { + + global $start, $tris, $limit, $groups, $xoopsUser, $xoopsModule, $xoopsModuleConfig; + + //option du tris / nom de champ sql => nom afficher // + $option = array('file_title' => _MD_TDMPICTURE_TRITITLE , 'file_indate' => _MD_TDMPICTURE_TRIDATE, 'file_counts' => _MD_TDMPICTURE_TRICOUNTS, 'file_hits' => _MD_TDMPICTURE_TRIHITS, 'file_comments' => _MD_TDMPICTURE_TRICOMMENT); + + $ret = '<select name="tris" onchange="window.document.location=this.options[this.selectedIndex].value;">'; + + foreach ($option as $key => $value) { + $select = ($tris == $key) ? 'selected="selected"' : false; + $cat_link = TDMPICTURE_URL."/viewcat.php?ct=".$cat."&tris=".$key; + $ret .= '<option '.$select.' value="'.$cat_link.'">'.$value.'</option>'; + + } + $ret .= '</select>'; + if ($order == "desc") { + $ret .= '<a href='.TDMPICTURE_URL.'/viewcat.php?ct='.$cat.'&tris='.$tris.'&order=asc title='._MD_TDMPICTURE_ASC.'><img src='.TDMPICTURE_IMAGES_URL.'/asc.png></a>'; + } else { + $ret .= '<a href='.TDMPICTURE_URL.'/viewcat.php?ct='.$cat.'&tris='.$tris.'&order=desc title='._MD_TDMPICTURE_DESC.' ><img src='.TDMPICTURE_IMAGES_URL.'/desc.png></a>'; + } + return $ret; + } + + //makeCatBox($item_handler,name cat, ) + function makeCatBox( $item_handler, $fieldName, $prefix = '-', $selected = '', $key = 0 ) { + global $cat_display, $xoopsModule, $xoopsModuleConfig; + + + $ret = '<div class="breadCrumbHolder module"> + <div id="breadCrumb" class="breadCrumb module outer"> + <ul>'; + $ret .= '<li class=first><a href ="'.TDMPICTURE_URL.'"/index.php" title="'. $xoopsModule->name().'">' . $xoopsModule->name(). '</a></li>'; + $chcount = 1; + $GLOBALS['class'] = "odd"; + $this->_makeCatBoxOptions( $item_handler, $fieldName, $selected, $key, $ret, $ret2, '', '', $chcount ); + $ret .= $ret2; + $ret .= '</ul></div>'; + + return $ret; + + } + + function makecatSelBox( $name, $fieldName, $prefix = '-', $selected = '', $addEmptyOption = false, $key = 0, $extra = '', $perm = false ) { + + //$ret = '<select name="' . $name . '" id="' . $name . '" ' . $extra . '>'; + //if ( false != $addEmptyOption ) { + // $ret .= '<option value="0">'.$addEmptyOption.'</option>'; + //} + //if(!$extra){ + //$this->_makeSelBoxOptions( $fieldName, $selected, $key, $ret, $perm, $prefix ); + //} else { + $this->_makeSelBoxOptions2( $fieldName, $selected, $key, $ret, $perm, $prefix ); + //} + return $ret . '</select>'; + } + +} +?> \ No newline at end of file Added: XoopsModules/TDMPicture/trunk/TDMPicture/css/Base.css =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/css/Base.css (rev 0) +++ XoopsModules/TDMPicture/trunk/TDMPicture/css/Base.css 2013-01-08 21:45:19 UTC (rev 10203) @@ -0,0 +1,231 @@ +/* Float Clearing + ---------------------------------------------------------------------*/ + +.module:after +{ + clear: both; + content: "."; + display: block; + height: 0; + visibility: hidden; +} + +/* float clearing for IE6 */ +* html .module +{ + height: 1%; + overflow: visible; +} + +/* float clearing for IE7 */ +* + html .module +{ + min-height: 1%; +} + + +/* General Typography + ---------------------------------------------------------------------*/ +html, body +{ + font-size: 12px; + line-height: 21px; + color: #444; + font-family: Arial, Helvetica, sans-serif; + font-style: normal; + font-variant: normal; + font-weight: normal; + background:#f3f3f3; +} + +html > body +{ + font-size: 12px; + line-height: 21px; +} + + +h1 +{ + font-weight: bold; + color: #007ac3; + font-size: 2em; + line-height: 1em; + margin: 1.25em 0 .75em 0; +} + +h2 +{ + color: #1371aa; + font-weight: bold; + font-size: 1.6666em; + line-height: 1em; + margin: 1.25em 0 .75em 0; +} + +h3 +{ + color: #1371aa; + font-size: 1.41667em; + line-height: 1em; + font-weight: bold; + margin: 1.25em 0 .75em 0; +} + +h4 +{ + color: #000; + font-size: 1.1667em; + line-height: 1em; + font-weight: bold; + margin: 1.25em 0 .5em 0; +} + +h5 +{ + color: #000; + font-size: 1em; + line-height: 1em; + font-weight: bold; + margin: 1.25em 0 .5em 0; +} + +h6 +{ + color: #000; + font-size: 1em; + line-height: 1em; + font-weight: bold; + margin: 1.25em 0 .5em 0; +} + +strong +{ + font-weight: bold; +} + +em +{ + font-style: italic; + line-height: 1.75em; +} + +p +{ + font-size: 1em; + line-height: 1.75em; + margin: .25em 0 1.5em; +} +td, td a, th, th a, span +{ + line-height: 1.3333em; +} + +blockquote +{ + margin: .416em 0 .416em 1.1667em; +} + +a +{ + color: #0e82c7; + text-decoration: none; + font-size: inherit; + font-weight: inherit; +} + +a:hover +{ + text-decoration: underline; +} + +ul, ol +{ + margin: .833em 0; + padding-left: 2em; +} +ul +{ + list-style-type: disc; +} +ol +{ + list-style-type: decimal; +} +ul li, ol li +{ + line-height: 1.5em; +} + +dt +{ + margin: .416em 0 0 0; +} + +dd +{ + margin: .416em 0 .416em 1.1667em; +} + +pre, code, tt +{ + font-family: "Andale Mono" , "Lucida Console" , "Courier New" , Courier, monospace; + margin: .833em 0; +} +sub +{ + vertical-align: sub; + font-size: smaller; + line-height:inherit; +} + +sup +{ + vertical-align: super; + font-size: smaller; + line-height:inherit; +} + +/* Page Specific + ---------------------------------------------------------------------*/ + +#container +{ + +margin:0 auto 10px; +text-align:left; +width:1000px; +} +.breadCrumbHolder +{ + margin:0 0 20px 0; +} +pre +{ + background:#ddd; + border:solid 1px #fff; + padding:10px; + color:#111; +} +.description +{ + float:left; + width:700px; + margin-right:20px; +} +.sideBar +{ + float:left; + background:#fff; + border:solid 1px #dedede; + padding:20px; + width:238px; + margin:50px 0 0 0; +} +.license p +{ + font-size:0.83333em; + color:#888; +} + + Added: XoopsModules/TDMPicture/trunk/TDMPicture/css/BreadCrumb.css =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/css/BreadCrumb.css (rev 0) +++ XoopsModules/TDMPicture/trunk/TDMPicture/css/BreadCrumb.css 2013-01-08 21:45:19 UTC (rev 10203) @@ -0,0 +1,109 @@ +/* Float Clearing + ---------------------------------------------------------------------*/ + +.module:after +{ + clear: both; + content: "."; + display: block; + height: 0; + visibility: hidden; +} + +/* float clearing for IE6 */ +* html .module +{ + height: 1%; + overflow: visible; +} + +/* float clearing for IE7 */ +* + html .module +{ + min-height: 1%; +} + +/* Breadcrumb Styles + ---------------------------------------------------------------------*/ + +.breadCrumb +{ + margin: 0; + padding: 0; + float: left; + display: block; + height: 21px; + overflow: hidden; + width: 990px; + padding:5px; + border:solid 1px #dedede; + background:#fff; +} +.breadCrumb ul +{ + margin: 0; + padding: 0; + height: 21px; + display: block; +} +.breadCrumb ul li +{ + display: block; + float: left; + position: relative; + height: 21px; + overflow: hidden; + line-height: 21px; + margin: 0px 6px 0px 0; + padding: 0px 10px 0px 0; + font-size: .9167em; + background: url(../Images/Chevron.gif) no-repeat 100% 0; +} +.breadCrumb ul li div.chevronOverlay +{ + position: absolute; + right: 0; + top: 0; + z-index: 2; +} +.breadCrumb ul li span +{ + display: block; + overflow: hidden; +} +.breadCrumb ul li a +{ + display: block; + position: relative; + height: 21px; + line-height: 21px; + overflow: hidden; + float: left; +} +.breadCrumb ul li.first a +{ + height: 16px !important; + text-indent:-1000em; + width:16px; + padding: 0; + margin-top: 2px; + overflow: hidden; + background:url(../Images/IconHome.gif) no-repeat 0 0; +} +.breadCrumb ul li.first a:hover +{ + background-position: 0 -16px; +} +.breadCrumb ul li.last +{ + background: none; + margin-right: 0; + padding-right: 0; +} +.chevronOverlay +{ + display: none; + background: url(../Images/ChevronOverlay.png) no-repeat 100% 0; + width: 13px; + height: 20px; +} Modified: XoopsModules/TDMPicture/trunk/TDMPicture/css/tdmpicture.css =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/css/tdmpicture.css 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/css/tdmpicture.css 2013-01-08 21:45:19 UTC (rev 10203) @@ -15,7 +15,139 @@ * * **************************************************************************** */ + + /* Breadcrumb Styles + ---------------------------------------------------------------------*/ +.breadCrumb +{ + margin: 0; + padding: 0; + + display: block; + height: 21px; + overflow: hidden; + + padding:5px; + +} +.breadCrumb ul +{ + margin: 0; + padding: 0; + height: 21px; + display: block; +} +.breadCrumb ul li +{ + display: block; + float: left; + position: relative; + height: 21px; + overflow: hidden; + line-height: 21px; + margin: 0px 6px 0px 0; + padding: 0px 10px 0px 0; + font-size: .9167em; + background: url(../Images/Chevron.gif) no-repeat 100% 0; +} +.breadCrumb ul li div.chevronOverlay +{ + position: absolute; + right: 0; + top: 0; + z-index: 2; +} +.breadCrumb ul li span +{ + display: block; + overflow: hidden; +} +.breadCrumb ul li a +{ + display: block; + position: relative; + height: 21px; + line-height: 21px; + overflow: hidden; + float: left; +} +.breadCrumb ul li.first a +{ + height: 16px !important; + text-indent:-1000em; + width:16px; + padding: 0; + margin-top: 2px; + overflow: hidden; + background:url(../Images/IconHome.gif) no-repeat 0 0; +} +.breadCrumb ul li.first a:hover +{ + background-position: 0 -16px; +} +.breadCrumb ul li.last a +{ + background: none; + color : #000; + margin-right: 0; + padding-right: 0; +} +.chevronOverlay +{ + display: none; + background: url(../Images/ChevronOverlay.png) no-repeat 100% 0; + width: 13px; + height: 20px; +} + +/*****************/ + +ul#tdm_tree{ + position:relative; + padding:0; + white-space:nowrap; + list-style: none inside none; +} +ul#tdm_tree li{ + float: left; + margin-left: 10px; +} + + +ul#tdm_tree li a{ + display:inline-block; + padding: 5px 10px 5px 10px; + text-decoration:none; + text-shadow:0 1px 0 white; + background-color:#E3E3E3; +} +ul#tdm_tree li a:hover{ + text-shadow:0 0px 0 black; + background: #212121; + color: #E4E4E4; + +} + +ul#tdm_tree li span{ + position:absolute; + margin-top:24px; + margin-left:-80px; + background: #212121; + padding:10px; + transform:scale(0) rotate(-12deg); + transition:all .25s; + opacity:0; +} + +ul#tdm_tree li :hover span, ul#tdm_tree li :focus span{ + transform:scale(1) rotate(0); +opacity:1; +} + + /* fin*/ + + ul#tree_menu { text-align: center; width:100%; @@ -84,19 +216,29 @@ color: #728DA9; text-shadow: 0 1px 0 white; line-height: 20px; +margin: 0; +padding: 0; +border: 0; +outline: 0; } #tdmpicture_num, #tdmpicture_num a, ul#tree_menu #tree_num{ text-align: center; font-weight: normal; -font-size: 11px; +font-size: 9px; color: #25587C; -text-shadow: 0 1px 0 white; } + #tdmpicture_num a{ font-weight: bold; } + #tdmpicture_num span, #tdmpicture_num span a { + font-weight: bold; + font-size: 14px; + text-shadow: 0 1px 0 white; + } + ul#tree_menu #tree_form{ float:right; @@ -283,7 +425,7 @@ list-style-type: none; float: left; width: 99%; - text-align:center; + text-align:left; list-style: none; margin: 10px; left:0; @@ -312,9 +454,12 @@ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - - + } +.switch_img :hover { + filter : alpha(opacity=60); + opacity : 0.6; +} .switch_switch { @@ -330,23 +475,29 @@ } .switch_title, .switch_title a { - margin-top:10px; + width:500px; } .switch_desc { - float:left; + height:100px; text-align:left; margin: 10px; - padding: 10px; + padding-left: 100px; font-size: 1.1em; + overflow:auto; } .switch_in { +float:left; margin-top: 10px; padding: 2px; text-transform: uppercase; + font-weight: normal; +font-size: 10px; +color: #25587C; +text-shadow: 0 1px 0 white; } .switch_in a { @@ -362,7 +513,8 @@ } .switch_info { - width: 80px; + width: 72px; + height:40px; text-align: center; margin: 10px; padding: 10px; @@ -372,7 +524,7 @@ } -.switch_info hr { +.switch_info hr , .switch_large hr { display:block; color: #DDD; background-color: #DDD; @@ -380,6 +532,35 @@ border: 0; } +.switch_large { + width: 300px; + text-align: center; + margin: 10px; + padding: 10px; + border: 1px solid #DDD; + text-transform: uppercase; + float:right; + +} +.switch_mediuml { + width: 150px; + text-align: left; + padding-left:20px; + border-left: 1px solid #DDD; + text-transform: uppercase; + line-height: 18px; + float: right; + +} +.switch_mediumr { + width: 150px; + text-align: left; + padding-left:20px; + text-transform: uppercase; + line-height: 18px; + +} + .switch_link { text-align:center; padding: 5px; @@ -526,17 +707,23 @@ + ----------------------------------------------------- */ .TDMNav { -display: block; + float: right; text-align:right; -background-color: #e9e9e9; -border: 1px solid #cccccc; text-decoration: none; font-weight: normal; -color: #565656; -padding: 5px; } +.TDMNavl { +float: left; +padding-left: 20px; +text-align:right; +text-decoration: none; +font-weight: normal; +} + + + /* + ----------------------------------------------------- DISPLAY CAT FUNCTION TEXT + ----------------------------------------------------- */ Added: XoopsModules/TDMPicture/trunk/TDMPicture/images/Chevron.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/TDMPicture/trunk/TDMPicture/images/Chevron.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/TDMPicture/trunk/TDMPicture/images/ChevronOverlay.png =================================================================== (Binary files differ) Property changes on: XoopsModules/TDMPicture/trunk/TDMPicture/images/ChevronOverlay.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/TDMPicture/trunk/TDMPicture/images/IconHome.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/TDMPicture/trunk/TDMPicture/images/IconHome.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/TDMPicture/trunk/TDMPicture/images/asc.png =================================================================== (Binary files differ) Property changes on: XoopsModules/TDMPicture/trunk/TDMPicture/images/asc.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/TDMPicture/trunk/TDMPicture/images/desc.png =================================================================== (Binary files differ) Property changes on: XoopsModules/TDMPicture/trunk/TDMPicture/images/desc.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/diapo.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/down.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/min_demo.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/min_down.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/min_photo.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/photo.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/upload.png =================================================================== (Binary files differ) Added: XoopsModules/TDMPicture/trunk/TDMPicture/images/user.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/TDMPicture/trunk/TDMPicture/images/user.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/user.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/view_choose.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/images/zoom.png =================================================================== (Binary files differ) Modified: XoopsModules/TDMPicture/trunk/TDMPicture/include/common.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/include/common.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/include/common.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -54,5 +54,6 @@ include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; include_once XOOPS_ROOT_PATH."/class/tree.php"; include_once TDMPICTURE_ROOT_PATH . '/class/tree.php'; +include_once TDMPICTURE_ROOT_PATH . '/class/tree2.php'; ?> Modified: XoopsModules/TDMPicture/trunk/TDMPicture/include/functions.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/include/functions.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/include/functions.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -32,6 +32,7 @@ $xoTheme->addScript(XOOPS_URL."/modules/".$xoopsModule->dirname()."/js/jquery-ui-1.7.1.custom.min.js"); $xoTheme->addScript(XOOPS_URL."/modules/".$xoopsModule->dirname()."/js/AudioPlayer.js"); $xoTheme->addScript(XOOPS_URL."/modules/".$xoopsModule->dirname()."/js/jquery.colorbox.js"); +$xoTheme->addScript(XOOPS_URL."/modules/".$xoopsModule->dirname()."/js/jquery.jBreadCrumb.1.1.js"); $xoTheme->addStylesheet(XOOPS_URL."/modules/".$xoopsModule->dirname()."/css/tdmpicture.css"); @@ -261,6 +262,27 @@ return $select_view; } +function print_tab($array, $before = "", $after = "") { + + //Affichage du texte HTML avant le tableau + + echo $before."\n"; + + //Encadrement de l'affichage du tableau par des balises <PRE> + + echo "<pre>\n"; + + //Affichage r\xE9cursif du tableau + + print_r($array); + + echo "</pre>\n"; + + //Affichage du texte HTML apr\xE8s le tableau + + echo $after."\n"; + +} /** * admin menu */ Modified: XoopsModules/TDMPicture/trunk/TDMPicture/include/jquery.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/include/jquery.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/include/jquery.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -227,119 +227,6 @@ } break; - -case "playlist": - - global $xoopsDB, $xoopsTpl, $xoopsModule, $xoopsModuleConfig, $xoopsUser; - - include(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/classAudioFile.php"); - -if (empty($xoopsUser)) { - echo '<div class="head" align="center"><a href="'.XOOPS_URL.'/user.php">'._MD_TDMPICTURE_QUERYNOREGISTER.'</a></div>'; -exit(); -} - -if (!$gperm_handler->checkRight('sound_view', 4, $groups, $xoopsModule->getVar('mid'))) { -echo _MD_TDMPICTURE_QUERYNOPERM; -exit(); -} - - //playlist - $criteria3 = new CriteriaCompo(); - $criteria3->setSort('pl_indate'); - $criteria3->setOrder('DESC'); - $criteria3->add(new Criteria('pl_uid', $xoopsUser->getVar('uid'))); - - $pl_arr = $pl_handler->getObjects($criteria3); - $numfile = $pl_handler->getCount($criteria3); - - $xoopsTpl->assign('numfile', $numfile); - //class tag - $mp3 = new AudioFile(); - // - - foreach (array_keys($pl_arr) as $f) { - - //cherche le fichier - $ret = $file_handler->get($pl_arr[$f]->getVar('pl_file')); - $file['file_pl_id'] = $pl_arr[$f]->getVar('pl_id'); - // - - //cherche le genre - $genre = $genre_handler->get($ret->getVar('file_genre')); - $file['file_genre'] = $myts->displayTarea($genre->getVar('genre_title')); - $file['file_genre_id'] = $ret->getVar('file_genre'); - // - //cherche l'album - $alb = $alb_handler->get($ret->getVar('file_album')); - $file['file_album_title'] = $myts->displayTarea($alb->getVar('alb_title')); - //$file['file_album_img'] = $alb->getVar('alb_img'); - $file['file_album_file'] = $alb->getVar('alb_file'); - $img = $alb->getVar("alb_img") ? $alb->getVar("alb_img") : 'null.png'; - $imgpath = XOOPS_ROOT_PATH . "/modules/".$xoopsModule->dirname()."/sound/".$alb->getVar("alb_file")."/".$img; - if (file_exists($imgpath)) { - $file['file_album_img'] = XOOPS_URL. "/modules/".$xoopsModule->dirname()."/sound/".$alb->getVar("alb_file")."/".$alb->getVar("alb_img"); - } else { - $file['file_album_img'] = XOOPS_URL. "/modules/".$xoopsModule->dirname()."/images/blank.png"; - } - // - //cherche l'artiste - $art = $art_handler->get($ret->getVar('file_artiste')); - $file['file_artiste_title'] = $myts->displayTarea($art->getVar('art_title')); - // - - $file['file_id'] = $ret->getVar("file_id"); - $file['file_title'] = $myts->displayTarea($ret->getVar("file_title")); - $file['file_album'] = $ret->getVar("file_album"); - $file['file_artiste'] = $ret->getVar("file_artiste"); - $file['file_hits'] = $ret->getVar("file_hits"); - $file['file_dl'] = $ret->getVar("file_dl"); - //nombre de vote - $file['file_votes'] = $ret->getVar('file_votes'); - //total des votes - $file['file_counts'] = $ret->getVar("file_counts"); - -//moyen des vote - @$moyen = ceil( $file['file_votes']/ $file['file_counts'] ); - if (@$moyen == 0) { - $file['file_moyen'] = ""; - } else { - $file['file_moyen'] = "<img src='./images/rate".$moyen.".png'/>"; - } - - $file['file_track'] = 'track_p_'.$f; - //$file['file_trackurl'] = $ret->getVar("file_img"); - - //if ($ret->getVar("file_ext") == 0) { - //$file['file_trackurl'] = XOOPS_URL."/modules/".$xoopsModule->dirname()."/sound/".$ret->getVar("file_img"); - //} else { - //$file['file_trackurl'] = $ret->getVar("file_img"); - //} - - //creer le path fichier - $filename = XOOPS_ROOT_PATH . "/modules/".$xoopsModule->dirname()."/sound/".$ret->getVar('file_img'); - //extrait les tags - $mp3->loadFile($filename); - $file['file_tagid'] = $ret->getVar("file_tagid") ? $ret->getVar("file_tagid") : $mp3->wave_type; - $file['file_tagsize'] = $ret->getVar("file_tagsize") ? tdmpicture_PrettySize($ret->getVar("file_tagsize")) : tdmpicture_PrettySize($mp3->wave_size); - $file['file_tagchannel'] = $ret->getVar("file_tagchannel") ? $ret->getVar("file_tagchannel") : $mp3->wave_channels; - $file['file_tagbyterate'] = $ret->getVar("file_tagbyterate") ? $ret->getVar("file_tagbyterate") : $mp3->wave_byterate; - $file['file_tagframerate'] = $ret->getVar("file_tagframerate") ? $ret->getVar("file_tagframerate") : $mp3->wave_framerate; - $file['file_taglength'] = $ret->getVar("file_taglength") ? $ret->getVar("file_taglength") : date("i:s", mktime(0,0,round($mp3->wave_length))); - //$file['file_tagyear'] = $mp3->id3_year; - // - - $xoopsTpl->assign('files', $file); - - $xoopsTpl->display('db:tdmpicture_tpplaylist.html'); - - } - - if ($numfile == 0) { - echo '<div class="head" align="center">'._MD_TDMPICTURE_NONEFILE.'</div>'; - } - - break; case "hits": Modified: XoopsModules/TDMPicture/trunk/TDMPicture/index.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/index.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/index.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -63,30 +63,47 @@ // Liste des Categories // ************************************************************ - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria('cat_display', 1)); + //$criteria = new CriteriaCompo(); + //$criteria->add(new Criteria('cat_display', 1)); //$criteria->add(new Criteria('cat_index', 1)); - $criteria->setSort('cat_weight'); - $criteria->setOrder('DESC'); + //$criteria->setSort('cat_weight'); + //$criteria->setOrder('DESC'); //$criteria->add(new Criteria('cat_display', 1)); - $cat_arr = $cat_handler->getall($criteria); - $mytree = new TDMObjectTree($cat_arr, 'cat_id', 'cat_pid'); + //$cat_arr = $cat_handler->getall($criteria); + //$mytree = new TDMObjectTree($cat_arr, 'cat_id', 'cat_pid'); //asigne les URL //define("TDM_CAT_URL", TDMPICTURE_CAT_URL); //define("TDM_CAT_PATH", TDMPICTURE_CAT_PATH); //define("TDM_CAT_LINK", "viewcat.php"); //$cat_display = $xoopsModuleConfig['tdmpicture_cat_display']; //$cat_cel = $xoopsModuleConfig['tdmpicture_cat_cel']; - $display_cat = $mytree->makeCatBox($file_handler, 'cat_title','-', $cat = false); - $xoopsTpl->assign('display_cat', $display_cat); + //$display_cat = $mytree->makeCatBox($file_handler, 'cat_title','-', $cat = false); + //$xoopsTpl->assign('display_cat', $display_cat); - $numcat = $cat_handler->getCount($criteria); - $xoopsTpl->assign('numcat', $numcat); + //$numcat = $cat_handler->getCount($criteria); + //$xoopsTpl->assign('numcat', $numcat); unset($criteria); -$xoopsTpl->assign('selectcat', tdmpicture_catselect($mytree, false)); +//$xoopsTpl->assign('selectcat', tdmpicture_catselect($mytree, false)); + +//news categorie + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('cat_display', 1)); + //$criteria->add(new Criteria('cat_index', 1)); + $criteria->setSort('cat_weight'); + $criteria->setOrder('DESC'); + //$criteria->add(new Criteria('cat_display', 1)); + $cat_arr = $cat_handler->getall($criteria); + $mytree = new TDMCATObjectTree($cat_arr, 'cat_id', 'cat_pid'); + $display_cat = $mytree->makeCatBox($file_handler, 'cat_title','-', $cat = false); + + $numcat = $cat_handler->getCount($criteria); + $xoopsTpl->assign('tree_display', $display_cat); + $xoopsTpl->assign('tree_title', _MD_TDMPICTURE_LAST); + // + // ************************************************************ // Liste des derniers fichier // ************************************************************ Modified: XoopsModules/TDMPicture/trunk/TDMPicture/js/AudioPlayer.js =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/js/AudioPlayer.js 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/js/AudioPlayer.js 2013-01-08 21:45:19 UTC (rev 10203) @@ -74,34 +74,7 @@ }); -//effect sur imgage - $tdmpicture('.switch_img a img').hover(function() { - //$tdmpicture(this).fadeTo('slow', 0.5) - //var Maxwidth = $tdmpicture(this).width() + 10; - //var Maxheight = $tdmpicture(this).height() + 10; - - //$tdmpicture(this).css({'z-index' : '1000'}); - $tdmpicture(this).animate({ - //marginTop: '-5px', - opacity: 0.4 - //marginLeft: '-5px', - //width: Maxwidth, - //height: Maxheight - }, 200); - - }, function() { - //$tdmpicture(this).fadeTo('slow', 255); - // $tdmpicture(this).css({'z-index' : '0'}); - $tdmpicture(this).css({'opacity' : '1'}); - // $tdmpicture(this).width(''); - // $tdmpicture(this).height(''); - // $tdmpicture(this).css({'margin-top' : '0'}); - // $tdmpicture(this).css({'margin-left' : '0'}); - - - }); - }); /*creer input*/ @@ -208,28 +181,7 @@ return false; } -function funct_PlayList() -{ - // Utilisation d'Ajax / jQuery pour l'envoie - $.ajax({ - type: "POST", - url: "./include/jquery.php", - data: "op=playlist", - success: function(msg){ - //var $tabs = $('#tabs').tabs(); - //$tabs.tabs('select', 1); - $('#TDMPlaylist').html(msg); - - //reint le lecteur - currTab = "#TDMPlaylist"; - initShowUpPlayer(currTab); - - } - }); - // Nous retournons "false" au navigateur afin que la page ne soit pas actualisé - return false; -} function AddPlayLists(id) { Added: XoopsModules/TDMPicture/trunk/TDMPicture/js/jquery.jBreadCrumb.1.1.js =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/js/jquery.jBreadCrumb.1.1.js (rev 0) +++ XoopsModules/TDMPicture/trunk/TDMPicture/js/jquery.jBreadCrumb.1.1.js 2013-01-08 21:45:19 UTC (rev 10203) @@ -0,0 +1,250 @@ +/** + * @author Jason Roy for CompareNetworks Inc. + * Thanks to mikejbond for suggested udaptes + * + * Version 1.1 + * Copyright (c) 2009 CompareNetworks Inc. + * + * Licensed under the MIT license: + * http://www.opensource.org/licenses/mit-license.php + * + */ +(function($) +{ + + // Private variables + + var _options = {}; + var _container = {}; + var _breadCrumbElements = {}; + var _autoIntervalArray = []; + var _easingEquation; + + // Public functions + + jQuery.fn.jBreadCrumb = function(options) + { + _options = $.extend({}, $.fn.jBreadCrumb.defaults, options); + + return this.each(function() + { + _container = $(this); + setupBreadCrumb(); + }); + + }; + + // Private functions + + function setupBreadCrumb() + { + //Check if easing plugin exists. If it doesn't, use "swing" + if(typeof(jQuery.easing) == 'object') + { + _easingEquation = 'easeOutQuad' + } + else + { + _easingEquation = 'swing' + } + + //The reference object containing all of the breadcrumb elements + _breadCrumbElements = jQuery(_container).find('li'); + + //Keep it from overflowing in ie6 & 7 + jQuery(_container).find('ul').wrap('<div style="overflow:hidden; position:relative; width: ' + jQuery(_container).css("width") + ';"><div>'); + //Set an arbitrary width width to avoid float drop on the animation + jQuery(_container).find('ul').width(5000); + + //If the breadcrumb contains nothing, don't do anything + if (_breadCrumbElements.length > 0) + { + //jQuery(_breadCrumbElements[_breadCrumbElements.length - 1]).addClass('last'); + jQuery(_breadCrumbElements[0]).addClass('first'); + + //If the breadcrumb object length is long enough, compress. + + if (_breadCrumbElements.length > _options.minimumCompressionElements) + { + compressBreadCrumb(); + }; + }; + }; + + function compressBreadCrumb() + { + + // Factor to determine if we should compress the element at all + var finalElement = jQuery(_breadCrumbElements[_breadCrumbElements.length - 1]); + + + // If the final element is really long, compress more elements + if (jQuery(finalElement).width() > _options.maxFinalElementLength) + { + if (_options.beginingElementsToLeaveOpen > 0) + { + _options.beginingElementsToLeaveOpen--; + + } + if (_options.endElementsToLeaveOpen > 0) + { + _options.endElementsToLeaveOpen--; + } + } + // If the final element is within the short and long range, compress to the default end elements and 1 less beginning elements + if (jQuery(finalElement).width() < _options.maxFinalElementLength && jQuery(finalElement).width() > _options.minFinalElementLength) + { + if (_options.beginingElementsToLeaveOpen > 0) + { + _options.beginingElementsToLeaveOpen--; + + } + } + + var itemsToRemove = _breadCrumbElements.length - 0 - _options.endElementsToLeaveOpen; + + // We compress only elements determined by the formula setting below + + //TODO : Make this smarter, it's only checking the final elements length. It could also check the amount of elements. + jQuery(_breadCrumbElements[_breadCrumbElements.length - 1]).css( + { + background: 'none' + }); + + $(_breadCrumbElements).each(function(i, listElement) + { + if (i > _options.beginingElementsToLeaveOpen && i < itemsToRemove) + { + + jQuery(listElement).find('a').wrap('<span></span>').width(jQuery(listElement).find('a').width() + 10); + + // Add the overlay png. + + + if (jQuery(listElement).attr("class") == 'tree_vue') { + return; + } + + if (jQuery(listElement).attr("class") == 'last') { + return; + } + + jQuery(listElement).append(jQuery('<div class="' + _options.overlayClass + '"></div>').css( + { + display: 'block' + })).css( + { + background: 'none' + }); + if (isIE6OrLess()) + { + fixPNG(jQuery(listElement).find('.' + _options.overlayClass).css( + { + width: '20px', + right: "-1px" + })); + } + var options = + { + id: i, + width: jQuery(listElement).width(), + listElement: jQuery(listElement).find('span'), + isAnimating: false, + element: jQuery(listElement).find('span') + + }; + jQuery(listElement).bind('mouseover', options, expandBreadCrumb).bind('mouseout', options, shrinkBreadCrumb); + jQuery(listElement).find('a').unbind('mouseover', expandBreadCrumb).unbind('mouseout', shrinkBreadCrumb); + listElement.autoInterval = setInterval(function() + { + clearInterval(listElement.autoInterval); + jQuery(listElement).find('span').animate( + { + width: _options.previewWidth + }, _options.timeInitialCollapse, _options.easing); + }, (150 * (i - 2))); + + } + }); + + }; + + function expandBreadCrumb(e) + { + var elementID = e.data.id; + var originalWidth = e.data.width; + jQuery(e.data.element).stop(); + jQuery(e.data.element).animate( + { + width: originalWidth + }, + { + duration: _options.timeExpansionAnimation, + easing: _options.easing, + queue: false + }); + return false; + + }; + + function shrinkBreadCrumb(e) + { + var elementID = e.data.id; + jQuery(e.data.element).stop(); + jQuery(e.data.element).animate( + { + width: _options.previewWidth + }, + { + duration: _options.timeCompressionAnimation, + easing: _options.easing, + queue: false + }); + return false; + }; + + function isIE6OrLess() + { + var isIE6 = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent); + return isIE6; + }; + // Fix The Overlay for IE6 + function fixPNG(element) + { + var image; + if (jQuery(element).is('img')) + { + image = jQuery(element).attr('src'); + } + else + { + image = $(element).css('backgroundImage'); + image.match(/^url\(["']?(.*\.png)["']?\)$/i); + image = RegExp.$1; + ; + } + $(element).css( + { + 'backgroundImage': 'none', + 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='" + image + "')" + }); + }; + + // Public global variables + + jQuery.fn.jBreadCrumb.defaults = + { + maxFinalElementLength: 400, + minFinalElementLength: 200, + minimumCompressionElements: 4, + endElementsToLeaveOpen: 10, + beginingElementsToLeaveOpen: 1, + timeExpansionAnimation: 800, + timeCompressionAnimation: 500, + timeInitialCollapse: 600, + easing: _easingEquation, + overlayClass: 'chevronOverlay', + previewWidth: 10 + }; + +})(jQuery); Modified: XoopsModules/TDMPicture/trunk/TDMPicture/language/french/main.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/language/french/main.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/language/french/main.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -48,7 +48,7 @@ define("_MD_TDMPICTURE_FILEEDITOR","Editeur"); //define("_MD_TDMPICTURE_NBFILE","Nombre de fichier"); define("_MD_TDMPICTURE_ALBUM","Album de"); -define("_MD_TDMPICTURE_DESC","Présentation:"); +define("_MD_TDMPICTURE_DESCRIPTION","Présentation:"); define("_MD_TDMPICTURE_VOTEADD","Ajouter un vote"); define("_MD_TDMPICTURE_VOTEREMOVE","Enlever un vote"); define("_MD_TDMPICTURE_LE","le"); @@ -95,6 +95,8 @@ define("_MD_TDMPICTURE_TRICOUNTS","Popularité"); define("_MD_TDMPICTURE_TRICOMMENT","Critiques"); define("_MD_TDMPICTURE_TRIRAND","Au hasard"); +define("_MD_TDMPICTURE_ASC","Ascendant"); +define("_MD_TDMPICTURE_DESC","Descendant"); //menu define("_MD_TDMPICTURE_MYALBUM","Nos albums"); Modified: XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/language/french/modinfo.php 2013-01-08 21:45:19 UTC (rev 10203) @@ -24,6 +24,8 @@ define("_MI_TDMPICTURE_ADMENUPERMISSIONS","Gestion des Permissions"); define("_MI_TDMPICTURE_ADMENUABOUT","About"); define("_MI_TDMPICTURE_ADMENUPREF","Prérences"); +//1.07 +define("_MI_TDMPICTURE_ADMENUIMPORT","Import"); //Preferences Modified: XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_index.html =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_index.html 2013-01-02 23:09:35 UTC (rev 10202) +++ XoopsModules/TDMPicture/trunk/TDMPicture/templates/tdmpicture_index.html 2013-01-08 21:45:19 UTC (rev 10203) @@ -1,19 +1,15 @@ <br /> + <div style="margin-left:auto;margin-right:auto;"> - -<br style="clear: both;"/> <br /> - -<{$display_cat}> - - -<!-- off menu --> <!-- Top album --> <script type="text/javascript"> var $tdmpicture = jQuery.noConflict(); $tdmpicture (document).ready( function() { + $tdmpicture("#breadCrumb").jBreadCrumb(); + $tdmpicture("a.openSlideshow").click(function(){ $tdmpicture("img[rel='group1']").colorbox({ @@ -56,25 +52,24 @@ </script> -<!-- Start of first scrolling box --> -<table class="outer"><tr> -<th colspan="3" align="center"><{$smarty.const._MD_TDMPICTURE_LAST}></th> -</tr></table> -<br /> -<table><tr> -<td> + + <!--nav --> - <div class="TDMNav""> + <div class="TDMNavl"> <h1><{$tree_title}></h1></div> + <br class="clear"/> + <div class="TDMNav TDMNav outer odd"> <a href="#" class="switch_thumb" title="<{$smarty.const._MD_TDMPICTURE_SWITCH}>"><span><img src="<{$smarty.const.TDMPICTURE_IMAGES_URL}>view_choose.png" title="<{$smarty.const._MD_TDMPICTURE_SWITCH}>"></span></a> <a href="javascript:;" class="openSlideshow" title="<{$smarty.const._MD_TDMPICTURE_SLIDE}>"><span><img src="<{$smarty.const.TDMPICTURE_IMAGES_URL}>diapo.png" title="<{$smarty.const._MD_TDMPICTURE_SLIDE}>"></span></a> <{if $xoops_userid}><a href="<{$smarty.const.TDMPICTURE_URL}>/user.php?ut=<{$xoops_userid}>" title="<{$smarty.const._MD_TDMPICTURE_VIEWMYALBUM}>"><span><img src="<{$smarty.const.TDMPICTURE_IMAGES_URL}>photo.png" title="<{$smarty.const._MD_TDMPICTURE_V... [truncated message content] |