Модуль Галерея v3.26.5
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.
 
 

168 lines
5.9 KiB

<script language="Javascript" type="text/javascript">
function openLinkWin(target) {ldelim}
if (typeof width=='undefined' || width=='') var width = screen.width * 0.6;
if (typeof height=='undefined' || height=='') var height = screen.height * 0.6;
var left = ( screen.width - width ) / 2;
var top = ( screen.height - height ) / 2;
window.open('index.php?do=docs&action=showsimple&target='+target+'&selurl=1&pop=1','pop','left='+left+',top='+top+',width='+Math.min(screen.width, 1000)+',height='+Math.min(screen.height, 600)+',scrollbars=1,resizable=1');
{rdelim}
$(document).ready(function(){ldelim}
$('#selall').on('change', function(event) {ldelim}
event.preventDefault();
if ($('#selall').is(':checked')) {ldelim}
$('#Fields .checkbox').attr('checked','checked');
$('#Fields .checkbox').addClass('jqTransformChecked');
$("#Fields a.jqTransformCheckbox").addClass("jqTransformChecked");
{rdelim} else {ldelim}
$('#Fields .checkbox').removeClass('jqTransformChecked');
$('#Fields .checkbox').removeAttr('checked');
$("#Fields a.jqTransformCheckbox").removeClass("jqTransformChecked");
{rdelim}
{rdelim});
$(".ConfirmDelete").click(function(event){ldelim}
event.preventDefault();
var href = $(this).attr('href');
var title = '{#DOC_FINAL_DELETE#}';
var confirm = '{#DOC_FINAL_CONFIRM#}';
jConfirm(
confirm,
title,
function(b){ldelim}
if (b){ldelim}
$.alerts._overlay('show');
window.location = href;
{rdelim}
{rdelim}
);
{rdelim});
$(".galleryimages a").hover( function(){ldelim}
$(this).children("img").animate({ldelim} opacity: 0.5 {rdelim}, "fast");
{rdelim}, function(){ldelim}
$(this).children("img").animate({ldelim} opacity: 1.0 {rdelim}, "fast");
{rdelim});
{rdelim});
</script>
<div class="title"><h5>{#Overview#}</h5></div>
<div class="widget" style="margin-top: 0px;">
<div class="body">
{#OverviewT#}
</div>
</div>
<div class="breadCrumbHolder module">
<div class="breadCrumb module">
<ul>
<li class="firstB"><a href="index.php" title="{#MAIN_PAGE#}">{#MAIN_PAGE#}</a></li>
<li><a href="index.php?do=modules&amp;cp={$sess}">{#MODULES_SUB_TITLE#}</a></li>
<li><a href="index.php?do=modules&action=modedit&mod=gallery&moduleaction=1&cp={$sess}">{#ModName#}</a></li>
<li>{#Overview#}</li>
<li><strong class="code">{$gallery_title}</strong></li>
</ul>
</div>
</div>
{if $page_nav}
<div class="pagination">
<ul class="pages">
{$page_nav}
</ul>
</div>
{/if}
<div class="widget first">
<div class="head">
<h5 class="iFrames">{#Overview#}</h5>
<div class="num"><a class="basicNum" href="index.php?do=modules&amp;action=modedit&amp;mod=gallery&amp;moduleaction=add&amp;id={$smarty.request.id|escape}&amp;cp={$sess}">{#AddnewImages#}</a></div>
<div class="num"><a class="basicNum" href="index.php?do=modules&action=modedit&mod=gallery&moduleaction=editgallery&id={$smarty.request.id|escape}&cp={$sess}">{#EditGallery#}</a></div>
</div>
<form name="kform" class="mainForm" method="post" action="index.php?do=modules&action=modedit&mod=gallery&moduleaction=showimages&id={$smarty.request.id|escape}&cp={$sess}&sub=save&page={$smarty.request.page|escape}">
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic" id="Fields">
<col width="20">
<col width="50">
<col width="120">
<col width="">
<col width="">
<col width="">
<col width="16">
<thead>
<tr>
<td align="center"><div align="center"><input title="{#MarAllDel#}" type="checkbox" id="selall" value="1" /></div></td>
<td align="center">{#Position#}</td>
<td>{#FilePrev#}</td>
<td>{#FileTitle#}</td>
<td>{#FileDesc#}</td>
<td>{#MoreInfos#}</td>
<td></td>
</tr>
</thead>
{foreach from=$images item=image}
<tr>
<td valign="top">
<input type="hidden" value="{$image.id}" name="gimg[]" />
<input type="hidden" value="{$image.image_filename|escape}" name="datei[{$image.id}]" />
<input title="{#MarDel#}" name="del[{$image.id}]" class="checkbox topDir" type="checkbox" id="del[{$image.id}]" value="1" />
</td>
<td valign="top">
<div class="pr12"><input name="image_position[{$image.id}]" type="text" style="width:30px" id="image_position[{$image.id}]" value="{$image.image_position}"></div>
</td>
<td valign="top" class="galleryimages">
<a href="{$image.original}" class="fancy">
<img src="{$image.thumbnail}" width="100" alt="" border="0" />
</a>
</td>
<td valign="top">
<div class="pr12"><input placeholder="{#FileTitle#}" name="image_title[{$image.id}]" type="text" id="image_title[{$image.id}]" value="{$image.image_title|escape}"></div>
<br />
<input placeholder="{#LinkDoc#}" name="image_link[{$image.id}]" type="text" id="Link_{$image.id}" value="{$image.image_link}" style="width: 70%;" />
<input title="{#LinkToDoc#}" onclick="openLinkWin('Link_{$image.id}','Link_{$image.id}');" type="button" class="basicBtn topDir" value="... " />
</td>
<td valign="top">
<div class="pr12"><textarea placeholder="{#FileDesc#}" name="image_description[{$image.id}]" style="height: 60px" id="image_description[{$image.id}]">{$image.image_description|escape}</textarea></div>
</td>
<td valign="top">
<strong>{#Uploader#}</strong>: {$image.image_author|escape}<br />
<strong>{#UploadOn#}</strong>: {$image.image_date|date_format:$TIME_FORMAT|pretty_date}<br />
<strong>{#Filename#}</strong>: {$image.image_filename|escape}<br />
<strong>{#Filesize#}</strong>: {$image.image_size} kb
</td>
<td valign="top" style="width: 16px;">
<input title="{#MarAct#}" name="image_status[{$image.id}]" class="checkbox topleftDir" type="checkbox" id="image_status[{$image.id}]" value="1" {if $image.image_status == '1'} checked="checked"{/if} />
</td>
</tr>
{/foreach}
<tr>
<td colspan="7">
<input class="basicBtn" type="submit" value="{#ButtonSave#}" />
</td>
</tr>
</table>
</form>
</div>
{if $page_nav}
<div class="pagination">
<ul class="pages">
{$page_nav}
</ul>
</div>
{/if}