Модуль Архив новостей v1.26.3
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.

93 lines
3.3 KiB

<script type="text/javascript" language="JavaScript">
$(document).ready(function(){ldelim}
$(".EditArchive").click( function(e) {ldelim}
e.preventDefault();
var user_group = $('#edit_archive #newsarchive_name').fieldValue();
var title = '{#ARCHIVE_NAME#}';
var text = '{#ARCHIVE_ENTER_NAME#}';
if (user_group == ""){ldelim}
jAlert(text,title);
{rdelim}else{ldelim}
$.alerts._overlay('show');
$("#edit_archive").submit();
{rdelim}
{rdelim});
{rdelim});
</script>
<div class="title"><h5>{#ARCHIVE_EDIT#}</h5></div>
<div class="widget" style="margin-top: 0px;">
<div class="body">
{#ARCHIVE_EDIT_TIP#}
</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=newsarchive&moduleaction=1&cp={$sess}">{#ARCHIVE_LIST#}</a></li>
<li><strong class="code">{$archives->newsarchive_name|escape:html|stripslashes}</strong></li>
</ul>
</div>
</div>
<div class="widget first">
<div class="head">
<h5 class="iFrames">{#ARCHIVE_EDIT#}</h5>
<div class="num"><a class="basicNum" href="index.php?do=modules&action=modedit&mod=newsarchive&moduleaction=1&cp={$sess}">{#ARCHIVE_RETURN#}</a></div>
</div>
<form method="post" action="index.php?do=modules&action=modedit&mod=newsarchive&moduleaction=saveedit&cp={$sess}" id="edit_archive" class="mainForm">
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
<col width="250" />
<col />
<thead>
<tr>
<td>{#ARCHIVE_PARAMS#}</td>
<td>{#ARCHIVE_DATAS#}</td>
</tr>
</thead>
<tr>
<td>{#ARCHIVE_ITEM_NAME#}</td>
<td><div class="pr12"><input name="newsarchive_name" type="text" id="newsarchive_name" value="{$archives->newsarchive_name|escape:html|stripslashes}" size="40"></div></td>
</tr>
<tr>
<td>{#ARCHIVE_RUBS_SELECT#}</td>
<td>
<select name="newsarchive_rubrics[]" size="8" multiple="multiple" class="select" style="width:200px">
{foreach from=$newsarchive_rubrics item=rubric}
<option value="{$rubric->Id}" {if $rubric->sel}selected="selected"{else}{/if}>{$rubric->rubric_title|escape:html}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td>{#ARCHIVE_SHOW_DAYS#}</td>
<td>
<input name="newsarchive_show_days" type="radio" value="1" {if $archives->newsarchive_show_days == 1}checked="checked"{/if}> <label>{#ARCHIVE_YES#}</label>
<input name="newsarchive_show_days" type="radio" value="0" {if $archives->newsarchive_show_days == 0}checked="checked"{/if}> <label>{#ARCHIVE_NO#}</label>
</td>
</tr>
<tr>
<td>{#ARCHIVE_SHOW_EMPTY#}</td>
<td>
<input name="newsarchive_show_empty" type="radio" value="1" {if $archives->newsarchive_show_empty == 1}checked="checked"{/if}> <label>{#ARCHIVE_YES#}</label>
<input name="newsarchive_show_empty" type="radio" value="0" {if $archives->newsarchive_show_empty == 0}checked="checked"{/if}> <label>{#ARCHIVE_NO#}</label>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" class="basicBtn EditArchive" value="{#ARCHIVE_BUTTON_SAVE#}" /></td>
</tr>
<input type="hidden" name="id" value="{$archives->id}" />
</table>
</form>
</div>