. // web interface for creating an app or app version // // contributor: Natalia Nikitina require_once("../inc/util.inc"); function handle_create_form() { global $project, $auth; page_head("Create app"); echo " This form lets you specify parameters for a new application.

"; start_table(); row2("Application name", ""); row2("Replication level", ""); row2("Beta flag", ""); row2("Validator", ""); end_table(); start_table(); row2("Version number", ""); //Get list of registered platforms //--- //(tested on a local server) $link = mysql_connect("localhost","boincadm","") or die("Could not connect: " . mysql_error()); $q = mysql_query("use test24"); $q = mysql_query("select id,name from platform order by id"); $options_platforms = ""; while($f=mysql_fetch_row($q)) $options_platforms .= ""; //--- row2("Platform", ""); row2("Plan class", ""); row2("Main program", "
Native BOINC application"); if(isset($_GET['add_file'])) $add_file = $_GET['add_file']+1; else $add_file = 1; for($i=0; $i<$add_file; $i++) row2("Additional file", "
Copyfile"); row2("","(more additional files)"); row2("",""); end_table(); echo "
\n"; echo "

Return to job control page\n"; page_tail(); } handle_create_form(); ?>