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.
106 lines
3.6 KiB
106 lines
3.6 KiB
9 years ago
|
<script type="text/javascript" language="JavaScript">
|
||
|
$(document).ready(function(){ldelim}
|
||
|
$(".AddArchive").click( function(e) {ldelim}
|
||
|
e.preventDefault();
|
||
|
var user_group = $('#add_archive #newsarchive_name_new').fieldValue();
|
||
|
var title = '{#ARCHIVE_NAME#}';
|
||
|
var text = '{#ARCHIVE_ENTER_NAME#}';
|
||
|
if (user_group == ""){ldelim}
|
||
|
jAlert(text,title);
|
||
|
{rdelim}else{ldelim}
|
||
|
$.alerts._overlay('show');
|
||
|
$("#add_archive").submit();
|
||
|
{rdelim}
|
||
|
{rdelim});
|
||
|
{rdelim});
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<div class="title"><h5>{#ARCHIVE_LIST#}</h5></div>
|
||
|
|
||
|
<div class="widget" style="margin-top: 0px;">
|
||
|
<div class="body">
|
||
|
{#ARCHIVE_LIST_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&cp={$sess}">{#MODULES_SUB_TITLE#}</a></li>
|
||
|
<li>{#ARCHIVE_LIST#}</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="widget first">
|
||
|
<ul class="tabs">
|
||
|
<li class="activeTab"><a href="#tab1">{#ARCHIVE_LISTS#}</a></li>
|
||
|
<li><a href="#tab2">{#ARCHIVE_ADD#}</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="tab_container">
|
||
|
<div id="tab1" class="tab_content" style="display: block;">
|
||
|
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic mainForm">
|
||
|
<col width="20" />
|
||
|
<col width="250" />
|
||
|
<col />
|
||
|
<col width="150" />
|
||
|
<col width="20" />
|
||
|
<col width="20" />
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td>Id</td>
|
||
|
<td>{#ARCHIVE_NAME#}</td>
|
||
|
<td>{#ARCHIVE_USE_RUBRIKS#}</td>
|
||
|
<td>{#ARCHIVE_TAG#}</td>
|
||
|
<td colspan="2">{#ARCHIVE_ACTIONS#}</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
{if $archives}
|
||
|
{foreach from=$archives item=archive}
|
||
|
<tr>
|
||
|
<td>{$archive->id}</td>
|
||
|
<td><strong><a class="topleftDir link" title="{#ARCHIVE_EDIT_HINT#}" href="index.php?do=modules&action=modedit&mod=newsarchive&moduleaction=edit&cp={$sess}&id={$archive->id}">{$archive->newsarchive_name|escape:html|stripslashes}</a></strong></td>
|
||
|
<td align="center"><strong>{if !$archive->rubric_title}{#ARCHIVE_NO_RUBRIKS#}{else}{$archive->rubric_title}{/if}</strong></td>
|
||
|
<td><div class="pr12"><input name="textfield" type="text" value="[mod_newsarchive:{$archive->id}]" readonly /></div></td>
|
||
|
<td align="center">
|
||
|
<a class="topleftDir icon_sprite ico_setting" title="{#ARCHIVE_EDIT_HINT#}" href="index.php?do=modules&action=modedit&mod=newsarchive&moduleaction=edit&cp={$sess}&id={$archive->id}"></a>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<a class="topleftDir ConfirmDelete icon_sprite ico_delete" title="{#ARCHIVE_DELETE_HINT#}" href="index.php?do=modules&action=modedit&mod=newsarchive&moduleaction=del&cp={$sess}&id={$archive->id}"></a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/foreach}
|
||
|
{else}
|
||
|
<tr>
|
||
|
<td colspan="6">
|
||
|
<ul class="messages">
|
||
|
<li class="highlight yellow">{#ARCHIVE_NO_ITEMS#}</li>
|
||
|
</ul>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/if}
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<div id="tab2" class="tab_content" style="display: none;">
|
||
|
<form action="index.php?do=modules&action=modedit&mod=newsarchive&moduleaction=add&cp={$sess}" method="post" class="mainForm" id="add_archive">
|
||
|
<div class="rowElem">
|
||
|
<label>{#ARCHIVE_NAME#}</label>
|
||
|
<div class="formRight">
|
||
|
<input name="newsarchive_name_new" type="text" id="newsarchive_name_new" value="" placeholder="{#ARCHIVE_NAME#}" style="width: 400px" />
|
||
|
|
||
|
<input type="button" class="basicBtn AddArchive" value="{#ARCHIVE_BUTTON_ADD#}" />
|
||
|
</div>
|
||
|
<div class="fix"></div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="fix"></div>
|
||
|
</div>
|