First commit

This commit is contained in:
ebassi -
commit 3a568602da
36 changed files with 1584 additions and 0 deletions

13
adm/style/acp_tagging_body.html Executable file
View file

@ -0,0 +1,13 @@
{% INCLUDE 'overall_header.html' %}
<h1>{{ TAGGING_PAGE_TITLE }}</h1>
{% if EDIT %}
{% INCLUDE 'acp_tagging_edit.html' %}
{% elseif DELETE %}
{% INCLUDE 'acp_tagging_delete.html' %}
{% else %}
{% INCLUDE 'acp_tagging_main.html' %}
{% endif %}
{% INCLUDE 'overall_footer.html' %}

View file

@ -0,0 +1,19 @@
<form id="acp_board" method="post" action="{{ U_ACTION }}">
<fieldset>
<dl>
<center>
<strong>{{ DELETE_CONFIRMATION }}</strong>
<br>
{{ lang('ACP_TAGGING_DELETE_EXPLANATION') }}
</center>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('ACP_TAGGING_DELETE') }}" />
</p>
{{ S_FORM_TOKEN }}
</fieldset>
</form>

50
adm/style/acp_tagging_edit.html Executable file
View file

@ -0,0 +1,50 @@
<form id="acp_board" method="post" action="{{ U_ACTION }}">
<fieldset>
<dl>
<dt>
<label for="tagging_tagtitle">{{ lang('ACP_TAGGING_TAGTITLE') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TITLE_EXPLANATION') }}</span>
</dt>
<dd>
<input type="text" class="text" id="tagging_tagtitle" name="tagging_tagtitle" value="{{ EDIT_TAG_NAME }}"/>
</dd>
</dl>
<dl>
<dt>
<label for="tagging_tagcolor">{{ lang('ACP_TAGGING_TAGCOLOR') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGCOLOR_EXPLANATION') }}</span>
</dt>
<dd>
<input type="color" id="tagging_tagcolor" name="tagging_tagcolor" value="{{ TAG_COLOR }}" style="width:5%;">
</dd>
</dl>
<dl>
<dt>
<label for="tagging_tagactive">{{ lang('ACP_TAGGING_TAGACTIVE') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGACTIVE_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_tagactive" value="1" id="tagging_tagactive" {% if TAG_ACTIVE %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_tagactive" value="0" {% if not TAG_ACTIVE %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
<dl>
<dt>
<label for="tagging_tagsearchable">{{ lang('ACP_TAGGING_TAGSEARCHABLE') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGSEARCHABLE_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_tagsearchable" value="1" id="tagging_tagsearchable" {% if TAG_SEARCHABLE %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_tagsearchable" value="0" {% if not TAG_SEARCHABLE %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{{ lang('RESET') }}" />
</p>
{{ S_FORM_TOKEN }}
</fieldset>
</form>

128
adm/style/acp_tagging_main.html Executable file
View file

@ -0,0 +1,128 @@
<form id="acp_board" method="post" action="{{ U_ACTION }}">
<fieldset>
<dl>
<dt>
<label for="tagging_taglist">{{ lang('ACP_TAGGING_TAGLIST') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGLIST_EXPLANATION') }}</span>
</dt>
<dd>
<table class="zebra-table" style="width:75%">
<thead>
<tr>
<th width="50%">{{ lang('ACP_TAGGING_TAGTITLE') }}</th>
<th width="10%">{{ lang('ACP_TAGGING_COLOR') }}</th>
<th width="10%">{{ lang('ACP_TAGGING_ACTIVE') }}</th>
<th width="10%">{{ lang('ACP_TAGGING_SEARCHABLE') }}</th>
<th width="10%">{{ lang('ACP_TAGGING_EDIT') }}</th>
<th width="10%">{{ lang('ACP_TAGGING_DELETE') }}</th>
</tr>
</thead>
<tbody>
{% if loops.tag_list|length %}
{% for TAG in loops.tag_list %}
<tr>
<td>{{ TAG.TITLE }}</td>
<td style="background: {{ TAG.COLOR }}"></td>
<td>{% if TAG.ACTIVE %}{{ lang('YES') }}{% else %}{{ lang('NO') }}{% endif %}</td>
<td>{% if TAG.SEARCHABLE %}{{ lang('YES') }}{% else %}{{ lang('NO') }}{% endif %}</td>
<td><a href="{{ TAG.EDIT_LINK }}">{{ lang('ACP_TAGGING_EDIT') }}</a></td>
<td><a href="{{ TAG.DELETE_LINK }}">{{ lang('ACP_TAGGING_DELETE') }}</a></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
<br>
<a href="{{ TAGGING_ADD_TAG }}">{{ lang('ACP_TAGGING_ADDTAG') }}</a>
</dd>
</dl>
</fieldset>
<fieldset>
<legend>{{ lang('ACP_TAGGING_POSTING') }}</legend>
<dl>
<dt>
<label for="tagging_maxtags">{{ lang('ACP_TAGGING_MAXTAGS') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TITLE_MAXTAGS') }}</span>
</dt>
<dd>
<input type="number" class="number" id="tagging_maxtags" name="tagging_maxtags" value="{{ MAX_TAGS }}" min="0"/>
</dd>
</dl>
<dl>
<dt>
<label for="tagging_tagthreads">{{ lang('ACP_TAGGING_TAGTHREADS') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGTHREADS_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_tagthreads" value="1" id="tagging_tagthreads" {% if TAG_THREADS %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_tagthreads" value="0" {% if not TAG_THREADS %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
<dl>
<dt>
<label for="tagging_tagposts">{{ lang('ACP_TAGGING_TAGPOSTS') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGPOSTS_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_tagposts" value="1" id="tagging_tagposts" {% if TAG_POSTS %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_tagposts" value="0" {% if not TAG_POSTS %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
</fieldset>
<fieldset>
<legend>{{ lang('ACP_TAGGING_SEARCH') }}</legend>
<dl>
<dt>
<label for="tagging_tagsearch">{{ lang('ACP_TAGGING_TAGSEARCH') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGSEARCH_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_tagsearch" value="1" id="tagging_tagsearch" {% if TAG_SEARCH %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_tagsearch" value="0" {% if not TAG_SEARCH %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
</fieldset>
<fieldset>
<legend>{{ lang('ACP_TAGGING_DISPLAY') }}</legend>
<dl>
<dt>
<label for="tagging_tagviewforum">{{ lang('ACP_TAGGING_VIEWFORUM') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGVIEWFORUM_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_viewforum" value="1" id="tagging_viewforum" {% if TAG_VIEWFORUM %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_viewforum" value="0" {% if not TAG_VIEWFORUM %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
<dl>
<dt>
<label for="tagging_tagviewtopic">{{ lang('ACP_TAGGING_VIEWTOPIC') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGVIEWTOPIC_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_viewtopic" value="1" id="tagging_viewtopic" {% if TAG_VIEWTOPIC %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_viewtopic" value="0" {% if not TAG_VIEWTOPIC %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
<dl>
<dt>
<label for="tagging_tagresults">{{ lang('ACP_TAGGING_RESULTS') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_TAGGING_TAGRESULTS_EXPLANATION') }}</span>
</dt>
<dd>
<label><input type="radio" class="radio" name="tagging_results" value="1" id="tagging_results" {% if TAG_RESULTS %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="tagging_results" value="0" {% if not TAG_RESULTS %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dd>
</dl>
</fieldset>
<fieldset>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{{ lang('RESET') }}" />
</p>
{{ S_FORM_TOKEN }}
</fieldset>
</form>