Revision 836
- Date:
- 2021/10/11 20:51:16
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/core/comps/contenido/components/pbase_links.msn
19 19 % } 20 20 ]; 21 21 function SetActive ( sControl ) { 22 var oControl; 23 for (sC in Controls) { 24 oControl = document.getElementById(Controls[sC]); 25 oControl.style.backgroundColor = '#d0d0d0'; 26 oControl.style.borderTop = '1px solid #f0f0f0'; 27 oControl.style.borderLeft = '1px solid #f0f0f0'; 28 } 29 oControl = document.getElementById(sControl); 30 oControl.style.backgroundColor = 'white'; 31 oControl.style.borderTop = '1px solid silver'; 32 oControl.style.borderLeft = '1px solid silver'; 22 var oControl; 23 for (sC in Controls) { 24 oControl = document.getElementById(Controls[sC]); 25 if ( Controls[sC] == sControl ) { 26 oControl.className = "tab"; 27 } else { 28 oControl.className = "tabi"; 29 } 30 } 33 31 } 34 32 //--> 35 33 </script> … … 47 45 <div style="border-bottom:2px solid gray; padding:1px 0 2px;"> 48 46 % my $i = 0; 49 47 % foreach my $link ( @$links ) { 48 % my $tab_class = 'tabi'; 49 % if ( $link->{name} eq $default ) { 50 % $deflink = $link; 51 % $tab_class = 'tab'; 52 % } elsif ( $default eq '' && $i == 0 ) { 53 % $tab_class = 'tab'; 54 % } 50 55 % my $id = exists $link->{source_field} ? $link->{source_field} : 'id'; 51 56 % my $auto = ''; 52 57 % if ( exists $link->{auto} && ref $link->{auto} eq 'HASH' ) { … … 60 65 % } else { 61 66 % $class_param = 'class='.$link->{class}; 62 67 % } 63 <span id="tab_<% $i %>" class="tab<% $i ? 'i' : '' %>"><a onclick="SetActive('tab_<% $i %>')" 68 % 69 <span id="tab_<% $i %>" class="<% $tab_class %>"><a onclick="SetActive('tab_<% $i %>')" 64 70 href="/contenido/document_filter_list.html?<% $class_param %>&filter=<% $link->{filter} %>&field=<% $link->{field} %><% $auto %>&id=<% $document->$id %><% exists $link->{order_by} ? '&order_by='.$link->{order_by} : '' %>" 65 71 target="filtered"><% $link->{name} %></a></span>\ 66 72 % $i++; … … 73 79 <%args> 74 80 75 81 $document => undef 82 $default => '' 76 83 77 84 </%args> 78 85 <%init> -
utf8/core/comps/contenido/components/section_browse_row.msn
184 184 % my $attr = $attr; 185 185 % if ($type eq 'date') { 186 186 % my $date=$document->{$attr}; 187 % $date=~/(\d{4}-\d{2}-\d{2})/; 188 <td nowrap align="right"><% $1 || ' ' %>\ 187 % $date=~/(\d{4})-(\d{2})-(\d{2})/; 188 <td nowrap align="right"><% $3.'.'.$2.'.'.$1 || ' ' %>\ 189 189 % } elsif ($type eq 'datetime') { 190 190 <td nowrap align="right"><% $document->{$attr} || ' ' %>\ 191 191 % } elsif ($type eq 'integer') { -
utf8/core/comps/contenido/document.html
47 47 48 48 <br> 49 49 50 <a name="document-links"></a> 50 51 <table width="100%" cellspacing="5" cellpadding="0" border="0"> 51 52 <tr> 52 53 <td width=50% valign=top>\ … … 58 59 </td> 59 60 <td width=50% valign=top>\ 60 61 % if ( $m->comp_exists ("/contenido/components/pbase_links.msn") ) { 61 <& "/contenido/components/pbase_links.msn", document => $document &>\ 62 <& "/contenido/components/pbase_links.msn", document => $document, default => $def_link || '' &>\ 62 63 % } 63 64 <iframe id="links" src="document_links.html?id=<% $document->id() %>&class=<% $document->class() %>" width="100%" height="700" frameborder="0"></iframe> 64 65 … … 80 81 $table => undef 81 82 $sect_id => undef 82 83 $s_alias => undef 84 $def_link => undef 83 85 $id => undef 84 86 $delete => undef 85 87 $save => undef