<form method="post" enctype="multipart/form-data" action="manage_pools.php"> <input type="hidden" id="edit_id_pool" name="edit_id_pool" value=""/> <input type="hidden" name="view_state" value="<?php echo $view_state; ?> "/> <div><b>Login</b> <input type="text" name="edit_login" id="edit_login" value=""/></div> <div><b>Name</b> <input type="text" name="edit_name" id="edit_name" value=""/></div> <div><b>Topic id</b> <select name="edit_id_topic" id="edit_id_topic"> <? $topics = mysql_query("SELECT id from $db_topics order by id"); while ($t = mysql_fetch_array($topics)) print "<option value='$t[0]'>$t[0]</option>\n"; ?> </select></div> <div><b>Status</b> <?php echo get_select_status("edit_state"); ?> </div> <div><b title="If needed">Pool file</b> <input type="file" name="edit_file" value=""/></div> <div><b title="If needed">Pool file collection prefix</b> <input type="text" name="edit_file_prefix" value=""/></div> <div><b>Pool enabled</b> <input id="enabled_E" type="radio" name="enabled" value="Y"/>Yes <input type="radio" id="enabled_D" name="enabled" value="N"/>No</div> <div><input type="submit" name="action" value="update"/></div> </form> </div> <div id="delete" class="askpanel"> <img onclick="hidepanel('delete');" style="float: right;" src="<?php echo $base_url; ?> /img/close.png" alt="close" title="Close the panel"/> <p style="color:red">Warning: this pool will be deleted</p>
</style> <h1>Pool information</h1> <form enctype="multipart/form-data" action="add_pool.php" method="post"> <div><span>Check to add in database</span> <input type="checkbox" name="doit"/></div> <div><span>Topic id</span> <select type="text" name="id_topic"> <? $topics = mysql_query("SELECT id from $db_topics order by id"); while ($t = mysql_fetch_array($topics)) print "<option value='$t[0]'>$t[0]</option>\n"; ?> </select></div> <div><span>Pool login</span> <input type="text" name="new_login"/></div> <div><span title="Add a collection prefix">Collection prefix</span> <input type="text" name="collection_prefix"/></div> <div><span>Pool name</span> <input type="text" name="new_pool_name"/></div> <div><span>Pool state</span> <?php echo get_select_status("state"); ?> </div> <div><span>Pool file</span> <input type="file" name="pool_file"/></div> <div><input type="submit" value="add"/></div> </form> <? make_footer(); exit; } //if ($new_id_pool <= 0 && $new_id_pool > 32767) fatal_error("Pool id must be between 1 and 32767"); function startElement($parser, $tagname, $attrs) { global $db_assessments, $collection_prefix; global $new_id_pool, $currentfile, $doit;