} #blabla if (!errors()) { // do the job // recuperer l'idRel fraichement créé http_redir('/project/view.php?id_rel=FIXME'); } } else { append_error('Malformed form, please use the correct html page'); } } ?> <h1>Add a new release to the project 'GraphTool'</h1> <?php flush_errors(); ?> <form> <table> <tr><th>Version name</th><td><input type="text" name="version" value="<?php echo isset($_GET['version']) ? $_GET['version'] : ""; ?> "/></td></tr> <tr><th>Release Date</th><td> <input type="text" name="year" size="4" />-<input type="text" name="month" size="2" />-<input type="text" name="day" size="2"></td></tr> <tr><th>Status</th><td> <select name="status"> <option selected="selected">Beta</option>
break; case '500': $short = 'Error 500 : Internal Server Error'; $long = 'The server encountered an unexpected condition which prevented it from fulfilling the request.<br/>Please contact the <a href="mailto:www@igoan.org">webmaster</a>.'; break; default: $short = 'Error'; $long = 'Your action has generated an error.'; } } header_box('Igoan :: ' . $short); ?> <div id="main"> <div class="abstract error"><?php if (errors()) { flush_errors(0); ?> <p> Your action has generated a fatal error and had been stopped. </p><?php } else { ?> <h4><?php echo $short; ?> </h4> <p><?php echo $long; ?> </p> <?php