<%set book_mark = 'download'%>
<%if gossamer%>
<form action="glist.cgi" method="POST">
  <input type="hidden" name="do" value="admin_page" />
  <input type="hidden" name="pg" value="plugin_manager.html" />
  <input type="hidden" name="plugin_man_do" value="download" />
  <table border=0 width=0 align=center>
    <tr class=body>
      <td class=body>
        <%if results%>
          <p><font color="green"><%results%></font></p>
        <%endif%>
        <%if error%>
          <p><font color="red"><%error%></font></p>
        <%endif%>
        <%gossamer%>
      </td>
    </tr>
  </table>
  <%hidden_objects%>
</form>
<%else%>
  <%include include_header.html%>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="82%">
    <tr>
      <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
      <td colspan="3" height="3%" bgcolor="#E8EAD0" valign="top"><%include plugin_include_menu.html%></td>
      <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
    </tr>
    <tr>
      <td height="97%" colspan="3" valign="top">
        <table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
          <tr>
            <td><img src="<%image_url%>/pics/1pixel.gif" width="1" height="3"></td>
          </tr>
          <tr>
            <td>
              <table width="100%" border="0" cellspacing="0" cellpadding="0"  bgcolor="#336600" style="border: 1px solid #C5E1A3">
                <tr class="bold_white">
                  <td height="20"><img src="<%image_url%>/icons/plugin_download.gif" align="texttop" hspace="2" vspace="0">Add New Plugin</td>
                  <td align="right"><a href="glist.cgi?do=admin_page&pg=plugin_manager.html<%hidden_query%>"> <img src="<%image_url%>/icons/close.gif" width="17" height="16" border=0></a></td>
                </tr>
              </table><br />
              <table cellspacing="1" cellpadding="2" border=0 width=100% align=center height=60%>
                  <tr>
                    <td class=body height=10%>
                      <ul>
                        You can add new plugins either by uploading a file, downloading from a URL, or downloading straight from Gossamer Threads.
                      </ul>
                    </td>
                  <tr>
                    <td height=50% valign=middle>
                      <table border=1 width=70% cellpadding=0 cellspacing=0 align=center>
                        <tr>
                          <td>
                            <table  border=0 width=100% align=center cellpadding=2 cellspacing=3>
                              <tr class=object>
                                <td class=body bgcolor="#E6EAEE"><b><li>List Plugins on Gossamer Threads</b></td>
                              </tr>
                              <tr>
                                <td class=body align=center valign=middle><br />
                                  <%if results%>
                                    <p><font color="green"><%results%></font></p>
                                  <%endif%>
                                  <%if error%>
                                    <p><font color="red"><%error%></font></p>
                                  <%endif%>
                                  <form action="glist.cgi" method="POST">
                                    <input type="hidden" name="do" value="admin_page" />
                                    <input type="hidden" name="pg" value="plugin_manager.html" />
                                    <input type="hidden" name="plugin_man_do" value="download_gossamer" />
                                    <input type="submit" class=button value="Load Plugin(s)" />
                                    <%hidden_objects%>
                                  </form>
                                </td>
                              </tr>
                              <tr class=object>
                                <td class=body bgcolor="#E6EAEE"><b><li>Install From</b></td>
                              </tr>
                              <tr class=body>
                                <td class=body>
                                    <form action="glist.cgi" method="POST">
                                      <input type="hidden" name="do" value="admin_page" />
                                      <input type="hidden" name="pg" value="plugin_manager.html" />
                                      <input type="hidden" name="plugin_man_do" value="download_url" />
                                      <p>URL: <input type="text" name="url" size=30 class=object /><input type="submit" value="Install" class=button /></p>
                                      <%hidden_objects%>
                                    </form>
                                    <form action="glist.cgi" method="POST" enctype="multipart/form-data">
                                      <input type="hidden" name="do" value="admin_page" />
                                      <input type="hidden" name="pg" value="plugin_manager.html" />
                                      <input type="hidden" name="plugin_man_do" value="download_file" />
                                      <p>File: <input type="file" name="file" size=30 class=object /> <input type="submit" value="Install" class=button /></p>
                                      <%hidden_objects%>
                                    </form>
                                </td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <%include include_footer.html%>
<%endif%>