searchtofetch
authorstephen
Wed, 02 Jun 2010 20:06:38 +0100
changeset 18 08b0c7b21035
parent 17 8485678bf435
child 19 a1ed9d6856d6
searchtofetch
details.php
--- a/details.php	Fri May 21 15:31:53 2010 +0100
+++ b/details.php	Wed Jun 02 20:06:38 2010 +0100
@@ -227,11 +227,11 @@
 	// Construct search information message
 	if ($view_mode == "public") 
 	{
-		$search_info = "There are " . mysql_num_rows($query) . " saved public searches.";
+		$search_info = "There are " . mysql_num_rows($query) . " saved public URL fetches.";
 	} else if ($view_mode == "private") {
-		$search_info = "You have " . mysql_num_rows($query) . " saved private searches.";
+		$search_info = "You have " . mysql_num_rows($query) . " saved private URL fetches.";
 	} else {
-		$search_info = "There are " . mysql_num_rows($query) . " saved searches.";
+		$search_info = "There are " . mysql_num_rows($query) . " saved URL fetches.";
 	}
 ?>
 
@@ -253,18 +253,18 @@
 		// show status messages based on user interaction
 		if ($status == "del") 
 		{
-			print "<div id='delete_alert'><span>You have successfully deleted the selected search.</span><a href='details.php'><img class='img_right' src='images/x.gif' width='14' height='20' /></a><div class='clear'></div></div>";
+			print "<div id='delete_alert'><span>You have successfully deleted the selected URL fetch.</span><a href='details.php'><img class='img_right' src='images/x.gif' width='14' height='20' /></a><div class='clear'></div></div>";
 		} else if ($status == "add")
 		{
-			print "<div id='add_alert'><span>You have successfully added a new search.</span><a href='details.php'><img class='img_right' src='images/x.gif' width='14' height='20' /></a><div class='clear'></div></div>";
+			print "<div id='add_alert'><span>You have successfully added a new URL fetch.</span><a href='details.php'><img class='img_right' src='images/x.gif' width='14' height='20' /></a><div class='clear'></div></div>";
 		} else if ($status == "urlerror") 
 		{
 			print "<div id='delete_alert'><span>You have entered an malformed url. Please use this format: <em><strong>http://www.yourwebsite.com</strong></em></span><a href='details.php'><img class='img_right' src='images/x.gif' width='14' height='20' /></a><div class='clear'></div></div>";
 		}
 	?>
     <div id="search">
-   	  <h2>Open a new search:</h2>
-        <form action="add_search.php" method="get" enctype="multipart/form-data" name="search" target="_parent">
+   	  <h2>Fetch a new URL:</h2>
+        <form action="/portal/add_search.php" method="get" enctype="multipart/form-data" name="search" target="_parent">
         <input name="search_term" type="text" value="http://www.yourwebsite.com" size="21" />
         <?php
 			// 
@@ -275,7 +275,7 @@
             	print "<option value='private'>Private</option></select>";	
 			}
 		  ?>
-          <input id="search_button" name="submit" type="submit" value="Search" />
+          <input id="search_button" name="submit" type="submit" value="Fetch" />
         </form>
     </div>
     <div id="results">
@@ -288,14 +288,14 @@
 			if ($currID != 1)
             {
                 print "<select name='view_mode' size='1'>";
-                print "<option value='private' selected>Private searches</option>";
-                print "<option value='public'>Public searches</option>";
-                print "<option value='all'>All searches</option></select> ";
+                print "<option value='all' selected>All URLs</option>";
+                print "<option value='private'>Private URLs</option>";
+                print "<option value='public'>Public URLs</option></select>";
             }
 			
 			print "<select name='view_order' size='1'>";
             print "<option value='date_desc' selected>Newest &gt; Oldest</option>";
-            print "<option value='date_asc'>Oldest &gt; Newest</option>";
+
             print "<option value='avail'>Available &gt; Pending</option> ";
 			print "<option value='pend'>Pending &gt; Available</option></select> ";
             print "<input name='submit' type='submit' value='Update view' /></form></div>";
@@ -312,7 +312,7 @@
 					print "<span class='search_txt'>Search:</span><span class='search_input'><em>" . $db_field['req_val'] . "</em></span> ";
 				} else {
 					print "<div class='search_result'><span class='result_no'>" . $search_count . "</span> ";
-					print "<span class='search_txt'>Search:</span><span class='search_input'><em>" . $db_field['req_val'] . "</em></span> ";
+					print "<span class='search_txt'>URL:</span><span class='search_input'><em>" . $db_field['req_val'] . "</em></span> ";
 				}
 				
   				print "<span class='results_txt'>Status:</span>";
@@ -365,7 +365,7 @@
             // if no requests, display message
             if (mysql_num_rows($query) < 1) 
             {
-                print '<p>You have no previous searches please use the search form to create a new search.</p>';
+                print '<p>You have no previous URL fetches please use the form to create a new URL fetch.</p>';
             }
             
             mysql_close();