diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-21 08:22:31 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-21 08:22:31 +0000 |
commit | 2493e8eb48c48eeda11095406fdc22004053271a (patch) | |
tree | 8cb5106acd98e83009ac23544593bcff8d442959 | |
parent | aac50100d3e0d88d06f225cf7a1bff1131099e70 (diff) | |
download | ampache-2493e8eb48c48eeda11095406fdc22004053271a.tar.gz ampache-2493e8eb48c48eeda11095406fdc22004053271a.tar.bz2 ampache-2493e8eb48c48eeda11095406fdc22004053271a.zip |
switched the enable/disable icons and filled out the show_edit_album page, still doesnt work
-rw-r--r-- | admin/flag.php | 3 | ||||
-rw-r--r-- | images/icon_disable.png | bin | 700 -> 715 bytes | |||
-rw-r--r-- | images/icon_enable.png | bin | 782 -> 781 bytes | |||
-rw-r--r-- | templates/show_edit_album.inc.php | 17 | ||||
-rw-r--r-- | templates/show_songs.inc | 4 | ||||
-rw-r--r-- | templates/show_users.inc | 4 |
6 files changed, 24 insertions, 4 deletions
diff --git a/admin/flag.php b/admin/flag.php index 87c83405..2108b878 100644 --- a/admin/flag.php +++ b/admin/flag.php @@ -99,6 +99,9 @@ switch ($action) { // Show the page for editing a full album case 'show_edit_album': + $album = new Album($_REQUEST['album_id']); + + require_once(conf('prefix') . '/templates/show_edit_album.inc.php'); beak; // Show the page for editing a full artist diff --git a/images/icon_disable.png b/images/icon_disable.png Binary files differindex e95b8c5b..08f24936 100644 --- a/images/icon_disable.png +++ b/images/icon_disable.png diff --git a/images/icon_enable.png b/images/icon_enable.png Binary files differindex d22fde8b..89c8129a 100644 --- a/images/icon_enable.png +++ b/images/icon_enable.png diff --git a/templates/show_edit_album.inc.php b/templates/show_edit_album.inc.php index 6b6c42fa..141288b8 100644 --- a/templates/show_edit_album.inc.php +++ b/templates/show_edit_album.inc.php @@ -24,8 +24,25 @@ <form name="edit_album" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/admin/flag.php?action=edit_album"> <table class="tabledata"> <tr class="<?php echo flip_class(); ?>"> + <td><?php echo _('Name'); ?></td> + <td> + <input type="textbox" name="name" value="<?php echo scrub_out($album->artist); ?>"> + </td> +</tr> +<tr class="<?php echo flip_class(); ?>"> + <td><?php echo _('Year'); ?></td> + <td> + <input type="textbox" name="year" value="<?php echo scrub_out($album->year); ?>"> + </td> +</tr> +<tr class="<?php echo flip_class(); ?>"> <td> </td> <td> + <input type="checkbox" name="flag" value="1" checked="checked" /> <?php echo _('Flag for Retagging'); ?> + </td> +</tr> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="2"> <input type="hidden" name="album_id" value="<?php echo $album->id; ?>" /> <input type="submit" value="<?php echo _('Update Album'); ?>" /> </td> diff --git a/templates/show_songs.inc b/templates/show_songs.inc index 0fa0569c..8e3c0247 100644 --- a/templates/show_songs.inc +++ b/templates/show_songs.inc @@ -138,11 +138,11 @@ foreach ($song_ids as $song_id) { </a> | <?php if ($song->enabled) { ?> <a href="<?php echo $web_path; ?>/admin/flag.php?action=disable&song_ids=<?php echo $song->id; ?>"> - <?php echo get_user_icon('enable','disable_hover'); ?> + <?php echo get_user_icon('disable'); ?> </a> <?php } else { ?> <a href="<?php echo $web_path; ?>/admin/flag.php?action=enabled&song_ids=<?php echo $song->id; ?>"> - <?php echo get_user_icon('disable','enable_hover'); ?> + <?php echo get_user_icon('enable'); ?> </a> <?php } //status ?> <?php } //access ?> diff --git a/templates/show_users.inc b/templates/show_users.inc index 48eb11a3..6b7d3e14 100644 --- a/templates/show_users.inc +++ b/templates/show_users.inc @@ -116,10 +116,10 @@ while ($results = mysql_fetch_object($db_result)) { <?php //FIXME: Fix this for the extra permission levels if ($user->disabled == '1') { - echo "<td><a href=\"".$web_path."/admin/users.php?action=update&user=$user->username&level=enabled\">" . get_user_icon('disable','enable_hover') . "</a></td>"; + echo "<td><a href=\"".$web_path."/admin/users.php?action=update&user=$user->username&level=enabled\">" . get_user_icon('enable') . "</a></td>"; } else { - echo "<td><a href=\"".$web_path."/admin/users.php?action=update&user=$user->username&level=disabled\">" . get_user_icon('enable','disable_hover') ."</a></td>"; + echo "<td><a href=\"".$web_path."/admin/users.php?action=update&user=$user->username&level=disabled\">" . get_user_icon('disable') ."</a></td>"; } ?> <td> |