0 Membros e 2 Visitantes estão a ver este tópico.
/* Each child in each board's children has: id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */ foreach ($board['children'] as $child) { if (!$child['is_redirect']) $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>'; else $child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>'; // Has it posts awaiting approval? if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics'])) $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';sesc=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>'; $children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link']; } echo ' <tr> <td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>
/* Each child in each board's children has: id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */ $sayac=0; foreach ($board['children'] as $child) { if (!$child['is_redirect']) $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>'; else $child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>'; // Has it posts awaiting approval? if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics'])) $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';sesc=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>'; @$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/on.gif" width="12" height="12" alt="' . $txt[333] . '"/><strong>' . $child['link'] . '</strong>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/off.gif" width="12" height="12" alt="' . $txt[334] . '"/>' . $child['link']; $sayac++; } echo ' <tr> <td class="windowbg3 smalltext largepadding"> <table style="float:right; padding-left:10px;margin-top: 15px;" width="97%" cellspacing="0" cellpadding="3" border="0"> <tr> <td style="width:50%" valign="top"> <strong>', $txt['parent_boards'], '</strong>:<br/>'; for($sayac2 = 0 ; $sayac2 < ceil($sayac/2);$sayac2++) echo $children[$sayac2], '<br/>'; echo ' </td> <td style="width:60%" valign="top"> <br/>'; for(; $sayac2 < $sayac ; $sayac2++) echo $children[$sayac2], '<br/>'; echo ' </td> </tr> </table> </td>
tem sim deixa fazer isso depois ponho aqui obrigado por me recordar