diff --git a/e107_plugins/newsfeed/admin_config.php b/e107_plugins/newsfeed/admin_config.php index 2758b8355..6d339e7c2 100644 --- a/e107_plugins/newsfeed/admin_config.php +++ b/e107_plugins/newsfeed/admin_config.php @@ -145,7 +145,7 @@ if($action == "edit") { if($sql->select("newsfeed", "*", "newsfeed_id=$id")) { - $row = $sql->db_Fetch(); + $row = $sql->fetch(); extract($row); // FIX list($newsfeed_image, $newsfeed_showmenu, $newsfeed_showmain) = explode("::", $newsfeed_image); } @@ -155,57 +155,57 @@ else unset($newsfeed_showmenu, $newsfeed_showmain, $newsfeed_name, $newsfeed_url, $newsfeed_image, $newsfeed_description, $newsfeed_updateint, $newsfeed_active); } -$text = " -
\n - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
".LAN_NAME."".$frm->text('newsfeed_name', $newsfeed_name, '200')."
".LAN_URL."".$frm->text('newsfeed_url', $newsfeed_url, '250')."".NFLAN_10."
".NFLAN_11."".$frm->text('newsfeed_image', $newsfeed_image, '200') /* TODO imagepicker? */."".NFLAN_17."
".LAN_DESCRIPTION."".$frm->text('newsfeed_description', $newsfeed_description, '200')."".NFLAN_37."
".NFLAN_18."".$frm->number('newsfeed_updateint',($newsfeed_updateint ? $newsfeed_updateint : 3600),5)."".NFLAN_19."
".NFLAN_12.""; - $array = array(NFLAN_13,NFLAN_14,NFLAN_20,NFLAN_21); - $text .= - $frm->radio('newsfeed_active', $array, ($newsfeeed_active ? $newsfeeed_active : 0), true, NFLAN_22)." -
".NFLAN_45."".$frm->number('newsfeed_showmenu', $newsfeed_showmenu ,5)."".NFLAN_47."
".NFLAN_46."".$frm->number('newsfeed_showmain', $newsfeed_showmain ,5)."".NFLAN_47."
-
- ".$frm->admin_button(($action == "edit" ? "updateFeed" : "createFeed"),($action == "edit" ? LAN_UPDATE : LAN_CREATE),'update')." -
- ".($action == "edit" ? "" : "")." -
-"; + $text = " +
\n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
".LAN_NAME."".$frm->text('newsfeed_name', $newsfeed_name, '200')."
".LAN_URL."".$frm->text('newsfeed_url', $newsfeed_url, '250')."".NFLAN_10."
".NFLAN_11."".$frm->text('newsfeed_image', $newsfeed_image, '200') /* TODO imagepicker? */."".NFLAN_17."
".LAN_DESCRIPTION."".$frm->text('newsfeed_description', $newsfeed_description, '200')."".NFLAN_37."
".NFLAN_18."".$frm->number('newsfeed_updateint',($newsfeed_updateint ? $newsfeed_updateint : 3600),5)."".NFLAN_19."
".NFLAN_12.""; + $array = array(NFLAN_13,NFLAN_14,NFLAN_20,NFLAN_21); + $text .= + $frm->radio('newsfeed_active', $array, ($newsfeed_active ? $newsfeed_active : 0), true, NFLAN_22)." +
".NFLAN_45."".$frm->number('newsfeed_showmenu', $newsfeed_showmenu ,5)."".NFLAN_47."
".NFLAN_46."".$frm->number('newsfeed_showmain', $newsfeed_showmain ,5)."".NFLAN_47."
+
+ ".$frm->admin_button(($action == "edit" ? "updateFeed" : "createFeed"),($action == "edit" ? LAN_UPDATE : LAN_CREATE),'update')." +
+ ".($action == "edit" ? "" : "")." +
+ "; $ns->tablerender(NFLAN_09, $mes->render() . $text);