diff options
author | mywindow <mywindow@gmail.com> | 2011-09-12 16:16:12 -0600 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2011-09-19 13:40:25 -0400 |
commit | c3b6ef7ad2e888fd228f62ed3cef6f7d55070a84 (patch) | |
tree | cecbcb95b7194c85384d1d94f2e184ecb61094c5 | |
parent | 99fd9d7fe22a8aa81b3f54c2edbcabf95e2526d4 (diff) | |
download | ampache-c3b6ef7ad2e888fd228f62ed3cef6f7d55070a84.tar.gz ampache-c3b6ef7ad2e888fd228f62ed3cef6f7d55070a84.tar.bz2 ampache-c3b6ef7ad2e888fd228f62ed3cef6f7d55070a84.zip |
Added class names to generic box names.
42 files changed, 58 insertions, 58 deletions
diff --git a/admin/catalog.php b/admin/catalog.php index 3d4e4b48..1beb6fef 100644 --- a/admin/catalog.php +++ b/admin/catalog.php @@ -243,7 +243,7 @@ switch ($_REQUEST['action']) { // Run our initial add $catalog->run_add($_POST); - show_box_top(); + show_box_top(_('Catalog Created'), 'box box_catalog_created'); echo "<h2>" . _('Catalog Created') . "</h2>"; Error::display('general'); Error::display('catalog_add'); diff --git a/admin/modules.php b/admin/modules.php index 24ebac5d..846e7b2d 100644 --- a/admin/modules.php +++ b/admin/modules.php @@ -144,13 +144,13 @@ switch ($_REQUEST['action']) { break; case 'show_plugins': $plugins = Plugin::get_plugins(); - show_box_top(_('Plugins')); + show_box_top(_('Plugins'), 'box box_localplay_plugins'); require_once Config::get('prefix') . '/templates/show_plugins.inc.php'; show_box_bottom(); break; case 'show_localplay': $controllers = Localplay::get_controllers(); - show_box_top(_('Localplay Controllers')); + show_box_top(_('Localplay Controllers'), 'box box_localplay_controllers'); require_once Config::get('prefix') . '/templates/show_localplay_controllers.inc.php'; show_box_bottom(); break; @@ -76,7 +76,7 @@ switch($_REQUEST['action']) { $object_ids = $browse->get_saved(); $keys = array_keys($object_ids); Tag::build_cache($keys); - show_box_top(_('Tag Cloud'),$class); + show_box_top(_('Tag Cloud'), 'box box_tag_cloud'); $browse2 = new Browse(); $browse2->set_type('song'); $browse2->store(); diff --git a/templates/show_access_list.inc.php b/templates/show_access_list.inc.php index f1e5c3de..0e1e687d 100644 --- a/templates/show_access_list.inc.php +++ b/templates/show_access_list.inc.php @@ -32,7 +32,7 @@ */ ?> -<?php show_box_top(_('Access Control')); ?> +<?php show_box_top(_('Access Control'), 'box box_access_control'); ?> <div id="information_actions" class="left-column"> <ul> <li> @@ -54,7 +54,7 @@ </ul> </div> <?php show_box_bottom(); ?> -<?php show_box_top(_('Access Control Entries')); ?> +<?php show_box_top(_('Access Control Entries'), 'box box_access_entries'); ?> <?php Ajax::start_container('browse_content'); ?> <?php if (count($list)) { ?> <table cellspacing="1" cellpadding="3" class="tabledata"> diff --git a/templates/show_add_access.inc.php b/templates/show_add_access.inc.php index 2fc33c5c..89f01f9a 100644 --- a/templates/show_add_access.inc.php +++ b/templates/show_add_access.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Advanced Add')); ?> +<?php show_box_top(_('Advanced Add'), 'box box_add_access'); ?> <?php Error::display('general'); ?> <form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=advanced"> <table class="tabledata" cellpadding="5" cellspacing="0"> diff --git a/templates/show_add_access_current.inc.php b/templates/show_add_access_current.inc.php index 8759ebff..ab86ec84 100644 --- a/templates/show_add_access_current.inc.php +++ b/templates/show_add_access_current.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Add Current Host')); ?> +<?php show_box_top(_('Add Current Host'), 'box box_add_access_current'); ?> <?php Error::display('general'); ?> <form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=current"> <table class="tabledata" cellpadding="5" cellspacing="0"> diff --git a/templates/show_add_access_local.inc.php b/templates/show_add_access_local.inc.php index d61d26de..81587b1a 100644 --- a/templates/show_add_access_local.inc.php +++ b/templates/show_add_access_local.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Add Local Network Definition')); ?> +<?php show_box_top(_('Add Local Network Definition'), 'box box_add_access_local'); ?> <?php Error::display('general'); ?> <form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=local"> <table class="tabledata" cellpadding="5" cellspacing="0"> diff --git a/templates/show_add_access_rpc.inc.php b/templates/show_add_access_rpc.inc.php index 6c081286..e7c2ecd8 100644 --- a/templates/show_add_access_rpc.inc.php +++ b/templates/show_add_access_rpc.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Add API / RPC Host')); ?> +<?php show_box_top(_('Add API / RPC Host'), 'box box_add_access_rpc'); ?> <?php Error::display('general'); ?> <form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=rpc"> <table class="tabledata" cellpadding="5" cellspacing="0"> diff --git a/templates/show_add_catalog.inc.php b/templates/show_add_catalog.inc.php index ed4f2054..6d4a9aad 100644 --- a/templates/show_add_catalog.inc.php +++ b/templates/show_add_catalog.inc.php @@ -29,7 +29,7 @@ $default_rename = "%a - %T - %t"; $default_sort = "%a/%A"; ?> -<?php show_box_top(_('Add a Catalog')); ?> +<?php show_box_top(_('Add a Catalog'), 'box box_add_catalog'); ?> <p><?php echo _("In the form below enter either a local path (i.e. /data/music) or the URL to a remote Ampache installation (i.e http://theotherampache.com)"); ?></p> <?php Error::display('general'); ?> <form name="update_catalog" method="post" action="<?php echo Config::get('web_path'); ?>/admin/catalog.php" enctype="multipart/form-data"> @@ -37,7 +37,7 @@ $default_sort = "%a/%A"; <tr> <td><?php echo _('Catalog Name'); ?>: </td> <td><input size="60" type="text" name="name" value="<?php echo scrub_out($_POST['name']); ?>" /></td> - <td style="vertical-align:top; font-family: monospace;" rowspan="6"> + <td style="vertical-align:top; font-family: monospace;" rowspan="6" id="patterns_example"> <strong><?php echo _('Auto-inserted Fields'); ?>:</strong><br /> %A = <?php echo _('album name'); ?><br /> %a = <?php echo _('artist name'); ?><br /> diff --git a/templates/show_add_live_stream.inc.php b/templates/show_add_live_stream.inc.php index 8c124f00..60e0fc4c 100644 --- a/templates/show_add_live_stream.inc.php +++ b/templates/show_add_live_stream.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Add Radio Station')); ?> +<?php show_box_top(_('Add Radio Station'), 'box box_add_live_stream'); ?> <form name="radio" method="post" action="<?php echo Config::get('web_path'); ?>/radio.php?action=create"> <table> <tr> diff --git a/templates/show_add_shout.inc.php b/templates/show_add_shout.inc.php index f3e36ffa..99d43390 100644 --- a/templates/show_add_shout.inc.php +++ b/templates/show_add_shout.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Post to Shoutbox')); ?> +<?php show_box_top(_('Post to Shoutbox'), 'box box_add_shout'); ?> <form method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/shout.php?action=add_shout"> <table class="tabledata" cellpadding="0" cellspacing="0"> <tr> diff --git a/templates/show_add_user.inc.php b/templates/show_add_user.inc.php index 0c6a7b66..e672876e 100644 --- a/templates/show_add_user.inc.php +++ b/templates/show_add_user.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Adding a New User')); ?> +<?php show_box_top(_('Adding a New User'), 'box box_add_user'); ?> <?php Error::display('general'); ?> <form name="add_user" enctype="multpart/form-data" method="post" action="<?php echo Config::get('web_path') . "/admin/users.php?action=add_user"; ?>"> <table class="tabledata" cellspacing="0" cellpadding="0"> diff --git a/templates/show_adds_catalog.inc.php b/templates/show_adds_catalog.inc.php index e4f0d23a..1da117a2 100644 --- a/templates/show_adds_catalog.inc.php +++ b/templates/show_adds_catalog.inc.php @@ -26,7 +26,7 @@ * @link http://www.ampache.org/ */ -show_box_top(); +show_box_top(_('Starting New Song Search'), 'box box_adds_catalog'); /* HINT: Catalog Name */ printf(_('Starting New Song Search on %s catalog'), "<strong>[ $this->name ]</strong>"); echo "<br />\n"; diff --git a/templates/show_album_art.inc.php b/templates/show_album_art.inc.php index 44f46fe1..8304d063 100644 --- a/templates/show_album_art.inc.php +++ b/templates/show_album_art.inc.php @@ -31,7 +31,7 @@ $total_images = count($images); $rows = floor($total_images/4); $i = 0; ?> -<?php show_box_top(); ?> +<?php show_box_top(_('Select New Album Art'), 'box box_album_art'); ?> <table class="table-data"> <tr> <?php diff --git a/templates/show_confirmation.inc.php b/templates/show_confirmation.inc.php index 3401b80a..0f46556e 100644 --- a/templates/show_confirmation.inc.php +++ b/templates/show_confirmation.inc.php @@ -28,7 +28,7 @@ $confirmation = Core::form_register($form_name); ?> -<?php show_box_top(scrub_out($title)); ?> +<?php show_box_top(scrub_out($title), 'box box_confirmation'); ?> <?php echo $text; ?> <br /> <form method="post" action="<?php echo $path; ?>" style="display:inline;"> diff --git a/templates/show_debug.inc.php b/templates/show_debug.inc.php index fe7bc335..3722f2d4 100644 --- a/templates/show_debug.inc.php +++ b/templates/show_debug.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Debug Tools')); ?> +<?php show_box_top(_('Debug Tools'), 'box box_debug_tools'); ?> <div id="information_actions"> <ul> <li> @@ -41,7 +41,7 @@ </ul> </div> <?php show_box_bottom(); ?> -<?php show_box_top(_('PHP Settings')); ?> +<?php show_box_top(_('PHP Settings'), 'box box_php_settings'); ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <colgroup> <col id="col_php_setting"> @@ -90,7 +90,7 @@ </table> <?php show_box_bottom(); ?> -<?php show_box_top(_('Current Configuration')); ?> +<?php show_box_top(_('Current Configuration'), 'box box_current_configuration'); ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <colgroup> <col id="col_configuration"> diff --git a/templates/show_democratic.inc.php b/templates/show_democratic.inc.php index eb5dbed5..0bac3584 100644 --- a/templates/show_democratic.inc.php +++ b/templates/show_democratic.inc.php @@ -28,7 +28,7 @@ /* HINT: Democratic Name */ $string = $democratic->is_enabled() ? sprintf(_('%s Playlist') ,$democratic->name) : _('Democratic Playlist'); -show_box_top($string); +show_box_top($string , 'info-box'); ?> <div id="information_actions"> <ul> diff --git a/templates/show_duplicate.inc.php b/templates/show_duplicate.inc.php index b24d7535..6e35cff1 100644 --- a/templates/show_duplicate.inc.php +++ b/templates/show_duplicate.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Find Duplicates')); ?> +<?php show_box_top(_('Find Duplicates'), 'box box_duplicate'); ?> <form name="duplicates" action="<?php echo Config::get('web_path'); ?>/admin/duplicates.php?action=find_duplicates" method="post" enctype="multipart/form-data" > <table cellspacing="0" cellpadding="3"> <tr> diff --git a/templates/show_edit_catalog.inc.php b/templates/show_edit_catalog.inc.php index 4b48f40f..46f196ae 100644 --- a/templates/show_edit_catalog.inc.php +++ b/templates/show_edit_catalog.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php /* HINT: Catalog Name */ show_box_top(sprintf(_('Settings for %s') , $catalog->name . ' (' . $catalog->path . ')')); ?> +<?php /* HINT: Catalog Name */ show_box_top(sprintf(_('Settings for %s') , $catalog->name . ' (' . $catalog->path . ')'), 'box box_edit_catalog'); ?> <form method="post" action="<?php echo Config::get('web_path'); ?>/admin/catalog.php" enctype="multipart/form-data"> <table cellspacing="0" cellpadding="0"> <tr> @@ -72,7 +72,7 @@ <div class="formValidation"> <input type="hidden" name="catalog_id" value="<?php echo scrub_out($catalog->id); ?>" /> <input type="hidden" name="action" value="update_catalog_settings" /> - <input type="submit" value="<?php echo _('Save Catalog Settings'); ?>" /> + <input class="button" type="submit" value="<?php echo _('Save Catalog Settings'); ?>" /> </div> </form> <?php show_box_bottom(); ?> diff --git a/templates/show_export.inc.php b/templates/show_export.inc.php index 262e967b..2ba58b4f 100644 --- a/templates/show_export.inc.php +++ b/templates/show_export.inc.php @@ -31,7 +31,7 @@ ${$name} = ' selected="selected"'; $name = 'catalog_' . $_REQUEST['export_catalog']; ${$name} = ' selected="selected"'; -show_box_top(_('Export Catalog')); ?> +show_box_top(_('Export Catalog'), 'box box_export'); ?> <form name="duplicates" action="<?php echo Config::get('web_path'); ?>/admin/export.php?action=export" method="post" enctype="multipart/form-data" > <table class="tableform" cellspacing="0" cellpadding="3"> <tr> diff --git a/templates/show_gather_art.inc.php b/templates/show_gather_art.inc.php index 2b9c920b..424b1792 100644 --- a/templates/show_gather_art.inc.php +++ b/templates/show_gather_art.inc.php @@ -26,7 +26,7 @@ * @link http://www.ampache.org/ */ -show_box_top(); +show_box_top(_('Album Art Search'), 'box box_gather_art'); echo "<strong>" . _('Starting Album Art Search') . ". . .</strong><br />\n"; echo _('Searched') . ": <span id=\"count_art_" . $catalog_id . "\">" . _('None') . "</span><br />"; echo _('Reading') . ":<span id=\"read_art_$catalog_id\"></span><br />"; diff --git a/templates/show_get_albumart.inc.php b/templates/show_get_albumart.inc.php index 56c8f8e5..46954fb7 100644 --- a/templates/show_get_albumart.inc.php +++ b/templates/show_get_albumart.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Customize Search')); ?> +<?php show_box_top(_('Customize Search'), 'box box_get_albumart'); ?> <form enctype="multipart/form-data" name="coverart" method="post" action="<?php echo Config::get('web_path'); ?>/albums.php?action=find_art&album_id=<?php echo $album->id; ?>&artist_name=<?php echo urlencode($_REQUEST['artist_name']);?>&album_name=<?php echo urlencode($_REQUEST['album_name']); ?>&cover=<?php echo urlencode($_REQUEST['cover']); ?>" style="Display:inline;"> <table> <tr> diff --git a/templates/show_import_playlist.inc.php b/templates/show_import_playlist.inc.php index 56231d20..bb5bd7c6 100644 --- a/templates/show_import_playlist.inc.php +++ b/templates/show_import_playlist.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Importing a Playlist from a File')); ?> +<?php show_box_top(_('Importing a Playlist from a File'), 'box box_import_playlist'); ?> <form method="post" name="import_playlist" action="<?php echo Config::get('web_path'); ?>/playlist.php" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0"> <tr> diff --git a/templates/show_localplay_add_instance.inc.php b/templates/show_localplay_add_instance.inc.php index d368986d..0863ddb5 100644 --- a/templates/show_localplay_add_instance.inc.php +++ b/templates/show_localplay_add_instance.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Add Localplay Instance')); ?> +<?php show_box_top(_('Add Localplay Instance'), 'box box_localplay_add_instance'); ?> <form method="post" action="<?php echo Config::get('web_path'); ?>/localplay.php?action=add_instance"> <table cellpadding="3" cellspacing="0" class="tabledata"> <?php foreach ($fields as $key=>$field) { ?> diff --git a/templates/show_localplay_edit_instance.inc.php b/templates/show_localplay_edit_instance.inc.php index 03604528..42a5dcf8 100644 --- a/templates/show_localplay_edit_instance.inc.php +++ b/templates/show_localplay_edit_instance.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Edit Localplay Instance')); ?> +<?php show_box_top(_('Edit Localplay Instance'), 'box box_localplay_edit_instance'); ?> <form method="post" action="<?php echo Config::get('web_path'); ?>/localplay.php?action=update_instance&instance=<?php echo intval($_REQUEST['instance']); ?>"> <table cellpadding="3" cellspacing="0" class="tabledata"> <?php foreach ($fields as $key=>$field) { ?> diff --git a/templates/show_localplay_instances.inc.php b/templates/show_localplay_instances.inc.php index affb08ab..c88934cc 100644 --- a/templates/show_localplay_instances.inc.php +++ b/templates/show_localplay_instances.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Show Localplay Instances')); ?> +<?php show_box_top(_('Show Localplay Instances'), 'box box_localplay_instances'); ?> <table cellpadding="3" cellspacing="0" class="tabledata"> <tr> <?php foreach ($fields as $key=>$field) { ?> diff --git a/templates/show_localplay_status.inc.php b/templates/show_localplay_status.inc.php index da5ae81a..028e442d 100644 --- a/templates/show_localplay_status.inc.php +++ b/templates/show_localplay_status.inc.php @@ -30,7 +30,7 @@ $status = $localplay->status(); $now_playing = $status['track_title'] ? $status['track_title'] . ' - ' . $status['track_album'] . ' - ' . $status['track_artist'] : ''; ?> <?php Ajax::start_container('localplay_status'); ?> -<?php show_box_top(_('Localplay Control') . ' - '. strtoupper($localplay->type)); ?> +<?php show_box_top(_('Localplay Control') . ' - '. strtoupper($localplay->type), 'box box_localplay_status'); ?> <?php echo _('Now Playing'); ?>:<i><?php echo $now_playing; ?></i> <div id="information_actions"> <ul> diff --git a/templates/show_lyrics.inc.php b/templates/show_lyrics.inc.php index c300dbdf..aa5eb34c 100644 --- a/templates/show_lyrics.inc.php +++ b/templates/show_lyrics.inc.php @@ -37,7 +37,7 @@ * @todo get lyrics from id3tag, if possible. */ /* HINT: Song Title */ -show_box_top(sprintf(_('%s Lyrics'), $song->title)); +show_box_top(sprintf(_('%s Lyrics'), $song->title), 'box box_lyrics'); ?> <table class="tabledata" cellspacing="0" cellpadding="0"> <tr> diff --git a/templates/show_lyrics_song.inc.php b/templates/show_lyrics_song.inc.php index 72908dea..b9af036f 100644 --- a/templates/show_lyrics_song.inc.php +++ b/templates/show_lyrics_song.inc.php @@ -26,7 +26,7 @@ * @link http://www.ampache.org/ */ -show_box_top($song->title); +show_box_top($song->title , 'box box_lyrics_song'); /* Prepare the variables */ $title = scrub_out(truncate_with_ellipsis($song->title)); diff --git a/templates/show_mail_users.inc.php b/templates/show_mail_users.inc.php index 13085c54..acc13fb5 100644 --- a/templates/show_mail_users.inc.php +++ b/templates/show_mail_users.inc.php @@ -28,7 +28,7 @@ ?> -<?php show_box_top(_('Send E-mail to Users')); ?> +<?php show_box_top(_('Send E-mail to Users'), 'box box_mail_users'); ?> <form name="mail" method="post" action="<?php echo Config::get('web_path'); ?>/admin/mail.php?action=send_mail" enctype="multipart/form-data"> <table> <tr> diff --git a/templates/show_manage_catalogs.inc.php b/templates/show_manage_catalogs.inc.php index 9a8160d1..4656b1d5 100644 --- a/templates/show_manage_catalogs.inc.php +++ b/templates/show_manage_catalogs.inc.php @@ -27,7 +27,7 @@ */ ?> -<?php show_box_top(_('Show Catalogs')) ?> +<?php show_box_top(_('Show Catalogs'), 'box box_manage_catalogs') ?> <div id="information_actions"> <table> <tr> diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php index 43580397..d3b647b9 100644 --- a/templates/show_now_playing_row.inc.php +++ b/templates/show_now_playing_row.inc.php @@ -31,7 +31,7 @@ $title = scrub_out(truncate_with_ellipsis($media->title)); $album = scrub_out(truncate_with_ellipsis($media->f_album_full)); $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full)); ?> -<div class="np_group"> +<div class="np_group" id="np_group_1"> <div class="np_cell cel_username"> <label><?php echo _('Username'); ?></label> <a title="<?php echo scrub_out($agent); ?>" href="<?php echo $web_path; ?>/stats.php?action=show_user&user_id=<?php echo $np_user->id; ?>"> @@ -56,7 +56,7 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full)); <?php } ?> </div> -<div class="np_group"> +<div class="np_group" id="np_group_2"> <div class="np_cell cel_song"> <label><?php echo _('Song'); ?></label> <a title="<?php echo scrub_out($media->title); ?>" href="<?php echo $web_path; ?>/stream.php?action=single_song&song_id=<?php echo $media->id; ?>"> @@ -80,7 +80,7 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full)); </div> <?php if (Art::is_enabled()) { ?> -<div class="np_group"> +<div class="np_group" id="np_group_3"> <div class="np_cell cel_albumart"> <a target="_blank" href="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&type=popup" onclick="popupWindow('<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&type=popup'); return false;"> <img align="middle" src="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&thumb=1&sid=<?php echo session_id(); ?>" alt="<?php echo scrub_out($media->f_album_full); ?>" title="<?php echo scrub_out($media->f_album_full); ?>" height="80" width="80" /> diff --git a/templates/show_random.inc.php b/templates/show_random.inc.php index fce36cb3..c2ab692e 100644 --- a/templates/show_random.inc.php +++ b/templates/show_random.inc.php @@ -27,18 +27,18 @@ */ ?> -<?php show_box_top(_('Play Random Selection')); ?> +<?php show_box_top(_('Play Random Selection'), 'box box_random'); ?> <form id="random" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/random.php?action=get_advanced&type=<?php echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song'; ?>"> <table class="tabledata" cellpadding="3" cellspacing="0"> -<tr> +<tr id="search_location"> <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=song"><?php echo _('Songs'); ?></a><?php } else { echo _('Songs'); } ?></td> <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=album"><?php echo _('Albums'); ?></a><?php } else { echo _('Albums'); } ?></td> <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=artist"><?php echo _('Artists'); ?></a><?php } else { echo _('Artists'); } ?></td> </tr> -<tr><td> </td></tr> +<tr id="search_blank_line"><td> </td></tr> </table> <table class="tabledata" cellpadding="0" cellspacing="0"> -<tr> +<tr id="search_item_count"> <td><?php echo _('Item count'); ?></td> <td> <?php $name = 'random_'; @@ -63,7 +63,7 @@ </select> </td> </tr> -<tr> +<tr id="search_length"> <td><?php echo _('Length'); ?></td> <td> <?php $name = 'length_' . intval($_POST['length']); ${$name} = ' selected="selected"'; ?> @@ -79,7 +79,7 @@ </select> </td> </tr> -<tr> +<tr id="search_size_limit"> <td><?php echo _('Size Limit'); ?></td> <td> <?php $name = 'size_' . intval($_POST['size_limit']); ${$name} = ' selected="selected"'; ?> diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php index 618254b7..be669f75 100644 --- a/templates/show_random_albums.inc.php +++ b/templates/show_random_albums.inc.php @@ -29,7 +29,7 @@ $web_path = Config::get('web_path'); $button = Ajax::button('?page=index&action=random_albums','random',_('Refresh'),'random_refresh'); ?> -<?php show_box_top(_('Albums of the Moment') . ' ' . $button); ?> +<?php show_box_top(_('Albums of the Moment') . ' ' . $button, 'box box_random_albums'); ?> <?php if ($albums) { diff --git a/templates/show_recently_played.inc.php b/templates/show_recently_played.inc.php index 13da0956..8a4da36c 100644 --- a/templates/show_recently_played.inc.php +++ b/templates/show_recently_played.inc.php @@ -29,7 +29,7 @@ /* Define the time places starting at 0 */ $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago')); $link = Config::get('use_rss') ? ' ' . AmpacheRSS::get_display('recently_played') : ''; -show_box_top(_('Recently Played') . $link); +show_box_top(_('Recently Played') . $link, 'box box_recently_played'); ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <colgroup> diff --git a/templates/show_rules.inc.php b/templates/show_rules.inc.php index e6db04cb..063c721b 100644 --- a/templates/show_rules.inc.php +++ b/templates/show_rules.inc.php @@ -27,7 +27,7 @@ <?php show_box_top(_('Rules') . "...", 'box box_rules'); ?> <table class="tabledata" cellpadding="3" cellspacing="0"> <tbody id="searchtable"> - <tr> + <tr id="rules_operator"> <td><?php echo _('Match'); ?></td> <td> <select name="operator"> @@ -36,7 +36,7 @@ </select> </td> </tr> - <tr> + <tr id="rules_addrowbutton"> <td> <a id="addrowbutton" href="javascript:void(0)"> <?php echo get_user_icon('add'); ?> diff --git a/templates/show_search.inc.php b/templates/show_search.inc.php index d9c7fcb5..e55ba308 100644 --- a/templates/show_search.inc.php +++ b/templates/show_search.inc.php @@ -34,16 +34,16 @@ <?php show_box_top(_('Search Ampache') . "...", 'box box_advanced_search'); ?> <form id="search" name="search" method="post" action="<?php echo Config::get('web_path'); ?>/search.php?type=<?php echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song'; ?>" enctype="multipart/form-data" style="Display:inline"> <table class="tabledata" cellpadding="3" cellspacing="0"> - <tr> + <tr id="search_location"> <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=song"><?php echo _('Songs'); ?></a><?php } else { echo _('Songs'); } ?></td> <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=album"><?php echo _('Albums'); ?></a><?php } else { echo _('Albums'); } ?></td> <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=artist"><?php echo _('Artists'); ?></a><?php } else { echo _('Artists'); } ?></td> <td><?php if ($_REQUEST['type'] != 'video') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=video"><?php echo _('Videos'); ?></a><?php } else { echo _('Videos'); } ?></td> </tr> - <tr><td> </td></tr> + <tr id="search_blank_line"><td> </td></tr> </table> <table class="tabledata" cellpadding="3" cellspacing="0"> - <tr> + <tr id="search_max_results"> <td><?php echo _('Maximum Results'); ?></td> <td> <select name="limit"> diff --git a/templates/show_smartplaylist.inc.php b/templates/show_smartplaylist.inc.php index 4c276ffd..adde43fa 100644 --- a/templates/show_smartplaylist.inc.php +++ b/templates/show_smartplaylist.inc.php @@ -25,7 +25,7 @@ require Config::get('prefix') . '/templates/show_smartplaylist_title.inc.php'; $title = ob_get_contents(); ob_end_clean(); show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . - '</div>'); + '</div>' , 'box box_smartplaylist'); ?> <div id="information_actions"> <ul> diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php index e753574d..f3cfd638 100644 --- a/templates/show_song.inc.php +++ b/templates/show_song.inc.php @@ -29,7 +29,7 @@ $icon = $song->enabled ? 'disable' : 'enable'; $button_flip_state_id = 'button_flip_state_' . $song->id; ?> -<?php show_box_top($song->title . ' ' . _('Details')); ?> +<?php show_box_top($song->title . ' ' . _('Details'), 'box box_song_details'); ?> <dl class="song_details"> <?php if (Config::get('ratings')) { ?> <dt class="<?php echo flip_class(); ?>"><?php echo _('Rating'); ?></dt> diff --git a/templates/show_stats.inc.php b/templates/show_stats.inc.php index 2d56981e..07f6da6f 100644 --- a/templates/show_stats.inc.php +++ b/templates/show_stats.inc.php @@ -29,7 +29,7 @@ $stats = Catalog::get_stats(); $catalogs = Catalog::get_catalogs(); ?> -<?php show_box_top(_('Statistics')); ?> +<?php show_box_top(_('Statistics'), 'box box_stats'); ?> <em><?php echo _('Catalogs'); ?></em> <table class="tabledata" cellpadding="3" cellspacing="1"> <tr class="th-top"> diff --git a/templates/show_update_items.inc.php b/templates/show_update_items.inc.php index 8e845641..c952dc41 100644 --- a/templates/show_update_items.inc.php +++ b/templates/show_update_items.inc.php @@ -26,7 +26,7 @@ * @link http://www.ampache.org/ */ -show_box_top(_('Starting Update from Tags')); +show_box_top(_('Starting Update from Tags'), 'box box_update_items'); Catalog::update_single_item($type,$object_id); ?> <br /> diff --git a/templates/show_verify_catalog.inc.php b/templates/show_verify_catalog.inc.php index 7b799797..4786c703 100644 --- a/templates/show_verify_catalog.inc.php +++ b/templates/show_verify_catalog.inc.php @@ -26,7 +26,7 @@ * @link http://www.ampache.org/ */ -show_box_top(); +show_box_top(_('Verify Catalog'), 'box box_verify_catalog'); /* HINT: Catalog Name */ printf(_('Updating the %s catalog'), "<strong>[ $this->name ]</strong>"); echo "<br />\n"; |