edit.php
changeset 127 e2c54e888f7e
parent 126 cb06e3e29ed8
child 136 c795dd75a77e
equal deleted inserted replaced
126:cb06e3e29ed8 127:e2c54e888f7e
   111 			}
   111 			}
   112 			echo "      <td class=\"u\"><input class=\"wide\" name=\"record[" . $r['id'] . "][name]\" value=\"" . $r['name'] . "\"></td>\n";
   112 			echo "      <td class=\"u\"><input class=\"wide\" name=\"record[" . $r['id'] . "][name]\" value=\"" . $r['name'] . "\"></td>\n";
   113 			echo "      <td class=\"u\">\n";
   113 			echo "      <td class=\"u\">\n";
   114 			echo "       <select name=\"record[" . $r['id'] . "][type]\">\n";
   114 			echo "       <select name=\"record[" . $r['id'] . "][type]\">\n";
   115 			foreach (get_record_types() as $type_available) {
   115 			foreach (get_record_types() as $type_available) {
   116 				if ($type_available == $r["type"]) {
   116 				if ($type_available == $r['type']) {
   117 					$add = " SELECTED";
   117 					$add = " SELECTED";
   118 				} else {
   118 				} else {
   119 					$add = "";
   119 					$add = "";
   120 				}
   120 				}
   121 				echo "         <option" . $add . " value=\"" . $type_available . "\" >" . $type_available . "</option>\n";
   121 				echo "         <option" . $add . " value=\"" . $type_available . "\" >" . $type_available . "</option>\n";