Hi,
ist es möglich, zusätzliche Felder in das Quick-Edit aufzunehmen?
Hintergrund: ich habe für die Google-Map zusätzliche Datenfelder in der 4images_images-Tabelle
4images_imagesimage_gmap_longitude varchar(20)
image_gmap_latitude varchar(20)
image_gmap_zoom char(2)
image_gmap_type tinyint(1)
image_gmap_show tinyint(1)
(aus dem http://www.4homepages.de/forum/index.php?topic=16533.0-MOD
Nun möchte ich diese Felder auch gern in der Quick-Edit-Listenform ändern.
Was ist zu tun??
möchte da doch nochmal weiter fragen
Habe auch diverse eigene Tabellen die ih da bearbeiten möchte.
Glaube habe soweit auch alles eingbaut, nur mit der html Kiste im php code komme ich einfach nicht weiter, ständig wird alles zerstückelt, oder woanders angezeigt.
Kann mir vielleicht jemand hier 3 bearbeitungsfelder einbauen, einfache Zeile wie bei Bildname
Felder lauten
image_bpz
image_kennung
image_serie
editbpz
editkenn
editserie
hier der html bereich wo ich nicht weiter komme (Sprachdatei schon eingefügt)
wäre klasse, wenn mir beim Schluss jemand hilft
Danke
show_form_header("images.php", "removeimage", "form");
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" align=\"center\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
if ($countimages['images'] > 0) {
echo "<tr class=\"tableseparator\">\n";
if (!$editname && !$editbpz && !$editkenn && !$editserie && !$editdescription && !$editkeywords && !$editdate) {
echo "<td class=\"tableseparator\"><input name=\"allbox\" type=\"checkbox\" onClick=\"CheckAll();\" /></td>\n";
}
echo "<td class=\"tableseparator\"> </td><td class=\"tableseparator\">".$lang['field_image_name']."</td>\n";
if ($editdescription) {
echo "<td class=\"tableseparator\">".$lang['field_description']."</td>\n";
}
if ($editbpz) {
echo "<td class=\"tableseparator\">".$lang['field_bpz']."</td>\n";
}
if ($editkenn) {
echo "<td class=\"tableseparator\">".$lang['field_kenn']."</td>\n";
}
if ($editserie) {
echo "<td class=\"tableseparator\">".$lang['field_serie']."</td>\n";
}
if ($editkeywords) {
echo "<td class=\"tableseparator\">".$lang['field_keywords']."</td>\n";
}
echo "<td class=\"tableseparator\">".$lang['field_category']."</td>\n<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_date']."</td>\n<td class=\"tableseparator\">".$lang['options']."</td>\n</tr>\n";
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_media_file, i.image_thumb_file, i.image_date, i.image_description, i.image_keywords".get_user_table_field(", u.", "user_name")."
FROM ".IMAGES_TABLE." i
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE $condition
ORDER BY $orderby $direction
LIMIT ".(($limitstart) ? $limitstart-1 : 0).", $limitnumber";
$result = $site_db->query($sql);
$i = 0;
while ($image_row = $site_db->fetch_array($result)) {
echo "<tr class=\"".get_row_bg()."\">";
if ($editname || $editbpz || $editkenn || $editserie || $editdescription || $editkeywords || $editdate) {
echo "<input type=\"hidden\" name=\"selectimages[$i]\" value=\"".$image_row['image_id']."\" />";
}
else {
echo "<td><input type=\"checkbox\" name=\"selectimages[]\" value=\"".$image_row['image_id']."\" /></td>";
}
$thumb_src = ROOT_PATH.THUMB_DIR."/".$image_row['cat_id']."/".$image_row['image_thumb_file'];
$dim = $thumbsize;
$width = $dim;
$height = $dim;
$thumb_size = get_resize2($thumb_src, $dim);
$width = $thumb_size[0];
$height = $thumb_size[1];
echo "<td align=\"center\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\" target=_blank><img src=\"".((empty($image_row['image_thumb_file'])) ? ICON_PATH."/".get_file_extension($image_row['image_media_file']).".gif" : ((is_remote($image_row['image_thumb_file'])) ? $image_row['image_thumb_file'] : $thumb_src))."\" width=\"".$width."\" height=\"".$height."\" border=\"1\" alt=\"\" /></a></td><td>";
if ($editname) {
echo "<input name=\"name[$i]\" value=\"".str_replace("\"", """, stripslashes($image_row['image_name']))."\" /><br />";
}
else {
echo "<b><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\" target=_blank>".$image_row['image_name']."</a></b> ";
}
echo "(".$image_row['image_media_file'];
if (!get_file_path($image_row['image_media_file'], "media", $image_row['cat_id'], 1, 0)) {
echo " <b class=\"marktext\">!</b>";
}
echo ")</td>\n";
if ($editdescription) {
echo "<td><textarea cols=\"$cols\" rows=\"$rows\" name=\"description[$i]\">".stripslashes($image_row['image_description'])."</textarea></td>\n";
}
if ($editkeywords) {
echo "<td><textarea cols=\"$cols\" rows=\"$rows\" name=\"keywords[$i]\">".stripslashes($image_row['image_keywords'])."</textarea></td>\n";
}
echo "<td><a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id'])."\" target=\"_blank\">".htmlspecialchars($cat_cache[$image_row['cat_id']]['cat_name'])." (ID: <b>".$image_row['cat_id']."</b>)</a></td>\n";
$show_user_name = htmlspecialchars($image_row[$user_table_fields['user_name']]);
if ($image_row['user_id'] != GUEST && empty($url_show_profile)) {
$show_user_name = "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&".URL_USER_ID."=".$image_row['user_id'])."\" target=\"_blank\">$show_user_name</a>";
}
echo "<td>".$show_user_name."</td>\n";
echo "<td>";
if ($editdate) {
echo "<input name=\"image_date[$i]\" value=\"".format_date("Y-m-d H:i:s", $image_row['image_date'])."\" /><br />yyyy-mm-dd hh:mm:ss";
}
else {
echo format_date($config['date_format'], $image_row['image_date']);
}
echo "</td>\n";
echo "<td><p>";
show_text_link($lang['edit'],"images.php?action=editimage&image_id=".$image_row['image_id'], $target);
show_text_link($lang['delete'],"images.php?action=removeimage&image_id=".$image_row['image_id'], $target);
echo "</p></td>\n";
echo "</tr>\n";
$i++;
}