edit_perm_templ.php
changeset 89 61c49e66c9b0
parent 85 1687c1b107fa
child 116 cc09385a62aa
--- a/edit_perm_templ.php	Wed Mar 26 10:02:45 2008 +0000
+++ b/edit_perm_templ.php	Wed Mar 26 14:02:59 2008 +0000
@@ -38,7 +38,7 @@
 		update_perm_templ_details($_POST);	
 	}
 
-	$templ_details = get_permission_template_details($id);
+	$templ = get_permission_template_details($id);
 	$perms_templ = get_permissions_by_template_id($id);
 	$perms_avail = get_permissions_by_template_id();
 
@@ -46,18 +46,16 @@
         echo "    <form method=\"post\">\n";
 	echo "    <input type=\"hidden\" name=\"templ_id\" value=\"" . $id . "\">\n";
 
-	foreach ($templ_details as $templ) {
-		echo "     <table>\n";
-		echo "      <tr>\n";
-		echo "       <th>" . _('Name') . "</th>\n"; 
-		echo "       <td><input class=\"wide\" type=\"text\" name=\"templ_name\" value=\"" . $templ['name'] . "\"></td>\n";
-		echo "      </tr>\n";
-		echo "      <tr>\n";
-		echo "       <th>" . _('Description') . "</th>\n"; 
-		echo "       <td><input class=\"wide\" type=\"text\" name=\"templ_descr\" value=\"" . $templ['descr'] . "\"></td>\n";
-		echo "      </tr>\n";
-		echo "     </table>\n";
-	}
+	echo "     <table>\n";
+	echo "      <tr>\n";
+	echo "       <th>" . _('Name') . "</th>\n"; 
+	echo "       <td><input class=\"wide\" type=\"text\" name=\"templ_name\" value=\"" . $templ['name'] . "\"></td>\n";
+	echo "      </tr>\n";
+	echo "      <tr>\n";
+	echo "       <th>" . _('Description') . "</th>\n"; 
+	echo "       <td><input class=\"wide\" type=\"text\" name=\"templ_descr\" value=\"" . $templ['descr'] . "\"></td>\n";
+	echo "      </tr>\n";
+	echo "     </table>\n";
 
 	echo "     <table>\n";
 	echo "      <tr>\n";