Beispiel #1
0
</thead>
<tbody>
<?php 
foreach ($configuration as $key => $value) {
    if ($key == 'database_password' || $key == 'mysql_password') {
        $value = '*********';
    }
    if (is_array($value)) {
        $string = '';
        foreach ($value as $setting) {
            $string .= $setting . '<br />';
        }
        $value = $string;
    }
    if (Preference::is_boolean($key)) {
        $value = print_bool($value);
    }
    ?>
<tr class="<?php 
    echo UI::flip_class();
    ?>
">
    <td valign="top"><strong><?php 
    echo $key;
    ?>
</strong></td>
    <td><?php 
    echo $value;
    ?>
</td>
</tr>
?>
 |
            <?php 
echo Ajax::text('?page=localplay&action=repeat&value=' . invert_bool($status['repeat']), print_bool(invert_bool($status['repeat'])), 'localplay_repeat');
?>
            <?php 
echo T_('Repeat');
?>
        </li>
        <li>
            <?php 
echo print_bool($status['random']);
?>
 |
            <?php 
echo Ajax::text('?page=localplay&action=random&value=' . invert_bool($status['random']), print_bool(invert_bool($status['random'])), 'localplay_random');
?>
            <?php 
echo T_('Random');
?>
        </li>
        <li>
            <?php 
echo Ajax::button('?page=localplay&action=command&command=delete_all', 'delete', T_('Clear Playlist'), 'localplay_clear_all');
echo T_('Clear Playlist');
?>
        </li>
    </ul>
</div>

<?php