mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 11:49:03 +00:00
Properly format the template code
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
<li><a href="{$smarty.const.WWW_TOP}/content-list.php">Edit Content</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a><i class="fa fa-chevron-circle-down"></i><span> Menu</span><span class="fa fa-chevron-down"></span></a>
|
||||
<li><a><i class="fa fa-chevron-circle-down"></i><span> Menu</span><span
|
||||
class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
<li><a href="{$smarty.const.WWW_TOP}/menu-list.php">View Menu Items</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/menu-edit.php?action=add">Add Menu Items</a></li>
|
||||
@@ -35,21 +36,27 @@
|
||||
</li>
|
||||
<li><a><i class="fa fa-registered"></i><span> Regexes</span><span class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
<li><a href="{$smarty.const.WWW_TOP}/category_regexes-edit.php?action=add">Add Category Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/category_regexes-edit.php?action=add">Add Category Regexes</a>
|
||||
</li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/category_regexes-list.php">View Category Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/collection_regexes-edit.php?action=add">Add Collection Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/collection_regexes-test.php?action=add">Test Collection Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/collection_regexes-edit.php?action=add">Add Collection
|
||||
Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/collection_regexes-test.php?action=add">Test Collection
|
||||
Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/collection_regexes-list.php">View Collection Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-edit.php?action=add">Add Release Naming Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-test.php?action=add">Test Release Naming Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-list.php">View Release Naming Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-edit.php?action=add">Add Release Naming
|
||||
Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-test.php?action=add">Test Release Naming
|
||||
Regexes</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-list.php">View Release Naming
|
||||
Regexes</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a><i class="fa fa-stop"></i><span> Blacklist</span><span class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
<li><a href="{$smarty.const.WWW_TOP}/binaryblacklist-list.php">View Blacklist</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/binaryblacklist-edit.php?action=add">Add Blacklist</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a><i class="fa fa-recycle"></i><span> Releases</span><span class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
@@ -63,9 +70,10 @@
|
||||
<li><a href="{$smarty.const.WWW_TOP}/music-list.php">View Music List</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/console-list.php">View Console List</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/book-list.php">View Book List</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a><i class="fa fa-object-group"></i><span> Multi Group</span><span class="fa fa-chevron-down"></span></a>
|
||||
<li><a><i class="fa fa-object-group"></i><span> Multi Group</span><span
|
||||
class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
<li><a href="{$smarty.const.WWW_TOP}/posters-edit.php">Add MultiGroup Poster</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/posters-list.php">MultiGroup Posters List</a></li>
|
||||
@@ -75,16 +83,18 @@
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
<li><a href="{$smarty.const.WWW_TOP}/nzb-import.php">Import NZBs</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/nzb-export.php">Export NZBs</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><a><i class="fa fa-hourglass-start"></i><span> Stats & Logs</span><span class="fa fa-chevron-down"></span></a>
|
||||
<li><a><i class="fa fa-hourglass-start"></i><span> Stats & Logs</span><span
|
||||
class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
<li><a href="{$smarty.const.WWW_TOP}/opcachestats.php">Opcache Statistics</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/site-stats.php">Site Stats</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a><i class="fa fa-comments"></i><span> Comments & Sharing</span><span class="fa fa-chevron-down"></span></a>
|
||||
<li><a><i class="fa fa-comments"></i><span> Comments & Sharing</span><span
|
||||
class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu" style="display: none">
|
||||
<li><a href="{$smarty.const.WWW_TOP}/comments-list.php">View Comments</a></li>
|
||||
<li><a href="{$smarty.const.WWW_TOP}/sharing.php">Comment Sharing Settings</a></li>
|
||||
|
||||
@@ -3,27 +3,31 @@
|
||||
<h4>Successfully updated!</h4>
|
||||
{if $from != ''}
|
||||
<script type="text/javascript">
|
||||
window.location = "{$from}";
|
||||
window.location = "{$from}";
|
||||
</script>
|
||||
{/if}
|
||||
{else}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
$('#release').submit(function(){return false;});
|
||||
$('#save').click(function() {
|
||||
var formData = $('#release');
|
||||
var postUrl = formData.attr('action');
|
||||
$.post(postUrl, '&' + formData.serialize(), function(data){ $('#updatePanel').html(data) });
|
||||
location.reload();
|
||||
});
|
||||
$('#release').submit(function () {
|
||||
return false;
|
||||
});
|
||||
$('#save').click(function () {
|
||||
var formData = $('#release');
|
||||
var postUrl = formData.attr('action');
|
||||
$.post(postUrl, '&' + formData.serialize(), function (data) {
|
||||
$('#updatePanel').html(data)
|
||||
});
|
||||
location.reload();
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<form id="release" action="{$smarty.const.WWW_TOP}/ajax_release-admin/?action=doedit" method="get">
|
||||
{{csrf_field()}}
|
||||
{foreach from=$idArr item=id}
|
||||
<input type="hidden" name="id[]" value="{$id}" />
|
||||
<input type="hidden" name="id[]" value="{$id}"/>
|
||||
{/foreach}
|
||||
<input type="hidden" name="from" value="{$from}" />
|
||||
<input type="hidden" name="from" value="{$from}"/>
|
||||
<table class="input">
|
||||
<tr>
|
||||
<td><label for="category">Category:</label></td>
|
||||
@@ -34,37 +38,38 @@
|
||||
<tr>
|
||||
<td><label for="grabs">Grabs:</label></td>
|
||||
<td>
|
||||
<input id="grabs" class="short" name="grabs" type="text" value="{$release.grabs}" />
|
||||
<input id="grabs" class="short" name="grabs" type="text" value="{$release.grabs}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="videosid">Video Id:</label></td>
|
||||
<td>
|
||||
<input id="videosid" class="short" name="videosid" type="text" value="{$release.videos_id}" />
|
||||
<input id="videosid" class="short" name="videosid" type="text" value="{$release.videos_id}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="episodesid">TV Episode Id:</label></td>
|
||||
<td>
|
||||
<input id="episodesid" class="short" name="episodesid" type="text" value="{$release.tv_episodes_id}" />
|
||||
<input id="episodesid" class="short" name="episodesid" type="text"
|
||||
value="{$release.tv_episodes_id}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="anidbid">AniDB Id:</label></td>
|
||||
<td>
|
||||
<input id="anidbid" class="short" name="anidbid" type="text" value="{$release.anidbid}" />
|
||||
<input id="anidbid" class="short" name="anidbid" type="text" value="{$release.anidbid}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="imdbid">IMDB Id:</label></td>
|
||||
<td>
|
||||
<input id="imdbid" class="short" name="imdbid" type="text" value="{$release.imdbid}" />
|
||||
<input id="imdbid" class="short" name="imdbid" type="text" value="{$release.imdbid}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" id="save" />
|
||||
<input class="btn btn-default" type="submit" value="Save" id="save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,123 +1,131 @@
|
||||
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<div class="well well-sm">
|
||||
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
|
||||
<input type="hidden" name="from" value="{$smarty.get.from}" />
|
||||
<input type="hidden" name="from" value="{$smarty.get.from}"/>
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td><label for="anidbid">AniDB Id</label>:</td>
|
||||
<td>
|
||||
<input id="anidbid" class="long" name="anidbid" type="text" value="{$anime.anidbid|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="anidbid">AniDB Id</label>:</td>
|
||||
<td>
|
||||
<input id="anidbid" class="long" name="anidbid" type="text"
|
||||
value="{$anime.anidbid|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="title">Anime Name</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$anime.title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Anime Name</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$anime.title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="type">Type</label>:</td>
|
||||
<td>
|
||||
<input id="type" class="long" name="type" type="text" value="{$anime.type|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="type">Type</label>:</td>
|
||||
<td>
|
||||
<input id="type" class="long" name="type" type="text" value="{$anime.type|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="startdate">Start date</label>:</td>
|
||||
<td>
|
||||
<input id="startdate" class="long" name="startdate" type="text" value="{$anime.startdate|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="startdate">Start date</label>:</td>
|
||||
<td>
|
||||
<input id="startdate" class="long" name="startdate" type="text"
|
||||
value="{$anime.startdate|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="enddate">End date</label>:</td>
|
||||
<td>
|
||||
<input id="enddate" class="long" name="enddate" type="text" value="{$anime.enddate|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="enddate">End date</label>:</td>
|
||||
<td>
|
||||
<input id="enddate" class="long" name="enddate" type="text"
|
||||
value="{$anime.enddate|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="related">Related</label>:</td>
|
||||
<td>
|
||||
<input id="related" class="long" name="related" type="text" value="{$anime.related|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="related">Related</label>:</td>
|
||||
<td>
|
||||
<input id="related" class="long" name="related" type="text"
|
||||
value="{$anime.related|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="creators">Creators</label>:</td>
|
||||
<td>
|
||||
<input id="creators" class="long" name="creators" type="text" value="{$anime.creators|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="creators">Creators</label>:</td>
|
||||
<td>
|
||||
<input id="creators" class="long" name="creators" type="text"
|
||||
value="{$anime.creators|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="description">Description</label>:</td>
|
||||
<td>
|
||||
<textarea id="description" name="description">{$anime.description|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description</label>:</td>
|
||||
<td>
|
||||
<textarea id="description" name="description">{$anime.description|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="rating">Rating</label>:</td>
|
||||
<td>
|
||||
<input id="rating" class="long" name="rating" type="text" value="{$anime.rating|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="rating">Rating</label>:</td>
|
||||
<td>
|
||||
<input id="rating" class="long" name="rating" type="text" value="{$anime.rating|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="categories">Categories</label>:</td>
|
||||
<td>
|
||||
<input id="categories" class="long" name="categories" type="text" value="{$anime.categories|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="categories">Categories</label>:</td>
|
||||
<td>
|
||||
<input id="categories" class="long" name="categories" type="text"
|
||||
value="{$anime.categories|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="characters">Characters</label>:</td>
|
||||
<td>
|
||||
<input id="characters" class="long" name="characters" type="text" value="{$anime.characters|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="characters">Characters</label>:</td>
|
||||
<td>
|
||||
<input id="characters" class="long" name="characters" type="text"
|
||||
value="{$anime.characters|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="epnos">Episode numbers</label>:</td>
|
||||
<td>
|
||||
<input id="epnos" class="long" name="epnos" type="text" value="{$anime.episode_no|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="epnos">Episode numbers</label>:</td>
|
||||
<td>
|
||||
<input id="epnos" class="long" name="epnos" type="text"
|
||||
value="{$anime.episode_no|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="airdates">Episode air dates</label>:</td>
|
||||
<td>
|
||||
<input id="airdates" class="long" name="airdates" type="text" value="{$anime.airdate|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="airdates">Episode air dates</label>:</td>
|
||||
<td>
|
||||
<input id="airdates" class="long" name="airdates" type="text"
|
||||
value="{$anime.airdate|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="episodetitles">Episode titles</label>:</td>
|
||||
<td>
|
||||
<input id="episodetitles" class="long" name="episodetitles" type="text" value="{$anime.episode_title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="episodetitles">Episode titles</label>:</td>
|
||||
<td>
|
||||
<input id="episodetitles" class="long" name="episodetitles" type="text"
|
||||
value="{$anime.episode_title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -3,42 +3,49 @@
|
||||
{if $anidblist}
|
||||
|
||||
<div class="well well-sm">
|
||||
<div style="float:right;">
|
||||
<div style="float:right;">
|
||||
|
||||
<form name="anidbsearch" action="">
|
||||
{{csrf_field()}}
|
||||
<label for="animetitle">Title</label>
|
||||
<input id="animetitle" type="text" name="animetitle" value="{$animetitle}" size="15" />
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{$pager}
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<table style="width:100%;margin-top:10px;" class="Sortable data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<th style="width:60px;">AniDB Id</th>
|
||||
<th>Title</th>
|
||||
<th style="width:100px;" class="mid">Options</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$anidblist item=anidb}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less"><a href="http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$anidb.anidbid}" title="View in AniDB">{$anidb.anidbid}</a></td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/anidb-edit.php?id={$anidb.anidbid}">{$anidb.title|escape:"htmlall"}</a></td>
|
||||
<td class="mid"><a title="Delete this AniDB entry" href="{$smarty.const.WWW_TOP}/anidb-delete.php?id={$anidb.anidbid}">delete</a> | <a title="Remove this anidbid from all releases" href="{$smarty.const.WWW_TOP}/anidb-remove.php?id={$anidb.anidbid}">remove</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No AniDB episodes available.</p>
|
||||
{/if}
|
||||
<form name="anidbsearch" action="">
|
||||
{{csrf_field()}}
|
||||
<label for="animetitle">Title</label>
|
||||
<input id="animetitle" type="text" name="animetitle" value="{$animetitle}" size="15"/>
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{$pager}
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<table style="width:100%;margin-top:10px;"
|
||||
class="Sortable data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<th style="width:60px;">AniDB Id</th>
|
||||
<th>Title</th>
|
||||
<th style="width:100px;" class="mid">Options</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$anidblist item=anidb}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less"><a href="http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$anidb.anidbid}"
|
||||
title="View in AniDB">{$anidb.anidbid}</a></td>
|
||||
<td><a title="Edit"
|
||||
href="{$smarty.const.WWW_TOP}/anidb-edit.php?id={$anidb.anidbid}">{$anidb.title|escape:"htmlall"}</a>
|
||||
</td>
|
||||
<td class="mid"><a title="Delete this AniDB entry"
|
||||
href="{$smarty.const.WWW_TOP}/anidb-delete.php?id={$anidb.anidbid}">delete</a> | <a
|
||||
title="Remove this anidbid from all releases"
|
||||
href="{$smarty.const.WWW_TOP}/anidb-remove.php?id={$anidb.anidbid}">remove</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No AniDB episodes available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -100,13 +100,17 @@
|
||||
<script src="{$smarty.const.WWW_ASSETS}/jquery-3.2.x/dist/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="{$smarty.const.WWW_ASSETS}/bootstrap-3.x/dist/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<!-- bootstrap progress js -->
|
||||
<script type="text/javascript" src="{$smarty.const.WWW_ASSETS}/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="{$smarty.const.WWW_ASSETS}/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
|
||||
<!-- bootstrap datepicker -->
|
||||
<script type="text/javascript" src="{$smarty.const.WWW_ASSETS}/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
|
||||
<script type="text/javascript" src="{$smarty.const.WWW_ASSETS}/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="{$smarty.const.WWW_ASSETS}/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="{$smarty.const.WWW_ASSETS}/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"></script>
|
||||
<script type="text/javascript" src="{$smarty.const.WWW_ASSETS}/autosize/dist/autosize.min.js"></script>
|
||||
<script type="text/javascript" src="{$smarty.const.WWW_ASSETS}/colorbox/jquery.colorbox-min.js"></script>
|
||||
<script type="text/javascript" src="{$smarty.const.WWW_ASSETS}/jquery.nicescroll/dist/jquery.nicescroll.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="{$smarty.const.WWW_ASSETS}/jquery.nicescroll/dist/jquery.nicescroll.min.js"></script>
|
||||
<!-- tinymce editor -->
|
||||
<script type="text/javascript" src="{$smarty.const.WWW_ASSETS}/tinymce-builded/js/tinymce/tinymce.min.js"></script>
|
||||
<!-- icheck -->
|
||||
|
||||
@@ -3,58 +3,61 @@
|
||||
<div class="error">{$error}</div>
|
||||
{/if}
|
||||
<div class="well well-sm">
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input">
|
||||
<tr>
|
||||
<td>Group:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$regex.id}" />
|
||||
<input type="text" id="groupname" name="groupname" value="{$regex.groupname|escape:html}" />
|
||||
<div class="hint">The full name of a valid newsgroup. (Wildcard in the format 'alt.binaries.*')</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Regex:</td>
|
||||
<td>
|
||||
<textarea id="regex" name="regex" >{$regex.regex|escape:html}</textarea>
|
||||
<div class="hint">The regex to be applied. (Note: Beginning and Ending / are already included)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td>
|
||||
<textarea id="description" name="description" >{$regex.description|escape:html}</textarea>
|
||||
<div class="hint">A description for this regex</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="msgcol">Message Field:</label></td>
|
||||
<td>
|
||||
{html_radios id="msgcol" name='msgcol' values=$msgcol_ids output=$msgcol_names selected=$regex.msgcol separator='<br />'}
|
||||
<div class="hint">Which field in the message to apply the black/white list to.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regexes are applied during the release process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="optype">Type:</label></td>
|
||||
<td>
|
||||
{html_radios id="optype" name='optype' values=$optype_ids output=$optype_names selected=$regex.optype separator='<br />'}
|
||||
<div class="hint">Black will exclude all messages for a group which match this regex. White will include only those which match.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input">
|
||||
<tr>
|
||||
<td>Group:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$regex.id}"/>
|
||||
<input type="text" id="groupname" name="groupname" value="{$regex.groupname|escape:html}"/>
|
||||
<div class="hint">The full name of a valid newsgroup. (Wildcard in the format 'alt.binaries.*')
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Regex:</td>
|
||||
<td>
|
||||
<textarea id="regex" name="regex">{$regex.regex|escape:html}</textarea>
|
||||
<div class="hint">The regex to be applied. (Note: Beginning and Ending / are already included)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td>
|
||||
<textarea id="description" name="description">{$regex.description|escape:html}</textarea>
|
||||
<div class="hint">A description for this regex</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="msgcol">Message Field:</label></td>
|
||||
<td>
|
||||
{html_radios id="msgcol" name='msgcol' values=$msgcol_ids output=$msgcol_names selected=$regex.msgcol separator='<br />'}
|
||||
<div class="hint">Which field in the message to apply the black/white list to.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regexes are applied during the release process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="optype">Type:</label></td>
|
||||
<td>
|
||||
{html_radios id="optype" name='optype' values=$optype_ids output=$optype_names selected=$regex.optype separator='<br />'}
|
||||
<div class="hint">Black will exclude all messages for a group which match this regex. White will
|
||||
include only those which match.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,40 +1,46 @@
|
||||
<h1>{$page->title}</h1>
|
||||
<div class="well well-sm">
|
||||
<p>
|
||||
Binaries can be prevented from being added to the index at all if they match a regex provided in the blacklist. They can also be included only if they match a regex (whitelist).
|
||||
<br>CLICK EDIT OR ON THE BLACKLIST TO ENABLE/DISABLE.
|
||||
</p>
|
||||
<div id="message"></div>
|
||||
<table style="margin-top:10px;" class="Sortable data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>type</th>
|
||||
<th>field</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
<th>last activity</th>
|
||||
</tr>
|
||||
{foreach from=$binlist item=bin}
|
||||
<tr id="row-{$bin.id}" class="{cycle values=",alt"}">
|
||||
<td>{$bin.id}</td>
|
||||
<td>{$bin.groupname|replace:"alt.binaries":"a.b"}</td>
|
||||
<td title="Edit this blacklist"><a href="{$smarty.const.WWW_TOP}/binaryblacklist-edit.php?id={$bin.id}">Edit</a></td>
|
||||
<td>{$bin.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this blacklist"><a href="javascript:ajax_binaryblacklist_delete({$bin.id})" onclick="return confirm('Are you sure? This will delete the blacklist from this list.');" >Delete</a></td>
|
||||
<td>{if $bin.optype==1}Black{else}White{/if}</td>
|
||||
<td>{if $bin.msgcol==1}Subject{elseif $bin.msgcol==2}Poster{else}MessageID{/if}</td>
|
||||
{if $bin.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this blacklist"><a href="{$smarty.const.WWW_TOP}/binaryblacklist-edit.php?id={$bin.id}">{$bin.regex|escape:html|truncate:50:"...":true}</a></td>
|
||||
<td>{$bin.last_activity}</td>
|
||||
<p>
|
||||
Binaries can be prevented from being added to the index at all if they match a regex provided in the blacklist.
|
||||
They can also be included only if they match a regex (whitelist).
|
||||
<br>CLICK EDIT OR ON THE BLACKLIST TO ENABLE/DISABLE.
|
||||
</p>
|
||||
<div id="message"></div>
|
||||
<table style="margin-top:10px;" class="Sortable data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>type</th>
|
||||
<th>field</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
<th>last activity</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{foreach from=$binlist item=bin}
|
||||
<tr id="row-{$bin.id}" class="{cycle values=",alt"}">
|
||||
<td>{$bin.id}</td>
|
||||
<td>{$bin.groupname|replace:"alt.binaries":"a.b"}</td>
|
||||
<td title="Edit this blacklist"><a href="{$smarty.const.WWW_TOP}/binaryblacklist-edit.php?id={$bin.id}">Edit</a>
|
||||
</td>
|
||||
<td>{$bin.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this blacklist"><a href="javascript:ajax_binaryblacklist_delete({$bin.id})"
|
||||
onclick="return confirm('Are you sure? This will delete the blacklist from this list.');">Delete</a>
|
||||
</td>
|
||||
<td>{if $bin.optype==1}Black{else}White{/if}</td>
|
||||
<td>{if $bin.msgcol==1}Subject{elseif $bin.msgcol==2}Poster{else}MessageID{/if}</td>
|
||||
{if $bin.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this blacklist"><a
|
||||
href="{$smarty.const.WWW_TOP}/binaryblacklist-edit.php?id={$bin.id}">{$bin.regex|escape:html|truncate:50:"...":true}</a>
|
||||
</td>
|
||||
<td>{$bin.last_activity}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -1,74 +1,76 @@
|
||||
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<div class="well well-sm">
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
|
||||
<input type="hidden" name="id" value="{$book.id}" />
|
||||
<input type="hidden" name="id" value="{$book.id}"/>
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$book.title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$book.title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="asin">ASIN</label>:</td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$book.asin|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="asin">ASIN</label>:</td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$book.asin|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="url">URL</label>:</td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$book.url|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="url">URL</label>:</td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$book.url|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="author">Author</label>:</td>
|
||||
<td>
|
||||
<input id="author" class="long" name="author" type="text" value="{$book.author|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="author">Author</label>:</td>
|
||||
<td>
|
||||
<input id="author" class="long" name="author" type="text" value="{$book.author|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher</label>:</td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text" value="{$book.publisher|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher</label>:</td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text"
|
||||
value="{$book.publisher|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="publishdate">Published Date</label>:</td>
|
||||
<td>
|
||||
<input id="publishdate" name="publishdate" type="text" value="{$book.publishdate|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publishdate">Published Date</label>:</td>
|
||||
<td>
|
||||
<input id="publishdate" name="publishdate" type="text"
|
||||
value="{$book.publishdate|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover" />
|
||||
{if $book.cover == 1}
|
||||
<img style="max-width:200px; display:block;" src="{$smarty.const.WWW_TOP}/../covers/book/{$book.id}.jpg" alt="" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover"/>
|
||||
{if $book.cover == 1}
|
||||
<img style="max-width:200px; display:block;"
|
||||
src="{$smarty.const.WWW_TOP}/../covers/book/{$book.id}.jpg" alt=""/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<div class="well well-sm">
|
||||
{if $booklist}
|
||||
{$pager}
|
||||
{if $booklist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Title</th>
|
||||
<th>Author</th>
|
||||
<th width="80" class="mid">Created</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Title</th>
|
||||
<th>Author</th>
|
||||
<th width="80" class="mid">Created</th>
|
||||
</tr>
|
||||
{foreach from=$booklist item=book}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$book.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/book-edit.php?id={$book.id}">{$book.title}</a>
|
||||
</td>
|
||||
<td>{$book.author}</td>
|
||||
<td class="mid">{$book.created_at|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$booklist item=book}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$book.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/book-edit.php?id={$book.id}">{$book.title}</a></td>
|
||||
<td>{$book.author}</td>
|
||||
<td class="mid">{$book.created_at|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No books available.</p>
|
||||
{/if}
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No books available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
{if isset($error) && $error != ''}
|
||||
@@ -6,67 +5,67 @@
|
||||
{/if}
|
||||
|
||||
<div class="well well-sm">
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/category-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/category-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$category.id}" />
|
||||
{$category.title}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$category.id}"/>
|
||||
{$category.title}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Parent:</td>
|
||||
<td>
|
||||
{$category.parentid}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Parent:</td>
|
||||
<td>
|
||||
{$category.parentid}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td>
|
||||
<input type="text" class="long" name="description" value="{$category.description}" />
|
||||
</td>
|
||||
</tr>
|
||||
<td>Minimum Size (Bytes):</td>
|
||||
<td>
|
||||
<input type="text" class="short" name="minsizetoformrelease" value="{$category.minsizetoformrelease}" />
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<td>Maximum Size (Bytes):</td>
|
||||
<td>
|
||||
<input type="text" class="short" name="maxsizetoformrelease" value="{$category.maxsizetoformrelease}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td>
|
||||
<input type="text" class="long" name="description" value="{$category.description}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<td>Minimum Size (Bytes):</td>
|
||||
<td>
|
||||
<input type="text" class="short" name="minsizetoformrelease" value="{$category.minsizetoformrelease}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<td>Maximum Size (Bytes):</td>
|
||||
<td>
|
||||
<input type="text" class="short" name="maxsizetoformrelease" value="{$category.maxsizetoformrelease}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="status">Active</label>:</td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$category.status separator='<br />'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active</label>:</td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$category.status separator='<br />'}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="disablepreview">Disable Preview</label>:</td>
|
||||
<td>
|
||||
{html_radios id="disablepreview" name='disablepreview' values=$status_ids output=$status_names selected=$category.disablepreview separator='<br />'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="disablepreview">Disable Preview</label>:</td>
|
||||
<td>
|
||||
{html_radios id="disablepreview" name='disablepreview' values=$status_ids output=$status_names selected=$category.disablepreview separator='<br />'}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<div class="well well-sm">
|
||||
|
||||
<p>
|
||||
Make a category inactive to remove it from the menu. This does not prevent binaries being matched into an appropriate category. Disable preview prevents ffmpeg being used for releases in the category.
|
||||
</p>
|
||||
<p>
|
||||
Make a category inactive to remove it from the menu. This does not prevent binaries being matched into an
|
||||
appropriate category. Disable preview prevents ffmpeg being used for releases in the category.
|
||||
</p>
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>title</th>
|
||||
<th>parent</th>
|
||||
<th>min size</th>
|
||||
<th>max size</th>
|
||||
<th>active</th>
|
||||
<th>disable preview</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>title</th>
|
||||
<th>parent</th>
|
||||
<th>min size</th>
|
||||
<th>max size</th>
|
||||
<th>active</th>
|
||||
<th>disable preview</th>
|
||||
</tr>
|
||||
|
||||
{foreach $categorylist as $category}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td>{$category.id}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/category-edit.php?id={$category.id}">{$category.title}</a></td>
|
||||
<td>
|
||||
{if $category.parentid != null}
|
||||
{$category->parent->title}
|
||||
{else}
|
||||
n/a
|
||||
{/if}
|
||||
</td>
|
||||
<td class="mid">
|
||||
{if $category.minsizetoformrelease != 0 }{$category.minsizetoformrelease|fsize_format:"MB"}{/if}
|
||||
</td>
|
||||
<td class="mid">
|
||||
{if $category.maxsizetoformrelease != 0 }{$category.maxsizetoformrelease|fsize_format:"MB"}{/if}
|
||||
</td>
|
||||
<td>{if $category.status == "1"}Yes{else}No{/if}</td>
|
||||
<td class="mid">{if $category.disablepreview == "1"}Yes{else}No{/if}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{foreach $categorylist as $category}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td>{$category.id}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/category-edit.php?id={$category.id}">{$category.title}</a></td>
|
||||
<td>
|
||||
{if $category.parentid != null}
|
||||
{$category->parent->title}
|
||||
{else}
|
||||
n/a
|
||||
{/if}
|
||||
</td>
|
||||
<td class="mid">
|
||||
{if $category.minsizetoformrelease != 0 }{$category.minsizetoformrelease|fsize_format:"MB"}{/if}
|
||||
</td>
|
||||
<td class="mid">
|
||||
{if $category.maxsizetoformrelease != 0 }{$category.maxsizetoformrelease|fsize_format:"MB"}{/if}
|
||||
</td>
|
||||
<td>{if $category.status == "1"}Yes{else}No{/if}</td>
|
||||
<td class="mid">{if $category.disablepreview == "1"}Yes{else}No{/if}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -3,75 +3,77 @@
|
||||
<div class="error">{$error}</div>
|
||||
{/if}
|
||||
<div class="well well-sm">
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/category_regexes-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group_regex">Group:</label></td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$regex.id}" />
|
||||
<input type="text" id="group_regex" name="group_regex" value="{$regex.group_regex|escape:html}" />
|
||||
<div class="hint">
|
||||
Regex to match against a group or multiple groups.<br />
|
||||
Delimiters are already added, and PCRE_CASELESS is added after for case insensitivity.
|
||||
An example of matching a single group: alt\.binaries\.example<br />
|
||||
An example of matching multiple groups: alt\.binaries.*
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="regex">Regex:</label></td>
|
||||
<td>
|
||||
<textarea id="regex" name="regex" >{$regex.regex|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
Regex to use when categorizing releases.<br />
|
||||
The regex delimiters are not added, you MUST add them. See <a href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br />
|
||||
To make the regex case insensitive, add i after the last delimiter.<br />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description" name="description" >{$regex.description|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
Description for this regex.<br />
|
||||
You can include an example usenet subject this regex would match on.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal:</label></td>
|
||||
<td>
|
||||
<input class="ordinal" id="ordinal" name="ordinal" type="text" value="{$regex.ordinal}" />
|
||||
<div class="hint">
|
||||
The order to run this regex in.<br />
|
||||
Must be a number, 0 or higher.<br />
|
||||
If multiple regex have the same ordinal, MySQL will randomly sort them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regex are used during the collection matching process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="categories_id">Category:</label></td>
|
||||
<td>
|
||||
{html_options id="categories_id" name='categories_id' values=$category_ids output=$category_names selected=$regex.categories_id}
|
||||
<div class="hint">Select a category which releases matched to this regex will go into.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/category_regexes-list.php"><i class="fa fa-arrow-left"></i>
|
||||
Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group_regex">Group:</label></td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$regex.id}"/>
|
||||
<input type="text" id="group_regex" name="group_regex" value="{$regex.group_regex|escape:html}"/>
|
||||
<div class="hint">
|
||||
Regex to match against a group or multiple groups.<br/>
|
||||
Delimiters are already added, and PCRE_CASELESS is added after for case insensitivity.
|
||||
An example of matching a single group: alt\.binaries\.example<br/>
|
||||
An example of matching multiple groups: alt\.binaries.*
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="regex">Regex:</label></td>
|
||||
<td>
|
||||
<textarea id="regex" name="regex">{$regex.regex|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
Regex to use when categorizing releases.<br/>
|
||||
The regex delimiters are not added, you MUST add them. See <a
|
||||
href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br/>
|
||||
To make the regex case insensitive, add i after the last delimiter.<br/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description" name="description">{$regex.description|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
Description for this regex.<br/>
|
||||
You can include an example usenet subject this regex would match on.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal:</label></td>
|
||||
<td>
|
||||
<input class="ordinal" id="ordinal" name="ordinal" type="text" value="{$regex.ordinal}"/>
|
||||
<div class="hint">
|
||||
The order to run this regex in.<br/>
|
||||
Must be a number, 0 or higher.<br/>
|
||||
If multiple regex have the same ordinal, MySQL will randomly sort them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regex are used during the collection matching process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="categories_id">Category:</label></td>
|
||||
<td>
|
||||
{html_options id="categories_id" name='categories_id' values=$category_ids output=$category_names selected=$regex.categories_id}
|
||||
<div class="hint">Select a category which releases matched to this regex will go into.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,50 +1,54 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<p>This page lists regex used for categorizing releases.<br />
|
||||
You can recategorize all releases by running misc/update/update_releases.php 6 true
|
||||
</p>
|
||||
<div id="message"></div>
|
||||
<h1>{$page->title}</h1>
|
||||
<p>This page lists regex used for categorizing releases.<br/>
|
||||
You can recategorize all releases by running misc/update/update_releases.php 6 true
|
||||
</p>
|
||||
<div id="message"></div>
|
||||
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group">Search a group:</label>
|
||||
<input id="group" type="text" name="group" value="{$group}" size="15" />
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go" />
|
||||
</form>
|
||||
{if $regex}
|
||||
|
||||
<div>{$pager}</div>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>ordinal</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
<th>category id</th>
|
||||
</tr>
|
||||
{foreach from=$regex item=row}
|
||||
<tr id="row-{$row.id}" class="{cycle values=",alt"}">
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.group_regex}</td>
|
||||
<td title="Edit this regex"><a href="{$smarty.const.WWW_TOP}/category_regexes-edit.php?id={$row.id}">Edit</a></td>
|
||||
<td>{$row.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this regex"><a href="javascript:ajax_category_regex_delete({$row.id})" onclick="return confirm('Are you sure? This will delete the regex from this list.');" >Delete</a></td>
|
||||
<td>{$row.ordinal}</td>
|
||||
{if $row.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this regex"><a href="{$smarty.const.WWW_TOP}/category_regexes-edit.php?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}</a></td>
|
||||
<td>{$row.categories_id}</td>
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group">Search a group:</label>
|
||||
<input id="group" type="text" name="group" value="{$group}" size="15"/>
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go"/>
|
||||
</form>
|
||||
{if $regex}
|
||||
<div>{$pager}</div>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>ordinal</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
<th>category id</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div style="margin-top: 15px">{$pager}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{foreach from=$regex item=row}
|
||||
<tr id="row-{$row.id}" class="{cycle values=",alt"}">
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.group_regex}</td>
|
||||
<td title="Edit this regex"><a
|
||||
href="{$smarty.const.WWW_TOP}/category_regexes-edit.php?id={$row.id}">Edit</a></td>
|
||||
<td>{$row.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this regex"><a href="javascript:ajax_category_regex_delete({$row.id})"
|
||||
onclick="return confirm('Are you sure? This will delete the regex from this list.');">Delete</a>
|
||||
</td>
|
||||
<td>{$row.ordinal}</td>
|
||||
{if $row.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this regex"><a
|
||||
href="{$smarty.const.WWW_TOP}/category_regexes-edit.php?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}</a>
|
||||
</td>
|
||||
<td>{$row.categories_id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div style="margin-top: 15px">{$pager}</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -3,75 +3,78 @@
|
||||
<div class="error">{$error}</div>
|
||||
{/if}
|
||||
<div class="well well-sm">
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/collection_regexes-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group_regex">Group:</label></td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$regex.id}" />
|
||||
<input type="text" id="group_regex" name="group_regex" value="{$regex.group_regex|escape:html}" />
|
||||
<div class="hint">
|
||||
Regex to match against a group or multiple groups.<br />
|
||||
Delimiters are already added, and PCRE_CASELESS is added after for case insensitivity.
|
||||
An example of matching a single group: alt\.binaries\.example<br />
|
||||
An example of matching multiple groups: alt\.binaries.*
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="regex">Regex:</label></td>
|
||||
<td>
|
||||
<textarea id="regex" name="regex" >{$regex.regex|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
The regex to use when matching (grouping) collections.<br />
|
||||
The regex delimiters are not added, you MUST add them. See <a href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br />
|
||||
To make the regex case insensitive, add i after the last delimiter.<br />
|
||||
You MUST include at least one regex capture group.<br />
|
||||
You MUST name your regex capture groups (the ones you want to be included).<br />
|
||||
A string will be created from your matched capture groups.<br />
|
||||
The string will form part of a "collection hash".<br />
|
||||
The collection hash is used to group many parts together, to form the finalized release.<br />
|
||||
The usenet group and name of the poster are added automatically when hashing.<br />
|
||||
Capture groups are sorted alphabetically (by capture group name) when concatenating the string.<br />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description" name="description" >{$regex.description|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
Description for this regex.<br />
|
||||
You can include an example usenet subject this regex would match on.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal:</label></td>
|
||||
<td>
|
||||
<input class="ordinal" id="ordinal" name="ordinal" type="text" value="{$regex.ordinal}" />
|
||||
<div class="hint">
|
||||
The order to run this regex in.<br />
|
||||
Must be a number, 0 or higher.<br />
|
||||
If multiple regex have the same ordinal, MySQL will randomly sort them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regex are used during the collection matching process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/collection_regexes-list.php"><i
|
||||
class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group_regex">Group:</label></td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$regex.id}"/>
|
||||
<input type="text" id="group_regex" name="group_regex" value="{$regex.group_regex|escape:html}"/>
|
||||
<div class="hint">
|
||||
Regex to match against a group or multiple groups.<br/>
|
||||
Delimiters are already added, and PCRE_CASELESS is added after for case insensitivity.
|
||||
An example of matching a single group: alt\.binaries\.example<br/>
|
||||
An example of matching multiple groups: alt\.binaries.*
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="regex">Regex:</label></td>
|
||||
<td>
|
||||
<textarea id="regex" name="regex">{$regex.regex|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
The regex to use when matching (grouping) collections.<br/>
|
||||
The regex delimiters are not added, you MUST add them. See <a
|
||||
href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br/>
|
||||
To make the regex case insensitive, add i after the last delimiter.<br/>
|
||||
You MUST include at least one regex capture group.<br/>
|
||||
You MUST name your regex capture groups (the ones you want to be included).<br/>
|
||||
A string will be created from your matched capture groups.<br/>
|
||||
The string will form part of a "collection hash".<br/>
|
||||
The collection hash is used to group many parts together, to form the finalized release.<br/>
|
||||
The usenet group and name of the poster are added automatically when hashing.<br/>
|
||||
Capture groups are sorted alphabetically (by capture group name) when concatenating the
|
||||
string.<br/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description" name="description">{$regex.description|escape:html}</textarea>
|
||||
<div class="hint">
|
||||
Description for this regex.<br/>
|
||||
You can include an example usenet subject this regex would match on.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal:</label></td>
|
||||
<td>
|
||||
<input class="ordinal" id="ordinal" name="ordinal" type="text" value="{$regex.ordinal}"/>
|
||||
<div class="hint">
|
||||
The order to run this regex in.<br/>
|
||||
Must be a number, 0 or higher.<br/>
|
||||
If multiple regex have the same ordinal, MySQL will randomly sort them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regex are used during the collection matching process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,46 +1,50 @@
|
||||
<h1>{$page->title}</h1>
|
||||
<div class="well well-sm">
|
||||
<p>This page lists regex used for grouping usenet collections.</p>
|
||||
<div id="message"></div>
|
||||
<p>This page lists regex used for grouping usenet collections.</p>
|
||||
<div id="message"></div>
|
||||
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group">Search a group:</label>
|
||||
<input id="group" type="text" name="group" value="{$group}" size="15" />
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go" />
|
||||
</form>
|
||||
{if $regex}
|
||||
|
||||
<div>{$pager}</div>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>ordinal</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
</tr>
|
||||
{foreach from=$regex item=row}
|
||||
<tr id="row-{$row.id}" class="{cycle values=",alt"}">
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.group_regex}</td>
|
||||
<td title="Edit this regex"><a href="{$smarty.const.WWW_TOP}/collection_regexes-edit.php?id={$row.id}">Edit</a></td>
|
||||
<td>{$row.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this regex"><a href="javascript:ajax_collection_regex_delete({$row.id})" onclick="return confirm('Are you sure? This will delete the regex from this list.');" >Delete</a></td>
|
||||
<td>{$row.ordinal}</td>
|
||||
{if $row.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this regex"><a href="{$smarty.const.WWW_TOP}/collection_regexes-edit.php?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}</a></td>
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group">Search a group:</label>
|
||||
<input id="group" type="text" name="group" value="{$group}" size="15"/>
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go"/>
|
||||
</form>
|
||||
{if $regex}
|
||||
<div>{$pager}</div>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>ordinal</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div style="margin-top: 15px">{$pager}</div>
|
||||
{/if}
|
||||
{foreach from=$regex item=row}
|
||||
<tr id="row-{$row.id}" class="{cycle values=",alt"}">
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.group_regex}</td>
|
||||
<td title="Edit this regex"><a
|
||||
href="{$smarty.const.WWW_TOP}/collection_regexes-edit.php?id={$row.id}">Edit</a></td>
|
||||
<td>{$row.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this regex"><a href="javascript:ajax_collection_regex_delete({$row.id})"
|
||||
onclick="return confirm('Are you sure? This will delete the regex from this list.');">Delete</a>
|
||||
</td>
|
||||
<td>{$row.ordinal}</td>
|
||||
{if $row.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this regex"><a
|
||||
href="{$smarty.const.WWW_TOP}/collection_regexes-edit.php?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div style="margin-top: 15px">{$pager}</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,44 +1,45 @@
|
||||
<h1>{$page->title}</h1>
|
||||
<div class="well well-sm">
|
||||
<p>This page is used for testing regex for grouping usenet collections.<br />Enter the group name to test and a regex. Limit is how many collections to show max on the page, 0 for no limit(slow).</p>
|
||||
<p>This page is used for testing regex for grouping usenet collections.<br/>Enter the group name to test and a
|
||||
regex. Limit is how many collections to show max on the page, 0 for no limit(slow).</p>
|
||||
|
||||
<form name="search" action="" method="post" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group" style="padding-right:1px">Group:</label>
|
||||
<input id="group" type="text" name="group" value="{$group|htmlentities}" size="20" /><br />
|
||||
<label for="regex" style="padding-right:1px">Regex:</label>
|
||||
<input id="regex" type="text" name="regex" value="{$regex|htmlentities}" size="100" /><br/>
|
||||
<label for="limit" style="padding-right:7px">Limit:</label>
|
||||
<input id="limit" type="text" name="limit" value="{$limit}" size="8" /><br/>
|
||||
<input class="btn btn-default" type="submit" value="Test" />
|
||||
</form>
|
||||
{if isset($data)}
|
||||
<form name="search" action="" method="post" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group" style="padding-right:1px">Group:</label>
|
||||
<input id="group" type="text" name="group" value="{$group|htmlentities}" size="20"/><br/>
|
||||
<label for="regex" style="padding-right:1px">Regex:</label>
|
||||
<input id="regex" type="text" name="regex" value="{$regex|htmlentities}" size="100"/><br/>
|
||||
<label for="limit" style="padding-right:7px">Limit:</label>
|
||||
<input id="limit" type="text" name="limit" value="{$limit}" size="8"/><br/>
|
||||
<input class="btn btn-default" type="submit" value="Test"/>
|
||||
</form>
|
||||
{if isset($data)}
|
||||
|
||||
{foreach from=$data key=hash item=collection}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>{$hash}<br />Current Files: {count($collection)}</th>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>current parts</th>
|
||||
<th>total parts</th>
|
||||
<th>poster</th>
|
||||
<th>old hash</th>
|
||||
</tr>
|
||||
{foreach from=$collection item=row}
|
||||
<tr id="row-{$row.new_collection_hash}" class="{cycle values=",alt"}">
|
||||
<td>{$row.file_name}</td>
|
||||
<td>{$row.file_current_parts}</td>
|
||||
<td>{$row.file_total_parts}</td>
|
||||
<td>{$row.collection_poster}</td>
|
||||
<td>{$row.old_collection_hash}</td>
|
||||
{foreach from=$data key=hash item=collection}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>{$hash}<br/>Current Files: {count($collection)}</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>current parts</th>
|
||||
<th>total parts</th>
|
||||
<th>poster</th>
|
||||
<th>old hash</th>
|
||||
</tr>
|
||||
{foreach from=$collection item=row}
|
||||
<tr id="row-{$row.new_collection_hash}" class="{cycle values=",alt"}">
|
||||
<td>{$row.file_name}</td>
|
||||
<td>{$row.file_current_parts}</td>
|
||||
<td>{$row.file_total_parts}</td>
|
||||
<td>{$row.collection_poster}</td>
|
||||
<td>{$row.old_collection_hash}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,39 +1,40 @@
|
||||
<h1>{$page->title}</h1>
|
||||
<div class="well well-sm">
|
||||
{if $commentslist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>user</th>
|
||||
<th>date</th>
|
||||
<th>comment</th>
|
||||
<th>host</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
{foreach from=$commentslist item=comment}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td>
|
||||
{if $comment.users_id > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/user-edit.php?id={$comment.users_id}">{$comment.username}</a>
|
||||
{else}
|
||||
{$comment.username}
|
||||
{/if}
|
||||
</td>
|
||||
<td title="{$comment.created_at}">{$comment.created_at|timeago}</td>
|
||||
{if $comment.shared == 2}
|
||||
<td style="color:#6B2447">{$comment.text|escape:"htmlall"|nl2br}</td>
|
||||
{else}
|
||||
<td>{$comment.text|escape:"htmlall"|nl2br}</td>
|
||||
{/if}
|
||||
<td>{$comment.host}</td>
|
||||
<td>
|
||||
{if $comment.guid}<a href="{$smarty.const.WWW_TOP}/../details/{$comment.guid}#comments">view</a> |{/if}
|
||||
<a href="{$smarty.const.WWW_TOP}/comments-delete.php?id={$comment.id}">delete</a>
|
||||
</td>
|
||||
{if $commentslist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>user</th>
|
||||
<th>date</th>
|
||||
<th>comment</th>
|
||||
<th>host</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No comments available</p>
|
||||
{/if}
|
||||
{foreach from=$commentslist item=comment}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td>
|
||||
{if $comment.users_id > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/user-edit.php?id={$comment.users_id}">{$comment.username}</a>
|
||||
{else}
|
||||
{$comment.username}
|
||||
{/if}
|
||||
</td>
|
||||
<td title="{$comment.created_at}">{$comment.created_at|timeago}</td>
|
||||
{if $comment.shared == 2}
|
||||
<td style="color:#6B2447">{$comment.text|escape:"htmlall"|nl2br}</td>
|
||||
{else}
|
||||
<td>{$comment.text|escape:"htmlall"|nl2br}</td>
|
||||
{/if}
|
||||
<td>{$comment.host}</td>
|
||||
<td>
|
||||
{if $comment.guid}<a href="{$smarty.const.WWW_TOP}/../details/{$comment.guid}#comments">
|
||||
view</a> |{/if}
|
||||
<a href="{$smarty.const.WWW_TOP}/comments-delete.php?id={$comment.id}">delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No comments available</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,99 +1,104 @@
|
||||
|
||||
<h1>{$page->title}</h1>
|
||||
<div class="well well-sm">
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/console-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/console-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
|
||||
<input type="hidden" name="id" value="{$console.id}" />
|
||||
<input type="hidden" name="id" value="{$console.id}"/>
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$console.title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$console.title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="asin">ASIN</label>:</td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$console.asin|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="asin">ASIN</label>:</td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$console.asin|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="url">URL</label>:</td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$console.url|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="url">URL</label>:</td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$console.url|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="salesrank">Sales Rank</label>:</td>
|
||||
<td>
|
||||
<input id="salesrank" class="short" type="text" name="salesrank" value="{$console.salesrank|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="salesrank">Sales Rank</label>:</td>
|
||||
<td>
|
||||
<input id="salesrank" class="short" type="text" name="salesrank"
|
||||
value="{$console.salesrank|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="platform">Platform</label>:</td>
|
||||
<td>
|
||||
<input id="platform" class="long" name="platform" type="text" value="{$console.platform|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="platform">Platform</label>:</td>
|
||||
<td>
|
||||
<input id="platform" class="long" name="platform" type="text"
|
||||
value="{$console.platform|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher</label>:</td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text" value="{$console.publisher|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher</label>:</td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text"
|
||||
value="{$console.publisher|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="releasedate">Release Date</label>:</td>
|
||||
<td>
|
||||
<input id="releasedate" name="releasedate" type="text" value="{$console.releasedate|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="releasedate">Release Date</label>:</td>
|
||||
<td>
|
||||
<input id="releasedate" name="releasedate" type="text"
|
||||
value="{$console.releasedate|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="esrb">Rating</label>:</td>
|
||||
<td>
|
||||
<input id="esrb" class="short" name="esrb" type="text" value="{$console.esrb|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="esrb">Rating</label>:</td>
|
||||
<td>
|
||||
<input id="esrb" class="short" name="esrb" type="text" value="{$console.esrb|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="genre">Genre</label>:</td>
|
||||
<td>
|
||||
<select id="genre" name="genre">
|
||||
{foreach $genres as $gen}
|
||||
<option {if $gen.id == $console.genres_id}selected="selected"{/if} value="{$gen.id}">{$gen.title|escape:'htmlall'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="genre">Genre</label>:</td>
|
||||
<td>
|
||||
<select id="genre" name="genre">
|
||||
{foreach $genres as $gen}
|
||||
<option {if $gen.id == $console.genres_id}selected="selected"{/if}
|
||||
value="{$gen.id}">{$gen.title|escape:'htmlall'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover" />
|
||||
{if $console.cover == 1}
|
||||
<img style="max-width:200px; display:block;" src="{$smarty.const.WWW_TOP}/../covers/console/{$console.id}.jpg" alt="" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover"/>
|
||||
{if $console.cover == 1}
|
||||
<img style="max-width:200px; display:block;"
|
||||
src="{$smarty.const.WWW_TOP}/../covers/console/{$console.id}.jpg" alt=""/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<div class="well well-sm">
|
||||
{if $consolelist}
|
||||
{$pager}
|
||||
{if $consolelist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Title</th>
|
||||
<th>Platform</th>
|
||||
<th>Created</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Title</th>
|
||||
<th>Platform</th>
|
||||
<th>Created</th>
|
||||
</tr>
|
||||
{foreach from=$consolelist item=console}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$console.id}</td>
|
||||
<td><a title="Edit"
|
||||
href="{$smarty.const.WWW_TOP}/console-edit.php?id={$console.id}">{$console.title}</a></td>
|
||||
<td>{$console.platform}</td>
|
||||
<td>{$console.created_at|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$consolelist item=console}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$console.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/console-edit.php?id={$console.id}">{$console.title}</a></td>
|
||||
<td>{$console.platform}</td>
|
||||
<td>{$console.created_at|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No games available.</p>
|
||||
{/if}
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No games available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/content-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/content-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
@@ -8,13 +8,15 @@
|
||||
<td><label for="title">Title:</label></td>
|
||||
<td>
|
||||
<input type="hidden" name="id" {if isset($content)}value="{$content->id}"{else}{/if}"/>
|
||||
<input id="title" class="long" name="title" type="text" {if isset($content)}value="{$content->title}"{else}{/if}/>
|
||||
<input id="title" class="long" name="title" type="text"
|
||||
{if isset($content)}value="{$content->title}"{else}{/if}/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="url">Url:</label></td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" {if isset($content)}value="{$content->url}"{else}{/if}/>
|
||||
<input id="url" class="long" name="url" type="text"
|
||||
{if isset($content)}value="{$content->url}"{else}{/if}/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -26,13 +28,15 @@
|
||||
<tr>
|
||||
<td><label for="metadescription">Meta Description:</label></td>
|
||||
<td>
|
||||
<textarea id="metadescription" name="metadescription">{if isset($content)}{$content->metadescription}{else}{/if}</textarea>
|
||||
<textarea id="metadescription"
|
||||
name="metadescription">{if isset($content)}{$content->metadescription}{else}{/if}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="metakeywords">Meta Keywords:</label></td>
|
||||
<td>
|
||||
<textarea id="metakeywords" name="metakeywords">{if isset($content)}{$content->metakeywords}{else}{/if}</textarea>
|
||||
<textarea id="metakeywords"
|
||||
name="metakeywords">{if isset($content)}{$content->metakeywords}{else}{/if}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -63,7 +67,8 @@
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal:</label></td>
|
||||
<td>
|
||||
<input id="ordinal" name="ordinal" type="text" {if isset($content)}value="{$content->ordinal}"{else}{/if}/>
|
||||
<input id="ordinal" name="ordinal" type="text"
|
||||
{if isset($content)}value="{$content->ordinal}"{else}{/if}/>
|
||||
<div class="hint">If you set the ordinal = 1, then a all ordinals greater than 0 will be renumbered.
|
||||
This allows new content to be at the top without having to renumber all previous content.<br/>If
|
||||
you set ordinal = 0, it will be at the top, sorted by ID(order added)
|
||||
|
||||
@@ -1,59 +1,62 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<table class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:60px;">ordinal</th>
|
||||
<th style="width:30px;">id</th>
|
||||
<th>title</th>
|
||||
<th>url</th>
|
||||
<th>type</th>
|
||||
<th>status</th>
|
||||
<th>role</th>
|
||||
<th>in menu</th>
|
||||
<th>body</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
{foreach from=$contentlist item=content}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td>{$content->ordinal}</td>
|
||||
<td>{$content->id}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/content-add.php?id={$content->id}" title="Edit {$content->title}">{$content->title}</a></td>
|
||||
<td><a title="Preview in new window" href="{$smarty.const.WWW_TOP}/{$content->url}c{$content->id}" target="null">{$content->url}c{$content->id}</a></td>
|
||||
<td>
|
||||
{if $content->contenttype == "1"}
|
||||
Useful Link
|
||||
{elseif $content->contenttype == "2"}
|
||||
Article
|
||||
{elseif $content->contenttype == "3"}
|
||||
Homepage
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $content->status == "1"}
|
||||
Enabled
|
||||
{else}
|
||||
Disabled
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $content->role == "0"}
|
||||
Everyone
|
||||
{elseif $content->role == "1"}
|
||||
Users
|
||||
{elseif $content->role == "2"}
|
||||
Admins
|
||||
{/if}
|
||||
</td>
|
||||
<td style="width:50px;">
|
||||
{if $content->showinmenu == "1"}
|
||||
Yes
|
||||
{else}
|
||||
No
|
||||
{/if}
|
||||
</td>
|
||||
<td title="{$content->body|escape:'htmlall'}">{$content->body|truncate:100|escape:'htmlall'}</td>
|
||||
<td><a class="confirm_action" href="{$smarty.const.WWW_TOP}/content-delete.php?id={$content->id}">delete</a></td>
|
||||
<h1>{$page->title}</h1>
|
||||
<table class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:60px;">ordinal</th>
|
||||
<th style="width:30px;">id</th>
|
||||
<th>title</th>
|
||||
<th>url</th>
|
||||
<th>type</th>
|
||||
<th>status</th>
|
||||
<th>role</th>
|
||||
<th>in menu</th>
|
||||
<th>body</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{foreach from=$contentlist item=content}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td>{$content->ordinal}</td>
|
||||
<td>{$content->id}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/content-add.php?id={$content->id}"
|
||||
title="Edit {$content->title}">{$content->title}</a></td>
|
||||
<td><a title="Preview in new window" href="{$smarty.const.WWW_TOP}/{$content->url}c{$content->id}"
|
||||
target="null">{$content->url}c{$content->id}</a></td>
|
||||
<td>
|
||||
{if $content->contenttype == "1"}
|
||||
Useful Link
|
||||
{elseif $content->contenttype == "2"}
|
||||
Article
|
||||
{elseif $content->contenttype == "3"}
|
||||
Homepage
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $content->status == "1"}
|
||||
Enabled
|
||||
{else}
|
||||
Disabled
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $content->role == "0"}
|
||||
Everyone
|
||||
{elseif $content->role == "1"}
|
||||
Users
|
||||
{elseif $content->role == "2"}
|
||||
Admins
|
||||
{/if}
|
||||
</td>
|
||||
<td style="width:50px;">
|
||||
{if $content->showinmenu == "1"}
|
||||
Yes
|
||||
{else}
|
||||
No
|
||||
{/if}
|
||||
</td>
|
||||
<td title="{$content->body|escape:'htmlall'}">{$content->body|truncate:100|escape:'htmlall'}</td>
|
||||
<td><a class="confirm_action"
|
||||
href="{$smarty.const.WWW_TOP}/content-delete.php?id={$content->id}">delete</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -1,41 +1,42 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
{if $releaselist}
|
||||
{$pager}
|
||||
{if $releaselist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>category</th>
|
||||
<th>size</th>
|
||||
<th>files</th>
|
||||
<th>postdate</th>
|
||||
<th>adddate</th>
|
||||
<th>grabs</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$releaselist item=release}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td title="{$release.name}"><a href="{$smarty.const.WWW_TOP}/release-edit.php?id={$release.guid}">{$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true}</a></td>
|
||||
<td class="less">{$release.category_name}</td>
|
||||
<td class="less right">{$release.size|fsize_format:"MB"}</td>
|
||||
<td class="less mid"><a href="release-files.php?id={$release.guid}">{$release.totalpart}</a></td>
|
||||
<td class="less">{$release.postdate|date_format}</td>
|
||||
<td class="less">{$release.adddate|date_format}</td>
|
||||
<td class="less mid">{$release.grabs}</td>
|
||||
<td>
|
||||
{if $release.guid}<a href="{$smarty.const.WWW_TOP}/../details/{$release.guid}">view</a> |{/if}
|
||||
<a href="{$smarty.const.WWW_TOP}/release-delete.php?id={$release.guid}">delete</a></td>
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>category</th>
|
||||
<th>size</th>
|
||||
<th>files</th>
|
||||
<th>postdate</th>
|
||||
<th>adddate</th>
|
||||
<th>grabs</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No releases available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
{foreach from=$releaselist item=release}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td title="{$release.name}"><a
|
||||
href="{$smarty.const.WWW_TOP}/release-edit.php?id={$release.guid}">{$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true}</a>
|
||||
</td>
|
||||
<td class="less">{$release.category_name}</td>
|
||||
<td class="less right">{$release.size|fsize_format:"MB"}</td>
|
||||
<td class="less mid"><a href="release-files.php?id={$release.guid}">{$release.totalpart}</a></td>
|
||||
<td class="less">{$release.postdate|date_format}</td>
|
||||
<td class="less">{$release.adddate|date_format}</td>
|
||||
<td class="less mid">{$release.grabs}</td>
|
||||
<td>
|
||||
{if $release.guid}<a href="{$smarty.const.WWW_TOP}/../details/{$release.guid}">view</a> |{/if}
|
||||
<a href="{$smarty.const.WWW_TOP}/release-delete.php?id={$release.guid}">delete</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No releases available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,79 +1,84 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/game-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
<input type="hidden" name="id" value="{$game.id}" />
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="title">Title:</label></td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$game.title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="asin">Game ID:</label></td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$game.asin|escape:'htmlall'}" />
|
||||
<br />
|
||||
(Game ID of the url posted below, if unknown put 0)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="url">URL:</label></td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$game.url|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="trailerurl">Trailer URL:</label></td>
|
||||
<td>
|
||||
<input id="trailerurl" class="long" name="trailerurl" type="text" value="{$game.trailer|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher:</label></td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text" value="{$game.publisher|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="releasedate">Release Date:</label></td>
|
||||
<td>
|
||||
<input id="releasedate" name="releasedate" type="text" value="{$game.releasedate|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="esrb">Rating:</label></td>
|
||||
<td>
|
||||
<input id="esrb" class="short" name="esrb" type="text" value="{$game.esrb|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="genre_list">Genre:</label></td>
|
||||
<td>
|
||||
<select id="genre_list" name="genre" />
|
||||
{foreach $genres as $gen}
|
||||
<option {if $gen.id == $game.genres_id}selected="selected"{/if} value="{$gen.id}">{$gen.title|escape:'htmlall'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image:</label></td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover" />
|
||||
{if $game.cover == 1}
|
||||
<img style="max-width:200px; display:block;" src="{$smarty.const.WWW_TOP}/../covers/games/{$game.id}.jpg" alt="" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/game-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
<input type="hidden" name="id" value="{$game.id}"/>
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="title">Title:</label></td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$game.title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="asin">Game ID:</label></td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$game.asin|escape:'htmlall'}"/>
|
||||
<br/>
|
||||
(Game ID of the url posted below, if unknown put 0)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="url">URL:</label></td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$game.url|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="trailerurl">Trailer URL:</label></td>
|
||||
<td>
|
||||
<input id="trailerurl" class="long" name="trailerurl" type="text"
|
||||
value="{$game.trailer|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher:</label></td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text"
|
||||
value="{$game.publisher|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="releasedate">Release Date:</label></td>
|
||||
<td>
|
||||
<input id="releasedate" name="releasedate" type="text"
|
||||
value="{$game.releasedate|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="esrb">Rating:</label></td>
|
||||
<td>
|
||||
<input id="esrb" class="short" name="esrb" type="text" value="{$game.esrb|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="genre_list">Genre:</label></td>
|
||||
<td>
|
||||
<select id="genre_list" name="genre"/>
|
||||
{foreach $genres as $gen}
|
||||
<option {if $gen.id == $game.genres_id}selected="selected"{/if}
|
||||
value="{$gen.id}">{$gen.title|escape:'htmlall'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image:</label></td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover"/>
|
||||
{if $game.cover == 1}
|
||||
<img style="max-width:200px; display:block;"
|
||||
src="{$smarty.const.WWW_TOP}/../covers/games/{$game.id}.jpg" alt=""/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
{if $gamelist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Title</th>
|
||||
<th>Genre</th>
|
||||
<th>Created</th>
|
||||
</tr>
|
||||
{foreach from=$gamelist item=game}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$game.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/game-edit.php?id={$game.id}">{$game.title}</a></td>
|
||||
<td>{$game.genretitle}</td>
|
||||
<td>{$game.created_at|date_format}</td>
|
||||
<h1>{$page->title}</h1>
|
||||
{if $gamelist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Title</th>
|
||||
<th>Genre</th>
|
||||
<th>Created</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No games available.</p>
|
||||
{/if}
|
||||
{foreach from=$gamelist item=game}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$game.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/game-edit.php?id={$game.id}">{$game.title}</a>
|
||||
</td>
|
||||
<td>{$game.genretitle}</td>
|
||||
<td>{$game.created_at|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No games available.</p>
|
||||
{/if}
|
||||
|
||||
@@ -1,62 +1,61 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
{if $groupmsglist}
|
||||
<table class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
{if $groupmsglist}
|
||||
<table class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<tr>
|
||||
<th>group</th>
|
||||
<th>msg</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>group</th>
|
||||
<th>msg</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$groupmsglist item=group}
|
||||
<tr>
|
||||
<td>{$group.group}</td>
|
||||
<td>{$group.msg}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{foreach from=$groupmsglist item=group}
|
||||
<tr>
|
||||
<td>{$group.group}</td>
|
||||
<td>{$group.msg}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</table>
|
||||
<p>View <a href="group-list.php">all groups</a>.</p>
|
||||
{else}
|
||||
<p>Regex of groups to add to the site.</p>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input">
|
||||
|
||||
<p>View <a href="group-list.php">all groups</a>.</p>
|
||||
<tr>
|
||||
<td width="90">Group List:</td>
|
||||
<td>
|
||||
<textarea id="groupfilter" name="groupfilter"></textarea>
|
||||
<div class="hint">A regular expression to match against group names e.g.
|
||||
alt.binaries.cd.image.linux|alt.binaries.warez.linux
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="active">Active</label>:</td>
|
||||
<td>
|
||||
{html_radios id="active" name='active' values=$yesno_ids output=$yesno_names selected=1 separator='<br />'}
|
||||
<div class="hint">Inactive groups will not have headers downloaded for them.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="backfill">Backfill:</label></td>
|
||||
<td>
|
||||
{html_radios id="backfill" name='backfill' values=$yesno_ids output=$yesno_names selected=0 separator='<br />'}
|
||||
<div class="hint">Inactive groups will not have backfill headers downloaded for them.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Add Groups"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{else}
|
||||
<p>Regex of groups to add to the site.</p>
|
||||
</table>
|
||||
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input">
|
||||
|
||||
<tr>
|
||||
<td width="90">Group List:</td>
|
||||
<td>
|
||||
<textarea id="groupfilter" name="groupfilter"></textarea>
|
||||
<div class="hint">A regular expression to match against group names e.g. alt.binaries.cd.image.linux|alt.binaries.warez.linux</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="active">Active</label>:</td>
|
||||
<td>
|
||||
{html_radios id="active" name='active' values=$yesno_ids output=$yesno_names selected=1 separator='<br />'}
|
||||
<div class="hint">Inactive groups will not have headers downloaded for them.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="backfill">Backfill:</label></td>
|
||||
<td>
|
||||
{html_radios id="backfill" name='backfill' values=$yesno_ids output=$yesno_names selected=0 separator='<br />'}
|
||||
<div class="hint">Inactive groups will not have backfill headers downloaded for them.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Add Groups" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,78 +1,89 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/group-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$group.id}" />
|
||||
<input id="name" class="long" name="name" type="text" value="{$group.name}" />
|
||||
<div class="hint">Changing the name to an invalid group will break things.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description" name="description">{$group.description}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="backfill_target">Backfill Days</label></td>
|
||||
<td>
|
||||
<input class="small" id="backfill_target" name="backfill_target" type="text" value="{$group.backfill_target}" />
|
||||
<div class="hint">Number of days to attempt to backfill this group. Adjust as necessary.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="minfilestoformrelease">Minimum Files <br/>To Form Release</label></td>
|
||||
<td>
|
||||
<input class="small" id="minfilestoformrelease" name="minfilestoformrelease" type="text" value="{$group.minfilestoformrelease}" />
|
||||
<div class="hint">The minimum number of files to make a release. i.e. if set to two, then releases which only contain one file will not be created. If left blank, will use the site wide setting.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="minsizetoformrelease">Minimum File Size to Make a Release:</label></td>
|
||||
<td>
|
||||
<input class="small" id="minsizetoformrelease" name="minsizetoformrelease" type="text" value="{$group.minsizetoformrelease}" />
|
||||
<div class="hint">The minimum total size in bytes to make a release. If left blank, will use the site wide setting.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="first_record">First Record ID:</label></td>
|
||||
<td>
|
||||
<input class="small" id="first_record" name="first_record" type="text" value="{$group.first_record}" />
|
||||
<div class="hint">The oldest record number for the group.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="last_record">Last Record ID:</label></td>
|
||||
<td>
|
||||
<input class="small" id="last_record" name="last_record" type="text" value="{$group.last_record}" />
|
||||
<div class="hint">The newest record number for the group.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="active">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="active" name='active' values=$yesno_ids output=$yesno_names selected=$group.active separator='<br />'}
|
||||
<div class="hint">Inactive groups will not have headers downloaded for them.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="backfill">Backfill:</label></td>
|
||||
<td>
|
||||
{html_radios id="backfill" name='backfill' values=$yesno_ids output=$yesno_names selected=$group.backfill separator='<br />'}
|
||||
<div class="hint">If set to false, backfill.php will ignore this group. This works even if the above setting is no.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/group-list.php"><i class="fa fa-arrow-left"></i> Go
|
||||
back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$group.id}"/>
|
||||
<input id="name" class="long" name="name" type="text" value="{$group.name}"/>
|
||||
<div class="hint">Changing the name to an invalid group will break things.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description" name="description">{$group.description}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="backfill_target">Backfill Days</label></td>
|
||||
<td>
|
||||
<input class="small" id="backfill_target" name="backfill_target" type="text"
|
||||
value="{$group.backfill_target}"/>
|
||||
<div class="hint">Number of days to attempt to backfill this group. Adjust as necessary.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="minfilestoformrelease">Minimum Files <br/>To Form Release</label></td>
|
||||
<td>
|
||||
<input class="small" id="minfilestoformrelease" name="minfilestoformrelease" type="text"
|
||||
value="{$group.minfilestoformrelease}"/>
|
||||
<div class="hint">The minimum number of files to make a release. i.e. if set to two, then releases
|
||||
which only contain one file will not be created. If left blank, will use the site wide setting.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="minsizetoformrelease">Minimum File Size to Make a Release:</label></td>
|
||||
<td>
|
||||
<input class="small" id="minsizetoformrelease" name="minsizetoformrelease" type="text"
|
||||
value="{$group.minsizetoformrelease}"/>
|
||||
<div class="hint">The minimum total size in bytes to make a release. If left blank, will use the
|
||||
site wide setting.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="first_record">First Record ID:</label></td>
|
||||
<td>
|
||||
<input class="small" id="first_record" name="first_record" type="text"
|
||||
value="{$group.first_record}"/>
|
||||
<div class="hint">The oldest record number for the group.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="last_record">Last Record ID:</label></td>
|
||||
<td>
|
||||
<input class="small" id="last_record" name="last_record" type="text" value="{$group.last_record}"/>
|
||||
<div class="hint">The newest record number for the group.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="active">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="active" name='active' values=$yesno_ids output=$yesno_names selected=$group.active separator='<br />'}
|
||||
<div class="hint">Inactive groups will not have headers downloaded for them.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="backfill">Backfill:</label></td>
|
||||
<td>
|
||||
{html_radios id="backfill" name='backfill' values=$yesno_ids output=$yesno_names selected=$group.backfill separator='<br />'}
|
||||
<div class="hint">If set to false, backfill.php will ignore this group. This works even if the above
|
||||
setting is no.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,25 +1,33 @@
|
||||
<div class="well well-sm" id="group_list">
|
||||
<h1>{$page->title}</h1>
|
||||
<p>
|
||||
Below is a list of all usenet groups available to be indexed. Click 'Activate' to start indexing a group. Backfill works independently of active.
|
||||
Below is a list of all usenet groups available to be indexed. Click 'Activate' to start indexing a group.
|
||||
Backfill works independently of active.
|
||||
</p>
|
||||
{if $grouplist}
|
||||
<div style="position:relative;margin-bottom:5px;">
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="groupname">Group</label>
|
||||
<input id="groupname" type="text" name="groupname" value="{$groupname}" size="15" />
|
||||
<input id="groupname" type="text" name="groupname" value="{$groupname}" size="15"/>
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go" />
|
||||
<input class="btn btn-default" type="submit" value="Go"/>
|
||||
</form>
|
||||
<div style="position:absolute;">
|
||||
{$pager}
|
||||
</div>
|
||||
<div style="text-align:center;">
|
||||
<a title="Reset all groups" href="javascript:ajax_all_reset()" class="all_reset" onclick="return confirm('Are you sure? This will reset all groups, deleting all collections/binaries/parts (does not delete releases).');" >Reset all</a> |
|
||||
<a title="Delete all releases, collections/binaries/parts from all groups" href="javascript:ajax_all_purge()" class="all_purge" onclick="return confirm('Are you sure? This will delete all releases, collections/binaries/parts.');">Purge all</a><br />
|
||||
<a title="List all groups Activated for Update_Binaries" href="{$smarty.const.WWW_TOP}/group-list-active.php">Active Groups</a> |
|
||||
<a title="List all groups NOT Activated for Update_Binaries" href="{$smarty.const.WWW_TOP}/group-list-inactive.php">Inactive Groups</a> |
|
||||
<a title="Reset all groups" href="javascript:ajax_all_reset()" class="all_reset"
|
||||
onclick="return confirm('Are you sure? This will reset all groups, deleting all collections/binaries/parts (does not delete releases).');">Reset
|
||||
all</a> |
|
||||
<a title="Delete all releases, collections/binaries/parts from all groups"
|
||||
href="javascript:ajax_all_purge()" class="all_purge"
|
||||
onclick="return confirm('Are you sure? This will delete all releases, collections/binaries/parts.');">Purge
|
||||
all</a><br/>
|
||||
<a title="List all groups Activated for Update_Binaries"
|
||||
href="{$smarty.const.WWW_TOP}/group-list-active.php">Active Groups</a> |
|
||||
<a title="List all groups NOT Activated for Update_Binaries"
|
||||
href="{$smarty.const.WWW_TOP}/group-list-inactive.php">Inactive Groups</a> |
|
||||
<a title="List all groups" href="{$smarty.const.WWW_TOP}/group-list.php">All Groups</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -44,19 +52,31 @@
|
||||
<a href="{$smarty.const.WWW_TOP}/group-edit.php?id={$group.id}">{$group.name|replace:"alt.binaries":"a.b"}</a>
|
||||
<div class="hint">{$group.description}</div>
|
||||
</td>
|
||||
<td class="less">{$group.first_record_postdate}<br />{$group.first_record_postdate|timeago}</td>
|
||||
<td class="less">{$group.first_record_postdate}<br/>{$group.first_record_postdate|timeago}</td>
|
||||
<td class="less">{$group.last_record_postdate}</td>
|
||||
<td class="less">{$group.last_updated|timeago} ago</td>
|
||||
<td class="less" id="group-{$group.id}">{if $group.active=="1"}<a href="javascript:ajax_group_status({$group.id}, 0)" class="group_active">Deactivate</a>{else}<a href="javascript:ajax_group_status({$group.id}, 1)" class="group_deactive">Activate</a>{/if}</td>
|
||||
<td class="less" id="backfill-{$group.id}">{if $group.backfill=="1"}<a href="javascript:ajax_backfill_status({$group.id}, 0)" class="backfill_active">Deactivate</a>{else}<a href="javascript:ajax_backfill_status({$group.id}, 1)" class="backfill_deactive">Activate</a>{/if}</td>
|
||||
<td class="less" id="group-{$group.id}">{if $group.active=="1"}<a
|
||||
href="javascript:ajax_group_status({$group.id}, 0)" class="group_active">
|
||||
Deactivate</a>{else}<a href="javascript:ajax_group_status({$group.id}, 1)"
|
||||
class="group_deactive">Activate</a>{/if}</td>
|
||||
<td class="less" id="backfill-{$group.id}">{if $group.backfill=="1"}<a
|
||||
href="javascript:ajax_backfill_status({$group.id}, 0)" class="backfill_active">
|
||||
Deactivate</a>{else}<a href="javascript:ajax_backfill_status({$group.id}, 1)"
|
||||
class="backfill_deactive">Activate</a>{/if}</td>
|
||||
<td class="less">{$group.num_releases}</td>
|
||||
<td class="less">{if $group.minfilestoformrelease==""}n/a{else}{$group.minfilestoformrelease}{/if}</td>
|
||||
<td class="less">{if $group.minsizetoformrelease==""}n/a{else}{$group.minsizetoformrelease|fsize_format:"MB"}{/if}</td>
|
||||
<td class="less">{$group.backfill_target}</td>
|
||||
<td class="less" id="groupdel-{$group.id}">
|
||||
<a title="Reset this group" href="javascript:ajax_group_reset({$group.id})" class="group_reset">Reset</a> |
|
||||
<a title="Delete this group and all of its releases" href="javascript:ajax_group_delete({$group.id})" class="group_delete" onclick="return confirm('Are you sure? This will delete the group from this list.');" >Delete</a> |
|
||||
<a title="Remove all releases from this group" href="javascript:ajax_group_purge({$group.id})" class="group_purge" onclick="return confirm('Are you sure? This will delete all releases, binaries/parts in the selected group');" >Purge</a>
|
||||
<a title="Reset this group" href="javascript:ajax_group_reset({$group.id})" class="group_reset">Reset</a>
|
||||
|
|
||||
<a title="Delete this group and all of its releases"
|
||||
href="javascript:ajax_group_delete({$group.id})" class="group_delete"
|
||||
onclick="return confirm('Are you sure? This will delete the group from this list.');">Delete</a>
|
||||
|
|
||||
<a title="Remove all releases from this group" href="javascript:ajax_group_purge({$group.id})"
|
||||
class="group_purge"
|
||||
onclick="return confirm('Are you sure? This will delete all releases, binaries/parts in the selected group');">Purge</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
@@ -69,14 +89,21 @@
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="groupname">Group</label>
|
||||
<input id="groupname" type="text" name="groupname" value="{$groupname}" size="15" />
|
||||
<input id="groupname" type="text" name="groupname" value="{$groupname}" size="15"/>
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go" />
|
||||
<input class="btn btn-default" type="submit" value="Go"/>
|
||||
</form>
|
||||
<a title="Reset all groups" href="javascript:ajax_all_reset()" class="all_reset" onclick="return confirm('Are you sure? This will reset all groups, deleting all collections/binaries/parts (does not delete releases).');" >Reset all</a> |
|
||||
<a title="Delete all releases, binaries/parts from all groups" href="javascript:ajax_all_purge()" class="all_purge" onclick="return confirm('Are you sure? This will delete all releases, collections/binaries/parts.');">Purge all</a><br />
|
||||
<a title="List all groups Activated for Update_Binaries" href="{$smarty.const.WWW_TOP}/group-list-active.php">Active Groups</a> |
|
||||
<a title="List all groups NOT Activated for Update_Binaries" href="{$smarty.const.WWW_TOP}/group-list-inactive.php">Inactive Groups</a> |
|
||||
<a title="Reset all groups" href="javascript:ajax_all_reset()" class="all_reset"
|
||||
onclick="return confirm('Are you sure? This will reset all groups, deleting all collections/binaries/parts (does not delete releases).');">Reset
|
||||
all</a> |
|
||||
<a title="Delete all releases, binaries/parts from all groups" href="javascript:ajax_all_purge()"
|
||||
class="all_purge"
|
||||
onclick="return confirm('Are you sure? This will delete all releases, collections/binaries/parts.');">Purge
|
||||
all</a><br/>
|
||||
<a title="List all groups Activated for Update_Binaries"
|
||||
href="{$smarty.const.WWW_TOP}/group-list-active.php">Active Groups</a> |
|
||||
<a title="List all groups NOT Activated for Update_Binaries"
|
||||
href="{$smarty.const.WWW_TOP}/group-list-inactive.php">Inactive Groups</a> |
|
||||
<a title="List all groups" href="{$smarty.const.WWW_TOP}/group-list.php">All Groups</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<div style="{if $site->showadminwelcome != "1"}display:none;{/if}" id="adminwelcome">
|
||||
<p>
|
||||
Welcome to NNTmux. In this area you will be able to configure many aspects of your site.<br>
|
||||
</p>
|
||||
<div style="{if $site->showadminwelcome != "1"}display:none;{/if}" id="adminwelcome">
|
||||
<p>
|
||||
Welcome to NNTmux. In this area you will be able to configure many aspects of your site.<br>
|
||||
</p>
|
||||
|
||||
<ol style="list-style-type:decimal; line-height: 180%;">
|
||||
<li style="margin-bottom: 15px;">Configure your <a href="{$smarty.const.WWW_TOP}/site-edit.php">site options</a>. The defaults will work fine.</li>
|
||||
<li style="margin-bottom: 15px;">There is a default list of usenet groups provided. To get started, you will need to <a href="{$smarty.const.WWW_TOP}/group-list.php">activate some groups</a>. <u>Do not</u> activate every group if its your first time setting this up. Try one or two first.
|
||||
You can also <a href="{$smarty.const.WWW_TOP}/group-edit.php">add your own groups</a> manually.</li>
|
||||
<li style="margin-bottom: 15px;">If you intend to keep using NNTmux, it is best to sign up for your own api keys from <a href="http://www.themoviedb.org/account/signup">TMDB</a> and <a href="http://aws.amazon.com/">Amazon</a>.</li>
|
||||
</ol>
|
||||
</div>
|
||||
<ol style="list-style-type:decimal; line-height: 180%;">
|
||||
<li style="margin-bottom: 15px;">Configure your <a href="{$smarty.const.WWW_TOP}/site-edit.php">site
|
||||
options</a>. The defaults will work fine.
|
||||
</li>
|
||||
<li style="margin-bottom: 15px;">There is a default list of usenet groups provided. To get started, you will
|
||||
need to <a href="{$smarty.const.WWW_TOP}/group-list.php">activate some groups</a>. <u>Do not</u>
|
||||
activate every group if its your first time setting this up. Try one or two first.
|
||||
You can also <a href="{$smarty.const.WWW_TOP}/group-edit.php">add your own groups</a> manually.
|
||||
</li>
|
||||
<li style="margin-bottom: 15px;">If you intend to keep using NNTmux, it is best to sign up for your own api
|
||||
keys from <a href="http://www.themoviedb.org/account/signup">TMDB</a> and <a
|
||||
href="http://aws.amazon.com/">Amazon</a>.
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,72 +1,74 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/menu-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/menu-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$menu.id}" />
|
||||
<input id="title" class="long" name="title" type="text" value="{$menu.title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$menu.id}"/>
|
||||
<input id="title" class="long" name="title" type="text" value="{$menu.title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="href">Href</label>:</td>
|
||||
<td>
|
||||
<input id="href" class="long" name="href" type="text" value="{$menu.href|escape:'htmlall'}" />
|
||||
<div class="hint">Use full http:// path for external URLs, otherwise use no prefix.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="href">Href</label>:</td>
|
||||
<td>
|
||||
<input id="href" class="long" name="href" type="text" value="{$menu.href|escape:'htmlall'}"/>
|
||||
<div class="hint">Use full http:// path for external URLs, otherwise use no prefix.</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="tooltip">Tooltip</label>:</td>
|
||||
<td>
|
||||
<input id="tooltip" class="long" name="tooltip" type="text" value="{$menu.tooltip|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tooltip">Tooltip</label>:</td>
|
||||
<td>
|
||||
<input id="tooltip" class="long" name="tooltip" type="text"
|
||||
value="{$menu.tooltip|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="menueval">Evaluate</label>:</td>
|
||||
<td>
|
||||
<input id="menueval" class="long" name="menueval" type="text" value="{$menu.menueval|escape:'htmlall'}" />
|
||||
<div class="hint">Smarty expression returning -1 if the menu item should be disabled.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="menueval">Evaluate</label>:</td>
|
||||
<td>
|
||||
<input id="menueval" class="long" name="menueval" type="text"
|
||||
value="{$menu.menueval|escape:'htmlall'}"/>
|
||||
<div class="hint">Smarty expression returning -1 if the menu item should be disabled.</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="role">Role</label>:</td>
|
||||
<td>
|
||||
{html_radios id="role" name='role' values=$role_ids output=$role_names selected=$menu.role separator='<br />'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="role">Role</label>:</td>
|
||||
<td>
|
||||
{html_radios id="role" name='role' values=$role_ids output=$role_names selected=$menu.role separator='<br />'}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal</label>:</td>
|
||||
<td>
|
||||
<input id="ordinal" class="short" name="ordinal" type="text" value="{$menu.ordinal}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal</label>:</td>
|
||||
<td>
|
||||
<input id="ordinal" class="short" name="ordinal" type="text" value="{$menu.ordinal}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="newwindow">New Window</label>:</td>
|
||||
<td>
|
||||
{html_radios id="newwindow" name='newwindow' values=$yesno_ids output=$yesno_names selected=$menu.newwindow separator='<br />'}
|
||||
<div class="hint">Whether the menu item should open in a new window.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="newwindow">New Window</label>:</td>
|
||||
<td>
|
||||
{html_radios id="newwindow" name='newwindow' values=$yesno_ids output=$yesno_names selected=$menu.newwindow separator='<br />'}
|
||||
<div class="hint">Whether the menu item should open in a new window.</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,34 +1,35 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
{if $menulist}
|
||||
{if $menulist}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>href</th>
|
||||
<th>tooltip</th>
|
||||
<th>role</th>
|
||||
<th>ordinal</th>
|
||||
<th>new window</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>href</th>
|
||||
<th>tooltip</th>
|
||||
<th>role</th>
|
||||
<th>ordinal</th>
|
||||
<th>new window</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
{foreach from=$menulist item=menu}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td title="Edit {$menu.title}"><a
|
||||
href="{$smarty.const.WWW_TOP}/menu-edit.php?id={$menu.id}">{$menu.title|escape:"htmlall"}</a>
|
||||
</td>
|
||||
<td>{$menu.href}</td>
|
||||
<td>{$menu.tooltip}</td>
|
||||
<td>{if $menu.role == 0}Guests{elseif $menu.role == 1}Users{elseif $menu.role == 2}Admin{else}Other{/if}</td>
|
||||
<td class="mid">{$menu.ordinal}</td>
|
||||
<td class="mid">{if $menu.newwindow == 1}Yes{else}No{/if}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/menu-delete.php?id={$menu.id}">delete</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$menulist item=menu}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td title="Edit {$menu.title}"><a href="{$smarty.const.WWW_TOP}/menu-edit.php?id={$menu.id}">{$menu.title|escape:"htmlall"}</a></td>
|
||||
<td>{$menu.href}</td>
|
||||
<td>{$menu.tooltip}</td>
|
||||
<td>{if $menu.role == 0}Guests{elseif $menu.role == 1}Users{elseif $menu.role == 2}Admin{else}Other{/if}</td>
|
||||
<td class="mid">{$menu.ordinal}</td>
|
||||
<td class="mid">{if $menu.newwindow == 1}Yes{else}No{/if}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/menu-delete.php?id={$menu.id}">delete</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
{else}
|
||||
<p>No menus available.</p>
|
||||
{/if}
|
||||
</table>
|
||||
{else}
|
||||
<p>No menus available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}" method="post">
|
||||
{{csrf_field()}}
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}" method="post">
|
||||
{{csrf_field()}}
|
||||
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Enter the full 7 digit IMDB id into the box below and click Add.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Enter the full 7 digit IMDB id into the box below and click Add.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="title">IMDB id</label>:</td>
|
||||
<td>
|
||||
<input id="id" class="long" name="id" type="text" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">IMDB id</label>:</td>
|
||||
<td>
|
||||
<input id="id" class="long" name="id" type="text" value=""/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Add" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Add"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,114 +1,121 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/movie-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/movie-list.php"><i class="fa fa-arrow-left"></i> Go
|
||||
back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
|
||||
<input type="hidden" name="id" value="{$movie.imdbid}" />
|
||||
<input type="hidden" name="id" value="{$movie.imdbid}"/>
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td><label for="title">IMDB id</label>:</td>
|
||||
<td>{$movie.imdbid}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">IMDB id</label>:</td>
|
||||
<td>{$movie.imdbid}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="title">TMDb id</label>:</td>
|
||||
<td>{$movie.tmdbid}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">TMDb id</label>:</td>
|
||||
<td>{$movie.tmdbid}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$movie.title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$movie.title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="tagline">Tagline</label>:</td>
|
||||
<td>
|
||||
<input id="tagline" class="long" name="tagline" type="text" value="{$movie.tagline|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tagline">Tagline</label>:</td>
|
||||
<td>
|
||||
<input id="tagline" class="long" name="tagline" type="text"
|
||||
value="{$movie.tagline|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="plot">Plot</label>:</td>
|
||||
<td>
|
||||
<textarea id="plot" name="plot">{$movie.plot|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="plot">Plot</label>:</td>
|
||||
<td>
|
||||
<textarea id="plot" name="plot">{$movie.plot|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="year">Year</label>:</td>
|
||||
<td>
|
||||
<input id="year" class="short" name="year" type="text" value="{$movie.year|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="year">Year</label>:</td>
|
||||
<td>
|
||||
<input id="year" class="short" name="year" type="text" value="{$movie.year|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="rating">Rating</label>:</td>
|
||||
<td>
|
||||
<input id="rating" class="short" name="rating" type="text" value="{$movie.rating|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="rating">Rating</label>:</td>
|
||||
<td>
|
||||
<input id="rating" class="short" name="rating" type="text"
|
||||
value="{$movie.rating|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="genre">Genre</label>:</td>
|
||||
<td>
|
||||
<input id="genre" class="long" name="genre" type="text" value="{$movie.genre|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="genre">Genre</label>:</td>
|
||||
<td>
|
||||
<input id="genre" class="long" name="genre" type="text" value="{$movie.genre|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="director">Director</label>:</td>
|
||||
<td>
|
||||
<input id="director" class="long" name="director" type="text" value="{$movie.director|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="director">Director</label>:</td>
|
||||
<td>
|
||||
<input id="director" class="long" name="director" type="text"
|
||||
value="{$movie.director|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="actors">Actors</label>:</td>
|
||||
<td>
|
||||
<textarea id="actors" name="actors">{$movie.actors|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="actors">Actors</label>:</td>
|
||||
<td>
|
||||
<textarea id="actors" name="actors">{$movie.actors|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="language">Language</label>:</td>
|
||||
<td>
|
||||
<input id="language" class="long" name="language" type="text" value="{$movie.language|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="language">Language</label>:</td>
|
||||
<td>
|
||||
<input id="language" class="long" name="language" type="text"
|
||||
value="{$movie.language|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover" />
|
||||
{if $movie.cover == 1}
|
||||
<img style="max-width:200px; display:block;" src="{$smarty.const.WWW_TOP}/covers/movies/{$movie.imdbid}-cover.jpg" alt="" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover"/>
|
||||
{if $movie.cover == 1}
|
||||
<img style="max-width:200px; display:block;"
|
||||
src="{$smarty.const.WWW_TOP}/covers/movies/{$movie.imdbid}-cover.jpg" alt=""/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="backdrop">Backdrop Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" name="backdrop" />
|
||||
{if $movie.backdrop == 1}
|
||||
<img style="max-width:200px; display:block;" src="{$smarty.const.WWW_TOP}/covers/movies/{$movie.imdbid}-backdrop.jpg" alt="" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="backdrop">Backdrop Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" name="backdrop"/>
|
||||
{if $movie.backdrop == 1}
|
||||
<img style="max-width:200px; display:block;"
|
||||
src="{$smarty.const.WWW_TOP}/covers/movies/{$movie.imdbid}-backdrop.jpg" alt=""/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,31 +1,36 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
{if $movielist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>IMDB ID</th>
|
||||
<th>TMDb ID</th>
|
||||
<th>Title</th>
|
||||
<th>Cover</th>
|
||||
<th>Backdrop</th>
|
||||
<th>Created</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
{foreach from=$movielist item=movie}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less"><a href="http://www.imdb.com/title/tt{$movie.imdbid}" title="View in IMDB">{$movie.imdbid}</a></td>
|
||||
<td class="less"><a href="http://www.themoviedb.org/movie/{$movie.tmdbid}" title="View in TMDb">{$movie.tmdbid}</a></td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/movie-edit.php?id={$movie.imdbid}">{$movie.title} ({$movie.year})</a></td>
|
||||
<td class="less">{$movie.cover}</td>
|
||||
<td class="less">{$movie.backdrop}</td>
|
||||
<td class="less">{$movie.created_at|date_format}</td>
|
||||
<td class="less"><a title="Update" href="{$smarty.const.WWW_TOP}/movie-add.php?id={$movie.imdbid}&update=1">Update</a></td>
|
||||
{if $movielist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>IMDB ID</th>
|
||||
<th>TMDb ID</th>
|
||||
<th>Title</th>
|
||||
<th>Cover</th>
|
||||
<th>Backdrop</th>
|
||||
<th>Created</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No Movies available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
{foreach from=$movielist item=movie}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less"><a href="http://www.imdb.com/title/tt{$movie.imdbid}"
|
||||
title="View in IMDB">{$movie.imdbid}</a></td>
|
||||
<td class="less"><a href="http://www.themoviedb.org/movie/{$movie.tmdbid}"
|
||||
title="View in TMDb">{$movie.tmdbid}</a></td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/movie-edit.php?id={$movie.imdbid}">{$movie.title}
|
||||
({$movie.year})</a></td>
|
||||
<td class="less">{$movie.cover}</td>
|
||||
<td class="less">{$movie.backdrop}</td>
|
||||
<td class="less">{$movie.created_at|date_format}</td>
|
||||
<td class="less"><a title="Update"
|
||||
href="{$smarty.const.WWW_TOP}/movie-add.php?id={$movie.imdbid}&update=1">Update</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No Movies available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,106 +1,112 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/music-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/music-list.php"><i class="fa fa-arrow-left"></i> Go
|
||||
back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="post">
|
||||
{{csrf_field()}}
|
||||
|
||||
<input type="hidden" name="id" value="{$music.id}" />
|
||||
<input type="hidden" name="id" value="{$music.id}"/>
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$music.title|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Title</label>:</td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$music.title|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="asin">ASIN</label>:</td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$music.asin|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="asin">ASIN</label>:</td>
|
||||
<td>
|
||||
<input id="asin" name="asin" type="text" value="{$music.asin|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="url">URL</label>:</td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$music.url|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="url">URL</label>:</td>
|
||||
<td>
|
||||
<input id="url" class="long" name="url" type="text" value="{$music.url|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="salesrank">Sales Rank</label>:</td>
|
||||
<td>
|
||||
<input id="salesrank" class="short" type="text" name="salesrank" value="{$music.salesrank|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="salesrank">Sales Rank</label>:</td>
|
||||
<td>
|
||||
<input id="salesrank" class="short" type="text" name="salesrank"
|
||||
value="{$music.salesrank|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="artist">Artist</label>:</td>
|
||||
<td>
|
||||
<input id="artist" class="long" name="artist" type="text" value="{$music.artist|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="artist">Artist</label>:</td>
|
||||
<td>
|
||||
<input id="artist" class="long" name="artist" type="text" value="{$music.artist|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher</label>:</td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text" value="{$music.publisher|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher</label>:</td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text"
|
||||
value="{$music.publisher|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="releasedate">Release Date</label>:</td>
|
||||
<td>
|
||||
<input id="releasedate" name="releasedate" type="text" value="{$music.releasedate|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="releasedate">Release Date</label>:</td>
|
||||
<td>
|
||||
<input id="releasedate" name="releasedate" type="text"
|
||||
value="{$music.releasedate|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="year">Year</label>:</td>
|
||||
<td>
|
||||
<input id="year" class="short" name="year" type="text" value="{$music.year|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="year">Year</label>:</td>
|
||||
<td>
|
||||
<input id="year" class="short" name="year" type="text" value="{$music.year|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="genre">Genre</label>:</td>
|
||||
<td>
|
||||
<select id="genre" name="genre">
|
||||
{foreach $genres as $gen}
|
||||
<option {if $gen.id == $music.genres_id}selected="selected"{/if} value="{$gen.id}">{$gen.title|escape:'htmlall'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="genre">Genre</label>:</td>
|
||||
<td>
|
||||
<select id="genre" name="genre">
|
||||
{foreach $genres as $gen}
|
||||
<option {if $gen.id == $music.genres_id}selected="selected"{/if}
|
||||
value="{$gen.id}">{$gen.title|escape:'htmlall'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="tracks">Tracks</label>:</td>
|
||||
<td>
|
||||
<textarea id="tracks" name="tracks">{$music.tracks|escape:'htmlall'}</textarea>
|
||||
<div class="hint">Tracks separated by | (pipe) delimeter</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tracks">Tracks</label>:</td>
|
||||
<td>
|
||||
<textarea id="tracks" name="tracks">{$music.tracks|escape:'htmlall'}</textarea>
|
||||
<div class="hint">Tracks separated by | (pipe) delimeter</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover" />
|
||||
{if $music.cover == 1}
|
||||
<img style="max-width:200px; display:block;" src="{$smarty.const.WWW_TOP}/../covers/music/{$music.id}.jpg" alt="" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="cover">Cover Image</label>:</td>
|
||||
<td>
|
||||
<input type="file" id="cover" name="cover"/>
|
||||
{if $music.cover == 1}
|
||||
<img style="max-width:200px; display:block;"
|
||||
src="{$smarty.const.WWW_TOP}/../covers/music/{$music.id}.jpg" alt=""/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
{if $musiclist}
|
||||
{$pager}
|
||||
{if $musiclist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Title</th>
|
||||
<th>Artist</th>
|
||||
<th class="mid">Created</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Title</th>
|
||||
<th>Artist</th>
|
||||
<th class="mid">Created</th>
|
||||
</tr>
|
||||
{foreach from=$musiclist item=music}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$music.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/music-edit.php?id={$music.id}">{$music.title}
|
||||
({$music.year})</a></td>
|
||||
<td>{$music.artist}</td>
|
||||
<td width="80" class="mid">{$music.created_at|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$musiclist item=music}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$music.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/music-edit.php?id={$music.id}">{$music.title} ({$music.year})</a></td>
|
||||
<td>{$music.artist}</td>
|
||||
<td width="80" class="mid">{$music.created_at|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No Music available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No Music available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,68 +1,70 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<p>
|
||||
Export nzbs from the system into a folder. Specify the full file path to a folder.
|
||||
<br/>
|
||||
If you are exporting a large number of nzb files, run this script from the command line and pass in the folder path as the first argument. e.g. php scriptname outputpath from(optional) to(optional) groups_id(optional use -1) categories_id(optional)<br/>
|
||||
<span style="font-family:courier;display:block;padding:5px 0 15px 0;">
|
||||
<p>
|
||||
Export nzbs from the system into a folder. Specify the full file path to a folder.
|
||||
<br/>
|
||||
If you are exporting a large number of nzb files, run this script from the command line and pass in the folder
|
||||
path as the first argument. e.g. php scriptname outputpath from(optional) to(optional) groups_id(optional use
|
||||
-1) categories_id(optional)<br/>
|
||||
<span style="font-family:courier;display:block;padding:5px 0 15px 0;">
|
||||
php admin/nzb-export.php /path/to/export/into 01/01/2008 01/01/2010 -1 1050
|
||||
</span>
|
||||
|
||||
</p>
|
||||
</p>
|
||||
|
||||
|
||||
<form action="{$SCRIPT_NAME}" method="POST">
|
||||
{{csrf_field()}}
|
||||
<form action="{$SCRIPT_NAME}" method="POST">
|
||||
{{csrf_field()}}
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td><label for="folder">Folder</label>:</td>
|
||||
<td>
|
||||
<input id="folder" class="long" name="folder" type="text" value="{$folder}" />
|
||||
<div class="hint">Windows file paths should be specified with forward slashes e.g. c:/temp/</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="folder">Folder</label>:</td>
|
||||
<td>
|
||||
<input id="folder" class="long" name="folder" type="text" value="{$folder}"/>
|
||||
<div class="hint">Windows file paths should be specified with forward slashes e.g. c:/temp/</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="postfrom">Posted Between</label>:</td>
|
||||
<td>
|
||||
<input id="postfrom" class="date" name="postfrom" type="text" value="{$fromdate}" />
|
||||
<label for="postto"> and </label>
|
||||
<input id="postto" class="date" name="postto" type="text" value="{$todate}" />
|
||||
<div class="hint">Posted to usenet inbetween a date range specified in the format dd/mm/yyyy</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="postfrom">Posted Between</label>:</td>
|
||||
<td>
|
||||
<input id="postfrom" class="date" name="postfrom" type="text" value="{$fromdate}"/>
|
||||
<label for="postto"> and </label>
|
||||
<input id="postto" class="date" name="postto" type="text" value="{$todate}"/>
|
||||
<div class="hint">Posted to usenet inbetween a date range specified in the format dd/mm/yyyy</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="group">Group</label>:</td>
|
||||
<td>
|
||||
{html_options id="group" name='group' options=$grouplist selected=$group}
|
||||
<div class="hint">Posted to this newsgroup</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="group">Group</label>:</td>
|
||||
<td>
|
||||
{html_options id="group" name='group' options=$grouplist selected=$group}
|
||||
<div class="hint">Posted to this newsgroup</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="categories_id">Category</label>:</td>
|
||||
<td>
|
||||
{html_options id="categories_id" name='categories_id' options=$catlist selected=$cat}
|
||||
<div class="hint">Posted to this category</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="categories_id">Category</label>:</td>
|
||||
<td>
|
||||
{html_options id="categories_id" name='categories_id' options=$catlist selected=$cat}
|
||||
<div class="hint">Posted to this category</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Export" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Export"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
{$output}
|
||||
</div>
|
||||
<div>
|
||||
{$output}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,78 +1,86 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<p>
|
||||
Import NZB's from a folder or via the browser into the system. Specify the full file path to a folder containing NZB's.
|
||||
<br />
|
||||
Importing will add the release to your database, compress the NZB and store it in the nzbfiles/ folder.
|
||||
</p>
|
||||
<ul>
|
||||
<li>If you are importing a large number of NZB files, run the nzb-import.php script in misc/testing/ from the command line and pass in the folder path as the first argument.</li>
|
||||
<li>If you are running the script in misc/testing/ from the command line you can pass "true" (no quotes) as the second argument to use the NZB filename as the release name.</li>
|
||||
<li>Groups contained in the NZB's should be added to the site before the import is run.</li>
|
||||
<li>If you re-import the same NZB it will not be added a second time.</li>
|
||||
<li>If imported sucessfully the NZB will be deleted.</li>
|
||||
</ul>
|
||||
<fieldset>
|
||||
<legend>Import From Directory</legend>
|
||||
<form action="{$SCRIPT_NAME}#results" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="folder">Folder:</label></td>
|
||||
<td>
|
||||
<input id="folder" class="long" name="folder" type="text" value="" />
|
||||
<div class="hint">Windows file paths should be specified with forward slashes e.g. c:/temp/</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="usefilename">Use Filename:</label></td>
|
||||
<td>
|
||||
<input type="checkbox" name="usefilename" />
|
||||
<div class="hint">Use the NZB's filename as the release name. Else the name inside the NZB will be used.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="deleteNZB">Delete NZBs:</label></td>
|
||||
<td>
|
||||
<input type="checkbox" name="deleteNZB" />
|
||||
<div class="hint">Delete the NZB when we have successfully imported it?</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Import" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Import From Browser</legend>
|
||||
<form action="{$SCRIPT_NAME}#results" method="POST" enctype="multipart/form-data">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="uploadedfiles[]">File:</label></td>
|
||||
<td>
|
||||
<input name="uploadedfiles[]" type="file" class="multi accept-nzb"/>
|
||||
<div class="hint">Select one or more .nzb files.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<b>These NZBs will not be deleted once imported.</b><br />
|
||||
<input class="btn btn-default" type="submit" value="Import" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
{if !empty($output)}
|
||||
<div>
|
||||
<a id="results"></a>
|
||||
<h1>Import Results</h1>
|
||||
{$output}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<h1>{$page->title}</h1>
|
||||
<p>
|
||||
Import NZB's from a folder or via the browser into the system. Specify the full file path to a folder containing
|
||||
NZB's.
|
||||
<br/>
|
||||
Importing will add the release to your database, compress the NZB and store it in the nzbfiles/ folder.
|
||||
</p>
|
||||
<ul>
|
||||
<li>If you are importing a large number of NZB files, run the nzb-import.php script in misc/testing/ from the
|
||||
command line and pass in the folder path as the first argument.
|
||||
</li>
|
||||
<li>If you are running the script in misc/testing/ from the command line you can pass "true" (no quotes) as the
|
||||
second argument to use the NZB filename as the release name.
|
||||
</li>
|
||||
<li>Groups contained in the NZB's should be added to the site before the import is run.</li>
|
||||
<li>If you re-import the same NZB it will not be added a second time.</li>
|
||||
<li>If imported sucessfully the NZB will be deleted.</li>
|
||||
</ul>
|
||||
<fieldset>
|
||||
<legend>Import From Directory</legend>
|
||||
<form action="{$SCRIPT_NAME}#results" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="folder">Folder:</label></td>
|
||||
<td>
|
||||
<input id="folder" class="long" name="folder" type="text" value=""/>
|
||||
<div class="hint">Windows file paths should be specified with forward slashes e.g. c:/temp/
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="usefilename">Use Filename:</label></td>
|
||||
<td>
|
||||
<input type="checkbox" name="usefilename"/>
|
||||
<div class="hint">Use the NZB's filename as the release name. Else the name inside the NZB will
|
||||
be used.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="deleteNZB">Delete NZBs:</label></td>
|
||||
<td>
|
||||
<input type="checkbox" name="deleteNZB"/>
|
||||
<div class="hint">Delete the NZB when we have successfully imported it?</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Import"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Import From Browser</legend>
|
||||
<form action="{$SCRIPT_NAME}#results" method="POST" enctype="multipart/form-data">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="uploadedfiles[]">File:</label></td>
|
||||
<td>
|
||||
<input name="uploadedfiles[]" type="file" class="multi accept-nzb"/>
|
||||
<div class="hint">Select one or more .nzb files.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<b>These NZBs will not be deleted once imported.</b><br/>
|
||||
<input class="btn btn-default" type="submit" value="Import"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
{if !empty($output)}
|
||||
<div>
|
||||
<a id="results"></a>
|
||||
<h1>Import Results</h1>
|
||||
{$output}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -8,14 +8,15 @@
|
||||
<td>Poster name:</td>
|
||||
<td>
|
||||
<input id="id" type="hidden" name="id" value={if isset($poster->id)}"{$poster->id}"{else}""{/if} />
|
||||
<input id="poster" class="long" name="poster" type="text" value={if isset($poster->poster)}"{$poster->poster}"{else}""{/if} />
|
||||
<input id="poster" class="long" name="poster" type="text"
|
||||
value={if isset($poster->poster)}"{$poster->poster}"{else}""{/if} />
|
||||
<div class="hint">Name of the MultiGroup poster</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,45 +1,46 @@
|
||||
<div class="well wellsm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<label for="previewcat"> Select Category :
|
||||
<select id="previewcat" name="previewcat">
|
||||
<option class="grouping" value="-1">All</option>
|
||||
{foreach from=$catlist item=parentcat}
|
||||
<option {if $previewcat==$parentcat.id}selected="selected"{/if} class="grouping" value="{$parentcat.id}">{$parentcat.title}</option>
|
||||
{foreach $parentcat.subcatlist as $subcat}
|
||||
<option {if $previewcat==$subcat.id}selected="selected"{/if} value="{$subcat.id}"> {$subcat.title}</option>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</select>
|
||||
</label>
|
||||
<label for="previewcat"> Select Category :
|
||||
<select id="previewcat" name="previewcat">
|
||||
<option class="grouping" value="-1">All</option>
|
||||
{foreach from=$catlist item=parentcat}
|
||||
<option {if $previewcat==$parentcat.id}selected="selected"{/if} class="grouping"
|
||||
value="{$parentcat.id}">{$parentcat.title}</option>
|
||||
{foreach $parentcat.subcatlist as $subcat}
|
||||
<option {if $previewcat==$subcat.id}selected="selected"{/if} value="{$subcat.id}">
|
||||
{$subcat.title}</option>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</select>
|
||||
</label>
|
||||
|
||||
<br/><br/>
|
||||
<br/><br/>
|
||||
|
||||
{if $releaselist}
|
||||
{$pager}
|
||||
{if $releaselist}
|
||||
{$pager}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>preview</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>preview</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
{foreach from=$releaselist item=release}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td title="{$release.name}">
|
||||
<img src="{$smarty.const.WWW_TOP}/../covers/preview/{$release.guid}_thumb.jpg"/>
|
||||
<br/>
|
||||
<a href="{$smarty.const.WWW_TOP}/release-edit.php?id={$release.id}">{$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true}</a>
|
||||
</td>
|
||||
<td><!--<a href="{$smarty.const.WWW_TOP}/preview-delete.php?id={$release.id}">delete</a>--></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$releaselist item=release}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td title="{$release.name}">
|
||||
<img src="{$smarty.const.WWW_TOP}/../covers/preview/{$release.guid}_thumb.jpg" />
|
||||
<br/>
|
||||
<a href="{$smarty.const.WWW_TOP}/release-edit.php?id={$release.id}">{$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true}</a>
|
||||
</td>
|
||||
<td><!--<a href="{$smarty.const.WWW_TOP}/preview-delete.php?id={$release.id}">delete</a>--></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No results.</p>
|
||||
{/if}
|
||||
</div>
|
||||
</table>
|
||||
<br/>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No results.</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<h2>For {$rel.searchname|escape:'htmlall'}</h2>
|
||||
<h2>For {$rel.searchname|escape:'htmlall'}</h2>
|
||||
|
||||
<table style="width:100%;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<table style="width:100%;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>filename</th>
|
||||
<th>size</th>
|
||||
<th>date</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>filename</th>
|
||||
<th>size</th>
|
||||
<th>date</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$binaries item=binary}
|
||||
<tr>
|
||||
<td width="20" title="{$binary.relpart}/{$binary.reltotalpart}">{$binary.relpart}</td>
|
||||
<td title="{$binary.name|escape:'htmlall'}">{$binary.filename}</td>
|
||||
<td class="less">{$binary.size|fsize_format:"MB"}</td>
|
||||
<td class="less" title="{$binary.date}">{$binary.date|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{foreach from=$binaries item=binary}
|
||||
<tr>
|
||||
<td width="20" title="{$binary.relpart}/{$binary.reltotalpart}">{$binary.relpart}</td>
|
||||
<td title="{$binary.name|escape:'htmlall'}">{$binary.filename}</td>
|
||||
<td class="less">{$binary.size|fsize_format:"MB"}</td>
|
||||
<td class="less" title="{$binary.date}">{$binary.date|date_format}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
@@ -1,75 +1,82 @@
|
||||
<div class="well well-sm">
|
||||
<h1 xmlns="http://www.w3.org/1999/html">{$page->title}</h1>
|
||||
{if isset($error) && $error != ''}
|
||||
<div class="error">{$error}</div>
|
||||
{/if}
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/release_naming_regexes-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group_regex">Group:</label></td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{if isset($regex.id)}{$regex.id}{else}{/if}" />
|
||||
<input type="text" id="group_regex" name="group_regex" value="{if isset($regex.group_regex)}{$regex.group_regex|escape:html}{else}{/if}" />
|
||||
<div class="hint">
|
||||
Regex to match against a group or multiple groups.<br />
|
||||
Delimiters are already added, and PCRE_CASELESS is added after for case insensitivity.<br />
|
||||
An example of matching a single group: alt\.binaries\.example<br />
|
||||
An example of matching multiple groups: alt\.binaries.*
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="regex">Regex:</label></td>
|
||||
<td>
|
||||
<textarea id="regex" name="regex" >{if isset($regex.regex)}{$regex.regex|escape:html}{else}{/if}</textarea>
|
||||
<div class="hint">
|
||||
The regex to use when trying to name a release using the usenet subject.<br />
|
||||
The regex delimiters are not added, you MUST add them. See <a href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br />
|
||||
To make the regex case insensitive, add i after the last delimiter.<br />
|
||||
You MUST include at least one regex capture group.<br />
|
||||
You MUST name your regex capture groups (the ones you want included).<br />
|
||||
The named capture groups will be concatenated into a string.<br />
|
||||
Capture groups are sorted alphabetically (by capture group name) when concatenating the string.<br />
|
||||
Capture groups named 'reqid' and 'parts' are ignored.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description" name="description" >{if isset($regex.description)}{$regex.description|escape:html}{else}{/if}</textarea>
|
||||
<div class="hint">
|
||||
Description for this regex.<br />
|
||||
You can include an example usenet subject this regex would match on.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal:</label></td>
|
||||
<td>
|
||||
<input class="ordinal" id="ordinal" name="ordinal" type="text" value="{if isset($regex.ordinal)}{$regex.ordinal}{else}{/if}" />
|
||||
<div class="hint">
|
||||
The order to run this regex in.<br />
|
||||
Must be a number, 0 or higher.<br />
|
||||
If multiple regex have the same ordinal, MySQL will randomly sort them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regex are used during the collection matching process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<h1 xmlns="http://www.w3.org/1999/html">{$page->title}</h1>
|
||||
{if isset($error) && $error != ''}
|
||||
<div class="error">{$error}</div>
|
||||
{/if}
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/release_naming_regexes-list.php"><i
|
||||
class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group_regex">Group:</label></td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{if isset($regex.id)}{$regex.id}{else}{/if}"/>
|
||||
<input type="text" id="group_regex" name="group_regex"
|
||||
value="{if isset($regex.group_regex)}{$regex.group_regex|escape:html}{else}{/if}"/>
|
||||
<div class="hint">
|
||||
Regex to match against a group or multiple groups.<br/>
|
||||
Delimiters are already added, and PCRE_CASELESS is added after for case insensitivity.<br/>
|
||||
An example of matching a single group: alt\.binaries\.example<br/>
|
||||
An example of matching multiple groups: alt\.binaries.*
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="regex">Regex:</label></td>
|
||||
<td>
|
||||
<textarea id="regex"
|
||||
name="regex">{if isset($regex.regex)}{$regex.regex|escape:html}{else}{/if}</textarea>
|
||||
<div class="hint">
|
||||
The regex to use when trying to name a release using the usenet subject.<br/>
|
||||
The regex delimiters are not added, you MUST add them. See <a
|
||||
href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br/>
|
||||
To make the regex case insensitive, add i after the last delimiter.<br/>
|
||||
You MUST include at least one regex capture group.<br/>
|
||||
You MUST name your regex capture groups (the ones you want included).<br/>
|
||||
The named capture groups will be concatenated into a string.<br/>
|
||||
Capture groups are sorted alphabetically (by capture group name) when concatenating the
|
||||
string.<br/>
|
||||
Capture groups named 'reqid' and 'parts' are ignored.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="description">Description:</label></td>
|
||||
<td>
|
||||
<textarea id="description"
|
||||
name="description">{if isset($regex.description)}{$regex.description|escape:html}{else}{/if}</textarea>
|
||||
<div class="hint">
|
||||
Description for this regex.<br/>
|
||||
You can include an example usenet subject this regex would match on.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="ordinal">Ordinal:</label></td>
|
||||
<td>
|
||||
<input class="ordinal" id="ordinal" name="ordinal" type="text"
|
||||
value="{if isset($regex.ordinal)}{$regex.ordinal}{else}{/if}"/>
|
||||
<div class="hint">
|
||||
The order to run this regex in.<br/>
|
||||
Must be a number, 0 or higher.<br/>
|
||||
If multiple regex have the same ordinal, MySQL will randomly sort them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="status">Active:</label></td>
|
||||
<td>
|
||||
{html_radios id="status" name='status' values=$status_ids output=$status_names selected=$regex.status separator='<br />'}
|
||||
<div class="hint">Only active regex are used during the collection matching process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,46 +1,51 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<p>This page lists regex used for getting names for releases from usenet subjects.</p>
|
||||
<div id="message"></div>
|
||||
<p>This page lists regex used for getting names for releases from usenet subjects.</p>
|
||||
<div id="message"></div>
|
||||
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group">Search a group:</label>
|
||||
<input id="group" type="text" name="group" value="{if isset($group)}{$group}{else}{/if}" size="15" />
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go" />
|
||||
</form>
|
||||
{if isset($regex)}
|
||||
|
||||
<div>{$pager}</div>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>ordinal</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
</tr>
|
||||
{foreach from=$regex item=row}
|
||||
<tr id="row-{$row.id}" class="{cycle values=",alt"}">
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.group_regex}</td>
|
||||
<td title="Edit this regex"><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-edit.php?id={$row.id}">Edit</a></td>
|
||||
<td>{$row.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this regex"><a href="javascript:ajax_release_naming_regex_delete({$row.id})" onclick="return confirm('Are you sure? This will delete the regex from this list.');" >Delete</a></td>
|
||||
<td>{$row.ordinal}</td>
|
||||
{if $row.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this regex"><a href="{$smarty.const.WWW_TOP}/release_naming_regexes-edit.php?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}</a></td>
|
||||
<form name="groupsearch" action="" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<label for="group">Search a group:</label>
|
||||
<input id="group" type="text" name="group" value="{if isset($group)}{$group}{else}{/if}" size="15"/>
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go"/>
|
||||
</form>
|
||||
{if isset($regex)}
|
||||
<div>{$pager}</div>
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:20px;">id</th>
|
||||
<th>group</th>
|
||||
<th style="width:25px;">edit</th>
|
||||
<th>description</th>
|
||||
<th style="width:40px;">delete</th>
|
||||
<th>ordinal</th>
|
||||
<th>status</th>
|
||||
<th>regex</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div style="margin-top: 15px">{$pager}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{foreach from=$regex item=row}
|
||||
<tr id="row-{$row.id}" class="{cycle values=",alt"}">
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.group_regex}</td>
|
||||
<td title="Edit this regex"><a
|
||||
href="{$smarty.const.WWW_TOP}/release_naming_regexes-edit.php?id={$row.id}">Edit</a>
|
||||
</td>
|
||||
<td>{$row.description|truncate:50:"...":true}</td>
|
||||
<td title="Delete this regex"><a href="javascript:ajax_release_naming_regex_delete({$row.id})"
|
||||
onclick="return confirm('Are you sure? This will delete the regex from this list.');">Delete</a>
|
||||
</td>
|
||||
<td>{$row.ordinal}</td>
|
||||
{if $row.status==1}
|
||||
<td style="color:#00CC66">Active</td>
|
||||
{else}
|
||||
<td style="color:#FF0000">Disabled</td>
|
||||
{/if}
|
||||
<td title="Edit this regex"><a
|
||||
href="{$smarty.const.WWW_TOP}/release_naming_regexes-edit.php?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div style="margin-top: 15px">{$pager}</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,76 +1,79 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<p>This page is used for testing regex for getting release names from usenet subject.
|
||||
<br />Maximum releases to display will limit the amount of results displayed on the page. 0 for no limit.
|
||||
<br />Query limit will limit the amount of releases to select from MySQL (setting this high can be very slow). 0 for no limit.
|
||||
</p>
|
||||
<h1>{$page->title}</h1>
|
||||
<p>This page is used for testing regex for getting release names from usenet subject.
|
||||
<br/>Maximum releases to display will limit the amount of results displayed on the page. 0 for no limit.
|
||||
<br/>Query limit will limit the amount of releases to select from MySQL (setting this high can be very slow). 0
|
||||
for no limit.
|
||||
</p>
|
||||
|
||||
<form name="search" action="" method="post" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group" style="padding-right:1px">Group:</label>
|
||||
<td>
|
||||
<input id="group" type="text" name="group" value="{$group|htmlentities}" size="20" /><br />
|
||||
<div class="hint">
|
||||
Regex to match against a group.<br />
|
||||
Delimiters are already added.<br />
|
||||
An example of matching a group: alt.binaries.example
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="regex" style="padding-right:1px">Regex:</label>
|
||||
<td>
|
||||
<input id="regex" type="text" name="regex" value="{$regex|htmlentities}" size="100" /><br/>
|
||||
<div class="hint">
|
||||
The regex to use when trying to name a release using the usenet subject.<br />
|
||||
The regex delimiters are not added, you MUST add them. See <a href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br />
|
||||
To make the regex case insensitive, add i after the last delimiter.<br />
|
||||
You MUST include at least one regex capture group.<br />
|
||||
You MUST name your regex capture groups (the ones you want included).<br />
|
||||
The named capture groups will be concatenated into a string.<br />
|
||||
Capture groups are sorted alphabetically (by capture group name) when concatenating the string.<br />
|
||||
Capture groups named 'reqid' and 'parts' are ignored.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="showlimit" style="padding-right:7px">Maximum releases to display:</label>
|
||||
<td>
|
||||
<input id="showlimit" type="text" name="showlimit" value="{$showlimit}" size="8" /><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="querylimit" style="padding-right:7px">Query limit:</label>
|
||||
<td>
|
||||
<input id="querylimit" type="text" name="querylimit" value="{$querylimit}" size="8" /><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Test" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{if isset($data)}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>Release id</th>
|
||||
<th>Usenet Subject</th>
|
||||
<th>Old Search Name</th>
|
||||
<th>New Search Name</th>
|
||||
</tr>
|
||||
{foreach from=$data key=id item=names}
|
||||
<tr id="row-{$id}" class="{cycle values=",alt"}">
|
||||
<td>{$id}</td>
|
||||
<td>{$names.subject}</td>
|
||||
<td>{$names.old_name}</td>
|
||||
<td>{$names.new_name}</td>
|
||||
<form name="search" action="" method="post" style="margin-bottom:5px;">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="group" style="padding-right:1px">Group:</label>
|
||||
<td>
|
||||
<input id="group" type="text" name="group" value="{$group|htmlentities}" size="20"/><br/>
|
||||
<div class="hint">
|
||||
Regex to match against a group.<br/>
|
||||
Delimiters are already added.<br/>
|
||||
An example of matching a group: alt.binaries.example
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
<tr>
|
||||
<td><label for="regex" style="padding-right:1px">Regex:</label>
|
||||
<td>
|
||||
<input id="regex" type="text" name="regex" value="{$regex|htmlentities}" size="100"/><br/>
|
||||
<div class="hint">
|
||||
The regex to use when trying to name a release using the usenet subject.<br/>
|
||||
The regex delimiters are not added, you MUST add them. See <a
|
||||
href="http://php.net/manual/en/regexp.reference.delimiters.php">this</a> page.<br/>
|
||||
To make the regex case insensitive, add i after the last delimiter.<br/>
|
||||
You MUST include at least one regex capture group.<br/>
|
||||
You MUST name your regex capture groups (the ones you want included).<br/>
|
||||
The named capture groups will be concatenated into a string.<br/>
|
||||
Capture groups are sorted alphabetically (by capture group name) when concatenating the
|
||||
string.<br/>
|
||||
Capture groups named 'reqid' and 'parts' are ignored.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="showlimit" style="padding-right:7px">Maximum releases to display:</label>
|
||||
<td>
|
||||
<input id="showlimit" type="text" name="showlimit" value="{$showlimit}" size="8"/><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="querylimit" style="padding-right:7px">Query limit:</label>
|
||||
<td>
|
||||
<input id="querylimit" type="text" name="querylimit" value="{$querylimit}" size="8"/><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Test"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{if isset($data)}
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>Release id</th>
|
||||
<th>Usenet Subject</th>
|
||||
<th>Old Search Name</th>
|
||||
<th>New Search Name</th>
|
||||
</tr>
|
||||
{foreach from=$data key=id item=names}
|
||||
<tr id="row-{$id}" class="{cycle values=",alt"}">
|
||||
<td>{$id}</td>
|
||||
<td>{$names.subject}</td>
|
||||
<td>{$names.old_name}</td>
|
||||
<td>{$names.new_name}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,99 +1,103 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/role-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/role-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$role.id}" />
|
||||
{if $role.id != '' && $role.id < 4}{$role.name}<input type="hidden" name="name" value="{$role.name}" />{else}<input name="name" type="text" value="{$role.name}" /><div class="hint">The name of the role</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" value="{$role.id}"/>
|
||||
{if $role.id != '' && $role.id < 4}{$role.name}<input type="hidden" name="name"
|
||||
value="{$role.name}" />{else}<input
|
||||
name="name" type="text" value="{$role.name}" />
|
||||
<div class="hint">The name of the role</div>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Api Requests:</td>
|
||||
<td>
|
||||
<input name="apirequests" type="text" value="{$role.apirequests}" />
|
||||
<div class="hint">Number of api requests allowed per 24 hour period</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Api Requests:</td>
|
||||
<td>
|
||||
<input name="apirequests" type="text" value="{$role.apirequests}"/>
|
||||
<div class="hint">Number of api requests allowed per 24 hour period</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Download Requests:</td>
|
||||
<td>
|
||||
<input name="downloadrequests" type="text" value="{$role.downloadrequests}" />
|
||||
<div class="hint">Number of downloads allowed per 24 hour period</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Download Requests:</td>
|
||||
<td>
|
||||
<input name="downloadrequests" type="text" value="{$role.downloadrequests}"/>
|
||||
<div class="hint">Number of downloads allowed per 24 hour period</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Invites:</td>
|
||||
<td>
|
||||
<input name="defaultinvites" type="text" value="{$role.defaultinvites}" />
|
||||
<div class="hint">Default number of invites to give users on account creation</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Invites:</td>
|
||||
<td>
|
||||
<input name="defaultinvites" type="text" value="{$role.defaultinvites}"/>
|
||||
<div class="hint">Default number of invites to give users on account creation</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Can Preview:</td>
|
||||
<td>
|
||||
{html_radios id="canpreview" name='canpreview' values=$yesno_ids output=$yesno_names selected=$role.canpreview separator='<br />'}
|
||||
<div class="hint">Whether the role can preview screenshots</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Can Preview:</td>
|
||||
<td>
|
||||
{html_radios id="canpreview" name='canpreview' values=$yesno_ids output=$yesno_names selected=$role.canpreview separator='<br />'}
|
||||
<div class="hint">Whether the role can preview screenshots</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Hide Ads:</td>
|
||||
<td>
|
||||
{html_radios id="hideads" name='hideads' values=$yesno_ids output=$yesno_names selected=$role.hideads separator='<br />'}
|
||||
<div class="hint">Whether ad's are hidden</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Donation amount:</td>
|
||||
<td>
|
||||
<input name="donation" type="text" value="{$role.donation}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Years Added:</td>
|
||||
<td>
|
||||
<input name="addyears" type="text" value="{$role.addyears}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hide Ads:</td>
|
||||
<td>
|
||||
{html_radios id="hideads" name='hideads' values=$yesno_ids output=$yesno_names selected=$role.hideads separator='<br />'}
|
||||
<div class="hint">Whether ad's are hidden</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Donation amount:</td>
|
||||
<td>
|
||||
<input name="donation" type="text" value="{$role.donation}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Years Added:</td>
|
||||
<td>
|
||||
<input name="addyears" type="text" value="{$role.addyears}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $role.id != ''}
|
||||
<tr>
|
||||
<td>Is Default Role:</td>
|
||||
<td>
|
||||
{html_radios id="role" name='isdefault' values=$yesno_ids output=$yesno_names selected=$role.isdefault separator='<br />'}
|
||||
<div class="hint">Make this the default role for new users</div>
|
||||
</td>
|
||||
</tr>
|
||||
{if $role.id != ''}
|
||||
<tr>
|
||||
<td>Is Default Role:</td>
|
||||
<td>
|
||||
{html_radios id="role" name='isdefault' values=$yesno_ids output=$yesno_names selected=$role.isdefault separator='<br />'}
|
||||
<div class="hint">Make this the default role for new users</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Excluded Categories</td>
|
||||
<td>
|
||||
{html_options style="height:105px;" multiple=multiple name="exccat[]" options=$catlist selected=$roleexccat}
|
||||
<div class="hint">Use Ctrl and click to exclude multiple categories. This will prevent users
|
||||
with this role from <br/>seeing these categories in the menu or search results.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td>Excluded Categories</td>
|
||||
<td>
|
||||
{html_options style="height:105px;" multiple=multiple name="exccat[]" options=$catlist selected=$roleexccat}
|
||||
<div class="hint">Use Ctrl and click to exclude multiple categories. This will prevent users with this role from <br/>seeing these categories in the menu or search results.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,35 +1,37 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>request limit</th>
|
||||
<th>download limit</th>
|
||||
<th>invites</th>
|
||||
<th>can preview</th>
|
||||
<th>hide ads</th>
|
||||
<th>donation</th>
|
||||
<th>add years</th>
|
||||
<th>default roles</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>request limit</th>
|
||||
<th>download limit</th>
|
||||
<th>invites</th>
|
||||
<th>can preview</th>
|
||||
<th>hide ads</th>
|
||||
<th>donation</th>
|
||||
<th>add years</th>
|
||||
<th>default roles</th>
|
||||
<th>options</th>
|
||||
</tr>
|
||||
|
||||
|
||||
{foreach from=$userroles item=role}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td><a href="{$smarty.const.WWW_TOP}/role-edit.php?id={$role.id}">{$role.name}</a></td>
|
||||
<td>{$role.apirequests}</td>
|
||||
<td>{$role.downloadrequests}</td>
|
||||
<td>{$role.defaultinvites}</td>
|
||||
<td>{if $role.canpreview == 1}Yes{else}No{/if}</td>
|
||||
<td>{if $role.hideads == 1}Yes{else}No{/if}</td>
|
||||
<td>{$role.donation}</td>
|
||||
<td>{$role.addyears}</td>
|
||||
<td>{if $role.isdefault=="1"}Yes{else}No{/if}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/role-edit.php?id={$role.id}">edit</a> {if $role.id>"3"}<a class="confirm_action" href="{$smarty.const.WWW_TOP}/role-delete.php?id={$role.id}">delete</a>{/if}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{foreach from=$userroles item=role}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td><a href="{$smarty.const.WWW_TOP}/role-edit.php?id={$role.id}">{$role.name}</a></td>
|
||||
<td>{$role.apirequests}</td>
|
||||
<td>{$role.downloadrequests}</td>
|
||||
<td>{$role.defaultinvites}</td>
|
||||
<td>{if $role.canpreview == 1}Yes{else}No{/if}</td>
|
||||
<td>{if $role.hideads == 1}Yes{else}No{/if}</td>
|
||||
<td>{$role.donation}</td>
|
||||
<td>{$role.addyears}</td>
|
||||
<td>{if $role.isdefault=="1"}Yes{else}No{/if}</td>
|
||||
<td><a href="{$smarty.const.WWW_TOP}/role-edit.php?id={$role.id}">edit</a> {if $role.id>"3"}<a
|
||||
class="confirm_action" href="{$smarty.const.WWW_TOP}/role-delete.php?id={$role.id}">delete</a>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -1,199 +1,239 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<div style="width:700px">
|
||||
<strong>
|
||||
<h1>{$page->title}</h1>
|
||||
<div style="width:700px">
|
||||
<strong>
|
||||
If you turn on or off the Alternate NNTP provider you will need to click the reset button to reset sharing settings.
|
||||
<strong>
|
||||
If you turn on or off the Alternate NNTP provider you will need to click the reset button to reset
|
||||
sharing settings.
|
||||
</strong>
|
||||
</strong>
|
||||
</strong>
|
||||
<br />
|
||||
<div id="message" style="width:717px;">msg</div>
|
||||
{if $local}
|
||||
<form action="{$SCRIPT_NAME}" method="post">
|
||||
{{csrf_field()}}
|
||||
<fieldset style="width:717px;">
|
||||
<legend>Local sharing settings.</legend>
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_name">Site Name:</label></td>
|
||||
<td>
|
||||
<input id="sharing_name" class="long" name="sharing_name" type="text" value="{$local.site_name}" />
|
||||
<div>This is your site name, changing this will update other sites running sharing also, it must not contain spaces (use underscores _).</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_maxpush">Max Uploads:</label></td>
|
||||
<td>
|
||||
<input id="sharing_maxpush" class="short" name="sharing_maxpush" type="text" value="{$local.max_push}" />
|
||||
<div>This is how many comments to upload per run (the more you increase this, the longer it takes).</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_maxdownload">Max Downloads:</label></td>
|
||||
<td>
|
||||
<input id="sharing_maxdownload" class="short" name="sharing_maxdownload" type="text" value="{$local.max_download}" />
|
||||
<div>This is how many comments to download per run.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_maxpull">Max Headers:</label></td>
|
||||
<td>
|
||||
<input id="sharing_maxpull" class="short" name="sharing_maxpull" type="text" value="{$local.max_pull}" />
|
||||
<div>This is how many headers to download and look through for comments per run.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_enabled">Enabled:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="enabled-1">
|
||||
{if $local.enabled == "1"}
|
||||
<a title="Click this to disable sharing." href="javascript:ajax_sharing_enabled(1, 0)" class="sharing_enabled_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable sharing." href="javascript:ajax_sharing_enabled(1, 1)" class="sharing_enabled_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
Is the sharing/retrieving enabled? This overrides posting/fetching.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_posting">Posting:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="posting-1">
|
||||
{if $local.posting == "1"}
|
||||
<a title="Click this to disable posting." href="javascript:ajax_sharing_posting(1, 0)" class="sharing_posting_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable posting." href="javascript:ajax_sharing_posting(1, 1)" class="sharing_posting_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
If you turn this on, this will post your comments to usenet. <br />
|
||||
<strong>This requires posting rights to usenet!</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_fetching">Fetching:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="fetching-1">
|
||||
{if $local.fetching == "1"}
|
||||
<a title="Click this to disable fetching." href="javascript:ajax_sharing_fetching(1, 0)" class="sharing_fetching_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable fetching." href="javascript:ajax_sharing_fetching(1, 1)" class="sharing_fetching_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
If you turn this on, this will download comments from usenet.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_auto">Auto-Enable:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="auto-1">
|
||||
{if $local.auto_enable == "1"}
|
||||
<a title="Click this to disable auto-enable." href="javascript:ajax_sharing_auto(1, 0)" class="sharing_auto_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable auto-enable." href="javascript:ajax_sharing_auto(1, 1)" class="sharing_auto_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
This will auto-enable new sites as we see them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_hide">Hide Users:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="hide-1">
|
||||
{if $local.hide_users == "1"}
|
||||
<a title="Click this to disable hiding users." href="javascript:ajax_sharing_hide(1, 0)" class="sharing_hide_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable hiding users." href="javascript:ajax_sharing_hide(1, 1)" class="sharing_hide_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
This will hide user names from being visible on remote sites.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_startposition">Backfill:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="startposition-1">
|
||||
{if $local.start_position == "1"}
|
||||
<a title="Click this to disable backfill." href="javascript:ajax_sharing_startposition(1, 0)" class="sharing_startposition_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable backfill." href="javascript:ajax_sharing_startposition(1, 1)" class="sharing_startposition_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
When pulling the first time, or after resetting, start from the beginning of the group (takes more time).<br />
|
||||
<strong>With the backfill setting it will take a few runs before you find anything the first time because the group has articles other than comments in it.</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_reset">Reset settings:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="reset-1">
|
||||
<a href="javascript:ajax_sharing_reset(1)" class="sharing_reset" onclick="return confirm('Are you sure? You will lose all your settings!');">[RESET]</a>
|
||||
</strong>
|
||||
<strong>This will reset your sharing settings (if you need to change Usenet Provider for example).</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<input class="btn btn-default" type="submit" value="Save Settings" />
|
||||
</form>
|
||||
<br />
|
||||
{else}
|
||||
<p>You have not run Sharing yet, until you run it this page will contain no settings.</p>
|
||||
{/if}
|
||||
<br/>
|
||||
<div id="message" style="width:717px;">msg</div>
|
||||
{if $local}
|
||||
<form action="{$SCRIPT_NAME}" method="post">
|
||||
{{csrf_field()}}
|
||||
<fieldset style="width:717px;">
|
||||
<legend>Local sharing settings.</legend>
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_name">Site Name:</label></td>
|
||||
<td>
|
||||
<input id="sharing_name" class="long" name="sharing_name" type="text"
|
||||
value="{$local.site_name}"/>
|
||||
<div>This is your site name, changing this will update other sites running sharing also,
|
||||
it must not contain spaces (use underscores _).
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_maxpush">Max Uploads:</label></td>
|
||||
<td>
|
||||
<input id="sharing_maxpush" class="short" name="sharing_maxpush" type="text"
|
||||
value="{$local.max_push}"/>
|
||||
<div>This is how many comments to upload per run (the more you increase this, the longer
|
||||
it takes).
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_maxdownload">Max Downloads:</label></td>
|
||||
<td>
|
||||
<input id="sharing_maxdownload" class="short" name="sharing_maxdownload" type="text"
|
||||
value="{$local.max_download}"/>
|
||||
<div>This is how many comments to download per run.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 100px;"><label for="sharing_maxpull">Max Headers:</label></td>
|
||||
<td>
|
||||
<input id="sharing_maxpull" class="short" name="sharing_maxpull" type="text"
|
||||
value="{$local.max_pull}"/>
|
||||
<div>This is how many headers to download and look through for comments per run.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_enabled">Enabled:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="enabled-1">
|
||||
{if $local.enabled == "1"}
|
||||
<a title="Click this to disable sharing."
|
||||
href="javascript:ajax_sharing_enabled(1, 0)"
|
||||
class="sharing_enabled_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable sharing."
|
||||
href="javascript:ajax_sharing_enabled(1, 1)"
|
||||
class="sharing_enabled_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
Is the sharing/retrieving enabled? This overrides posting/fetching.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_posting">Posting:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="posting-1">
|
||||
{if $local.posting == "1"}
|
||||
<a title="Click this to disable posting."
|
||||
href="javascript:ajax_sharing_posting(1, 0)"
|
||||
class="sharing_posting_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable posting."
|
||||
href="javascript:ajax_sharing_posting(1, 1)"
|
||||
class="sharing_posting_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
If you turn this on, this will post your comments to usenet. <br/>
|
||||
<strong>This requires posting rights to usenet!</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_fetching">Fetching:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="fetching-1">
|
||||
{if $local.fetching == "1"}
|
||||
<a title="Click this to disable fetching."
|
||||
href="javascript:ajax_sharing_fetching(1, 0)"
|
||||
class="sharing_fetching_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable fetching."
|
||||
href="javascript:ajax_sharing_fetching(1, 1)"
|
||||
class="sharing_fetching_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
If you turn this on, this will download comments from usenet.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_auto">Auto-Enable:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="auto-1">
|
||||
{if $local.auto_enable == "1"}
|
||||
<a title="Click this to disable auto-enable."
|
||||
href="javascript:ajax_sharing_auto(1, 0)" class="sharing_auto_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable auto-enable."
|
||||
href="javascript:ajax_sharing_auto(1, 1)" class="sharing_auto_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
This will auto-enable new sites as we see them.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_hide">Hide Users:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="hide-1">
|
||||
{if $local.hide_users == "1"}
|
||||
<a title="Click this to disable hiding users."
|
||||
href="javascript:ajax_sharing_hide(1, 0)" class="sharing_hide_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable hiding users."
|
||||
href="javascript:ajax_sharing_hide(1, 1)" class="sharing_hide_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
This will hide user names from being visible on remote sites.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_startposition">Backfill:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="startposition-1">
|
||||
{if $local.start_position == "1"}
|
||||
<a title="Click this to disable backfill."
|
||||
href="javascript:ajax_sharing_startposition(1, 0)"
|
||||
class="sharing_startposition_active">[DISABLE]</a>
|
||||
{else}
|
||||
<a title="Click this to enable backfill."
|
||||
href="javascript:ajax_sharing_startposition(1, 1)"
|
||||
class="sharing_startposition_deactive">[ENABLE]</a>
|
||||
{/if}
|
||||
</strong>
|
||||
When pulling the first time, or after resetting, start from the beginning of the
|
||||
group (takes more time).<br/>
|
||||
<strong>With the backfill setting it will take a few runs before you find anything
|
||||
the first time because the group has articles other than comments in
|
||||
it.</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;"><label for="sharing_reset">Reset settings:</label></td>
|
||||
<td>
|
||||
<div>
|
||||
<strong id="reset-1">
|
||||
<a href="javascript:ajax_sharing_reset(1)" class="sharing_reset"
|
||||
onclick="return confirm('Are you sure? You will lose all your settings!');">[RESET]</a>
|
||||
</strong>
|
||||
<strong>This will reset your sharing settings (if you need to change Usenet Provider
|
||||
for example).</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<input class="btn btn-default" type="submit" value="Save Settings"/>
|
||||
</form>
|
||||
<br/>
|
||||
{else}
|
||||
<p>You have not run Sharing yet, until you run it this page will contain no settings.</p>
|
||||
{/if}
|
||||
|
||||
{if $sites}
|
||||
<div style="margin-bottom:5px;">These are the remote websites we have seen so far:</div>
|
||||
{$pager}
|
||||
<div style="float:right;">
|
||||
<a href="javascript:ajax_sharing_toggle_all(1);" onclick="setTimeout('history.go(0);',700);" class="sharing_toggle_all">[Enable All]</a>
|
||||
<a href="javascript:ajax_sharing_toggle_all(0);" onclick="setTimeout('history.go(0);',700);" class="sharing_toggle_all">[Disable All]</a>
|
||||
</div>
|
||||
<table style="margin-top:5px;margin-bottom:5px;width:733px" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:22px;text-align:center;">id</th>
|
||||
<th style="width:300px;text-align:center;">Name</th>
|
||||
<th style="width:100px;text-align:center;">First seen</th>
|
||||
<th style="width:100px;text-align:center;">Last seen</th>
|
||||
<th style="width:50px;text-align:center;">Status</th>
|
||||
<th style="width:70px;text-align:center;">Comments</th>
|
||||
<th style="width:40px;text-align:center;"></th>
|
||||
</tr>
|
||||
{foreach from=$sites item=site}
|
||||
<tr id="row-{$site.id}" class="{cycle values=",alt"}">
|
||||
<td style="text-align:center;">{$site.id}</td>
|
||||
<td style="text-align:center;">{$site.site_name}</td>
|
||||
<td style="text-align:center;">{$site.first_time|timeago}</td>
|
||||
<td style="text-align:center;">{$site.last_time|timeago}</td>
|
||||
<td style="text-align:center;" id="site-{$site.id}">
|
||||
{if $site.enabled=="1"}
|
||||
<a href="javascript:ajax_sharing_site_status({$site.id}, 0)" class="sharing_site_active">Disable</a>
|
||||
{else}
|
||||
<a href="javascript:ajax_sharing_site_status({$site.id}, 1)" class="sharing_site_deactive">Enable</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td style="text-align:center;">{$site.comments}</td>
|
||||
<td style="text-align:center;">
|
||||
<a href="javascript:ajax_sharing_site_purge({$site.id})" class="sharing_site_purge" onclick="return confirm('Are you sure? This will delete all comments from this site!');">Purge</a>
|
||||
</td>
|
||||
{if $sites}
|
||||
<div style="margin-bottom:5px;">These are the remote websites we have seen so far:</div>
|
||||
{$pager}
|
||||
<div style="float:right;">
|
||||
<a href="javascript:ajax_sharing_toggle_all(1);" onclick="setTimeout('history.go(0);',700);"
|
||||
class="sharing_toggle_all">[Enable All]</a>
|
||||
<a href="javascript:ajax_sharing_toggle_all(0);" onclick="setTimeout('history.go(0);',700);"
|
||||
class="sharing_toggle_all">[Disable All]</a>
|
||||
</div>
|
||||
<table style="margin-top:5px;margin-bottom:5px;width:733px"
|
||||
class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:22px;text-align:center;">id</th>
|
||||
<th style="width:300px;text-align:center;">Name</th>
|
||||
<th style="width:100px;text-align:center;">First seen</th>
|
||||
<th style="width:100px;text-align:center;">Last seen</th>
|
||||
<th style="width:50px;text-align:center;">Status</th>
|
||||
<th style="width:70px;text-align:center;">Comments</th>
|
||||
<th style="width:40px;text-align:center;"></th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No remote sites found in your database.</p>
|
||||
{/if}
|
||||
</div>
|
||||
{foreach from=$sites item=site}
|
||||
<tr id="row-{$site.id}" class="{cycle values=",alt"}">
|
||||
<td style="text-align:center;">{$site.id}</td>
|
||||
<td style="text-align:center;">{$site.site_name}</td>
|
||||
<td style="text-align:center;">{$site.first_time|timeago}</td>
|
||||
<td style="text-align:center;">{$site.last_time|timeago}</td>
|
||||
<td style="text-align:center;" id="site-{$site.id}">
|
||||
{if $site.enabled=="1"}
|
||||
<a href="javascript:ajax_sharing_site_status({$site.id}, 0)"
|
||||
class="sharing_site_active">Disable</a>
|
||||
{else}
|
||||
<a href="javascript:ajax_sharing_site_status({$site.id}, 1)"
|
||||
class="sharing_site_deactive">Enable</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td style="text-align:center;">{$site.comments}</td>
|
||||
<td style="text-align:center;">
|
||||
<a href="javascript:ajax_sharing_site_purge({$site.id})" class="sharing_site_purge"
|
||||
onclick="return confirm('Are you sure? This will delete all comments from this site!');">Purge</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{$pager}
|
||||
{else}
|
||||
<p>No remote sites found in your database.</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,99 +1,101 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/show-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<input type="hidden" name="from" value="{$smarty.get.from}" />
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="id">Videos Id:</label></td>
|
||||
<td>
|
||||
<input id="id" class="medium" name="id" type="text" value="{$show.id}" />
|
||||
<input type="hidden" name="id" value="{$show.id}" />
|
||||
<div class="hint">The numeric Video Id. Changing this is not recommended.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tvdb">TVDB Id:</label></td>
|
||||
<td>
|
||||
<input id="tvdb" class="medium" name="tvdb" type="text" value="{$show.tvdb}" />
|
||||
<input type="hidden" name="tvdb" value="{$show.tvdb}" />
|
||||
<div class="hint">The numeric TVDB Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tvmaze">TVMaze Id:</label></td>
|
||||
<td>
|
||||
<input id="tvmaze" class="medium" name="tvmaze" type="text" value="{$show.tvmaze}" />
|
||||
<input type="hidden" name="tvmaze" value="{$show.tvmaze}" />
|
||||
<div class="hint">The numeric TVMaze Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tmdb">TMDB Id:</label></td>
|
||||
<td>
|
||||
<input id="tmdb" class="medium" name="tmdb" type="text" value="{$show.tmdb}" />
|
||||
<input type="hidden" name="tmdb" value="{$show.tmdb}" />
|
||||
<div class="hint">The numeric TMDB Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="trakt">Trakt Id:</label></td>
|
||||
<td>
|
||||
<input id="trakt" class="medium" name="trakt" type="text" value="{$show.trakt}" />
|
||||
<input type="hidden" name="trakt" value="{$show.trakt}" />
|
||||
<div class="hint">The numeric Trakt Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tvrage">TvRage Id:</label></td>
|
||||
<td>
|
||||
<input id="tvrage" class="medium" name="tvrage" type="text" value="{$show.tvrage}" />
|
||||
<input type="hidden" name="tvrage" value="{$show.tvrage}" />
|
||||
<div class="hint">The numeric TvRage Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="imdb">IMDB Id:</label></td>
|
||||
<td>
|
||||
<input id="imdb" class="medium" name="imdb" type="text" value="{$show.imdb}" />
|
||||
<input type="hidden" name="imdb" value="{$show.imdb}" />
|
||||
<div class="hint">The numeric IMDB Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Show Name:</label></td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$show.title|escape:'htmlall'}" />
|
||||
<div class="hint">The title of the TV show.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="summary">Summary:</label></td>
|
||||
<td>
|
||||
<textarea id="summary" name="summary">{$show.summary|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher:</label></td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text" value="{$show.publisher|escape:'htmlall'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><label for="countries_id">Show countries_id:</label></td>
|
||||
<td>
|
||||
<input id="countries_id" name="countries_id" type="text" value="{$show.countries_id|escape:'htmlall'}" maxlength="2" />
|
||||
<div class="hint">The countries_id for the TV show.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<h1>{$page->title}</h1>
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/show-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
|
||||
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<input type="hidden" name="from" value="{$smarty.get.from}"/>
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td><label for="id">Videos Id:</label></td>
|
||||
<td>
|
||||
<input id="id" class="medium" name="id" type="text" value="{$show.id}"/>
|
||||
<input type="hidden" name="id" value="{$show.id}"/>
|
||||
<div class="hint">The numeric Video Id. Changing this is not recommended.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tvdb">TVDB Id:</label></td>
|
||||
<td>
|
||||
<input id="tvdb" class="medium" name="tvdb" type="text" value="{$show.tvdb}"/>
|
||||
<input type="hidden" name="tvdb" value="{$show.tvdb}"/>
|
||||
<div class="hint">The numeric TVDB Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tvmaze">TVMaze Id:</label></td>
|
||||
<td>
|
||||
<input id="tvmaze" class="medium" name="tvmaze" type="text" value="{$show.tvmaze}"/>
|
||||
<input type="hidden" name="tvmaze" value="{$show.tvmaze}"/>
|
||||
<div class="hint">The numeric TVMaze Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tmdb">TMDB Id:</label></td>
|
||||
<td>
|
||||
<input id="tmdb" class="medium" name="tmdb" type="text" value="{$show.tmdb}"/>
|
||||
<input type="hidden" name="tmdb" value="{$show.tmdb}"/>
|
||||
<div class="hint">The numeric TMDB Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="trakt">Trakt Id:</label></td>
|
||||
<td>
|
||||
<input id="trakt" class="medium" name="trakt" type="text" value="{$show.trakt}"/>
|
||||
<input type="hidden" name="trakt" value="{$show.trakt}"/>
|
||||
<div class="hint">The numeric Trakt Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="tvrage">TvRage Id:</label></td>
|
||||
<td>
|
||||
<input id="tvrage" class="medium" name="tvrage" type="text" value="{$show.tvrage}"/>
|
||||
<input type="hidden" name="tvrage" value="{$show.tvrage}"/>
|
||||
<div class="hint">The numeric TvRage Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="imdb">IMDB Id:</label></td>
|
||||
<td>
|
||||
<input id="imdb" class="medium" name="imdb" type="text" value="{$show.imdb}"/>
|
||||
<input type="hidden" name="imdb" value="{$show.imdb}"/>
|
||||
<div class="hint">The numeric IMDB Show Id.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="title">Show Name:</label></td>
|
||||
<td>
|
||||
<input id="title" class="long" name="title" type="text" value="{$show.title|escape:'htmlall'}"/>
|
||||
<div class="hint">The title of the TV show.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="summary">Summary:</label></td>
|
||||
<td>
|
||||
<textarea id="summary" name="summary">{$show.summary|escape:'htmlall'}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="publisher">Publisher:</label></td>
|
||||
<td>
|
||||
<input id="publisher" class="long" name="publisher" type="text"
|
||||
value="{$show.publisher|escape:'htmlall'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><label for="countries_id">Show countries_id:</label></td>
|
||||
<td>
|
||||
<input id="countries_id" name="countries_id" type="text"
|
||||
value="{$show.countries_id|escape:'htmlall'}" maxlength="2"/>
|
||||
<div class="hint">The countries_id for the TV show.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-default" type="submit" value="Save"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,41 +1,48 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
{if $tvshowlist}
|
||||
<div style="float:right;">
|
||||
<form name="showsearch" action="">
|
||||
{{csrf_field()}}
|
||||
<label for="showname">Title</label>
|
||||
<input id="showname" type="text" name="showname" value="{$showname}" size="15" />
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go" />
|
||||
</form>
|
||||
</div>
|
||||
{$pager}
|
||||
<br/><br/>
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:50px;">videos_id</th>
|
||||
<th>title</th>
|
||||
<th style="width:80px;">date</th>
|
||||
<th style="width:80px;">source</th>
|
||||
<th style="width:100px;" class="right">options</th>
|
||||
</tr>
|
||||
{foreach from=$tvshowlist item=tvshow}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$tvshow.id}</td>
|
||||
<td><a title="Edit" href="{$smarty.const.WWW_TOP}/show-edit.php?id={$tvshow.id}">{$tvshow.title|escape:"htmlall"}</a></td>
|
||||
<td class="less">{$tvshow.started|date_format}</td>
|
||||
<td class="less">
|
||||
{if $tvshow.source == 1}tvdb
|
||||
<h1>{$page->title}</h1>
|
||||
{if $tvshowlist}
|
||||
<div style="float:right;">
|
||||
<form name="showsearch" action="">
|
||||
{{csrf_field()}}
|
||||
<label for="showname">Title</label>
|
||||
<input id="showname" type="text" name="showname" value="{$showname}" size="15"/>
|
||||
|
||||
<input class="btn btn-default" type="submit" value="Go"/>
|
||||
</form>
|
||||
</div>
|
||||
{$pager}
|
||||
<br/>
|
||||
<br/>
|
||||
<table style="width:100%;margin-top:10px;"
|
||||
class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th style="width:50px;">videos_id</th>
|
||||
<th>title</th>
|
||||
<th style="width:80px;">date</th>
|
||||
<th style="width:80px;">source</th>
|
||||
<th style="width:100px;" class="right">options</th>
|
||||
</tr>
|
||||
{foreach from=$tvshowlist item=tvshow}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td class="less">{$tvshow.id}</td>
|
||||
<td><a title="Edit"
|
||||
href="{$smarty.const.WWW_TOP}/show-edit.php?id={$tvshow.id}">{$tvshow.title|escape:"htmlall"}</a>
|
||||
</td>
|
||||
<td class="less">{$tvshow.started|date_format}</td>
|
||||
<td class="less">
|
||||
{if $tvshow.source == 1}tvdb
|
||||
{elseif $tvshow.source == 2}tvmaze
|
||||
{elseif $tvshow.source == 3}tmdb
|
||||
{/if}
|
||||
</td>
|
||||
<td class="right"><a title="delete this show entry" href="{$smarty.const.WWW_TOP}/show-delete.php?id={$tvshow.id}">delete</a> | <a title="remove this showid from all releases" href="{$smarty.const.WWW_TOP}/show-remove.php?id={$tvshow.id}">remove</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No TV Shows available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="right"><a title="delete this show entry"
|
||||
href="{$smarty.const.WWW_TOP}/show-delete.php?id={$tvshow.id}">delete</a> | <a
|
||||
title="remove this showid from all releases"
|
||||
href="{$smarty.const.WWW_TOP}/show-remove.php?id={$tvshow.id}">remove</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<p>No TV Shows available.</p>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
Removing Videos\Episode ID {$videoid} from releases:
|
||||
{if $success = true}Succeeded.{/if}
|
||||
{if $success = false}Failed.{/if}
|
||||
</div>
|
||||
<h1>{$page->title}</h1>
|
||||
Removing Videos\Episode ID {$videoid} from releases:
|
||||
{if $success = true}Succeeded.{/if}
|
||||
{if $success = false}Failed.{/if}
|
||||
</div>
|
||||
@@ -1,22 +1,23 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
<p>Below is a dump of system settings and mysql table status to assist others in debuging problems.
|
||||
Items like private 3rd party keys have been removed, however <b>*note*</b> full paths to binaries and web files
|
||||
are included - so exercise caution when <a target="null" href="https://newznab.privatepaste.com/">pasting online</a>.</p>
|
||||
<p>Below is a dump of system settings and mysql table status to assist others in debuging problems.
|
||||
Items like private 3rd party keys have been removed, however <b>*note*</b> full paths to binaries and web files
|
||||
are included - so exercise caution when <a target="null" href="https://newznab.privatepaste.com/">pasting
|
||||
online</a>.</p>
|
||||
|
||||
<textarea rows="50" cols="50" style="width:100%;height:500px;">
|
||||
<textarea rows="50" cols="50" style="width:100%;height:500px;">
|
||||
|
||||
{$site|print_r}
|
||||
|
||||
{foreach from=$mysql item=data}
|
||||
{$data.name} Index Size ({$data.indexsize|fsize_format:"MB"}) Data Size ({$data.datasize|fsize_format:"MB"})
|
||||
{/foreach}
|
||||
{foreach from=$mysql item=data}
|
||||
{$data.name} Index Size ({$data.indexsize|fsize_format:"MB"}) Data Size ({$data.datasize|fsize_format:"MB"})
|
||||
{/foreach}
|
||||
|
||||
Totalsize ({$mysqltotalsize|fsize_format:"MB"})
|
||||
Totalsize ({$mysqltotalsize|fsize_format:"MB"})
|
||||
|
||||
</textarea>
|
||||
|
||||
<br/>
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,128 +1,138 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
|
||||
{if $topgrabs|count > 0}
|
||||
<h2>Top Grabbers</h2>
|
||||
{if $topgrabs|count > 0}
|
||||
<h2>Top Grabbers</h2>
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th>Grabs</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$topgrabs item=result}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%"><a
|
||||
href="{$smarty.const.WWW_TOP}/user-edit.php?id={$result.id}">{$result.username}</a></td>
|
||||
<td>{$result.grabs}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
<br/>
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
<h2>Signups</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;"
|
||||
class="data table table-striped responsive-utilities jambo-tableSortable">
|
||||
<tr>
|
||||
<th>Month</th>
|
||||
<th>Signups</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$usersbymonth item=result}
|
||||
{assign var="totusers" value=$totusers+$result.num}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%">{$result.mth}</td>
|
||||
<td>{$result.num}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td><strong>Total</strong></td>
|
||||
<td><strong>{$totusers}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<h2>Users by Role</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;"
|
||||
class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>Role</th>
|
||||
<th>Users</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$usersbyrole item=result}
|
||||
{assign var="totrusers" value=$totrusers+$result.users_count}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%">{$result.name}</td>
|
||||
<td>{$result.users_count}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td><strong>Total</strong></td>
|
||||
<td><strong>{$totrusers}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
{if $topdownloads|count > 0}
|
||||
<h2>Top Downloads</h2>
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>Release</th>
|
||||
<th>Grabs</th>
|
||||
<th>Days Ago</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$topdownloads item=result}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%"><a
|
||||
href="{$smarty.const.WWW_TOP}/../details/{$result.guid}">{$result.searchname|escape:"htmlall"|replace:".":" "}</a>
|
||||
{if isset($isadmin)}<a href="{$smarty.const.WWW_TOP}/release-edit.php?id={$result.id}">
|
||||
[Edit]</a>{/if}</td>
|
||||
<td>{$result.grabs}</td>
|
||||
<td>{$result.adddate|timeago}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
<br/>
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
<h2>Releases Added In Last 7 Days</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th>Grabs</th>
|
||||
<th>Category</th>
|
||||
<th>Releases</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$topgrabs item=result}
|
||||
{foreach from=$recent item=result}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%"><a href="{$smarty.const.WWW_TOP}/user-edit.php?id={$result.id}">{$result.username}</a></td>
|
||||
<td>{$result.grabs}</td>
|
||||
<td width="75%">{$result->title}</td>
|
||||
<td>{$result.count}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
{/if}
|
||||
|
||||
<h2>Signups</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-tableSortable">
|
||||
<tr>
|
||||
<th>Month</th>
|
||||
<th>Signups</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$usersbymonth item=result}
|
||||
{assign var="totusers" value=$totusers+$result.num}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%">{$result.mth}</td>
|
||||
<td>{$result.num}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr><td><strong>Total</strong></td><td><strong>{$totusers}</strong></td></tr>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<h2>Users by Role</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
|
||||
<tr>
|
||||
<th>Role</th>
|
||||
<th>Users</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$usersbyrole item=result}
|
||||
{assign var="totrusers" value=$totrusers+$result.users_count}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%">{$result.name}</td>
|
||||
<td>{$result.users_count}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr><td><strong>Total</strong></td><td><strong>{$totrusers}</strong></td></tr>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
{if $topdownloads|count > 0}
|
||||
<h2>Top Downloads</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>Release</th>
|
||||
<th>Grabs</th>
|
||||
<th>Days Ago</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$topdownloads item=result}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%"><a href="{$smarty.const.WWW_TOP}/../details/{$result.guid}">{$result.searchname|escape:"htmlall"|replace:".":" "}</a>
|
||||
{if isset($isadmin)}<a href="{$smarty.const.WWW_TOP}/release-edit.php?id={$result.id}">[Edit]</a>{/if}</td>
|
||||
<td>{$result.grabs}</td>
|
||||
<td>{$result.adddate|timeago}</td>
|
||||
{if $topcomments|count > 0}
|
||||
<h2>Top Comments</h2>
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>Release</th>
|
||||
<th>Comments</th>
|
||||
<th>Days Ago</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
{foreach from=$topcomments item=result}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%"><a
|
||||
href="{$smarty.const.WWW_TOP}/../details/{$result.guid}/#comments">{$result.searchname|escape:"htmlall"|replace:".":" "}</a>
|
||||
</td>
|
||||
<td>{$result.comments}</td>
|
||||
<td>{$result.adddate|timeago}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
<br/><br/>
|
||||
{/if}
|
||||
|
||||
<h2>Releases Added In Last 7 Days</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>Category</th>
|
||||
<th>Releases</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$recent item=result}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%">{$result->title}</td>
|
||||
<td>{$result.count}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
{if $topcomments|count > 0}
|
||||
<h2>Top Comments</h2>
|
||||
|
||||
<table style="width:100%;margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th>Release</th>
|
||||
<th>Comments</th>
|
||||
<th>Days Ago</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$topcomments item=result}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="75%"><a href="{$smarty.const.WWW_TOP}/../details/{$result.guid}/#comments">{$result.searchname|escape:"htmlall"|replace:".":" "}</a></td>
|
||||
<td>{$result.comments}</td>
|
||||
<td>{$result.adddate|timeago}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,114 +1,116 @@
|
||||
<div class="well well-sm">
|
||||
<h1>{$page->title}</h1>
|
||||
{if isset($error) && $error != ''}
|
||||
<div class="error">{$error}</div>
|
||||
{/if}
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/user-list.php">Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
<h1>{$page->title}</h1>
|
||||
{if isset($error) && $error != ''}
|
||||
<div class="error">{$error}</div>
|
||||
{/if}
|
||||
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/user-list.php">Go back</a>
|
||||
<form action="{$SCRIPT_NAME}?action=submit" method="POST">
|
||||
{{csrf_field()}}
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" {if !empty($user)}value="{$user.id}"{else}{/if}/>
|
||||
<input autocomplete="off" class="long" name="username" type="text"
|
||||
{if !empty($user)}value="{$user.username}"{else}{/if}/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Email:</td>
|
||||
<td>
|
||||
<input autocomplete="off" class="long" name="email" type="text"
|
||||
{if !empty($user)}value="{$user.email}"{else}{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Password:</td>
|
||||
<td>
|
||||
<input autocomplete="off" class="long" name="password" type="password" value=""/>
|
||||
{if !empty($user.id)}
|
||||
<div class="hint">Only enter a password if you want to change it.</div>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="role">Role:</label></td>
|
||||
<td>
|
||||
{html_radios id="role" name="role" values=$role_ids output=$role_names selected=$user.role.id separator="<br />"}
|
||||
</td>
|
||||
</tr>
|
||||
{if !empty($user.id)}
|
||||
<tr>
|
||||
<td>Grabs:</td>
|
||||
<td>
|
||||
<input class="short" name="grabs" type="text" value="{$user.grabs}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Invites:</td>
|
||||
<td>
|
||||
<input class="short" name="invites" type="text" value="{$user.invites}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Movie View:</td>
|
||||
<td>
|
||||
<input name="movieview" type="checkbox" value=1 {if $user.movieview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>XXX View:</td>
|
||||
<td>
|
||||
<input name="xxxview" type="checkbox" value=1 {if $user.xxxview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Music View:</td>
|
||||
<td>
|
||||
<input name="musicview" type="checkbox" value=1 {if $user.musicview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Console View:</td>
|
||||
<td>
|
||||
<input name="consoleview" type="checkbox" value=1 {if $user.consoleview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Game View:</td>
|
||||
<td>
|
||||
<input name="gameview"
|
||||
type="checkbox"
|
||||
value=1
|
||||
{if $user.gameview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Book View:</td>
|
||||
<td>
|
||||
<input name="bookview" type="checkbox" value=1 {if $user.bookview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="role">Role change date:</label></td>
|
||||
<td>
|
||||
<input name="rolechangedate" class="form-control" type="text" style="width: 20%" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-autoclose="true" data-date-today-highlight="true" data-date-clear-btn="true" value="{$user.rolechangedate}"/>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td><label for="notes">Notes:</label></td>
|
||||
<td>
|
||||
<input id="notes" name='notes' type="text" value="{$user.notes|escape:htmlall}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-primary" type="submit" value="Save" />
|
||||
{if !empty($user.id) && $user->role->id != 2}<a class="confirm_action btn btn-danger" href="{$smarty.const.WWW_TOP}/user-delete.php?id={$user.id}">Delete user</a>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<table class="input data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
<td>
|
||||
<input type="hidden" name="id" {if !empty($user)}value="{$user.id}"{else}{/if}/>
|
||||
<input autocomplete="off" class="long" name="username" type="text"
|
||||
{if !empty($user)}value="{$user.username}"{else}{/if}/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Email:</td>
|
||||
<td>
|
||||
<input autocomplete="off" class="long" name="email" type="text"
|
||||
{if !empty($user)}value="{$user.email}"{else}{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Password:</td>
|
||||
<td>
|
||||
<input autocomplete="off" class="long" name="password" type="password" value=""/>
|
||||
{if !empty($user.id)}
|
||||
<div class="hint">Only enter a password if you want to change it.</div>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="role">Role:</label></td>
|
||||
<td>
|
||||
{html_radios id="role" name="role" values=$role_ids output=$role_names selected=$user.role.id separator="<br />"}
|
||||
</td>
|
||||
</tr>
|
||||
{if !empty($user.id)}
|
||||
<tr>
|
||||
<td>Grabs:</td>
|
||||
<td>
|
||||
<input class="short" name="grabs" type="text" value="{$user.grabs}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Invites:</td>
|
||||
<td>
|
||||
<input class="short" name="invites" type="text" value="{$user.invites}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Movie View:</td>
|
||||
<td>
|
||||
<input name="movieview" type="checkbox" value=1 {if $user.movieview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>XXX View:</td>
|
||||
<td>
|
||||
<input name="xxxview" type="checkbox" value=1 {if $user.xxxview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Music View:</td>
|
||||
<td>
|
||||
<input name="musicview" type="checkbox" value=1 {if $user.musicview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Console View:</td>
|
||||
<td>
|
||||
<input name="consoleview" type="checkbox" value=1 {if $user.consoleview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Game View:</td>
|
||||
<td>
|
||||
<input name="gameview"
|
||||
type="checkbox"
|
||||
value=1
|
||||
{if $user.gameview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Book View:</td>
|
||||
<td>
|
||||
<input name="bookview" type="checkbox" value=1 {if $user.bookview==1}checked="checked"{/if}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="role">Role change date:</label></td>
|
||||
<td>
|
||||
<input name="rolechangedate" class="form-control" type="text" style="width: 20%" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-autoclose="true" data-date-today-highlight="true" data-date-clear-btn="true" value="{$user.rolechangedate}"/>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td><label for="notes">Notes:</label></td>
|
||||
<td>
|
||||
<input id="notes" name='notes' type="text" value="{$user.notes|escape:htmlall}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input class="btn btn-primary" type="submit" value="Save"/>
|
||||
{if !empty($user.id) && $user->role->id != 2}<a class="confirm_action btn btn-danger"
|
||||
href="{$smarty.const.WWW_TOP}/user-delete.php?id={$user.id}">
|
||||
Delete user</a>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -95,7 +95,8 @@
|
||||
<td>{$user->role->name}</td>
|
||||
<td>{if !empty($user.rolechangedate)}{$user.rolechangedate}{/if}</td>
|
||||
<td>{if $user.user_roles_id !="2"}<a class="confirm_action"
|
||||
href="{$smarty.const.WWW_TOP}/user-delete.php?id={$user.id}">delete</a>{/if}
|
||||
href="{$smarty.const.WWW_TOP}/user-delete.php?id={$user.id}">
|
||||
delete</a>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
Reference in New Issue
Block a user