summaryrefslogtreecommitdiffstats
path: root/templates/show_duplicates.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-22 06:03:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-22 06:03:03 +0000
commit2d06bf58a22f52e3ca3a3d046a48862da1790a40 (patch)
treee047aa79c2b1f6eb3bf8e7da0b9614503ad8288f /templates/show_duplicates.inc.php
parentc9bf00afb1611a05b85088264cb4d42efbb8ab73 (diff)
downloadampache-2d06bf58a22f52e3ca3a3d046a48862da1790a40.tar.gz
ampache-2d06bf58a22f52e3ca3a3d046a48862da1790a40.tar.bz2
ampache-2d06bf58a22f52e3ca3a3d046a48862da1790a40.zip
new best guess duplicate logic
Diffstat (limited to 'templates/show_duplicates.inc.php')
-rw-r--r--templates/show_duplicates.inc.php35
1 files changed, 15 insertions, 20 deletions
diff --git a/templates/show_duplicates.inc.php b/templates/show_duplicates.inc.php
index 3dd839f8..cbacdf6a 100644
--- a/templates/show_duplicates.inc.php
+++ b/templates/show_duplicates.inc.php
@@ -23,32 +23,27 @@
$web_path = conf('web_path');
?>
<?php show_box_top(_('Find Duplicates')); ?>
-<form name="songs" action="<?php echo conf('web_path'); ?>/admin/duplicates.php" method="post" enctype="multipart/form-data" >
+<form name="duplicates" action="<?php echo conf('web_path'); ?>/admin/duplicates.php" method="post" enctype="multipart/form-data" >
<table cellspacing="0" cellpadding="3" border="0" width="450">
<tr>
<td valign="top"><?php echo _('Search Type'); ?>:</td>
<td>
- <?php
-
- if ($search_type=="title")
- $checked = "checked=\"checked\"";
- else
- $checked = "";
- echo "<input type=\"radio\" name=\"search_type\" value=\"title\" ".$checked." />" . _("Title") . "<br />";
-
- if ($search_type=="artist_title")
- $checked = "checked=\"checked\"";
- else
- $checked = "";
- echo "<input type=\"radio\" name=\"search_type\" value=\"artist_title\" ".$checked." />" . _("Artist and Title") . "<br />";
- if ($search_type=="artist_album_title"OR $search_type=="")
- $checked = "checked=\"checked\"";
- else
- $checked = "";
- echo "<input type=\"radio\" name=\"search_type\" value=\"artist_album_title\"".$checked." />" . _("Artist, Album and Title") . "<br />";
- ?>
+ <?php
+ $name = 'check_' . $_REQUEST['search_type'];
+ ${$name} = ' checked="checked" ';
+ ?>
+ <input type="radio" name="search_type" value="title"<?php echo $check_title; ?>/><?php echo _('Title'); ?><br />
+ <input type="radio" name="search_type" value="artist_title"<?php echo $check_artist_title; ?>/><?php echo _('Artist and Title'); ?><br />
+ <input type="radio" name="search_type" value="artist_album_title"<?php echo $check_artist_album_title; ?>/><?php echo _('Artist, Album and Title'); ?><br />
</td>
</tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td>
+ <?php if ($_REQUEST['auto']) { $auto_check = ' checked="checked"'; } ?>
+ <input type="checkbox" name="auto" value="1" <?php echo $auto_check; ?>/><?php echo _('Select Best Guess'); ?>
+ </td>
+ </tr>
<tr>
<td></td>
<td>