mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Bugtracker #4827 - carry through news category
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/submitnews.php,v $
|
| $Source: /cvs_backup/e107_0.8/submitnews.php,v $
|
||||||
| $Revision: 1.13 $
|
| $Revision: 1.14 $
|
||||||
| $Date: 2009-08-28 15:30:24 $
|
| $Date: 2009-09-27 21:45:09 $
|
||||||
| $Author: marj_nl_fr $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -180,10 +180,10 @@ if (!$sql->db_Select("news_category"))
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
<select name='submitnews_category' class='tbox'>";
|
<select name='cat_id' class='tbox'>";
|
||||||
while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch(MYSQL_NUM))
|
while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch(MYSQL_NUM))
|
||||||
{
|
{
|
||||||
$sel = ($_POST['submitnews_category'] == $cat_id) ? "selected='selected'" : "";
|
$sel = (varset($_POST['cat_id'],'') == $cat_id) ? "selected='selected'" : "";
|
||||||
$text .= "<option value='{$cat_id}' {$sel}>".$tp->toHTML($cat_name, FALSE, "defs")."</option>";
|
$text .= "<option value='{$cat_id}' {$sel}>".$tp->toHTML($cat_name, FALSE, "defs")."</option>";
|
||||||
}
|
}
|
||||||
$text .= "</select>";
|
$text .= "</select>";
|
||||||
|
Reference in New Issue
Block a user