PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/JEF/sites/all/themes/unicauca_vice/unicauca_vice/print--pdf--node--documento_interna.tpl.php

https://bitbucket.org/desarrollojef/jef
PHP | 94 lines | 83 code | 9 blank | 2 comment | 2 complexity | 60be6fc8d3cf0ff348605d2153194ba2 MD5 | raw file
Possible License(s): AGPL-3.0, AGPL-1.0, LGPL-2.1, LGPL-3.0, GPL-3.0, GPL-2.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $print['language']; ?>" xml:lang="<?php print $print['language']; ?>">
  3. <head>
  4. <?php print $print['head']; ?>
  5. <?php print $print['base_href']; ?>
  6. <title><?php //print $print['title']; ?></title>
  7. <?php print $print['scripts']; ?>
  8. <?php print $print['sendtoprinter']; ?>
  9. <?php print $print['robots_meta']; ?>
  10. <?php print $print['favicon']; ?>
  11. <?php print $print['css']; ?>
  12. </head>
  13. <body>
  14. <div><table border="1">
  15. <tr height="30%">
  16. <td width="30%" align="center"><?php print $print['logo']; ?> </td>
  17. <td width="70%" align="center" valign="middle">
  18. <tr>
  19. <td></td>
  20. </tr>
  21. <tr>
  22. <td></td>
  23. </tr>
  24. <tr>
  25. <td></td>
  26. </tr>
  27. <tr>
  28. <td><h3>Documento Interno</h3></td>
  29. </tr>
  30. <tr>
  31. <td></td>
  32. </tr>
  33. <tr>
  34. <td><h3></h3></td>
  35. </tr>
  36. <tr>
  37. <td></td>
  38. </tr>
  39. </td>
  40. </tr>
  41. </table>
  42. </div>
  43. <?php
  44. $node = $print['node'];
  45. if(!function_exists('variablesx'))
  46. {
  47. function variablesx($nomCampo, $node){
  48. $arrFormApi = field_view_field('node', $node, $nomCampo);
  49. $arrFormApi['#label_display'] = 'hidden';
  50. return render($arrFormApi);
  51. //return ($arrFormApi);
  52. }
  53. }
  54. //print render($print['content']);
  55. $asunto= $node->title;
  56. $remitentes= variablesx('field_interna_remitente', $node);
  57. $destinatarios= variablesx('field_interna_destinatario_s_', $node);
  58. $resumen= variablesx('field_interna_asunto', $node);
  59. $fecha= variablesx('field_interna_fecha', $node);
  60. $numRadicacion = variablesx('field_ninterna_umero_radicacion', $node);
  61. ?>
  62. <p>
  63. <strong>Fecha:</strong><br /><?php echo $fecha?><br />
  64. <strong>Asunto:</strong><br /><?php echo $asunto?><br />
  65. <strong>Numero Radicacion:</strong><br /><?php echo $numRadicacion ?><br />
  66. <strong>Remitente(s):</strong><br /><?php echo $remitentes?><br />
  67. <strong>Destinatario(s):</strong><br /><?php echo $destinatarios?><br />
  68. <strong>Resumen:</strong><br /><?php echo $resumen?><br />
  69. </p>
  70. <div>
  71. <?php if (!empty($print['message'])) {
  72. print '<div class="print-message">'. $print['message'] .'</div><p />';
  73. } ?>
  74. <div class="print-logo"><?php //print $print['logo']; ?></div>
  75. <div class="print-site_name"><?php //print $print['site_name']; ?></div>
  76. <p />
  77. <div class="print-breadcrumb"><?php print $print['breadcrumb']; ?></div>
  78. <hr class="print-hr" />
  79. <div class="print-footer"><?php print $print['footer_message']; ?></div>
  80. <hr class="print-hr" />
  81. <div class="print-source_url"><?php //print $print['source_url']; ?></div>
  82. <div class="print-links"><?php //print $print['pfp_links']; ?></div>
  83. <?php print $print['footer_scripts']; ?>
  84. </body>
  85. </html>