Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- print <<<END
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>OAI-pmh worbench</title>
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
- </head>
- <body>
- <div class="container">
- <h3>ListRecords</h3>
- <form action="identify.php" method="post" id="repid">
- <label for="rep">URL do interface OAI do Repositório: </label>
- <select name="rep" id="rep">
- END;
- $reps = simplexml_load_file("repositories.xml");
- foreach ($reps->repository as $r)
- {
- print "<option value=\"". $r->oai ."\">".$r->nick."</option>\n";
- }
- print <<<FIM
- </select>
- <input type="submit" value="Enviar"/>
- </form>
- </div>
- </body>
- </html>
- FIM;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment