Oct 16th, 2012, 9:51 AM
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.
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:
Any insight on what I am doing wrong here? Thanks in advance!
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> </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!