Source for file print.php
Documentation is available at print.php
* See copyright information in the Dokeos root directory, dokeos_license.txt
* @package dokeos.calendar
// name of the language file that needs to be included
$language_file = 'agenda';
// setting the global file that gets the general configuration, the databases, the languages, ...
require ('../inc/global.inc.php');
$sql = "SELECT * FROM $TABLEAGENDA WHERE id IN($id) ORDER BY start_date DESC";
<title> <?php echo get_lang('Print'); ?></title>
<style type="text/css" media="screen, projection">
@import "../css/ <?php echo api_get_setting('stylesheets'); ?>/default.css";
<body style="margin: 15px; padding: 0px;">
<input type="button" value=" <?php echo htmlentities(get_lang('Print'),ENT_QUOTES,$charset); ?>" onClick="javascript:window.print();" />
$row['content'] = $row['content'];
$row['content'] = str_replace('<a ','<a target="_blank" ',$row['content']);
if(!empty($row['title']))
echo '<b>'. $row['title']. '</b><br /><br />';
echo $row['content']. '<hr size="1" noshade="noshade" />';
<input type="button" value=" <?php echo htmlentities(get_lang('Print'),ENT_QUOTES,$charset); ?>" onClick="javascript:window.print();" />
|