~ubuntu-branches/debian/sid/ampache/sid

« back to all changes in this revision

Viewing changes to templates/show_create_democratic.inc.php

  • Committer: Package Import Robot
  • Author(s): Charlie Smotherman
  • Date: 2013-08-27 13:19:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20130827131948-1czew0zxn6u70dtv
Tags: 3.6-rzb2752+dfsg-1
* New upsteam snapshot.  Contains important bug fixes to the installer.
* Correct typo in ampache-common.postrm.
* Remove courtousy copy of php-getid3, during repack.  Closes: #701526
* Update package to use dh_linktree to make the needed sym links to the
  needed system libs that were removed during repack.
* Update debian/rules to reflect upstreams removing/moving of modules.
* Update debian/ampache-common.install to reflect upstreams removal of files.
* Updated to use new apache2.4 API. Closes: #669756
* Updated /debian/po/de.po thx David Prévot for the patch.  Closes:  #691963
* M3U import is now ordered, fixed upstream.  Closes: #684984
* Text input area has been resized so IPv6 addresses will now fit, fixed
  upstream.  Closes:  #716230
* Added ampache-common.preinst to make sure that the courtousy copies of code
  dirs are empty so dh_linktree can do it's magic on upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
 
2
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
3
3
/**
4
 
 * Show Create Democratic
5
 
 *
6
4
 *
7
5
 * LICENSE: GNU General Public License, version 2 (GPLv2)
8
 
 * Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
 
6
 * Copyright 2001 - 2013 Ampache.org
9
7
 *
10
8
 * This program is free software; you can redistribute it and/or
11
9
 * modify it under the terms of the GNU General Public License v2
20
18
 * along with this program; if not, write to the Free Software
21
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
20
 *
23
 
 * @package     Ampache
24
 
 * @copyright   2001 - 2011 Ampache.org
25
 
 * @license     http://opensource.org/licenses/gpl-2.0 GPLv2
26
 
 * @link        http://www.ampache.org/
27
21
 */
28
22
 
29
 
show_box_top(T_('Configure Democratic Playlist')); ?>
 
23
UI::show_box_top(T_('Configure Democratic Playlist')); ?>
30
24
<form method="post" action="<?php echo Config::get('web_path'); ?>/democratic.php?action=create" enctype="multipart/form-data">
31
25
<table class="tabledata" cellspacing="0" cellpadding="0">
32
26
<tr>
33
 
        <td><?php echo T_('Name'); ?></td>
34
 
        <td><input type="text" name="name" value="<?php echo scrub_out($democratic->name); ?>" /></td>
35
 
</tr>
36
 
<tr>
37
 
        <td><?php echo T_('Base Playlist'); ?></td>
38
 
        <td><?php show_playlist_select('democratic',$democratic->base_playlist); ?></td>
39
 
</tr>
40
 
<tr>
41
 
        <td><?php echo T_('Cooldown Time'); ?></td>
42
 
        <td><input type="text" size="4" maxlength="6" name="cooldown" value="<?php echo $democratic->cooldown; ?>" /><?php echo T_('minutes'); ?></td>
 
27
    <td><?php echo T_('Name'); ?></td>
 
28
    <td><input type="text" name="name" value="<?php echo scrub_out($democratic->name); ?>" /></td>
 
29
</tr>
 
30
<tr>
 
31
    <td><?php echo T_('Base Playlist'); ?></td>
 
32
    <td><?php show_playlist_select('democratic',$democratic->base_playlist); ?></td>
 
33
</tr>
 
34
<tr>
 
35
    <td><?php echo T_('Cooldown Time'); ?></td>
 
36
    <td><input type="text" size="4" maxlength="6" name="cooldown" value="<?php echo $democratic->cooldown; ?>" /><?php echo T_('minutes'); ?></td>
43
37
</tr>
44
38
<!--
45
39
<tr>
46
 
        <td><?php echo T_('Level'); ?></td>
47
 
        <td>
48
 
                <select name="level">
 
40
    <td><?php echo T_('Level'); ?></td>
 
41
    <td>
 
42
        <select name="level">
49
43
                <option value="25"><?php echo T_('User'); ?></option>
50
44
                <option value="50"><?php echo T_('Content Manager'); ?></option>
51
45
                <option value="75"><?php echo T_('Catalog Manager'); ?></option>
53
47
                </select>
54
48
 
55
49
<tr>
56
 
        <td><?php echo T_('Make Default'); ?></td>
57
 
        <td><input type="checkbox" name="make_default" value="1" /></td>
 
50
    <td><?php echo T_('Make Default'); ?></td>
 
51
    <td><input type="checkbox" name="make_default" value="1" /></td>
58
52
</tr>
59
53
-->
60
54
<tr>
61
 
        <td><?php echo T_('Force Democratic Play'); ?></td>
62
 
        <td><input type="checkbox" value="1" name="force_democratic" /></td>
 
55
    <td><?php echo T_('Force Democratic Play'); ?></td>
 
56
    <td><input type="checkbox" value="1" name="force_democratic" /></td>
63
57
</tr>
64
58
</table>
65
59
<div class="formValidation">
66
 
                <?php echo Core::form_register('create_democratic'); ?>
67
 
                <input type="submit" value="<?php echo T_('Update'); ?>" />
 
60
        <?php echo Core::form_register('create_democratic'); ?>
 
61
        <input type="submit" value="<?php echo T_('Update'); ?>" />
68
62
</div>
69
63
</form>
70
 
<?php show_box_bottom(); ?>
 
64
<?php UI::show_box_bottom(); ?>