PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/application/views/oer_form/oer_form.php

https://bitbucket.org/nfreear/trackoer-core
PHP | 59 lines | 38 code | 21 blank | 0 comment | 6 complexity | 58bc3dc520ffd19f7460662066891ab2 MD5 | raw file
  1. <form class="oer-form">
  2. <h1>OER license-tracker form <em>alpha</em></h1>
  3. <?php
  4. $this->load->view('oer_form/oer_form_extension')
  5. ?>
  6. <p class=req title="Required"><label for=url class=blk>Enter the source URL for an OER</label>
  7. <input id=url name=url type=url required placeholder="http://labspace.open.ac.uk/Learning_to_Learn_1.0" value="<?php echo isset($url) ? $url :'' ?>" maxlength=100
  8. /><input type=submit />
  9. <?php if (isset($oembed_url)): ?>
  10. <p id=alt>Alternatives formats:
  11. <a rel=alternate class=json href="<?php echo $oembed_url ?>&amp;format=json" title="Javascript Object Notation">JSON-oembed</a>
  12. | <a rel=alternate class=xml href="<?php echo $oembed_url ?>&amp;format=xml" title="Extensible Markup Language">XML-oembed</a>
  13. | <a rel=external class=spec href="http://oembed.com/" title="oEmbed Specification">What is oEmbed?</a>
  14. <?php endif; ?>
  15. <?php if (isset($examples)): ?>
  16. <p id=ex>Examples of valid source URLs
  17. <small><?php echo $examples ?></small>
  18. <?php endif; ?>
  19. <?php if (isset($cc_code)): ?>
  20. <hr />
  21. <h3>Sample output</h3>
  22. <div id=cc-code><p>
  23. <?php echo $cc_code ?>
  24. </div>
  25. <?php endif; ?>
  26. <?php if (isset($cc_code_esc)): ?>
  27. <p><label for=copy-me class=blk>Copy and paste the following snippet</label>
  28. <textarea id=copy-me readonly rows=10 cols=85
  29. ><?php echo $cc_code_esc ?></textarea>
  30. <?php endif; ?>
  31. <?php if (isset($status)): ?>
  32. <div id=log><h3>Status log</h3> <p>
  33. <?php foreach ($status as $stat): ?>
  34. <?php echo $stat ?><br>
  35. <?php endforeach; ?>
  36. </p></div>
  37. <?php endif; ?>
  38. </form>