Revision 174
Added by ryan about 19 years ago
trunk/wb/admin/settings/index.php | ||
---|---|---|
123 | 123 |
) |
124 | 124 |
); |
125 | 125 |
|
126 |
// Insert groups into signup list
|
|
126 |
// Insert tools into tool list
|
|
127 | 127 |
$template->set_block('main_block', 'tool_list_block', 'tool_list'); |
128 | 128 |
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool'"); |
129 |
$tool_list_empty=true; |
|
130 | 129 |
if($results->numRows() > 0) { |
131 | 130 |
while($tool = $results->fetchRow()) { |
132 | 131 |
$template->set_var('TOOL_NAME', $tool['name']); |
133 | 132 |
$template->set_var('TOOL_DIR', $tool['directory']); |
133 |
$template->set_var('TOOL_DESCRIPTION', $tool['description']); |
|
134 |
$template->parse('tool_list', 'tool_list_block', true); |
|
134 | 135 |
} |
135 | 136 |
} else { |
136 |
$template->set_var('tool_list', $TEXT['NONE_FOUND']); |
|
137 |
|
|
137 |
$template->set_var('TOOL_LIST', $TEXT['NONE_FOUND']); |
|
138 | 138 |
} |
139 |
$template->parse('tool_list', 'tool_list_block', true); |
|
140 | 139 |
|
141 |
|
|
142 | 140 |
// Insert language values |
143 | 141 |
$template->set_block('main_block', 'language_list_block', 'language_list'); |
144 | 142 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language'"); |
... | ... | |
455 | 453 |
$template->set_var('SERVER_EMAIL', SERVER_EMAIL); |
456 | 454 |
|
457 | 455 |
// Insert groups into signup list |
458 |
$template->set_block('main_block', 'tool_list_block', 'tool_list');
|
|
456 |
$template->set_block('main_block', 'group_list_block', 'group_list');
|
|
459 | 457 |
$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'"); |
460 | 458 |
if($results->numRows() > 0) { |
461 | 459 |
while($group = $results->fetchRow()) { |
trunk/wb/admin/settings/template.html | ||
---|---|---|
184 | 184 |
</td> |
185 | 185 |
</tr> |
186 | 186 |
<tr> |
187 |
<td class="settfonting_name">{TEXT_SIGNUP}:</td>
|
|
187 |
<td class="setting_name">{TEXT_SIGNUP}:</td> |
|
188 | 188 |
<td class="setting_value" colspan="2"> |
189 | 189 |
<select name="frontend_signup"> |
190 | 190 |
<option value="false">{TEXT_DISABLED}</option> |
... | ... | |
542 | 542 |
</td> |
543 | 543 |
</tr> |
544 | 544 |
<tr class="advanced"> |
545 |
<td> |
|
545 |
<td colspan="3"> |
|
546 |
<ul style="margin: 0; padding: 0; margin-left: 20px; margin-bottom: 10px;"> |
|
546 | 547 |
<!-- BEGIN tool_list_block --> |
547 |
<a href="{ADMIN_URL}/settings/tool.php?tool={TOOL_DIR}">{TOOL_NAME}</a> |
|
548 |
<li style="padding-bottom: 5px;"> |
|
549 |
<a href="{ADMIN_URL}/settings/tool.php?tool={TOOL_DIR}">{TOOL_NAME}</a> |
|
550 |
<br />{TOOL_DESCRIPTION} |
|
551 |
</li> |
|
548 | 552 |
<!-- END tool_list_block --> |
553 |
</ul> |
|
549 | 554 |
{TOOL_LIST} |
550 | 555 |
</td> |
551 | 556 |
<td> |
Also available in: Unified diff
Updated tools interface