Revision 188
- Date:
- 2012/02/20 14:30:29
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/core/comps/contenido/components/document_links_list.msn
16 16 % my $doc = ref $destination ? $docs->{$link->source_id} : $docs->{$link->dest_id}; 17 17 <tr bgcolor="<% $i++ % 2 ? 'white' : '#f0f0f0' %>"> 18 18 % if ( ref $doc ) { 19 % my $style = $link->status ? '' : ' color:#606060;'; 19 % my $style = $link->contenido_status_style ? $link->contenido_status_style : $link->status ? '' : ' color:#606060;'; 20 20 <td style="width:40px; text-align:center;"><input type="checkbox" name="links" value="link_<% $link->id %>_<% $doc->id %>_<% $link->class %>"></td> 21 21 <td><a href="document.html?class=<% $doc->class %>&id=<% $doc->id %>" target="_blank" style="<% $style %>"><% $doc->name %></a></td> 22 22 % } else { -
utf8/core/comps/contenido/components/pbase_links.msn
35 35 </script> 36 36 % if ( ref $links eq 'ARRAY' && scalar @$links ) { 37 37 % my $deflink = $links->[0]; 38 % my $id = exists $deflink->{source_field} ? $deflink->{source_field} : 'id'; 38 39 % my $auto = ''; 39 40 % if ( exists $deflink->{auto} && ref $deflink->{auto} eq 'HASH' ) { 40 41 % while ( my ($from, $to) = each %{ $deflink->{auto} } ) { … … 46 47 <div style="border-bottom:2px solid gray; padding:1px 0 2px;"> 47 48 % my $i = 0; 48 49 % foreach my $link ( @$links ) { 50 % my $id = exists $link->{source_field} ? $link->{source_field} : 'id'; 49 51 % my $auto = ''; 50 52 % if ( exists $link->{auto} && ref $link->{auto} eq 'HASH' ) { 51 53 % while ( my ($from, $to) = each %{ $link->{auto} } ) { … … 53 55 % } 54 56 % } 55 57 <span id="tab_<% $i %>" class="tab<% $i ? 'i' : '' %>"><a onclick="SetActive('tab_<% $i %>')" 56 href="document_filter_list.html?class=<% $link->{class} %>&filter=<% $link->{filter} %>&field=<% $link->{field} %><% $auto %>&id=<% $document->id %><% exists $link->{order_by} ? '&order_by='.$link->{order_by} : '' %>" 58 href="document_filter_list.html?class=<% $link->{class} %>&filter=<% $link->{filter} %>&field=<% $link->{field} %><% $auto %>&id=<% $document->$id %><% exists $link->{order_by} ? '&order_by='.$link->{order_by} : '' %>" 57 59 target="filtered"><% $link->{name} %></a></span>\ 58 60 % $i++; 59 61 % } 60 62 </div> 61 <iframe id="filtered" name="filtered" src="document_filter_list.html?class=<% $deflink->{class} %>&filter=<% $deflink->{filter} %>&field=<% $deflink->{field} %><% $auto %>&id=<% $document->id %><% exists $deflink->{order_by} ? '&order_by='.$deflink->{order_by} : '' %>" 63 <iframe id="filtered" name="filtered" src="document_filter_list.html?class=<% $deflink->{class} %>&filter=<% $deflink->{filter} %>&field=<% $deflink->{field} %><% $auto %>&id=<% $document->$id %><% exists $deflink->{order_by} ? '&order_by='.$deflink->{order_by} : '' %>" 62 64 width="100%" height="470" frameborder="0"></iframe> 63 65 </fieldset> 64 66 % } -
utf8/core/comps/contenido/document_filter_list.html
17 17 % foreach my $doc (@$docs) { 18 18 % my $document_access = $user->section_accesses($user, $doc->section); 19 19 % my $color = $doc->contenido_status_style ? $doc->contenido_status_style : 20 % $doc->status == 1 ? 'blue' : 21 % $doc->status == 0 ? 'gray' : 'blue'; 20 % $doc->status == 1 ? 'color:blue;' : 21 % $doc->status == 0 ? 'color:gray;' : 'color:blue;'; 22 22 % my ($a1, $a2) = $document_access == 2 ? ('<a href="document.html?id='.$doc->id.'&class='.$doc->class.'" style="'.$color.'" target="_blank">', '</a>') : ('',''); 23 23 %# my ($stat) = grep { $_->{attr} eq 'status' } @props; 24 24 %# my ($case) = grep { $_->[0] == $banner->status } @{ $stat->{cases} } if ref $stat eq 'HASH' && exists $stat->{cases};