jcramalho

OAI-pmh: Identify-form

Apr 13th, 2015
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. <?php
  2. print <<<END
  3. <!DOCTYPE html>
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5.     <head>
  6.         <title>OAI-pmh worbench</title>
  7.         <meta name="viewport" content="width=device-width, initial-scale=1" />
  8.         <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
  9.     </head>
  10.     <body>
  11.         <div class="container">
  12.            <h3>ListRecords</h3>
  13.               <form action="identify.php" method="post" id="repid">
  14.                   <label for="rep">URL do interface OAI do Repositório: </label>
  15.                   <select name="rep" id="rep">
  16. END;
  17.  
  18.     $reps = simplexml_load_file("repositories.xml");
  19.     foreach ($reps->repository as $r)
  20.       {
  21.         print "<option value=\"". $r->oai ."\">".$r->nick."</option>\n";
  22.       }  
  23.  
  24. print <<<FIM
  25.                 </select>
  26.             <input type="submit" value="Enviar"/>
  27.         </form>
  28.       </div>  
  29.     </body>
  30. </html>
  31.  
  32. FIM;
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment