blob: 105fceb8a2b870791b77ec630a21dd5f60c5ab8a (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
<div class="floaticon">{bithelp}</div>
<div class="admin themecontrol">
<div class="header">
<h1>{tr}Theme Control Center: Objects{/tr}</h1>
</div>
<div class="body">
<h2>{tr}Assign themes to objects{/tr}</h2>
<div class="navbar above">
<a href="{$smarty.const.THEMES_PKG_URL}theme_control.php">{tr}Control by category{/tr}</a>
<a href="{$smarty.const.THEMES_PKG_URL}theme_control_sections.php">{tr}Control by Sections{/tr}</a>
</div>
<form id="objform" action="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php" method="post">
<!--<input type="submit" class="btn btn-default" name="settype" value="{tr}set{/tr}" />-->
<table class="panel">
<tr>
<th>{tr}Section{/tr}</th>
<th>{tr}Object{/tr}</th>
<th>{tr}Theme{/tr}</th>
<th> </th>
</tr>
<tr>
<td>
<select name="type" onchange="javascript:document.getElementById('objform').submit();">
{section name=ix loop=$types}
<option value="{$types[ix]|escape}" {if $type eq $types[ix]}selected="selected"{/if}>{$types[ix]}</option>
{sectionelse}
<option>{tr}No records found{/tr}</option>
{/section}
</select>
</td>
<td>
<select name="objdata">
{section name=ix loop=$objects}
<option value="{$objects[ix].obj_id|escape}|{$objects[ix].objName}">{$objects[ix].objName}</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 objects{/tr}</h2>
<table class="find">
<tr><td>{tr}Find{/tr}</td>
<td>
<form method="get" action="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php">
<input type="text" name="find" value="{$find|escape}" />
<input type="submit" class="btn btn-default" value="{tr}find{/tr}" name="search" />
<input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
</form>
</td>
</tr>
</table>
<form action="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php" method="post">
<input type="hidden" name="type" value="{$type|escape}" />
<table class="table data">
<tr>
<th> </th>
<th><a href="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php?offset={$offset}&sort_mode={if $sort_mode eq 'type_desc'}type_asc{else}type_desc{/if}">{tr}type{/tr}</a></th>
<th><a href="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php?offset={$offset}&sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}name{/tr}</a></th>
<th><a href="{$smarty.const.THEMES_PKG_URL}theme_control_objects.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="obj[{$channels[user].obj_id}]" />
</td>
<td>{$channels[user].type}</td>
<td>{$channels[user].name}</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 *}
<div class="pagination">
{if $prev_offset >= 0}
[<a href="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php?find={$find}&offset={$prev_offset}&sort_mode={$sort_mode}">{tr}prev{/tr}</a>]
{/if}
{tr}Page{/tr}: {$actual_page}/{$cant_pages}
{if $next_offset >= 0}
[<a href="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php?find={$find}&offset={$next_offset}&sort_mode={$sort_mode}">{tr}next{/tr}</a>]
{/if}
{if $gBitSystem->isFeatureActive( 'site_direct_pagination' )}
<br />
{section loop=$cant_pages name=foo}
{assign var=selector_offset value=$smarty.section.foo.index|times:"$gBitSystem->getConfig('max_recor')"}
<a href="{$smarty.const.THEMES_PKG_URL}theme_control_objects.php?tasks_use_dates={$tasks_use_dates}&find={$find}&offset={$selector_offset}&sort_mode={$sort_mode}">{$smarty.section.foo.index_next}</a>
{/section}
{/if}
</div>
{include file="bitpackage:themes/theme_control_help.tpl"}
</div> {* end .themecontrol *}
|