1 |
3 |
ahitrov@rambler.ru |
<!-- ���� ������ ����������� --> |
2 |
|
|
<table cellpadding="0" cellspacing="2" border="0" width="100%"> |
3 |
|
|
<tr><td><b><% $rusname %></b> / <font size="-1" color="#888888">name="<% $attr %>"</font> </td></tr> |
4 |
130 |
ahitrov |
<tr><td><a href="javascript:void(0)" class="mm_act" id="<% $attr %>_file_prompt" style="padding:0 6px;" |
5 |
|
|
onclick="$('#<% $attr %>_url_loader').hide(); $('#<% $attr %>_file_loader').show(); $('#<% $attr %>_file_prompt').addClass('mm_act'); $('#<% $attr %>_url_prompt').removeClass('mm_act'); return false;">file</a> |
6 |
|
|
<a href="javascript:void(0)" class="mm_inact" id="<% $attr %>_url_prompt" style="padding:0 6px;" |
7 |
|
|
onclick="$('#<% $attr %>_file_loader').hide(); $('#<% $attr %>_url_loader').show(); $('#<% $attr %>_url_prompt').addClass('mm_act'); $('#<% $attr %>_file_prompt').removeClass('mm_act'); $('#<% $attr %>_ext_url')[0].focus(); return false;">url</a></div> |
8 |
|
|
<div id="<% $attr %>_file_loader" style="background:#d0d0d0; padding:2px;"> |
9 |
|
|
<input type="file" name="<% $attr %>" style="width:95%;font-family:arial;font-size:9pt;"></div> |
10 |
|
|
<div id="<% $attr %>_url_loader" style="display:none; background:#d0d0d0; padding:2px;"> URL: <input |
11 |
|
|
id="<% $attr %>_ext_url" type="text" name="<% $attr %>.ext_url" style="width:81%;font-family:arial;font-size:9pt;"></div> |
12 |
|
|
</td></tr> |
13 |
3 |
ahitrov@rambler.ru |
% if ( exists($MULTI->{filename}) ) |
14 |
|
|
% { |
15 |
|
|
% my $TYPE = 'unknown'; |
16 |
|
|
% if (length($MULTI->{ext}) > 0) |
17 |
|
|
% { |
18 |
|
|
% if (-e $keeper->{state}->{mason_comp}.'/contenido/i/icons/'.$MULTI->{ext}.'.gif') |
19 |
|
|
% { |
20 |
|
|
% $TYPE = $MULTI->{ext}; |
21 |
|
|
% } |
22 |
|
|
% } |
23 |
|
|
<tr><td style="font-size:95%;"><% $MULTI->{filename} %></td></tr> |
24 |
|
|
<tr><td> |
25 |
|
|
|
26 |
|
|
<table border="0" width="100%"><tr> |
27 |
|
|
<td align="right"><a href="<% $MULTI->{filename} %>"><img src="/contenido/i/icons/<% $TYPE %>.gif" width="36" height=36" hspace="5" border="0"></a></td> |
28 |
|
|
<td> |
29 |
|
|
<font size="-1" color="#888888">���: <% uc($MULTI->{ext}) %><br> |
30 |
|
|
������: <% int($MULTI->{size}/1024) %> �� |
31 |
|
|
</font> |
32 |
|
|
</td> |
33 |
|
|
</tr></table> |
34 |
|
|
|
35 |
|
|
</td></tr> |
36 |
|
|
% } |
37 |
|
|
% |
38 |
|
|
% foreach my $iattr (sort (@{ $iattrs })) |
39 |
|
|
% { |
40 |
|
|
% next if ( ($iattr eq 'filename') || ($iattr eq 'mini') || ($iattr eq 'width') || ($iattr eq 'height') ); |
41 |
|
|
<tr><td><font size="-1" color="#888888"><% $ATTRNAMES->{$iattr} %> (<% $iattr %>):</font></td></tr> |
42 |
|
|
<tr><td><input type="text" name="<% $attr %>.<% $iattr %>" size="60" value="<% html_escape($MULTI->{$iattr}) %>" style="width:95%;font-family:arial;font-size:9pt;"></td></tr> |
43 |
|
|
% } |
44 |
|
|
<tr><td><input type="checkbox" name="_delete_multi.<% $attr %>" value="1">�������<br><br></td></tr> |
45 |
|
|
</td></tr></table> |
46 |
|
|
|
47 |
|
|
<%ARGS> |
48 |
|
|
|
49 |
|
|
$MULTI => undef |
50 |
|
|
$rusname => undef |
51 |
|
|
$attr => undef |
52 |
|
|
$prop => {} |
53 |
|
|
|
54 |
|
|
</%ARGS> |
55 |
|
|
<%DOC> |
56 |
|
|
|
57 |
|
|
���������� ���������� ���� ��������... |
58 |
|
|
|
59 |
|
|
</%DOC> |
60 |
|
|
<%INIT> |
61 |
|
|
|
62 |
|
|
my $iattrs = $prop->{iattrs}; |
63 |
|
|
$iattrs ||= []; |
64 |
|
|
|
65 |
|
|
my $ATTRNAMES = { |
66 |
|
|
'alt' => '�������', |
67 |
|
|
'btext' => '����� �� ��������', |
68 |
|
|
'atext' => '����� ����� ��������', |
69 |
|
|
'url' => '������ � ��������', |
70 |
|
|
'copyright' => '��������', |
71 |
|
|
}; |
72 |
|
|
|
73 |
|
|
</%INIT> |