Exemplo n.º 1
0
      Enter the running time of the recording (hh:mm:ss):
      <input type="text" name="running_time"></input><br/>
      Enter the zip file size of the recording:
      <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 
}
?>
Exemplo n.º 2
0
      Enter the running time of the recording (hh:mm:ss):
      <input type="text" name="running_time"></input><br/>
      Enter the zip file size of the recording:
      <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="create" value="create"></input><br/>
      </form>

      <?php 
if (isset($created)) {
    ?>
        <p>The last recording created was "<?php 
    echo $created->getTitle();
    ?>
".  The following were the values given:
        Title: <?php 
    echo $created->getTitle();
    ?>
, Version: <?php 
    echo $created->getVersion();
    ?>
, Language: <?php 
    echo $created->getLanguage();
    ?>
, Narration Type: <?php 
    echo $created->getNarration_type();
    ?>
, Running Time: <?php