#python
from TheMingServer import Constants, Lib3
consts = Constants()
files_dir = consts.FILES_DIR
SCRIPT = consts.CGI_NAME
# note that ming.cgi debug does not carry into pypage execution
debug = 0
lib = Lib3.Lib3(debug)

lib.prn("FILES_DIR", files_dir)

lib.set_files(["gq.response"])

write('''
<center>
<table width="75%%"><tr><td>

<h4>Speak Up</h4>

Suggestions taken.  Questions answered.  Criticism welcomed.

<form action="%s" method=post>

<h4>Your Name</h4>
<input type="text" maxlength="128" name="author" size="48" value="">

<h4>Your Comment</h4>
Title: <input type="text" maxlength="128" name="title" size="48" value="">
<p>(Length limited to about one manuscript page.)</p>
<p><textarea cols="80" name="comment_text" rows="20" wrap="soft">

</textarea>
<hr>
<h4>Submit</h4>

When you are finished, submit your comment
<input type="hidden" name="incoming" value="token">
<input type="hidden" name="file" value="gq.response">
<input type="hidden" name="page" value="sites/ming-cgi/server/open/response/result">
<input type="submit" name="submit" value="here.">
</form>

</td></tr></table>

''' % SCRIPT)
