I'm getting errors in my code on the first couple lines because of the echo... I'm confused on how to set the ternary operator in a string like this...
PHP Code:<?php if(login::$company =='ARSE') echo <form action='<?php echo matry::here(); ?>' method='post'>
<table><th>RX TRACKER</th>
<tr style="z-index: 5;"><td><?php echo lookup_link('* Doctor', 'doctor', 'DFCODE=Code&DFNAME=Name'); ?></td><td><?php inp('dfcode', 13); ?></td><td>Signed On</td><td><?php inp('signed_on', 13); ?></td>
<td>Diagnosis Code</td><td><?php sbox('diagnosis', sql::one_column_array("SELECT id FROM " . event_table('dxcode') . "")); ?></td>
<tr><td style="position: relative; top: 11px;">Duration</td><td style="position: relative; top: 11px;"><?php sbox('duration', range(1,12), 5); ?></td><td style="position: relative; right: 50px; top: 11px;">Insulin</td><td style="position: relative; right: 80px; top: 11px;"><?php cbox('Insulin'); ?></td>
<td style="position: relative; right: 160px; top: 11px;">Times Testing</td><td style="position: relative; right: 160px; top: 11px;"><?php sbox('times_testing', range (1, 20)); ?></td></tr>
<tr><td style="position: relative; bottom: 16px; left: 520px;"><?php echo button::save_narrow('Update'); ?></td></tr>
else
<?php if(login::$company =='ABSS') include('tracker.php'); ?></table>
</table>
</form>



Reply With Quote
Bookmarks