Files
Testing/templates/admin_levels_subscribersettings.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

197 lines
9.0 KiB
Smarty

{include file='admin_header.tpl'}
{literal}
<script src="../include/js/semods.js"></script>
<script src="../include/js/semods.controls.multiselect.js"></script>
<script>
function init_multiselects() {
new SEMods.Controls.MultiSelect( "levels_subscriber_pagesacl" );
}
SEMods.B.register_onload( init_multiselects );
</script>
<style>
.multiSelect {
background:#FFFFFF url('../images/apps_dropdown.gif') no-repeat scroll right center;
border:1px solid #BBBBBB;
display:inline;
padding:2px 20px 2px 4px;
width:200px;
Xoverflow: hidden;
}
.multiSelect.hover {
background:transparent url('../images/apps_dropdown_hover.gif') no-repeat scroll right center;
}
.multiSelect.active, .multiSelect.focus {
border:1px inset #000000;
}
.multiSelect.active {
background:transparent url('../images/apps_dropdown_active.gif') no-repeat scroll right center;
}
.multiSelectOptions {
background:#FFFFFF none repeat scroll 0%;
border:1px solid #B2B2B2;
margin-top:-1px;
max-height:150px;
overflow:auto;
Xwidth:206px;
width:198px;
}
.multiSelectOptions label {
display:block;
padding:2px 5px;
}
.multiSelectOptions label.checked {
background:#E6E6E6 none repeat scroll 0%;
}
.multiSelectOptions label.selectAll {
border-bottom:1px dotted #CCCCCC;
}
.multiSelectOptions label.hover {
background:#CFCFCF none repeat scroll 0%;
}
iframe.layerfix {
display:none;/*sorry for IE5*/
display/**/:block;/*sorry for IE5*/
position:absolute;/*must have*/
top:0;/*must have*/
left:0;/*must have*/
z-index:1;/*must have*/
filter:mask();/*must have*/
Xwidth:3000px;/*must have for any big value*/
Xheight:3000px/*must have for any big value*/;
}
</style>
{/literal}
<h2>{lang_print id=100014291} {$level_name}</h2>
{lang_print id=100014292}
<table cellspacing='0' cellpadding='0' width='100%' style='margin-top: 20px;'>
<tr>
<td class='vert_tab0'>&nbsp;</td>
<td valign='top' class='pagecell' rowspan='{math equation='x+5' x=$level_menu|@count}'>
<h2>{lang_print id=100014279}</h2>
{lang_print id=100014280}
<br><br>
{* SHOW SUCCESS MESSAGE *}
{if $result != 0}
<div class='success'><img src='../images/success.gif' class='icon' border='0'> {lang_print id=100014290}</div>
{/if}
{* SHOW ERROR MESSAGE *}
{if $is_error != 0}
<div class='error'><img src='../images/error.gif' class='icon' border='0'> {$error_message}</div>
{/if}
<form action='admin_levels_subscribersettings.php' method='POST'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td class='header'>{lang_print id=100014378}</td></tr>
<tr><td class='setting1'>
{lang_print id=100014379}
</td></tr><tr><td class='setting2'>
<table cellpadding='0' cellspacing='0'>
<tr><td><input type='radio' name='level_subscriber_allow' id='level_subscriber_allow_1' value='1'{if $level_info.level_subscriber_allow == 1} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_require_subscription_1'>{lang_print id=100014380}</label></td></tr>
<tr><td><input type='radio' name='level_subscriber_allow' id='level_subscriber_allow_0' value='0'{if $level_info.level_subscriber_allow == 0} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_require_subscription_0'>{lang_print id=100014381}</label></td></tr>
</table>
</td></tr></table>
<br>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td class='header'>{lang_print id=100014281}</td></tr>
<tr><td class='setting1'>
{lang_print id=100014282}
</td></tr><tr><td class='setting2'>
<table cellpadding='0' cellspacing='0'>
<tr><td><input type='radio' name='level_subscriber_require_subscription' id='level_subscriber_require_subscription_1' value='1'{if $level_subscriber_require_subscription == 1} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_require_subscription_1'>{lang_print id=100014283}</label></td></tr>
<tr><td><input type='radio' name='level_subscriber_require_subscription' id='level_subscriber_require_subscription_0' value='0'{if $level_subscriber_require_subscription == 0} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_require_subscription_0'>{lang_print id=100014284}</label></td></tr>
</table>
</td></tr></table>
<br>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td class='header'>{lang_print id=100014363}</td></tr>
<tr><td class='setting1'>
{lang_print id=100014364}
</td></tr><tr><td class='setting2'>
<table cellpadding='0' cellspacing='0'>
<tr><td><input type='radio' name='level_subscriber_pagesacl_modeallow' id='level_subscriber_pagesacl_modeallow_1' value='1'{if $level_subscriber_pagesacl_modeallow == 1} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_pagesacl_modeallow_1'>{lang_print id=100014365}</label></td></tr>
<tr><td><input type='radio' name='level_subscriber_pagesacl_modeallow' id='level_subscriber_pagesacl_modeallow_0' value='0'{if $level_subscriber_pagesacl_modeallow == 0} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_pagesacl_modeallow_0'>{lang_print id=100014366}</label></td></tr>
</table>
</td></tr>
<tr><td class='setting1'>
{lang_print id=100014367}
</td></tr><tr><td class='setting2'>
<input id="levels_subscriber_pagesacl_input" type="text" readonly="readonly" class="multiSelect" value="{lang_print id=100014368}" style="cursor: default;" />
<input type="hidden" id="levels_subscriber_pagesacl_all" name="levels_subscriber_pagesacl_all" value="{lang_print id=100014369}">
<iframe border=0 frameBorder=0 class="layerfix" id="levels_subscriber_pagesacl_iframe"></iframe>
<div id="levels_subscriber_pagesacl_div" class="multiSelectOptions" style="position: absolute; z-index: 99999; display: none;">
<label class="selectAll"><input type="checkbox" class="selectAll" /> {lang_print id=100014370} </label>
{section name=page_loop loop=$subscriber_pagesacl}
<label><input type="checkbox" name="subscriber_pagesacl[]" value="{$subscriber_pagesacl[page_loop].page_name}" {if $subscriber_pagesacl[page_loop].page_selected} checked="checked" {/if}/> {$subscriber_pagesacl[page_loop].page_name} </label>
{/section}
</div>
</td></tr></table>
<br>
<br>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td class='header'>{lang_print id=100014285}</td></tr>
<tr><td class='setting1'>
{lang_print id=100014286}
</td></tr><tr><td class='setting2'>
<table cellpadding='0' cellspacing='0'>
<tr><td><input type='radio' name='level_subscriber_allow_profileview' id='level_subscriber_allow_profileview_0' value='0'{if $level_subscriber_allow_profileview == 0} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_allow_profileview_0'>{lang_print id=100014287}</label></td></tr>
<tr><td><input type='radio' name='level_subscriber_allow_profileview' id='level_subscriber_allow_profileview_1' value='1'{if $level_subscriber_allow_profileview == 1} CHECKED{/if}>&nbsp;</td><td><label for='level_subscriber_allow_profileview_1'>{lang_print id=100014288}</label></td></tr>
</table>
</td></tr>
</table>
<br>
<input type='submit' class='button' value='{lang_print id=100014289}'>
<input type='hidden' name='task' value='dosave'>
<input type='hidden' name='level_id' value='{$level_id}'>
</form>
</td>
</tr>
{* DISPLAY MENU *}
<tr><td width='100' nowrap='nowrap' class='vert_tab'><div style='width: 100px;'><a href='admin_levels_edit.php?level_id={$level_info.level_id}'>{lang_print id=285}</a></div></td></tr>
<tr><td width='100' nowrap='nowrap' class='vert_tab' style='border-top: none;'><div style='width: 100px;'><a href='admin_levels_usersettings.php?level_id={$level_info.level_id}'>{lang_print id=286}</a></div></td></tr>
<tr><td width='100' nowrap='nowrap' class='vert_tab' style='border-top: none;'><div style='width: 100px;'><a href='admin_levels_messagesettings.php?level_id={$level_info.level_id}'>{lang_print id=287}</a></div></td></tr>
{section name=level_plugin_loop loop=$global_plugins}
{section name=level_page_loop loop=$global_plugins[level_plugin_loop].plugin_pages_level}
<tr><td width='100' nowrap='nowrap' class='vert_tab' style='border-top: none;{if $global_plugins[level_plugin_loop].plugin_pages_level[level_page_loop].page == $page} border-right: none;{/if}'><div style='width: 100px;'><a href='{$global_plugins[level_plugin_loop].plugin_pages_level[level_page_loop].link}?level_id={$level_info.level_id}'>{lang_print id=$global_plugins[level_plugin_loop].plugin_pages_level[level_page_loop].title}</a></div></td></tr>
{/section}
{/section}
<tr>
<td class='vert_tab0'>
<div style='height: 550px;'>&nbsp;</div>
</td>
</tr>
</table>
{include file='admin_footer.tpl'}