Browse Source

Unstack list control icons, minor layout mods.

Nate Jones 11 years ago
parent
commit
e3dae97226
5 changed files with 42 additions and 42 deletions
  1. 7 7
      contact_addresses.php
  2. 7 5
      contact_edit.php
  3. 10 10
      contact_notes.php
  4. 7 7
      contact_phones.php
  5. 11 13
      contacts.php

+ 7 - 7
contact_addresses.php

@@ -106,8 +106,8 @@ require_once "resources/paging.php";
 	//echo th_order_by('address_longitude', $text['label-address_longitude'], $order_by, $order);
 	echo "<th>".$text['label-address_tools']."</th>\n";
 	echo th_order_by('address_description', $text['label-address_description'], $order_by, $order);
-	echo "<td align='right' width='42'>\n";
-	echo "	<a href='contact_address_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+	echo "<td class='list_control_icons'>";
+	echo 	"<a href='contact_address_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
 	echo "</td>\n";
 	echo "<tr>\n";
 
@@ -129,9 +129,9 @@ require_once "resources/paging.php";
 			echo "		<a href=\"http://maps.google.com/maps?q=".urlencode($map_query)."&hl=en\" target=\"_blank\">Map</a>&nbsp;\n";
 			echo "	</td>\n";
 			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['address_description']."&nbsp;</td>\n";
-			echo "	<td valign='top' align='right'>\n";
-			echo "		<a href='contact_address_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
-			echo "		<a href='contact_address_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
+			echo "	<td class='list_control_icons'>";
+			echo 		"<a href='contact_address_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
+			echo 		"<a href='contact_address_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
 			echo "	</td>\n";
 			echo "</tr>\n";
 			if ($c==0) { $c=1; } else { $c=0; }
@@ -145,8 +145,8 @@ require_once "resources/paging.php";
 	echo "	<tr>\n";
 	echo "		<td width='33.3%' nowrap>&nbsp;</td>\n";
 	echo "		<td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
-	echo "		<td width='33.3%' align='right'>\n";
-	echo "			<a href='contact_address_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+	echo "		<td class='list_control_icons'>";
+	echo 			"<a href='contact_address_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
 	echo "		</td>\n";
 	echo "	</tr>\n";
  	echo "	</table>\n";

+ 7 - 5
contact_edit.php

@@ -208,13 +208,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 
 //show the content
 	echo "<div align='center'>";
-	echo "<table width='100%' border='0' cellpadding='0' cellspacing=''>\n";
+	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 	echo "<tr class='border'>\n";
 	echo "	<td align=\"left\">\n";
 	echo "		<br>";
 
 	echo "<div align='center'>\n";
-	echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
+	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 	echo "<tr>\n";
 	echo "<td align='left' width='30%' nowrap='nowrap'><b>";
 	switch ($action) {
@@ -246,10 +246,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 
 	echo "<table border='0' cellpadding='3' cellspacing='3' width='100%'>\n";
 	echo "<tr>\n";
-	echo "<td width='50%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
+	echo "<td width='50%' valign='top' align='left' nowrap='nowrap'>\n";
 
 		echo "<form method='post' name='frm' action=''>\n";
-		echo "<table border='0' width='100%'>\n";
+		echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
 		echo "<tr>\n";
 		echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
 		echo "	".$text['label-contact_type'].":\n";
@@ -525,13 +525,15 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 		if ($action == "update") {
 			echo "				<input type='hidden' name='contact_uuid' value='$contact_uuid'>\n";
 		}
-		echo "				<input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
+		echo "			<br>";
+		echo "			<input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
 		echo "		</td>\n";
 		echo "	</tr>";
 		echo "</table>";
 		echo "</form>";
 
 	echo "</td>\n";
+	echo "<td>&nbsp;&nbsp;</td>";
 	echo "<td width='50%' class='' valign='top' align='center'>\n";
 		//echo "	<img src='contacts_vcard.php?id=$contact_uuid&type=image' width='90%'><br /><br />\n";
 		if ($action == "update") {

+ 10 - 10
contact_notes.php

@@ -107,10 +107,10 @@ require_once "resources/paging.php";
 		echo "<th>\n";
 		echo "	&nbsp; \n";
 		echo "</th>\n";
-		echo "<td align='right' width='42'>\n";
-		echo "	<a href='contact_note_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+		echo "<td class='list_control_icons'>";
+		echo 	"<a href='contact_note_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
 		echo "</td>\n";
-		echo "<tr>\n";
+		echo "</tr>\n";
 	}
 	else {
 		foreach($result as $row) {
@@ -130,18 +130,18 @@ require_once "resources/paging.php";
 			echo "<tr>\n";
 
 			echo "<tr >\n";
-			echo "	<td valign='top' class='".$row_style[$c]."'><br />".$contact_note."&nbsp;<br /><br /></td>\n";
+			echo "	<td valign='top' class='".$row_style[$c]."'>".$contact_note."&nbsp;</td>\n";
 			//echo "	<td valign='top' class='".$row_style[$c]."'>".$row['last_mod_date']."&nbsp;</td>\n";
 			//echo "	<td valign='top' class='".$row_style[$c]."'>".$row['last_mod_user']."&nbsp;</td>\n";
-			echo "	<td valign='top' align='right'>\n";
-			echo "		<a href='contact_note_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_note_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
-			echo "		<a href='contact_note_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_note_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
+			echo "	<td class='list_control_icons'>";
+			echo 		"<a href='contact_note_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_note_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
+			echo 		"<a href='contact_note_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_note_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
 			echo "	</td>\n";
 			echo "</tr>\n";
 
 			echo "<tr>\n";
 			echo "	<td>&nbsp;</td>\n";
-			echo "<tr>\n";
+			echo "</tr>\n";
 
 			if ($c==0) { $c=1; } else { $c=0; }
 		} //end foreach
@@ -154,8 +154,8 @@ require_once "resources/paging.php";
 	echo "	<tr>\n";
 	echo "		<td width='33.3%' nowrap>&nbsp;</td>\n";
 	echo "		<td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
-	echo "		<td width='33.3%' align='right'>\n";
-	echo "			<a href='contact_note_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+	echo "		<td class='list_control_icons'>";
+	echo 			"<a href='contact_note_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
 	echo "		</td>\n";
 	echo "	</tr>\n";
  	echo "	</table>\n";

+ 7 - 7
contact_phones.php

@@ -113,8 +113,8 @@ require_once "resources/paging.php";
 	echo th_order_by('phone_number', $text['label-phone_number'], $order_by, $order);
 	echo "<th>".$text['label-phone_tools']."</th>\n";
 	echo th_order_by('phone_description', $text['label-phone_description'], $order_by, $order);
-	echo "<td align='right' width='42'>\n";
-	echo "	<a href='contact_phone_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+	echo "<td class='list_control_icons'>";
+	echo 	"<a href='contact_phone_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
 	echo "</td>\n";
 	echo "<tr>\n";
 	if ($result_count > 0) {
@@ -132,9 +132,9 @@ require_once "resources/paging.php";
 			echo "		&nbsp;\n";
 			echo "	</td>\n";
 			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['phone_description']."&nbsp;</td>\n";
-			echo "	<td valign='top' align='right'>\n";
-			echo "		<a href='contact_phone_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_phone_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
-			echo "		<a href='contact_phone_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_phone_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
+			echo "	<td class='list_control_icons'>";
+			echo 		"<a href='contact_phone_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_phone_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
+			echo 		"<a href='contact_phone_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_phone_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
 			echo "	</td>\n";
 			echo "</tr>\n";
 			if ($c==0) { $c=1; } else { $c=0; }
@@ -148,8 +148,8 @@ require_once "resources/paging.php";
 	echo "	<tr>\n";
 	echo "		<td width='33.3%' nowrap>&nbsp;</td>\n";
 	echo "		<td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
-	echo "		<td width='33.3%' align='right'>\n";
-	echo "			<a href='contact_phone_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+	echo "		<td class='list_control_icons'>";
+	echo 			"<a href='contact_phone_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
 	echo "		</td>\n";
 	echo "	</tr>\n";
  	echo "	</table>\n";

+ 11 - 13
contacts.php

@@ -66,17 +66,15 @@ require_once "resources/paging.php";
 	echo "		<span class='title'><strong>".$text['header-contacts']."</strong></span><br>\n";
 	echo "		".$text['description-contacts']."<br /><br />\n";
 	echo "	</td>\n";
-	echo "	<form method=\"GET\" name=\"frm_search\" action=\"\">\n";
 	echo "	<td align=\"right\" valign=\"middle\">\n";
+	echo "		<form method=\"GET\" name=\"frm_search\" action=\"\">\n";
 	echo "			<input class=\"formfld\" type=\"text\" name=\"search_all\" value=\"$search_all\">\n";
 	echo "			<input class=\"btn\" type=\"submit\" name=\"submit\" value=\"".$text['button-search']."\">\n";
-	echo "	</td>\n";
-	echo "	</form>\n";
 	if (permission_exists('contact_add')) {
-		echo "	<td align=\"right\" valign=\"middle\" width=\"50px\">\n";
-		echo "		<input type='button' class='btn' name='' alt='back' onclick=\"window.location='contact_import.php'\" value='".$text['button-import']."'>\n";
-		echo "	</td>\n";
+		echo 		"<input type='button' class='btn' name='' alt='back' onclick=\"window.location='contact_import.php'\" value='".$text['button-import']."'>";
 	}
+	echo "		</form>\n";
+	echo "	</td>\n";
 	echo "	</tr>\n";
 	echo "</table>\n";
 
@@ -198,8 +196,8 @@ require_once "resources/paging.php";
 	//echo th_order_by('contact_url', $text['label-contact_url'], $order_by, $order);
 	//echo th_order_by('contact_time_zone', $text['label-contact_time_zone'], $order_by, $order);
 	//echo th_order_by('contact_note', $text['label-contact_note'], $order_by, $order);
-	echo "<td align='right' width='42'>\n";
-	echo "	<a href='contact_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+	echo "<td class='list_control_icons'>";
+	echo 	"<a href='contact_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
 	echo "</td>\n";
 	echo "<tr>\n";
 
@@ -218,9 +216,9 @@ require_once "resources/paging.php";
 			//echo "	<td valign='top' class='".$row_style[$c]."'>".$row['contact_url']."&nbsp;</td>\n";
 			//echo "	<td valign='top' class='".$row_style[$c]."'>".$row['contact_time_zone']."&nbsp;</td>\n";
 			//echo "	<td valign='top' class='".$row_style[$c]."'>".$row['contact_note']."&nbsp;</td>\n";
-			echo "	<td valign='top' align='right'>\n";
-			echo "		<a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
-			echo "		<a href='contact_delete.php?id=".$row['contact_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
+			echo "	<td class='list_control_icons'>";
+			echo 		"<a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
+			echo 		"<a href='contact_delete.php?id=".$row['contact_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
 			echo "	</td>\n";
 			echo "</tr>\n";
 			if ($c==0) { $c=1; } else { $c=0; }
@@ -234,8 +232,8 @@ require_once "resources/paging.php";
 	echo "	<tr>\n";
 	echo "		<td width='33.3%' nowrap>&nbsp;</td>\n";
 	echo "		<td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
-	echo "		<td width='33.3%' align='right'>\n";
-	echo "			<a href='contact_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
+	echo "		<td class='list_control_icons'>";
+	echo 			"<a href='contact_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
 	echo "		</td>\n";
 	echo "	</tr>\n";
  	echo "	</table>\n";