template.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. include 'apteryx_text.php';
  3. function printHead($type) {
  4. global $title_page;
  5. ?>
  6. <!DOCTYPE HTML>
  7. <html>
  8. <head>
  9. <!--<meta charset="UTF-8">-->
  10. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  11. <title><?php echo $title_page; ?></title>
  12. <link href='https://www.indivia.net/res/css/global.css' rel='stylesheet' type='text/css' >
  13. <link href='https://tools.indivia.net/chpw/res/css/default.css' rel='stylesheet' type='text/css' >
  14. <link href='res/css/apteryx.css' rel='stylesheet' type='text/css' >
  15. </head>
  16. <body>
  17. <?php
  18. if ($type == 0)
  19. echo '<div class="random"> </div>';
  20. else
  21. echo '<br><br>';
  22. ?>
  23. <div id="apteryx-box" class='homebox'>
  24. <?php
  25. }
  26. /* crea il form */
  27. function printForm($form_goto_email, $lang) {
  28. ?>
  29. <form method='post' action='#'>
  30. <table class='formtable'>
  31. <tr>
  32. <td><?php echo "$form_goto_email" ?></td>
  33. <td><input type='text' name='email' size='32' class='field'></td>
  34. </tr>
  35. </table>
  36. <div style='text-align: center'>
  37. <input type='hidden' name='ph' value='1'>
  38. <input type='hidden' name='lang' value='<?php echo "$lang" ?>'>
  39. <input type='submit' value='Vai' class='gobutton'>
  40. </div>
  41. </form>
  42. </div>
  43. <?php
  44. }
  45. function printTitle($msg){ ?>
  46. <h1>
  47. <p style='text-align: center;'>
  48. <?php echo $msg ?>
  49. </p>
  50. </h1><?php
  51. }
  52. function printBold($msg) {
  53. ?>
  54. <p style='font-weight: bold; font-size: 120%; text-align: center;'><?php echo "$msg" ?></p><br>
  55. <?php
  56. }
  57. function printMessage($msg) {
  58. ?>
  59. <p style='text-align: center;'><?php echo "$msg" ?></p>
  60. <?php
  61. }
  62. ?>