function ShowControlsFooterC($controls, $back_link = '', $top_link = true, $full_path = false, $pretext = '', $text_only = false) { global $JLMS_CONFIG; static $rrr; static $is_toplink_api_loaded; if (!empty($controls)) { echo ' <div class="jlms_controls_footer">'; echo '<table cellpadding="2" cellspacing="1" border="0" style="float:left; width:auto;"><tr>'; if (!$rrr) { $rrr = 10; } $rrr++; //$rrr = rand(10,100); if ($pretext) { echo '<td>' . $pretext . '</td>'; } $is_nojs = false; foreach ($controls as $control) { $new_control = $control; if (!$full_path) { $new_control['img'] = 'buttons_22/btn_' . (isset($control['img']) ? $control['img'] : '') . '_22.png'; } if (!$new_control['href'] && isset($new_control['custom']) && $new_control['custom']) { echo '<td>' . $new_control['custom'] . '</td>'; } else { if ($text_only) { $new_control['img'] = ''; $new_control['text_only'] = $new_control['title']; } JLMS_TMPL::ShowControl($new_control, $rrr); if (isset($new_control['noscript']) && $new_control['noscript']) { $is_nojs = true; } } } if ($JLMS_CONFIG->get('web20_effects', true)) { echo '<td width="8"><!--x--></td><td nowrap="nowrap" style="vertical-align:middle"><span id="jlms_footer_txt' . $rrr . '"><!--x--></span></td>'; } echo '</tr></table>'; if ($JLMS_CONFIG->get('web20_effects', true) && $top_link) { echo '<div class="jlms_footer_link"><a class="jlms_toTop" href="javascript:void(0);">' . _JLMS_TXT_TOP . '</a></div>'; if (!$is_toplink_api_loaded) { $domready = ' var winScroller = new Fx.Scroll(window); $$(\'a.jlms_toTop\').each(function(ael){ ael.addEvent(\'click\', function(){ winScroller.toTop(); }); });'; $JLMS_CONFIG->set('web20_domready_code', $JLMS_CONFIG->get('web20_domready_code', '') . $domready); $is_toplink_api_loaded = true; } } if ($JLMS_CONFIG->get('web20_effects', true)) { if (JLMS_mootools12()) { $domready = ' var is_mlf' . $rrr . ' = false; var fx_op' . $rrr . ' = new Fx.Tween(\'jlms_footer_txt' . $rrr . '\', {property: \'opacity\'}).set(0); var fx_txt_cont' . $rrr . ' = $(\'jlms_footer_txt' . $rrr . '\'); $$(\'a.jlms_footer_control' . $rrr . '\').each(function(aelfc){ aelfc.addEvent(\'mouseenter\', function(){ is_mlf' . $rrr . ' = false; fx_txt_cont' . $rrr . '.set(\'html\',this.getElement(\'img\').getProperty(\'alt\')); fx_op' . $rrr . '.cancel().start(0,1).chain(function(){if (is_mlf' . $rrr . ') { fireEvent(\'mouseleave\', aelfc);}}); }); aelfc.addEvent(\'mouseleave\', function(){ is_mlf' . $rrr . ' = true; fx_op' . $rrr . '.cancel().start(1,0); }); aelfc.addEvent(\'blur\', function(){ is_mlf' . $rrr . ' = true; fx_op' . $rrr . '.cancel().start(1,0); }); aelfc.addEvent(\'focus\', function(){ is_mlf' . $rrr . ' = false; fx_txt_cont' . $rrr . '.set(\'html\', this.getElement(\'img\').getProperty(\'alt\')); fx_op' . $rrr . '.cancel().start(0,1).chain(function(){if (is_mlf' . $rrr . ') { fireEvent(\'mouseleave\', aelfc);}}); }); }); '; } else { $domready = ' var is_mlf' . $rrr . ' = false; var fx_op' . $rrr . ' = new Fx.Style(\'jlms_footer_txt' . $rrr . '\', \'opacity\').set(0); var fx_txt_cont' . $rrr . ' = $(\'jlms_footer_txt' . $rrr . '\'); $$(\'a.jlms_footer_control' . $rrr . '\').each(function(aelfc){ aelfc.addEvent(\'mouseenter\', function(){ is_mlf' . $rrr . ' = false; fx_txt_cont' . $rrr . '.setHTML(this.getElement(\'img\').getProperty(\'alt\')); fx_op' . $rrr . '.stop(); fx_op' . $rrr . '.start(0,1).chain(function(){if (is_mlf' . $rrr . ') { fireEvent(\'mouseleave\', aelfc);}}); }); aelfc.addEvent(\'mouseleave\', function(){ is_mlf' . $rrr . ' = true; fx_op' . $rrr . '.stop(); fx_op' . $rrr . '.start(1,0); }); aelfc.addEvent(\'blur\', function(){ is_mlf' . $rrr . ' = true; fx_op' . $rrr . '.stop(); fx_op' . $rrr . '.start(1,0); }); aelfc.addEvent(\'focus\', function(){ is_mlf' . $rrr . ' = false; fx_txt_cont' . $rrr . '.setHTML(this.getElement(\'img\').getProperty(\'alt\')); fx_op' . $rrr . '.stop(); fx_op' . $rrr . '.start(0,1).chain(function(){if (is_mlf' . $rrr . ') { fireEvent(\'mouseleave\', aelfc);}}); }); }); '; } $JLMS_CONFIG->set('web20_domready_code', $JLMS_CONFIG->get('web20_domready_code', '') . $domready); } if ($back_link) { echo '<div class="jlms_footer_link"><a href="' . $back_link . '">' . _JLMS_TXT_BACK . '</a></div>'; } echo '<div style="clear:both"><!--x--></div>'; if ($is_nojs) { echo "<script type=\"text/javascript\">if (getObj('nojs_control" . $rrr . "')) {getObj('nojs_control" . $rrr . "').style.display = '';getObj('nojs_control" . $rrr . "').style.visibility = 'visible';}</script>"; } echo ' </div>'; } }