source: extensions/GrumPluginClasses/templates/GPCTabSheet.tpl @ 6208

Last change on this file since 6208 was 6208, checked in by grum, 14 years ago

Fix some bugs on the request builder and improve results display

File size: 865 bytes
Line 
1{if isset($tabsheet) and count($tabsheet)}
2<ul {if isset($tabsheet_classes)}class="{$tabsheet_classes}"{/if} {if isset($tabsheet_id)}id="{$tabsheet_id}"{/if} >
3{foreach from=$tabsheet key=name item=sheet name=tabs}
4  <li class="{if ($name == $tabsheet_selected)}selected_tab{else}normal_tab{/if}">
5    <a {if $sheet.url!=''}href="{$sheet.url}"{/if} {if $sheet.onClick!=''}onclick="{$sheet.onClick}"{/if} ><span>{$sheet.caption}</span></a>
6  </li>
7{/foreach}
8</ul>
9
10  {if isset($tabsheet_id)}
11  {literal}
12  <script type="text/javascript">
13    $('#{/literal}{$tabsheet_id}{literal} li a').bind('click',
14      function ()
15      {
16        $('#{/literal}{$tabsheet_id}{literal} li').removeClass('selected_tab').addClass('normal_tab');
17        $(this.parentNode).removeClass('normal_tab').addClass('selected_tab');
18      }
19    );
20  {/literal}
21  </script>
22
23  {/if}
24
25{/if}
Note: See TracBrowser for help on using the repository browser.