Revision 835

Date:
2021/10/11 20:50:17
Author:
ahitrov
Revision Log:
Переход на профиль

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/webshop/comps/contenido/webshop/components/order_browse.msn

     
    59 59 % my $document_access = $user->section_accesses($user, $document->section);
    60 60 % my $style = $document->contenido_status_style ? ' style="'.$document->contenido_status_style.'"' : '';
    61 61 % my ($a1, $a2) = $href ? ('<a href="./'.$href.'?id='.$document->id.($params_unclassed ? '&'.$params_unclassed : '').'"'.$style.'>','</a>') : ('','');
    62 % my ($p1, $p2) = ('<a href="/contenido/users/document.html?id='.$document->uid.'&class=taina::UserProfile&def_link=Заказы#document-links"'.$style.'>','</a>');
    62 63 % my $tr_style = $document->company_id ? ' style="background:#d6eaf8;"' : '';
    63 64 <tr valign="top"<% $tr_style %>>
    64 65 % unless ( $no_inline ) {
     
    87 88 <td><span<% $style %> class="<% $document->status ? '':'hiddensect' %>">\
    88 89 %
    89 90 % my $name=$document->name ? $document->name : 'Безымянный документ N'.$document->id;
    90 <% $a1 %><% $name | h %><% $a2 %>\
    91 % $name =~ s/\s+$//;
    92 <% $a1 %><% $name | h %><% $a2 %><br>(&rarr;<% $p1.'профиль'.$p2 %>)\
    91 93 %
    92 94 </span>\
    93 95 %
     
    202 204 % my ($doc_status) = grep { $_->[0] eq $document->$attr } @$status_map;
    203 205 % $doc_status ||= [$document->$attr, 'Неизвестный'];
    204 206 <td nowrap><% $doc_status->[1].'('.$doc_status->[0].')' %>\
    207 % } elsif ( $attr eq 'email' || $attr eq 'phone' ) {
    208 <td><% defined($document->$attr) ? $p1.$document->$attr.$p2 : '&nbsp;' %>\
    205 209 % } else {
    206 210 <td><% defined($document->$attr) ? $document->$attr : '&nbsp;' %>\
    207 211 % }