112 lines
4.1 KiB
Smarty
112 lines
4.1 KiB
Smarty
<script type="text/javascript" language="JavaScript">
|
|
function check_name() {ldelim}
|
|
// Name -> category_name
|
|
if (document.getElementById('category_name_new').value == '') {ldelim}
|
|
alert("{#BANNER_ENTER_NAME#}");
|
|
document.getElementById('category_name_new').focus();
|
|
return false;
|
|
{rdelim}
|
|
return true;
|
|
{rdelim}
|
|
var clipboard = new Clipboard('.copyBtn');
|
|
</script>
|
|
|
|
<div class="title">
|
|
<h5>{#BANNER_MODULE_NAME#}</h5>
|
|
</div>
|
|
|
|
<div class="widget">
|
|
<div class="body">
|
|
<strong>{#BANNER_MOD_ALLOWS#}</strong>
|
|
<ul style="list-style: square; margin-left:15px;">
|
|
<li>{#BANNER_MOD_ALLOWS_A#}</li>
|
|
<li>{#BANNER_MOD_ALLOWS_B#}</li>
|
|
<li>{#BANNER_MOD_ALLOWS_C#}</li>
|
|
</ul>
|
|
</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><a href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=1&cp={$sess}">{#BANNER_SHOW_ALL#}</a></li>
|
|
<li><strong class="code">{#BANNER_CATEG_LINK#}</strong></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="widget">
|
|
|
|
<ul class="tabs">
|
|
<li class="">
|
|
<a href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=1&cp={$sess}">{#BANNER_SHOW_ALL#}</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=newbanner&cp={$sess}&pop=1&onlycontent=1" data-height="650" data-width="950" data-modal="true" class="openDialog">{#BANNER_NEW_LINK#}</a>
|
|
</li>
|
|
<li class="activeTab">
|
|
<a href="#tab3">{#BANNER_CATEG_LINK#}</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<form method="post" action="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=kategs&cp={$sess}&sub=save" enctype="multipart/form-data">
|
|
<table width="100%" border="0" cellpadding="8" cellspacing="1" class="tableStatic mainForm">
|
|
<thead>
|
|
<tr>
|
|
<td class="" colspan="9"> </td>
|
|
</tr>
|
|
</thead>
|
|
<tr class="tableheader">
|
|
<td width="1%" align="center"><span class="icon_sprite ico_delete"> </span></td>
|
|
<td width="100">{#BANNER_CATEGORY_TAG#}</td>
|
|
<td>{#BANNER_CATEGORY_NAME#}</td>
|
|
</tr>
|
|
{foreach from=$items item=item}
|
|
<tr id="table_rows">
|
|
<td width="1%">
|
|
{* Id -> id *}
|
|
<input title="{#BANNER_MARK_DELETE#}" name="del[{$item->id}]" type="checkbox" id="del[{$item->id}]" value="1" />
|
|
</td>
|
|
<td width="100">
|
|
<div style="display: flex; align-items: center; gap: 5px;">
|
|
<input id="tag_{$item->id}" name="textfield" type="text" value="[mod_banner:{$item->id}]" readonly size="32" style="width: 114px;"/>
|
|
<a style="text-align: center; padding: 5px 3px 4px 3px;" class="whiteBtn copyBtn topDir" href="javascript:void(0);" data-clipboard-action="copy" data-clipboard-target="#tag_{$item->id}" title="{#BANNER_SET_COPY#}">
|
|
<img style="margin-top: -3px; position: relative; top: 1px; padding: 0 3px;" class="clippy" src="{$ABS_PATH}admin/templates/images/clippy.svg" width="13"></a>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
{* KatName -> category_name *}
|
|
<input name="category_name[{$item->id}]" type="text" id="category_name[{$item->id}]" value="{$item->category_name|escape:html|stripslashes}" size="60">
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table><br />
|
|
<input type="submit" style="margin-left:10px;" class="button basicBtn" value="{#BANNER_BUTTON_SAVE#}" />
|
|
</form>
|
|
|
|
<div class="widget">
|
|
<div class="head">
|
|
<h5>{#BANNER_CATEGORY_NEW#}</h5>
|
|
</div>
|
|
</div>
|
|
|
|
<form action="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=kategs&cp={$sess}&sub=new" method="post" onSubmit="return check_name();">
|
|
<table width="100%" border="0" cellpadding="8" cellspacing="1" class="tableStatic mainForm">
|
|
<tr>
|
|
<td class="second">
|
|
<div style="display: flex; align-items: center; gap: 15px;">
|
|
|
|
<span style="font-weight: bold;">{#BANNER_CATEGORY#}</span>
|
|
|
|
<input name="category_name" type="text" id="category_name_new" size="30" style="width: 250px; margin: 0;">
|
|
|
|
<input name="submit" type="submit" class="button basicBtn" style="margin: 0;" value="{#BANNER_BUTTON_ADD#}" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form> |