def main(): """ About """ # PHCpack Web Interface Header PrintHeader(style_about) phc_login_simple() print_about() Footer_Bar() print "</body></html>\n"
def main(): """ About """ PrintHeader(style_demo) phc_login_simple() print """<p><h2>A brief introduction to PHCWeb</h2>""" print """<div class='notice'> <p>PHCpack Web Interface intends to create an intuitive user interface to solve polynomial systems.</p>""" print """<div style="text-align:center;"><img src="../imag/Path.jpg" alt="PHC Web Interface" width="400"></div>""" print """<p><b>Benefits: </b></p><ul> <li>No installation required</li> <li>We provide a computational server, hosted by fast computers</li> <li>Manage the solved polynomial systems</li> <li>Solve polynomial systems anywhere from cell phone to tablet</li> </ul>""" print """<p><b>Main functions of PHCpack Web Interface:</b></p> <ul> <li><a href="#solve">How to solve a polynomial system by PHCWeb?</a></li> <li><a href="#mypoly">How to manage my polynomial systems in PHCWeb?</a></li> </ul>""" print """</div>""" print """<h2><a name="solve" id="solve">How to solve a polynomial system by PHCWeb?</a></h2>""" print """<ol> <li style="font-size:120%">Enter your polynomial system in the textarea.</li>""" print """<div style="text-align:center; margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/poly.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">Click "Solve" button to get solutions. If the solution is large, it will take some time and you might need to click update to check the newest result.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/Solution.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">Give your system a name. Click on "Save as" to save it.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/saveas.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">If you have a similar solution with different efficients. Click on "Solve Similar", change the coefficents and use homotopy to solve your new system.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/startsystem.png" alt="PHC Web Interface"></div></ol>""" print """<h2><a name="mypoly" id="mypoly">How to manage my polynomial systems in PHCWeb?</a></h2>""" print """<ol> <li style="font-size:120%">Click "My Polynomial Systems" on the top.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/topbar.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">You have entire table of all polynomials you have solved. You can check solutions and phc report. You can also transfer solution to maple or python format.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/mypoly.png" alt="PHC Web Interface"></div></ol>""" print """</ol>""" print """</ol>""" Footer_Bar() print "</body></html>\n"
def main(): """ Form to process login. """ PrintHeader(style_contact) form = cgi.FieldStorage() infos, error = Contact_Process(form) send_gmail = 0 if not error[0]: error[0] = Contact_Email(infos) if not error[0]: send_gmail = 1 phc_login_simple() print """<html><body> <p><h2>Contact Us</h2> <form name = "contact" method = "post" action = "contact.py"> <table border="0" width = "100%"><tr>""" form_list = [['Email','login'],\ ['First Name', 'Name_First'],\ ['Last Name','Name_Last'],\ ['Organization','Org'],\ ['Subject','Subject']] for i in xrange(len(form_list)): print """<td class="reg_form">%s</td>""" % form_list[i][0] if infos[i] == '': print """<td><input type="text" name="%s" spellcheck="false" > </td></tr>""" % form_list[i][1] else: print """<td><input type = "text" name = "%s" spellcheck="false" value ="%s" ></td><td>V</td> </tr>""" % (form_list[i][1], infos[i]) # Message print """<tr><td class="reg_form" valign="top">Message</td>""" Print_JS() if infos[5] == '': print """ <td><textarea name="Message" rows = 8 onfocus="clearTextArea();">Please enter your information</textarea></td> </tr> </table>""" else: print """<td><textarea name="Message" rows = 8 >%s</textarea></td><td valign="top">V</td> </tr> </table>""" % infos[5] if send_gmail == 1: print """<p>Thank you. Your message has been sent to us. A copy of message has been forwarded to your own email address.</p> <p>We will reply to you as soon as possible.</p>""" else: # Submit bottum print """ <input type="submit" value="Submit"> </form>""" handle_error(error) Footer_Bar() print "</body></html>\n"
def main(): """ About """ PrintHeader(style_demo) phc_login_simple() print """<p><h2>A brief introduction to PHCWeb</h2>""" print """<div class='notice'> <p>PHCpack Web Interface intends to create an intuitive user interface to solve polynomial systems.</p>""" print """<div style="text-align:center;"><img src="../imag/Path.jpg" alt="PHC Web Interface" width="400"></div>""" print"""<p><b>Benefits: </b></p><ul> <li>No installation required</li> <li>We provide a computational server, hosted by fast computers</li> <li>Manage the solved polynomial systems</li> <li>Solve polynomial systems anywhere from cell phone to tablet</li> </ul>""" print"""<p><b>Main functions of PHCpack Web Interface:</b></p> <ul> <li><a href="#solve">How to solve a polynomial system by PHCWeb?</a></li> <li><a href="#mypoly">How to manage my polynomial systems in PHCWeb?</a></li> </ul>""" print """</div>""" print """<h2><a name="solve" id="solve">How to solve a polynomial system by PHCWeb?</a></h2>""" print"""<ol> <li style="font-size:120%">Enter your polynomial system in the textarea.</li>""" print """<div style="text-align:center; margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/poly.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">Click "Solve" button to get solutions. If the solution is large, it will take some time and you might need to click update to check the newest result.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/Solution.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">Give your system a name. Click on "Save as" to save it.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/saveas.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">If you have a similar solution with different efficients. Click on "Solve Similar", change the coefficents and use homotopy to solve your new system.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/startsystem.png" alt="PHC Web Interface"></div></ol>""" print """<h2><a name="mypoly" id="mypoly">How to manage my polynomial systems in PHCWeb?</a></h2>""" print"""<ol> <li style="font-size:120%">Click "My Polynomial Systems" on the top.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/topbar.png" alt="PHC Web Interface"></div>""" print """<li style="font-size:120%">You have entire table of all polynomials you have solved. You can check solutions and phc report. You can also transfer solution to maple or python format.</li>""" print """<div style="text-align:center;margin-top:15px; margin-bottom: 25px"><img src="../imag/Intro/mypoly.png" alt="PHC Web Interface"></div></ol>""" print """</ol>""" print """</ol>""" Footer_Bar() print "</body></html>\n"
def main(): """ Form to process login. """ PrintHeader(style_contact) form = cgi.FieldStorage() infos, error = Contact_Process(form) send_gmail = 0 if not error[0]: error[0] = Contact_Email(infos) if not error[0]: send_gmail = 1 phc_login_simple() print """<html><body> <p><h2>Contact Us</h2> <form name = "contact" method = "post" action = "contact.py"> <table border="0" width = "100%"><tr>""" form_list = [['Email','login'],\ ['First Name', 'Name_First'],\ ['Last Name','Name_Last'],\ ['Organization','Org'],\ ['Subject','Subject']] for i in xrange(len(form_list)): print """<td class="reg_form">%s</td>"""%form_list[i][0] if infos[i] == '': print """<td><input type="text" name="%s" spellcheck="false" > </td></tr>"""%form_list[i][1] else: print """<td><input type = "text" name = "%s" spellcheck="false" value ="%s" ></td><td>V</td> </tr>"""%(form_list[i][1],infos[i]) # Message print """<tr><td class="reg_form" valign="top">Message</td>""" Print_JS() if infos[5] == '': print """ <td><textarea name="Message" rows = 8 onfocus="clearTextArea();">Please enter your information</textarea></td> </tr> </table>""" else: print """<td><textarea name="Message" rows = 8 >%s</textarea></td><td valign="top">V</td> </tr> </table>"""% infos[5] if send_gmail == 1: print """<p>Thank you. Your message has been sent to us. A copy of message has been forwarded to your own email address.</p> <p>We will reply to you as soon as possible.</p>""" else: # Submit bottum print """ <input type="submit" value="Submit"> </form>""" handle_error(error) Footer_Bar() print "</body></html>\n"