Código PHP:
<!--<script_menu_desplegar>-->
{literal}<script type="text/javascript">
$(document).ready(function(){
$('.menujq > ul > li:has(ul)').addClass('desplegable');
$('.menujq > ul > li > a').click(function() {
var comprobar = $(this).next();
$('.menujq li').removeClass('activa');
$(this).closest('li').addClass('activa');
if((comprobar.is('ul')) && (comprobar.is(':visible'))) {
$(this).closest('li').removeClass('activa');
comprobar.slideUp('normal');
}
if((comprobar.is('ul')) && (!comprobar.is(':visible'))) {
$('.menujq ul ul:visible').slideUp('normal');
comprobar.slideDown('normal');
}
});
});
</script>{/literal}
<!--</script_menu_desplegar>-->
<!--<ser_tablas_bnr>-->
{if $msTemporada !=""}
{if $msDown != ""}
{foreach from=$msTemporada item=t}<div class="menujq"><ul>
<li><a href="javascript:void();"><div class="content f_right bgdeg6 bold fs17px p_relative"><table width="100%" border="1">
<tr>
<td width="35%"><center>{$t.t_temporada|escape}</center></td>
</tr>
</table>
</div></a><ul>
<li><div class="content f_right bgdeg7 bold fs17px p_relative mgbot10px white"><table width="100%" border="1">
<tr>
<td width="55%"><center>Capitulos</center></td>
<td width="20%"><center>Servidor</center></td>
<td width="15%"><center>Idioma</center></td>
<td width="10%"><center>Ver</center></td>
</tr>
</table></div>
{foreach from=$msDown item=c}
{if $t.t_id == $c.t_id}<div class="content f_right brdr10px fs15px p_relative"><table width="100%" border="1">
<tr>
<td width="55%"><center>{$c.c_capitulo|escape}</center></td>
<td width="20%"><center>{$c.c_servidor|escape}</center></td>
<td width="15%"><center>{$c.c_idioma|escape}</center></td>
<td width="10%"><a href="{$c.c_link|escape}" target="_new" ><center><img src="{$msConfig.datos.w_url}/Temas/default/img/ver.png"style="width:16px;height:16px"></a></center></td>
</tr>
</table>
{/if}
</li></ul></div>{/foreach}
</li></ul></div>{/foreach}
{/if}{/if}
<!--</ser_tablas_bnr>-->