Revision 575
- Date:
- 2016/05/26 11:23:55
- Files:
-
- /utf8/plugins/tag/comps/contenido/tag/ajax/tag_view_list.html (Diff) (Checkout)
- /utf8/plugins/tag/comps/contenido/tag/components/block_tag_list.msn (Diff) (Checkout)
- /utf8/plugins/tag/comps/contenido/tag/components/block_tag_tabs.msn (Diff) (Checkout)
- /utf8/plugins/tag/comps/contenido/tag/index.html (Diff) (Checkout)
Legend:
- Added
- Removed
- Modified
-
utf8/plugins/tag/comps/contenido/tag/ajax/tag_view_list.html
1 <div id="tag_view_list-pager"> 2 Страницы: <& /inc/pages_.msn, p => $p, n => $limit, total => $total, delimiter => ' ', href => '/contenido/tag/ajax/tag_view_list.html' &> 3 </div> 4 <script> 5 $(function() { 6 $('#tag_view_list-pager a').on('click', function() { 7 var sParent = $('#tag_view_list-pager').parent(); 8 var sUrl = $(this).attr('href'); 9 $.get(sUrl, function( data ) { 10 sParent.html( data ); 11 }); 12 return false; 13 }); 14 }); 15 </script> 16 <& /contenido/tag/components/block_tag_list.msn, tags => \@tags &> 17 <%once> 18 19 my $limit = 20; 20 21 </%once> 22 <%args> 23 24 $p => 1 25 26 </%args> 27 <%init> 28 29 my @tags = $keeper->get_documents( 30 class => 'tag::Tag', 31 limit => $limit, 32 offset => ($p-1)*$limit, 33 ); 34 35 my $total = $keeper->get_documents( 36 class => 'tag::Tag', 37 count => 1, 38 ); 39 40 </%init> -
utf8/plugins/tag/comps/contenido/tag/components/block_tag_list.msn
1 % if ( @$tags ) { 2 <table width="100%" border="0" cellpadding="4" cellspacing="0" class="tlistdocs"> 3 <tr bgcolor="#efefef"> 4 <th>id</th> 5 <th>Название</th> 6 <th>Алиас</th> 7 <th>Статус</th> 8 <th>Действия</th> 9 </tr> 10 % foreach my $tag ( @$tags ) { 11 <tr valign="top"> 12 <td><% $tag->id %></td> 13 <td><% $tag->name %></td> 14 <td><% $tag->alias %></td> 15 <td></td> 16 <td></td> 17 </tr> 18 % } 19 </table> 20 % } else { 21 <p>Теги не найдены</p> 22 % } 23 <%args> 24 25 $tags => undef 26 27 </%args> 28 <%init> 29 30 return unless ref $tags eq 'ARRAY'; 31 32 </%init> -
utf8/plugins/tag/comps/contenido/tag/components/block_tag_tabs.msn
1 <script> 2 $(function() { 3 $( "#tag_view_tabs" ).tabs({ 4 beforeLoad: function( event, ui ) { 5 ui.jqXHR.fail(function() { 6 ui.panel.html( 7 "Couldn't load this tab. We'll try to fix this as soon as possible. " + 8 "If this wouldn't be a demo." ); 9 }); 10 } 11 }); 12 }); 13 </script> 14 <div id="tag_view_tabs"> 15 <ul> 16 <li><a href="#tag_view_tabs-search">Поиск</a></li> 17 <li><a href="/contenido/tag/ajax/tag_view_list.html">Список</a></li> 18 <li><a href="/contenido/tag/ajax/tag_view_tree.html">Дерево</a></li> 19 </ul> 20 <div id="tag_view_tabs-search"> 21 <p>Тут поисковая форма будет</p> 22 </div> 23 </div> -
utf8/plugins/tag/comps/contenido/tag/index.html
1 1 <& "/contenido/components/header.msn" &> 2 2 <& "/contenido/components/naviline.msn" &> 3 3 4 <p>PLugin [tag]</p> 4 <table width="100%" cellspacing="0" cellpadding="0" border="0"> 5 <tr valign="top"> 6 <td width="34%"> 7 <fieldset> 8 <legend>Теги</legend> 9 <& /contenido/tag/components/block_tag_tabs.msn &> 10 </fieldset> 11 </td> 12 <td width="2%"> </td> 13 <td width="64%"> 5 14 15 <p>PLugin [tag]</p> 16 17 </td> 18 19 </tr> 20 </table> 21 6 22 </body> 7 23 </html>