Mercurial > hg > fapweb
diff admajax.php @ 977:a1da651a2e45
Add compo notes field.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 29 Nov 2014 13:08:17 +0200 |
parents | b0a8cb63334e |
children | 678b44a20e1a |
line wrap: on
line diff
--- a/admajax.php Sat Nov 29 12:46:41 2014 +0200 +++ b/admajax.php Sat Nov 29 13:08:17 2014 +0200 @@ -154,6 +154,7 @@ " Name: ".stGetFormTextInput(40, SET_LEN_COMPO_NAME, "name", $id, $prefix, $item["name"])."<br />\n". $str1. " ".stGetFormTextArea(8, 60, "description", $id, $prefix, $item["description"])."<br />\n". + " ".stGetFormTextArea(8, 40, "notes", $id, $prefix, $item["notes"])."\n". " ".stGetFormCheckBoxInput("visible", $id, $prefix, $item["visible"], "Visible")."\n". $str2."\n". " ".stGetFormButtonInput("update", $id, $prefix, "Update", "updateCompo(".$id.")")."\n". @@ -1716,8 +1717,8 @@ if ($type == "compo" && stValidateRequestCompoData(FALSE, 0)) { $sql = stPrepareSQL( - "INSERT INTO compos (name,description,visible,voting,show_authors,preview_type) VALUES (%S,%Q,0,0,0,0)", - "name", "description"); + "INSERT INTO compos (name,description,notes,visible,voting,show_authors,preview_type) VALUES (%S,%Q,%Q,0,0,0,0)", + "name", "description", "notes"); stExecSQLCond($sql, "OK, compo added."); } @@ -1840,6 +1841,7 @@ array_merge(array( "name" => "S", "description" => "Q", + "notes" => "Q", "visible" => "B", ), $cdata));