From: <lor...@us...> - 2012-07-09 10:34:21
|
Revision: 9810 http://xoops.svn.sourceforge.net/xoops/?rev=9810&view=rev Author: lord_venom Date: 2012-07-09 10:34:10 +0000 (Mon, 09 Jul 2012) Log Message: ----------- test new cat Modified Paths: -------------- XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php Modified: XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php 2012-07-09 06:52:21 UTC (rev 9809) +++ XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php 2012-07-09 10:34:10 UTC (rev 9810) @@ -79,23 +79,26 @@ //echo $selected; if (isset($selected) && $value == $selected ) { if ( isset( $this->_tree[$this->_tree[$key]['parent']]['obj'] ) ) { + echo "passe"; $parent_link = TDMPICTURE_URL."/viewcat.php?ct=".$this->_tree[$key]['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> >'; //$parent = '<div align="right"><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></div>'; } $GLOBALS['cat_count'] = $count; $GLOBALS['cat_title'] = $this->_tree[$key]['obj']->getVar('cat_title'); - $ret2 = '<br /> - <table cellpadding="0" class="outer tdmcat" cellspacing="0"><tr><th> - <ul>'.$picture. '<a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'">' . $this->_tree[$key]['obj']->getVar( $fieldName ). '</a> ('.$count.') - <br style="clear: both;" /></ul></th></tr></table>'; + echo "passe"; + //$ret2 = '<br /> + //<table cellpadding="0" class="outer tdmcat" cellspacing="0"><tr><th> + echo '<ul>'.$picture. '<a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'">' . $this->_tree[$key]['obj']->getVar( $fieldName ). '</a> ('.$count.')'; + //<br style="clear: both;" /></ul></th></tr></table>'; } - if ((!$prefix_curr) || ($this->_tree[$key]['obj']->getVar('cat_pid') == $selected)) { + if ((!$prefix_curr) && ($this->_tree[$key]['obj']->getVar('cat_pid') == $selected)) { - $select = $this->makeSelBox('cat_pid', 'cat_title','-', 0, '-- '._MD_TDMPICTURE_CAT, $this->_tree[$key]['obj']->getVar('cat_id'), "OnChange='window.document.location=this.options[this.selectedIndex].value;'", 'tdmpicture_catview'); + $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'); + $ret .= '<li class="'.$GLOBALS['class'].'"><div>'.$picture. '<br/><span id="num"> ('.$count.')</span></div><div><h2><a href ="'.$cat_link.'" title="'. $this->_tree[$key]['obj']->getVar('cat_title').'">'. $this->_tree[$key]['obj']->getVar( $fieldName ). '</h2></a><pan id="text">'. $this->_tree[$key]['obj']->getVar('cat_text'). '</span></div><div id="form">'.$select.'</div></li>'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lor...@us...> - 2012-07-27 09:57:51
|
Revision: 9927 http://xoops.svn.sourceforge.net/xoops/?rev=9927&view=rev Author: lord_venom Date: 2012-07-27 09:57:40 +0000 (Fri, 27 Jul 2012) Log Message: ----------- Modified Paths: -------------- XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php Modified: XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php =================================================================== --- XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php 2012-07-26 09:35:32 UTC (rev 9926) +++ XoopsModules/TDMPicture/trunk/TDMPicture/class/tree.php 2012-07-27 09:57:40 UTC (rev 9927) @@ -237,7 +237,7 @@ Global $cat_display; $ret = '<div style="text-align:right"><a href="javascript:;" onclick="javascript:masque(\'1\')" >+-</a></div>'; - $ret .= '<table cellpadding="0" id="masque_1" cellspacing="0" style="border-collapse: separate; margin:5px;"><tr><td><ul id="tree_menu">'; + $ret .= '<table cellpadding="0" id="masque_1" cellspacing="0" style="border-collapse: separate;"><tr><td><ul id="tree_menu">'; $chcount = 1; $GLOBALS['class'] = "odd"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |