mirror of https://github.com/avecms/AVE.cms.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
3.3 KiB
65 lines
3.3 KiB
{if $cascad3_new_3inputs != load} |
|
{assign var=cascad3_new_3inputs value='' scope="global"} |
|
{if $smarty.request.outside} |
|
<script src="{$ABS_PATH}fields/{$field_dir}/js/outside.js" type="text/javascript"></script> |
|
{else} |
|
<script src="{$ABS_PATH}fields/{$field_dir}/js/field.js" type="text/javascript"></script> |
|
{/if} |
|
<link href="{$ABS_PATH}fields/{$field_dir}/css/field.css" rel="stylesheet" type="text/css" media="screen" /> |
|
<script type="text/javascript"> |
|
var blank = '{$tpl_dir}/images/blanc.gif'; |
|
var place = '{#place#}'; |
|
var look = '{#look#}'; |
|
var del = '{#delete#}'; |
|
var del_conf = '{#del_conf#}'; |
|
var del_head = '{#del_head#}'; |
|
var del_all_c = '{#del_all_c#}'; |
|
var del_all_h = '{#del_all_h#}'; |
|
var max_f_t = '{#max_f_t#}'; |
|
var max_f_h = '{#max_f_h#}'; |
|
</script> |
|
{assign var=cascad3_new_3inputs value="load" scope="global"} |
|
{/if} |
|
|
|
<div class="cascad3" id="cascad3_{$doc_id}_{$field_id}" data-id="{$field_id}" data-doc="{$doc_id}" data-rubric="{$smarty.request.rubric_id}"> |
|
<input type="hidden" value="" id="cascad3__{$field_id}_{$doc_id}"> |
|
{if $show_upload} |
|
<input type="file" class="cascad3_upload cascad3_upload_field_{$field_id}_{$doc_id}" multiple name="cascad3_files_{$field_id}_{$doc_id}[]" style="visibility: hidden; display: none;" data-max-files="{$max_files}" /> |
|
{/if} |
|
<ul class="messages"> |
|
<li class="highlight grey"> |
|
{#add_n_e#} |
|
<a href="javascript:void(0);" class="cascad3_add_single link">{#add_f#}</a> |
|
| |
|
<a href="javascript:void(0);" class="cascad3_add_folder link">{#add_d#}</a> |
|
| |
|
<a href="javascript:void(0);" class="cascad3_del_all link">{#del_all#}</a> |
|
{if $show_upload} |
|
| |
|
<a href="javascript:void(0);" class="cascad3_upload_local link">{#add_l#}</a> <a href="javascript:void(0);" class="topDir" title="{$max_files}<br>{$dir_upload}">[?]</a> |
|
{else} |
|
| |
|
<a href="javascript:void(0);" class="topDir" title="{#add_upl_e#}<br><br>{$max_files}<br>{$dir_upload}">[?]</a> |
|
{/if} |
|
</li> |
|
</ul> |
|
|
|
<div class="cascad3_sortable"> |
|
{foreach from=$images key=key item=image} |
|
|
|
<div class="cascad3_item ui-state-default" id="cascad3_image_{$field_id}_{$doc_id}_{$key}" data-id="{$key}" data-doc="{$doc_id}"> |
|
<div class="header grey_bg"></div> |
|
<a class="topDir icon_sprite ico_photo view fancy preview__{$field_id}_{$doc_id}_{$key}" href="{$image.url}" title="{#look#}"></a> |
|
<a class="topDir icon_sprite ico_delete delete" href="javascript:void(0);" title="{#delete#}" data-id="{$field_id}_{$doc_id}_{$key}"></a> |
|
<span class="topDir icon_sprite ico_info info" title="{$image.url}"></span> |
|
<input type="hidden" value="{$image.url}" name="feld[{$field_id}][{$key}][url]" id="image__{$field_id}_{$doc_id}_{$key}"> |
|
<img id="preview__{$field_id}_{$doc_id}_{$key}" src="{$image.thumb}" onclick="browse_uploads('image__{$field_id}_{$doc_id}_{$key}');" class="image" alt="" width="100" height="100" /> |
|
<input class="mousetrap" name="feld[{$field_id}][{$key}][descr]" placeholder="{#place#} 1" value="{$image.desc}"/> |
|
<input class="mousetrap" name="feld[{$field_id}][{$key}][descr2]" placeholder="{#place#} 2" value="{$image.desc2}"/> |
|
<input class="mousetrap" name="feld[{$field_id}][{$key}][descr3]" placeholder="{#place#} 3" value="{$image.desc3}"/> |
|
</div> |
|
|
|
{/foreach} |
|
</div> |
|
|
|
</div> |