blob: dbf1e8d4de62add70400abc62c1e1b95309409ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
<div class="floaticon">{bithelp}</div>
<div class="admin themecontrol">
<div class="header">
<h1>{tr}Theme Control Center: sections{/tr}</h1>
</div>
<div class="body">
<h2>{tr}Assign themes to sections{/tr}</h2>
<div class="navbar above">
<a href="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php">{tr}Control by Object{/tr}</a>
<a href="{$smarty.const.THEMES_PKG_URL}theme_control.php">{tr}Control by Categories{/tr}</a>
</div>
<form action="{$smarty.const.THEMES_PKG_URL}theme_control_sections.php" method="post">
<table class="panel">
<tr>
<th>{tr}Section{/tr}</th>
<th>{tr}Theme{/tr}</th>
<th> </th>
</tr>
<tr>
<td>
<select name="section">
{section name=ix loop=$sections}
<option value="{$sections[ix]|escape}">{$sections[ix]}</option>
{sectionelse}
<option>{tr}No records found{/tr}</option>
{/section}
</select>
</td>
<td>
<select name="theme">
{section name=ix loop=$styles}
<option value="{$styles[ix]|escape}">{$styles[ix]}</option>
{sectionelse}
<option>{tr}No records found{/tr}</option>
{/section}
</select>
</td>
<td>
<input type="submit" class="btn btn-default" name="assign" value="{tr}assign{/tr}" />
</td>
</tr>
</table>
</form>
<h2>{tr}Assigned sections{/tr}</h2>
<form action="{$smarty.const.THEMES_PKG_URL}theme_control_sections.php" method="post">
<table class="table data">
<tr>
<th> </th>
<th><a href="{$smarty.const.THEMES_PKG_URL}theme_control_sections.php?offset={$offset}&sort_mode={if $sort_mode eq 'section_desc'}section_asc{else}section_desc{/if}">{tr}section{/tr}</a></th>
<th><a href="{$smarty.const.THEMES_PKG_URL}theme_control_sections.php?offset={$offset}&sort_mode={if $sort_mode eq 'theme_desc'}theme_asc{else}theme_desc{/if}">{tr}theme{/tr}</a></th>
</tr>
{cycle values="even,odd" print=false}
{section name=user loop=$channels}
<tr class="{cycle}">
<td>
<input type="checkbox" name="sec[{$channels[user].section}]" />
</td>
<td>{$channels[user].section}</td>
<td>{$channels[user].theme}</td>
</tr>
{sectionelse}
<tr class="norecords"><td colspan="3">{tr}No records found{/tr}</td></tr>
{/section}
<tr><td colspan="3"><input type="submit" class="btn btn-default" name="delete" value="{tr}Delete{/tr}" /></td></tr>
</table>
</form>
</div> {* end .body *}
{include file="bitpackage:themes/theme_control_help.tpl"}
</div> {* end .themecontrol *}
|