do_redirect(empty($STARTVIEW) ? 'month.php' : "{$STARTVIEW}"); exit; } load_user_categories(); $datem = date('m'); $dateY = date('Y'); $selected = ' selected="selected" '; print_header(array('js/export_import.php', 'js/visible.php')); ob_start(); echo ' <h2>' . translate('Export') . '</h2> <form action="export_handler.php" method="post" name="exportform" id="exportform"> <table> <tr> <td><label for="exformat">' . translate('Export format') . ':</label></td> <td>' . generate_export_select('toggel_catfilter') . ' </td> </tr>'; if (is_array($categories)) { echo ' <tr id="catfilter"> <td><label for="cat_filter">' . translate('Categories') . ':</label></td> <td> <select name="cat_filter" id="cat_filter"> <option value=""' . $selected . '>' . translate('All') . '</option>'; foreach ($categories as $K => $V) { if ($K > 0) { echo ' <option value="' . $K . '">' . $V['cat_name'] . '</option>'; } }
if ($can_show_log) { $hideActivityStr = translate('Hide activity log'); $showActivityStr = translate('Show activity log'); echo ' <li><a title="' . (!$show_log ? $showActivityStr . '" class="nav" href="view_entry.php?id=' . $id . '&log=1">' . $showActivityStr : $hideActivityStr . '" class="nav" href="view_entry.php?id=' . $id . '">' . $hideActivityStr) . '</a></li>'; } echo ' </ul>'; if ($can_show_log && $show_log) { $PAGE_SIZE = 25; // number of entries to show at once echo generate_activity_log($id); } if (access_can_access_function(ACCESS_EXPORT) && (!$is_private && !$is_confidential || !access_is_enabled()) && !$hide_details) { $exportStr = translate('Export'); $exportThisStr = translate('Export this entry to'); $palmStr = translate('Palm Pilot'); $selectStr = generate_export_select(); $userStr = !empty($user) ? '<input type="hidden" name="user" value="' . $user . '" />' : ''; echo <<<EOT <br /> <form method="post" name="exportform" action="export_handler.php"> <label for="exformat">{$exportThisStr}: </label> {$selectStr} <input type="hidden" name="id" value="{$id}" /> {$userStr} <input type="submit" value="{$exportStr}" /> </form> EOT; } echo print_trailer(empty($friendly));