#set TITLE = "Live examples .. try them now!"
#include top

#set sourceforge = 0

<center>
<h3>Welcome.. You're now using QUISP to generate dynamic content!</h3>

<table cellpadding=2><tr bgcolor=FFFFEC><td>
<li> <a href="#simple">Simple URL, HTML, cookie, and CGI form component examples</a>
<li> <a href="#shell">Shell interface demo</a>
<li> <a href="#readonlydb">Simple read-only database example using QUISP / SHSQL</a>
<li> <a href="#graphic">Dynamic data graphics example</a>
<li> <a href="#readwritedb">Database application with data entry / update, using QUISP / SHSQL</a>
<li> <a href="#mpd">Links to a real-world production web site which uses QUISP and SHSQL</a>
</td></tr></table>
<br>
<a name=simple></a>
<br>
<table cellpadding=5 cellspacing=2 width=550>


<tr bgcolor=FFFFEC><td colspan=3><b>Simple URL, HTML, cookie, and CGI form component examples</b> &nbsp;
	These can be tried now ... they don't update anything.
	Some examples use two QUISP files, one with a simple form, and the other capturing the submitted result.

<tr bgcolor=FFFFEC align=center><td>View QUISP code</td><td>Description</td><td>Try it</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=example1">simple example 1</a></nobr></td>
	<td>Simple HTML example.</td>
	<td bgcolor=FFECFF>
	<b>Try it:</b> <br>
	<a href="?rtn=example1&x=0">?rtn=example1&x=0</a> <br>
	<a href="?rtn=example1&x=1">?rtn=example1&x=1</a> <br>
	<a href="?rtn=example1">?rtn=example1</a>
	</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=example2">simple example 2</a></nobr></td>
	<td>A simple form with one &lt;input&gt; field.</td>
	<td bgcolor=FFECFF><b>Try it:</b> &nbsp; <a href="?rtn=example2&firsttime=1">?rtn=example2&firsttime=1</a></td>
	</tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=top">top</a></nobr></td>
	<td>This is the code that's included at the top of all of the example pages.
	It renders the banner, sets some environment variables, and can also log the hit.</td>
	<td bgcolor=FFECFF><b><a href="?rtn=top">Try it</a></b></td>
	</tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=cookiedemo1">cookiedemo1</a></nobr></td>
	<td>Set, get, or clear a cookie.</td>
	<td bgcolor=FFECFF><b><a href="?rtn=cookiedemo1">Try it</a></td>
	</tr>


<tr bgcolor=FFFFFF><td>
	<nobr><a href="?rtn=lister&filename=textarea1">textarea1</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=textarea1_capture">textarea1_capture</a></nobr></td>
	<td>Capturing input from a &lt;textarea&gt; field.</td>  
	<td bgcolor=FFECFF><b><a href="?rtn=textarea1">Try it</a></td>
	</tr>

<tr bgcolor=FFFFFF><td>
	<nobr><a href="?rtn=lister&filename=radiobuttons1">radiobuttons1</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=radiobuttons1_capture">radiobuttons1_capture</a></nobr> </td>
	<td>Capturing input from a set of radiobuttons.  Single choice. </td>
	<td bgcolor=FFECFF><b><a href="?rtn=radiobuttons1">Try it</a></b> <br>
	<a href="?rtn=radiobuttons1&favcolor=blue"><b>Try it</b> initialized to blue</a>
	</td></tr>

<tr bgcolor=FFFFFF><td>
	<nobr><a href="?rtn=lister&filename=allresponses1">allresponses1</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=allresponses1_capture">allresponses1_capture</a></nobr> </td>
	<td>Capturing input from a set of checkboxes.  None, one, or several can be checked. The form contains a #for loop.</td>
	<td bgcolor=FFECFF><b><a href="?rtn=allresponses1">Try it</a></b> <br>
	<a href="?rtn=allresponses1&pickedlist=box_c,box_f"><b>Try it</b> initialized to c and f</a>
	</td></tr>

<tr bgcolor=FFFFFF><td>
	<nobr><a href="?rtn=lister&filename=select1">select1</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=select1_capture">select1_capture</a></nobr> </td>
	<td>Capturing input from a single choice select option list.</td>
	<td bgcolor=FFECFF><b><a href="?rtn=select1">Try it</a></b> <br>
	<a href="?rtn=select1&choice=D"><b>Try it</b> initialized to D</a>
	</td></tr>

<tr bgcolor=FFFFFF><td>
	<nobr><a href="?rtn=lister&filename=select2">select2</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=select2_capture">select2_capture</a></nobr> </td>
	<td>Capturing input from a multiple choice select option list.</td>
	<td bgcolor=FFECFF><b><a href="?rtn=select2">Try it</a></b> <br>
	<a href="?rtn=select2&choices=D,F"><b>Try it</b> initialized to D and F</a></td>
	</tr>

<tr bgcolor=FFFFFF><td>
	<nobr><a href="?rtn=lister&filename=allresponses2">allresponses2</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=allresponses2_capture">allresponses2_capture</a></nobr> </td>
	<td>Capturing input from a set of pick lists.  The form contains a #for loop.</td>
	<td bgcolor=FFECFF><b><a href="?rtn=allresponses2">Try it</a></b></td>
	</tr>


///////////////////////////////////////////////////////
<tr bgcolor=@BCOLOR><td colspan=3>
<a name=shell></a>
<br><br></td></tr>
///////////////////////////////////////////////////////


<tr bgcolor=FFFFEC><td colspan=3><b>QUISP shell interface</b> 
	QUISP includes a powerful interface for executing other programs
	and capturing the results.
	This can be tried now ... it doesn't update anything.
	</td></tr>
<tr bgcolor=FFFFEC align=center><td>View QUISP code</td><td>Description</td><td>Try it</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=shelldemo1">shelldemo1</a></nobr></td>
	<td>Demo of QUISP's shell interface</td>
	<td bgcolor=FFECFF><b><a href="?rtn=shelldemo1">Try it</a></b></td>



///////////////////////////////////////////////////////
<tr bgcolor=@BCOLOR><td colspan=3>
<a name=readonlydb></a>
<br><br></td></tr>
///////////////////////////////////////////////////////


<tr bgcolor=FFFFEC><td colspan=3><b>Simple read-only database example using QUISP / SHSQL</b> 
	using CGI form components and SQL SELECT statements.
	This can be tried now ... it doesn't update anything.
	</td></tr>
<tr bgcolor=FFFFEC align=center><td>View QUISP code</td><td>Description</td><td>Try it</td></tr>

<tr bgcolor=FFFFFF>
	<td>
	<nobr><a href="?rtn=lister&filename=inst_list">inst_list</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=inst_details">inst_details</a></nobr><br>
	<td>Simple example for browsing institutions.</td>
	<td bgcolor=FFECFF> <b><a href="?rtn=inst_list">Try it</a></b> <br>
	</td></tr>



///////////////////////////////////////////////////////
<tr bgcolor=@BCOLOR><td colspan=3>
<a name=graphic></a>
<br><br></td></tr>
///////////////////////////////////////////////////////


<tr bgcolor=FFFFEC><td colspan=3><b>Dynamic data graphics example.</b>
	Options for getting data from a file or via SQL.
	This example doesn't update anything.
	</td></tr>

<tr bgcolor=FFFFEC align=center><td>View QUISP code</td><td>Description</td><td>Try it</td></tr>

<tr bgcolor=FFFFFF>
	<td><nobr><a href="?rtn=lister&filename=graphic1">graphic1</a></nobr><br>
	<a href="?rtn=lister&filename=graph.data&mode=generic">graph.data</a>
	</td>
	<td>Standalone dynamic graphic example.  Choose parameters and generate graphs on the fly.
	</td>
	<td bgcolor=FFECFF> <b><a href="@CGIPROG_PL?rtn=graphic1">Try it</a></b> <br>
	#if @sourceforge = 0
	  (requires setup as described on #graphic manual page)
	  </td></tr>
	  <tr bgcolor=FFFFEC><td colspan=3>
	  This example requires quisp_pl ... and set up as described on 
	  the #graphic manual page.  If the link doesn't work, check your
	  project config file, esp. the last several lines.
	#endif
	</td></tr>

///////////////////////////////////////////////////////
<tr bgcolor=@BCOLOR><td colspan=3>
<a name=readwritedb></a>
<br><br></td></tr>
///////////////////////////////////////////////////////


<tr bgcolor=FFFFEC><td colspan=3><b>Database application with data entry/update, and search, using QUISP / SHSQL</b>.
	</td></tr>
<tr bgcolor=FFFFEC align=center><td>View QUISP code</td><td>Description</td><td>Try it</td></tr>

<tr bgcolor=FFFFFF>
	<td>
	<nobr><a href="?rtn=lister&filename=art_menu">art_menu</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=art_list">art_list</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=art_details">art_details</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=art_form">art_form</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=art_saver">art_saver</a></nobr><br>
	<nobr><a href="?rtn=lister&filename=art_cancel">art_cancel</a></nobr><br>
	</td>
	<td>A database containing listings for works of art.  This example includes
	data entry, data edit, and search capabilities.  (Data entry may be disabled
	if permissions aren't set to allow update).
	<p>
	No password is required to execute updates with this example... but see the 
	"Restricting access" manual page for how 
	to set up password protection and other access restrictions.
	</td>
	<td bgcolor=FFECFF>
	  <nobr><b><a href="?rtn=art_menu">Try it</a></b></nobr>
	</td></tr>

///////////////////////////////////////////////////////
<tr bgcolor=@BCOLOR><td colspan=3>
<a name=mpd></a>
<br><br></td></tr>
///////////////////////////////////////////////////////

<tr bgcolor=FFFFEC><td colspan=3><b>Links to a real-world production application which uses QUISP and SHSQL</b>.
	<br>
	These examples perform indexed database retrievals on large tables (up to 50+ MB), produce on-demand graphics, etc.
	The QUISP code for each page is provided as a reference (but these aren't standalone examples).
	</td></tr>

<tr bgcolor=FFFFEC align=center><td>View QUISP code</td><td colspan=2>Try it</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=mpd_datamodel">mpd_datamodel</a></td>
	<td colspan=2>Try it: <a href="http://aretha.jax.org/pub-cgi/phenome/mpdcgi?rtn=datamodel/datamodel">data model / schema</a>
	</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=mpd_scanstats">mpd_scanstats</a></td>
	<td colspan=2>Try it: <a href="http://aretha.jax.org/pub-cgi/phenome/mpdcgi?rtn=views/scanstats&mode=strainheading&strainid=7&reqheading=cholesterol">scanstats</a>
	</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=mpd_multiplot">mpd_multiplot</a></td>
	<td colspan=2>Try it: <a href="http://aretha.jax.org/pub-cgi/phenome/mpdgrcgi?rtn=plots%2Fmultiplot&sl=%21-list-%21&reqprojsym=Naggert1&reqheading=&reqmeasnum=&reqsex=&gformat=&show_n_below=&ml=14304&ml=14306&ml=14305&ml=14312&ml=14316">multiplot</a>
	</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=mpd_snplist">mpd_snplist</a></td>
	<td colspan=2>Try it: <a href="http://aretha.jax.org/pub-cgi/phenome/mpdgrcgi?rtn=snp%2Flist&projid=146&chr=12&mbplo=34&mbphi=34.5&selmode=all&reqstrains=C57BL_6J&refstrain=C57BL_6J&compstrains=_129S1_SvImJ&dispstrains=all&colormode=muted&ssonly=no&insdel=no&projlist=all&gobutton2=List+SNPs">SNP list</a>
	</td></tr>

<tr bgcolor=FFFFFF><td><nobr><a href="?rtn=lister&filename=mpd_pairwise">mpd_pairwise</a></td>
	<td colspan=2>Try it: <a href="http://aretha.jax.org/pub-cgi/phenome/mpdgrcgi?rtn=plots%2Fpairwise_strains&reqprojsym=&reqheading=&projlist=&strainid=50&strainid=5&strainid=7&view=entire&logmode=no">pairwise comparison</a>
	</td></tr>

</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<img src="http://aretha.jax.org/pub-cgi/phenome/hello?page=quispexamples" border=0>
<br>

