print "<h3>Project</h3><p><select name=\"blog_proj\">"; while ($array2 = mysql_fetch_array($result2)) { $proj_id_select = $array2['proj_id']; $proj_num_select = $array2['proj_num']; $proj_name_select = $array2['proj_name']; print "<option value=\"{$proj_id_select}\""; if ($proj_id_select == $blog_proj) { print " selected"; } print ">{$proj_num_select} {$proj_name_select}</option>"; } print "</select></p>"; print "<input type=\"hidden\" value=\"" . $user_id_current . "\" name=\"blog_user\" />"; print "<input type=\"hidden\" value=\"{$blog_id}\" name=\"blog_id\" />"; } TextAreaEdit(); print "\n<h3>Entry</h3><p><textarea name=\"blog_text\" rows=\"12\" cols=\"48\">" . $blog_text . "</textarea></p>\n<p>Viewable only to me? <input type=\"checkbox\" name=\"blog_view\" value=\"1\""; if ($blog_view == "1") { print " checked "; } print " /></p><h3>Entry type</h3><p><select name=\"blog_type\">"; if ($blog_type == NULL) { $blog_type = "filenote"; } print "<option value=\"email\" "; if ($blog_type == "email") { print "selected"; } print ">Email Message</option>"; print "<option value=\"filenote\" "; if ($blog_type == "filenote") {
function EditForm($answer_id, $answer_question, $answer_ref, $answer_words, $answer_weighting, $tender_id) { TextAreaEdit(); echo "<a name=\"{$answer_id}\"></a><form action=\"index2.php?page=tender_view&tender_id={$tender_id}#{$answer_id}\" method=\"post\">\n\t\t\t\t\t<tr><td style=\"width: 10%;\" name=\"{$answer_id}\">"; echo "Ref: <br />"; echo "<input type=\"text\" name=\"answer_ref\" value=\"{$answer_ref}\" size=\"4\" required=\"required\"></td><td>"; if ($answer_id == NULL) { echo "Add question:<br />"; } else { echo "Edit question below:<br />"; } echo "<textarea style=\"width: 100%; height: 360px;\" name=\"answer_question\">{$answer_question}</textarea>\n\t\t\t\t\t<br />Words allowed: <input type=\"text\" maxlength=\"4\" name=\"answer_words\" value=\"{$answer_words}\" /> Weighting:<input type=\"text\" maxlength=\"10\" name=\"answer_weighting\" value=\"{$answer_weighting}\" /> \n\t\t\t\t\t<br /><input type=\"submit\" />\n\t\t\t\t\t<input type=\"hidden\" name=\"answer_id\" value=\"{$answer_id}\" />\n\t\t\t\t\t<input type=\"hidden\" name=\"answer_tender_id\" value=\"{$tender_id}\" />\n\t\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"tender_question_edit\" />\n\t\t\t\t\t</form>\n\t\t\t\t\t<form action=\"index2.php?page=tender_view&tender_id={$tender_id}#{$answer_id}\" method=\"post\"><input type=\"submit\" value=\"Cancel\" /></form>\n\t\t\t\t"; }