How to add a launch page » History » Version 3
Amber Herold, 08/14/2012 03:28 PM
| 1 | 1 | Amber Herold | h1. How to add a job launch page to the Appion pipeline |
|---|---|---|---|
| 2 | |||
| 3 | h2. Add a php page with the basic appion template |
||
| 4 | |||
| 5 | <pre> |
||
| 6 | </pre> |
||
| 7 | # createForm function |
||
| 8 | ## has appion header |
||
| 9 | ## has Appion Footer |
||
| 10 | # runCommand function |
||
| 11 | ## builds command |
||
| 12 | ## calls show or submit command |
||
| 13 | |||
| 14 | h2. Add a link to the page from the menu, or an existing page |
||
| 15 | |||
| 16 | # menuprocessing.inc |
||
| 17 | 2 | Amber Herold | |
| 18 | h2. Add the guts of the form |
||
| 19 | |||
| 20 | # run parameters |
||
| 21 | ## <pre>require_once "inc/forms/runParametersForm.inc";</pre> |
||
| 22 | 3 | Amber Herold | ## <pre> |
| 23 | // add Processing Run Parameter fields |
||
| 24 | $runParametersForm = new RunParametersForm( $runname, $outdir ); |
||
| 25 | echo $runParametersForm->generateForm(); |
||
| 26 | </pre> |