The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Customizing Print View Layout - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Customizing Print View Layout (/showthread.php?tid=2233)



Customizing Print View Layout - mycybermedic - Oct 16th, 2012

Hey Guys,

I am trying to implement a custom print view using the Export Manager. I am having some trouble, surely related to the way I am calling the tags. Can someone help me understand what I am doing wrong?

I have built a custom table. We only want to print one record per page. I have populated table rows with tags such as
Code:
{display_field_by_colname col_name="first_name"}
.

The page is not showing any results when I attempt to view a record using the newly created view. Here is all of the code I am trying to use:

Code:
<body>
{foreach from=$submissions item=submission}
<table border="1" cellspacing="0" cellpadding="0" width="100%">
  <tbody>
    <tr>
      <td colspan="2" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>PT NAME:</strong></span><span class="regtext"><strong> </strong></span></p></td>
      <td colspan="2" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>DOB:</strong></span><span class="regtext"><strong> </strong></span></p></td>
      <td colspan="2" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>PCP:</strong></span></p></td>
      <td width="176" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>ON CALL:</strong></span><span class="regtext"><strong> </strong></span></p></td>
    </tr>
    <tr>
      <td colspan="2" valign="top"><span class="regtext">{display_field_by_colname col_name="first_name","last_name"}</span></td>
      <td colspan="2" valign="top"><span class="regtext">{display_field_by_colname col_name="dob"}</span></td>
      <td colspan="2" valign="top"><span class="regtext">{display_field_by_colname col_name="care_provider"}</span></td>
      <td width="176" valign="top"><span class="regtext">{display_field_by_colname col_name="on_call"}</span></td>
    </tr>
    <tr>
      <td colspan="3" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>CALLER:</strong> <br />
      </span></p></td>
      <td colspan="4" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>PHONE:</strong> <br />
      </span></p></td>
    </tr>
    <tr>
      <td colspan="3" valign="top"><span class="regtext">{display_field_by_colname col_name="caller_firstname"}</span> <span class="regtext">{display_field_by_colname col_name="caller_lastname"}</span></td>
      <td colspan="4" valign="top"><span class="regtext">{display_field_by_colname col_name="phone_number"}</span></td>
    </tr>
    <tr>
      <td height="18" colspan="7" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>C/O: </strong><br />
      </span></p></td>
    </tr>
    <tr>
      <td height="27" colspan="7" valign="top"><span class="regtext">{display_field_by_colname col_name="co"}</span></td>
    </tr>
    <tr>
      <td colspan="7" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>DISPOSITION: <br />
      </strong></span></p></td>
    </tr>
    <tr>
      <td colspan="7" valign="top"><span class="regtext">{display_field_by_colname col_name="disposition"}</span></td>
    </tr>
    <tr>
      <td colspan="4" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>DRUG ALLERGIES: </strong></span></p></td>
      <td width="180" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>RX:</strong></span></p></td>
      <td colspan="2" valign="top" bgcolor="#CCCCCC"><p><span class="regtext"><strong>DX:</strong></span></p></td>
    </tr>
    <tr>
      <td colspan="4" valign="top"><span class="regtext">{display_field_by_colname col_name="drug_allergies"}</span></td>
      <td width="180" valign="top"><span class="regtext">{display_field_by_colname col_name="rx"}</span></td>
      <td colspan="2" valign="top"><span class="regtext">{display_field_by_colname col_name="diagnosis"}</span></td>
    </tr>
    <tr>
      <td colspan="4" valign="top" bgcolor="#CCCCCC"><p class="regtext"><strong>NURSE ID</strong></p></td>
      <td valign="top" bgcolor="#CCCCCC"><p class="regtext"><strong>DATE OF CALL</strong></td>
      <td colspan="2" valign="top" bgcolor="#CCCCCC"><p class="regtext"><strong>TIME OF CALL</strong></tr>
    <tr>
      <td colspan="4" valign="top"><span class="regtext">{display_field_by_colname col_name="nurse_id"}</span></td>
      <td valign="top"><span class="regtext">{display_field_by_colname col_name="date_of_call"}</span></td>
      <td colspan="2" valign="top"><span class="regtext">{display_field_by_colname col_name="time_of_call"}</span></td>
    </tr>
    <tr height="0">
      <td width="120"></td>
      <td width="119"></td>
      <td width="172"></td>
      <td width="0"></td>
      <td width="180"></td>
      <td width="57"></td>
      <td width="176"></td>
    </tr>
  </tbody>
</table>
<p class="boldreg"> Home Care Advice</p>
<p><span class="regtext">{display_field_by_colname col_name="homecare1"}</span></p>
<p><span class="regtext">{display_field_by_colname col_name="homecare2"}</span></p>
<p><span class="regtext">{display_field_by_colname col_name="homecare3"}</span></p>
<p>&nbsp;</p>
<div class="no_print">{$LANG.phrase_new_page}</div>
<br class="page_break" />
{/foreach}
</body>
</html>

Any insight on what I am doing wrong here? Thanks in advance!


RE: Customizing Print View Layout - jgold723 - Mar 13th, 2014

Did you ever get an answer to this? I have the same question.


RE: Customizing Print View Layout - serialkillaz - May 11th, 2015

Anyone can help on this topic please...as I'm also stuck with this..thanks