/** * Print out the reservation summary or a box to add/edit one * @param string $summary summary to edit * @param string $type type of reservation */ function print_summary($summary, $type) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="1" class="noshow"> <tr class="tableBorder"> <td> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td class="cellColor"><h5 align="center"><?php echo translate('Summary'); ?> </h5></td> </tr> <tr> <td class="cellColor" style="text-align: left;"> <?php if ($type == RES_TYPE_ADD || $type == RES_TYPE_MODIFY || $type == RES_TYPE_APPROVE) { echo '<div style="text-align:center;" id="summary_div"><textarea class="textbox" name="summary" rows="3" cols="40">' . $summary . '</textarea></div>'; } else { echo !empty($summary) ? CmnFns::html_activate_links($summary) : translate('N/A'); } ?> </td> </tr> </table> </td> </tr> </table> <?php }