echo "<th class=\"row\" style=\"width:{$tdw}%;\">{$tempfullname}</th>"; for ($date = $wkstart, $h = 0; date("Ymd", $date) <= date("Ymd", $wkend); $date += 24 * 3600, $h++) { $wday = strftime("%w", $date); if ($wday == 0 || $wday == 6) { echo "<td class=\"weekend\" style=\"width:{$tdw}%;\">"; } else { echo "<td style=\"width:{$tdw}%;\">"; } $events = $e_save[$i]; $repeated_events = $re_save[$i]; if (empty($add_link_in_views) || $add_link_in_views != "N") { echo html_for_add_icon(date("Ymd", $date), "", "", $user); } print_date_entries(date("Ymd", $date), $user, true); echo "</td>"; } echo "</tr>\n"; } echo "</table>\n<br /><br />\n"; } $user = ""; // reset if (!empty($eventinfo)) { echo $eventinfo; } echo "<a title=\"" . translate("Generate printer-friendly version") . "\" class=\"printer\" href=\"view_v.php?id={$id}&date=" . "{$thisdate}&friendly=1\" " . "target=\"cal_printer_friendly\" onmouseover=\"window.status='" . translate("Generate printer-friendly version") . "'\">[" . translate("Printer Friendly") . "]</a>\n"; print_trailer(); ?> </body> </html>
} $dateYmd = date('Ymd', $date); $entryStr = print_date_entries($dateYmd, $user, true); $class = ($dateYmd == $todayYmd ? ' class="today"' : (!empty($entryStr) && $entryStr != ' ' ? ' class="hasevents"' : ($is_weekend ? ' class="weekend"' : ''))) . ' style="width:' . $tdw . '%;">'; // . // Build header row. if ($i == 0) { $header .= ' <th' . $class . weekday_name(date('w', $date), $DISPLAY_LONG_DAYS) . ' ' . date('d', $date) . '</th>'; } $body .= ' <td' . $class . (empty($ADD_LINK_IN_VIEWS) || $ADD_LINK_IN_VIEWS != 'N' ? html_for_add_icon($dateYmd, '', '', $user) . "\n" : '') . $entryStr . ' </td>'; } $body .= ' </tr>'; } // . // Output all. echo $header . ' </tr>' . $body . ' </table>'; } // . $user = ''; // reset // . echo empty($eventinfo) ? '' : $eventinfo; ob_end_flush(); echo $printerStr . print_trailer();
if (empty($HTTP_USER_AGENT)) { $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT']; } print_header('', '', '', true); ob_start(); echo $helpListStr . ' <h2>' . translate('Report Bug') . '</h2> <p>' . translate('Please include all the information below when reporting a bug.') . ($LANGUAGE != 'English-US' ? ' ' . str_replace('XXX', translate(get_browser_language(true)), translate('Also, please use English rather than XXX.')) : '') . '</p> <form action="http://sourceforge.net/tracker/" target="_new"> <input type="hidden" name="func" value="add" /> <input type="hidden" name="group_id" value="3870" /> <input type="hidden" name="atid" value="103870" /> <input type="submit" value="' . translate('Report Bug') . '" /> </form> <h3>' . translate('System Settings') . '</h3> <div>'; $tmp_arr = array('PROGRAM_NAME' => $PROGRAM_NAME, 'SERVER_SOFTWARE' => $SERVER_SOFTWARE, 'Web Browser' => $HTTP_USER_AGENT, 'PHP Version' => phpversion(), 'Default Encoding' => ini_get('default_charset'), 'db_type' => $db_type, 'readonly' => $readonly, 'single_user' => $single_user, 'single_user_login' => $single_user_login, 'use_http_auth' => $use_http_auth ? 'Y' : 'N', 'user_inc' => $user_inc); $res = dbi_execute('SELECT cal_setting, cal_value FROM webcal_config ORDER BY cal_setting'); if ($res) { while ($row = dbi_fetch_row($res)) { $tmp_arr[$row[0]] = $row[1]; } dbi_free_result($res); } list_help($tmp_arr); ob_end_flush(); echo ' </div> ' . print_trailer(false, true, true);
// print_r ($icon_props ); $path_parts = pathinfo($_SERVER['SCRIPT_FILENAME']); $fullIcon = $path_parts['dirname'] . '/' . $icon_path . 'cat-' . $id . '.gif'; renameIcon($id); $file_result = move_uploaded_file($file['tmp_name'], $fullIcon); // echo "Upload Result:" . $file_result; } else { if ($file['size'] > $icon_max_size) { $error = translate('File size exceeds maximum.'); } else { if ($file['type'] != 'image/gif') { $error = translate('File is not a gif image.'); } } } } // Copy icon if local file specified. $urlname = getPostvalue('urlname'); if (!empty($urlname) && file_exists($icon_path . $urlname)) { copy($icon_path . $urlname, $icon_path . 'cat-' . $id . '.gif'); } } } } } if (empty($error)) { do_redirect('category.php'); } print_header(); echo print_error($error) . print_trailer();
load_user_layers(); $status = getValue('status', '(on|off)', true); $public = getValue('public'); if ($ALLOW_VIEW_OTHER != 'Y') { print_header(); echo print_not_auth(7) . print_trailer(); exit; } $updating_public = false; $url = 'layers.php'; if ($is_admin && !empty($public) && $PUBLIC_ACCESS == 'Y') { $updating_public = true; $layer_user = '******'; $url .= '?public=1'; } else { $layer_user = $login; } dbi_execute('DELETE FROM webcal_user_pref WHERE cal_login = ? AND cal_setting = \'LAYERS_STATUS\'', array($layer_user)); $sql = 'INSERT INTO webcal_user_pref ( cal_login, cal_setting, cal_value ) VALUES ( ?, \'LAYERS_STATUS\', ? )'; if (!dbi_execute($sql, array($layer_user, $status == 'off' ? 'N' : 'Y'))) { $error = translate('Unable to update preference') . ': ' . dbi_error() . '<br /><br /><span class="bold">SQL:</span> ' . $sql; break; } if (empty($error)) { do_redirect($url); } print_header(); echo print_error($error, true) . print_trailer();
subtracting ONE_WEEK to allow cross-day events to display*/ $events = read_events($viewusers[$i], $wkstart - 604800, $wkend); $e_save = array_merge($e_save, $events); } $events = $e_save; $repeated_events = $re_save; $timeBarHeader = print_header_timebar(); echo ' <table class="main">'; for ($date = $wkstart; $date <= $wkend; $date += 86400) { $dateYmd = date('Ymd', $date); $is_weekend = is_weekend($date); if ($is_weekend && $DISPLAY_WEEKENDS == 'N') { continue; } echo ' <tr' . ($dateYmd == date('Ymd', $today) ? '> <th class="today">' : ($is_weekend ? ' class="weekend"> <th class="weekend">' : '> <th class="row">')) . (empty($ADD_LINK_IN_VIEWS) || $ADD_LINK_IN_VIEWS != 'N' ? html_for_add_icon($dateYmd, '', '', $user) : '') . weekday_name(date('w', $date), $DISPLAY_LONG_DAYS) . ' ' . date('d', $date) . '</th> <td class="timebar">' . $timeBarHeader . print_date_entries_timebar($dateYmd, $login, true) . ' </table> </td> </tr>'; } $user = ''; // reset ob_end_flush(); echo ' </table>' . (empty($eventinfo) ? '' : $eventinfo) . $printerStr . print_trailer();
echo display_month(date('m'), date('Y'), true); ?> </td></tr> <tr><td> </td></tr> </table> <!-- END EXAMPLE MONTH --> </td></tr></table> </div> <!-- END COLORS --> <?php } // if $ALLOW_COLOR_CUSTOMIZATION ?> </div> <!-- END TABS --> <br /><br /> <div> <input type="submit" value="<?php etranslate('Save Preferences'); ?> " name="" /> <br /><br /> </div> </form> <?php echo print_trailer(); ?>
if (!$is_private) { echo "<br /><form method=\"post\" name=\"exportform\" action=\"export_handler.php\">\n"; echo "<strong>"; etranslate("Export this entry to"); echo ":</strong>\n"; echo "<select name=\"format\">\n"; echo "<option value=\"ical\">iCalendar</option>\n"; echo "<option value=\"vcal\">vCalendar</option>\n"; echo "<option value=\"pilot-csv\">pilot-datebook CSV ("; etranslate("Palm Pilot"); echo ")</option>\n"; echo "<option value=\"pilot-text\">install-datebook ("; etranslate("Palm Pilot"); echo ")</option>\n"; echo "</select>\n"; echo "<input type=\"hidden\" name=\"id\" value=\"{$id}\" />\n"; echo "<input type=\"submit\" value=\""; etranslate("Export"); echo "\" />\n"; echo "</form>\n"; } ?> <?php echo "</td></tr></table>\n"; echo '<a href="' . $_SESSION['referer'] . '"><img src="images_haras/b_retour.gif" alt="Retour" border="0"></a>' . "\n"; print_trailer(empty($friendly)); ?> </body> </html>
$entryStr = print_date_entries($dateYmd, $user, true); // Unset class from above if needed. if ($class == 'class="row"' || $class == 'class="hasevents"') { $class = ''; } if (!empty($entryStr) && $entryStr != ' ') { $class = 'class="hasevents"'; } else { if ($dateYmd == $todayYmd) { $class = 'class="today"'; } else { if ($is_weekend) { $class = 'class="weekend"'; } } } echo ' <td ' . $class . ' style="width:' . $tdw . '%;">' . (empty($ADD_LINK_IN_VIEWS) || $ADD_LINK_IN_VIEWS != 'N' ? html_for_add_icon(date('Ymd', $date), '', '', $user) : '') . $entryStr . ' </td>'; } echo ' </tr>'; } echo ' </table>'; } ob_end_flush(); $user = ''; // reset echo (empty($eventinfo) ? '' : $eventinfo) . $printerStr . print_trailer();
$nextMonth2 = display_small_month($nextmonth, $nextyear, true, false, 'nextmonth', $monthURL) . '<br />'; $prevMonth2 = display_small_month($prevmonth, $prevyear, true, false, 'prevmonth', $monthURL) . '<br />'; } else { $nextMonth2 = $prevMonth2 = '<br /><br /><br /><br />'; } $smallTasks = display_small_tasks($cat_id); $tableWidth = '80%'; } $eventinfo = !empty($eventinfo) ? $eventinfo : ''; $monthStr = display_month($thismonth, $thisyear); $navStr = display_navigation('month'); if (empty($friendly)) { $unapprovedStr = display_unapproved_events($is_assistant || $is_nonuser_admin ? $user : $login); $printerStr = generate_printer_friendly('month.php'); } $trailerStr = print_trailer(); $HeadX = generate_refresh_meta() . '<script src="includes/js/weekHover.js" type="text/javascript"></script>'; print_header(array('js/popups.php/true', 'js/visible.php'), $HeadX, '', false, false, false, false); echo <<<EOT <table border="0" width="100%" cellpadding="1"> <tr> <td id="printarea" valign="top" width="{$tableWidth}" rowspan="2"> {$prevMonth1}{$nextMonth1} {$navStr} {$monthStr} </td> <td valign="top" align="center"> {$prevMonth2}{$nextMonth2}<div id="minitask">{$smallTasks}</div> </td> </tr> </table>
} else { if ($report_include_header == 'Y') { echo "<h2>" . $report_name . "</h2>\n"; } $text = str_replace('${report_id}', $report_id, $page_template); echo str_replace('${days}', $day_str, $text); } } if (empty($error) && empty($list)) { if (!empty($report_allow_nav) && $report_allow_nav == 'Y') { if (empty($offset)) { $offset = 0; } $next = $offset + 1; $prev = $offset - 1; echo "<br /><br /><a title=\"" . translate("Previous") . "\" href=\"report.php?report_id={$report_id}{$u_url}" . (empty($prev) ? "" : "&offset={$prev}") . "\" class=\"nav\">" . translate("Previous") . "</a>\n"; echo " <a title=\"" . translate("Next") . "\" href=\"report.php?report_id={$report_id}{$u_url}" . (empty($next) ? "" : "&offset={$next}") . "\" class=\"nav\">" . translate("Next") . "</a><br />\n"; } if ($report_include_header == 'Y') { echo '<br /><br /><a title="' . translate("Printer Friendly") . '" class="nav" href="report.php?report_id=' . $report_id . '&friendly=1' . $u_url . '&offset=' . $offset . '" target="cal_printer_friendly" onmouseover="window.status=\'' . translate("Generate printer-friendly version") . '\'">[' . translate("Printer Friendly") . ']</a>'; } } if (!empty($list) || $report_include_header == 'Y' || !empty($error) || !empty($list)) { print_trailer(); } else { print_trailer(false); } ?> </body> </html>
<?php /* $Id: del_layer.php,v 1.20.2.2 2012/02/28 02:07:45 cknudsen Exp $ */ include_once 'includes/init.php'; require_valide_referring_url(); $id = getGetValue('id'); if ($ALLOW_VIEW_OTHER != 'Y' || empty($id)) { print_header(); echo print_not_auth(7) . print_trailer(); exit; } $id = getGetValue('id'); $updating_public = false; if ($is_admin && !empty($public) && $PUBLIC_ACCESS == 'Y') { $updating_public = true; $layer_user = '******'; } else { $layer_user = $login; } load_user_layers($layer_user, 1); if (strlen($layers[$id]['cal_layeruser']) > 0 && ($is_admin || $readonly == 'N')) { $layeruser = $layers[$id]['cal_layeruser']; dbi_execute('DELETE FROM webcal_user_layers WHERE cal_login = ? AND cal_layeruser = ?', array($layer_user, $layeruser)); } do_redirect('layers.php' . ($updating_public ? '?public=1' : ''));
if (empty($error)) { // Displaying Categories. $global_found = false; if (!empty($categories)) { echo ' <ul>'; foreach ($categories as $K => $V) { if ($K < 1) { continue; } $catIcon = $icon_path . 'cat-' . $K . '.gif'; $catStr = '<span style="color: ' . (!empty($V['cat_color']) ? $V['cat_color'] : '#000000') . ';">' . $V['cat_name'] . '</span>'; echo ' <li>' . ($V['cat_owner'] == $login || $is_admin ? '<a href="category.php?id=' . $K . '">' . $catStr . '</a>' : $catStr); if (empty($V['cat_owner'])) { echo '<sup>*</sup>'; $global_found = true; } echo (file_exists($catIcon) ? '<img src="' . $catIcon . '" alt="' . $catIconStr . '" title="' . $catIconStr . '" />' : '') . '</li>'; } echo ' </ul>'; } echo ($global_found ? '<br /><br /> <sup>*</sup> ' . $globalStr : '') . ' <p><a href="category.php?add=1">' . translate('Make New Category') . '</a></p><br />'; } } ob_end_flush(); echo (!empty($error) ? print_error($error) : '') . print_trailer();
} print_header('', '', '', true); /* echo 'report_id: ' . $report_id . '<br /> report_name: ' . $report_name . '<br /> report_user: '******'<br /> '; */ echo ' <h2>'; if ($type == 'H') { etranslate('Edit Custom Header'); } elseif ($type == 'S') { etranslate('Edit Custom Script/Stylesheet'); } else { etranslate('Edit Custom Trailer'); } if ($user != '__system__') { user_load_variables($user, 'temp_'); echo ' [' . $temp_fullname . ']'; } echo '</h2>' . (!empty($error) ? print_error($error) : ' <form action="edit_template.php" method="post" name="reportform"> <input type="hidden" name="type" value="' . $type . '" />' . (!empty($ALLOW_USER_HEADER) && $ALLOW_USER_HEADER == 'Y' && !empty($user) && $user != '__system__' ? ' <input type="hidden" name="user" value="' . $user . '" />' : '') . ' <textarea rows="15" cols="60" name="template">' . htmlspecialchars($cur) . '</textarea><br /> <input type="button" value="' . translate('Cancel') . '" onclick="window.close();" /> <input name="action" type="submit" value="' . translate('Save') . '" />' . (!empty($user) ? ' <input name="delete" type="submit" value="' . translate('Delete') . '" onclick="return confirm( \'' . str_replace('XXX', translate('entry'), translate('Are you sure you want to delete this XXX?')) . '\');" />' : '') . ' </form>') . "\n" . print_trailer(false, true, true);