|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
-
- # @name: index.php
- # @version: 0.1
- # @creation_date: 2021-09-24
- # @license: The MIT License <https://opensource.org/licenses/MIT>
- # @author: Simon Bowie <ad7588@coventry.ac.uk>
- # @purpose: Home page for the application
-
- include '../random.php';
- include '../ops_api.php';
-
- $random_record = random_record();
-
- ?>
-
- Application ID:
-
- <?php
-
- echo $random_record['application_id'];
-
- ?>
-
- <br><br>
-
- EPO publication:
-
- <a href=<?php echo $random_record['epo_publication_url']; ?>>
- <?php
-
- echo $random_record['epo_publication_url'];
-
- ?>
- </a>
-
- <br><br>
-
- IPC publication:
-
- <a href=<?php echo $random_record['ipc_publication_url']; ?>>
- <?php
-
- echo $random_record['ipc_publication_url'];
-
- ?>
- </a>
-
- <br><br>
-
- Title:
-
- <?php
-
- echo $random_record['title'];
-
- ?>
-
- <br><br>
-
- <?php
-
- if ($random_record['abstract']):
-
- ?>
-
- Abstract:
-
- <?php
-
- echo $random_record['abstract'];
-
- ?>
-
- <br><br>
-
- <?
- endif;
- ?>
-
- <?php
-
- if (get_publication_details($random_record['doc_ref'])):
-
- ?>
-
- <br><br>
-
- <?php
- endif;
- ?>
-
- <?php
-
- //if (get_images($random_record['doc_ref'])):
-
- ?>
-
- <!-- TO DO: RESOLVE WHY NGINX DOESN'T DISPLAY ANY OTHER PAGES IN THE PUBLIC DIRECTORY INCLUDING THESE TWO-->
-
- <a href="./ops_image.php?doc_ref=<?php echo $random_record['doc_ref'] ?>">Click here for image</a>
-
- <br><br>
-
- <?php
- //endif;
- ?>
|