</th> </tr> </thead> <tbody> </tbody> </table> </div> <script type="text/javascript"> //<![CDATA[ $(function() { Professions.table = new Table('#professions', { column: 0 }); }); //]]> </script> <?php $professions = WoW_Guild::GetGuildProfessions(); $roster = WoW_Guild::GetGuildMembers(); if (is_array($professions)) { foreach ($professions as $prof_id => $prof) { $prof_info = DB::WoW()->selectRow("SELECT `name_%s` AS `name`, `icon` FROM `DBPREFIX_professions` WHERE `id` = %d LIMIT 1", WoW_Locale::GetLocale(), $prof_id); if (!$prof_info) { continue; } echo sprintf('<div id="professions-%d" class="parentTable"> <a href="javascript:;" class="table-bar" onclick="Professions.toggleSection(this);"> <span class="toggler"> <span class="icon-frame frame-18" style=\'background-image: url("http://eu.battle.net/wow-assets/static/images/icons/18/%s.jpg");\'> </span> %s (<span class="total">%d</span>) </span> </a>