/JEF/sites/all/themes/unicauca_vice/unicauca_vice/print--pdf--node--documento_interna.tpl.php
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
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $print['language']; ?>" xml:lang="<?php print $print['language']; ?>">
- <head>
- <?php print $print['head']; ?>
- <?php print $print['base_href']; ?>
- <title><?php //print $print['title']; ?></title>
- <?php print $print['scripts']; ?>
- <?php print $print['sendtoprinter']; ?>
- <?php print $print['robots_meta']; ?>
- <?php print $print['favicon']; ?>
- <?php print $print['css']; ?>
- </head>
- <body>
- <div><table border="1">
- <tr height="30%">
- <td width="30%" align="center"><?php print $print['logo']; ?> </td>
- <td width="70%" align="center" valign="middle">
- <tr>
- <td></td>
- </tr>
- <tr>
- <td></td>
- </tr>
- <tr>
- <td></td>
- </tr>
- <tr>
- <td><h3>Documento Interno</h3></td>
- </tr>
- <tr>
- <td></td>
- </tr>
- <tr>
- <td><h3></h3></td>
- </tr>
- <tr>
- <td></td>
- </tr>
- </td>
- </tr>
- </table>
- </div>
-
- <?php
- $node = $print['node'];
-
- if(!function_exists('variablesx'))
- {
- function variablesx($nomCampo, $node){
- $arrFormApi = field_view_field('node', $node, $nomCampo);
- $arrFormApi['#label_display'] = 'hidden';
- return render($arrFormApi);
- //return ($arrFormApi);
- }
- }
-
- //print render($print['content']);
- $asunto= $node->title;
- $remitentes= variablesx('field_interna_remitente', $node);
- $destinatarios= variablesx('field_interna_destinatario_s_', $node);
- $resumen= variablesx('field_interna_asunto', $node);
- $fecha= variablesx('field_interna_fecha', $node);
- $numRadicacion = variablesx('field_ninterna_umero_radicacion', $node);
- ?>
- <p>
- <strong>Fecha:</strong><br /><?php echo $fecha?><br />
- <strong>Asunto:</strong><br /><?php echo $asunto?><br />
- <strong>Numero Radicacion:</strong><br /><?php echo $numRadicacion ?><br />
- <strong>Remitente(s):</strong><br /><?php echo $remitentes?><br />
- <strong>Destinatario(s):</strong><br /><?php echo $destinatarios?><br />
- <strong>Resumen:</strong><br /><?php echo $resumen?><br />
-
- </p>
-
-
-
- <div>
- <?php if (!empty($print['message'])) {
- print '<div class="print-message">'. $print['message'] .'</div><p />';
- } ?>
- <div class="print-logo"><?php //print $print['logo']; ?></div>
- <div class="print-site_name"><?php //print $print['site_name']; ?></div>
- <p />
- <div class="print-breadcrumb"><?php print $print['breadcrumb']; ?></div>
- <hr class="print-hr" />
- <div class="print-footer"><?php print $print['footer_message']; ?></div>
- <hr class="print-hr" />
- <div class="print-source_url"><?php //print $print['source_url']; ?></div>
- <div class="print-links"><?php //print $print['pfp_links']; ?></div>
- <?php print $print['footer_scripts']; ?>
- </body>
- </html>