mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update admin_attach_cp.php
This commit is contained in:
parent
c07a51f886
commit
aebed51f5d
@ -131,7 +131,10 @@ else if ($view == 'attachments')
|
|||||||
// Set select fields
|
// Set select fields
|
||||||
$view_types_text = array($lang['VIEW_STATISTIC'], $lang['VIEW_SEARCH']);
|
$view_types_text = array($lang['VIEW_STATISTIC'], $lang['VIEW_SEARCH']);
|
||||||
$view_types = array('stats', 'search');
|
$view_types = array('stats', 'search');
|
||||||
|
$select_view = '';
|
||||||
|
|
||||||
|
if (in_array($view, $view_types))
|
||||||
|
{
|
||||||
$select_view = '<select name="view">';
|
$select_view = '<select name="view">';
|
||||||
|
|
||||||
for($i = 0; $i < count($view_types_text); $i++)
|
for($i = 0; $i < count($view_types_text); $i++)
|
||||||
@ -140,6 +143,7 @@ for($i = 0; $i < count($view_types_text); $i++)
|
|||||||
$select_view .= '<option value="' . $view_types[$i] . '"' . $selected . '>' . $view_types_text[$i] . '</option>';
|
$select_view .= '<option value="' . $view_types[$i] . '"' . $selected . '>' . $view_types_text[$i] . '</option>';
|
||||||
}
|
}
|
||||||
$select_view .= '</select>';
|
$select_view .= '</select>';
|
||||||
|
}
|
||||||
|
|
||||||
if (count($mode_types_text) > 0)
|
if (count($mode_types_text) > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user