Beispiel #1
0
      <input type="text" name="zip_file_size"></input><br/>
      Enter the catalog date of the recording (yyyy-mm-dd):
      <input type="text" name="catalog_date"></input><br/>
      Enter the website link of the recording:
      <input type="text" name="website_link"></input><br/>
      <input type="submit" name="submit" value="submit"></input><br/>
      </form>

<?php 
if (isset($audiobook)) {
    ?>
  <p>The last recording entered was "<?php 
    echo $audiobook->getTitle();
    ?>
".  It was given ID number <?php 
    echo $audiobook->getID();
    ?>
 in the database.</p>
  <?php 
} else {
    ?>
    <p>The following LibriVox recordings are currently in the database: "<?php 
    echo $audiobook = Recording::recording_list();
    ?>
". </p>
    <?php 
}
?>

  </body>
</html>
Beispiel #2
0
    echo $created->getNarration_type();
    ?>
, Running Time: <?php 
    echo $created->getRunning_time();
    ?>
, Zip File Size: <?php 
    echo $created->getZip_file_size();
    ?>
, Catalog Date: <?php 
    echo $created->getCatalog_date();
    ?>
        , Website Link: <?php 
    echo $created->getWebsite_link();
    ?>
, and ID:<?php 
    echo $created->getID();
    ?>
.</p>
        <?php 
} else {
    echo 'Please enter information into the form to create a new recording entry.';
}
?>
      <br/><br/>
      To DELETE a Recording Entry in the Database:<br/><br/>
      <form method="POST" action="">
        Enter the id of the recording:
        <input type="text" name="id"></input><br/>
        <input type="submit" name="delete" value="delete"></input><br/>
        </form>