Пример #1
0
    ?>
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">	
							<tr>
								<td width="2%"></td>
								<td width="98%" valign="top" align="left">
									<br>
									<?php 
    echo "{$this_site_is_lang} ";
    ?>
<a class="psf" href="http://www.oreillynet.com/rss/">RSS 0.91 enabled</a>.<br>
									<br>
									<?php 
    // build the <option> tags
    $filelist = availableCalendarNames($username, $password, $ALL_CALENDARS_COMBINED);
    foreach ($filelist as $file) {
        // $cal_filename is the filename of the calendar without .ics
        // $cal is a urlencoded version of $cal_filename
        // $cal_displayname is $cal_filename with occurrences of "32" replaced with " "
        $cal_filename_tmp = substr($file, 0, -4);
        $cal_tmp = urlencode($cal_filename_tmp);
        $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp);
        echo '<font class="V12" color="blue"><b>' . $cal_displayname_tmp . ' ' . $calendar_lang . '</b></font><br>';
        echo $default_path . '/rss/rss.php?cal=' . $cal_tmp . '&rssview=day<br>';
        echo $default_path . '/rss/rss.php?cal=' . $cal_tmp . '&rssview=week<br>';
        echo $default_path . '/rss/rss.php?cal=' . $cal_tmp . '&rssview=month<br>';
        $footer_check = $default_path . '/rss/rss.php?cal=' . $default_cal . '&rssview=' . $default_view;
        echo '<br><br>';
    }
    ?>
Пример #2
0
<h2><?php 
echo $delete_cal_lang;
?>
</h2>
<form action="<?php 
echo $HTTP_SERVER_VARS['PHP_SELF'];
?>
" method="post">
	<input type="hidden" name="action" value="delete">
	<table border="0" cellspacing="0">
		<?php 
// Print Calendar Checkboxes
//
$COLUMNS_TO_PRINT = 3;
$column = 1;
$filelist = availableCalendarNames('', '', '', true);
foreach ($filelist as $file) {
    if ($column > $COLUMNS_TO_PRINT) {
        echo "</tr>";
        $column = 1;
    }
    if ($column == 1) {
        echo "<tr>";
    }
    $cal_filename_tmp = substr($file, 0, -4);
    $cal_tmp = urlencode($file);
    $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp);
    echo "<td align=\"left\"><input name=\"delete_calendar[]\" value=\"{$cal_tmp}\" type=\"checkbox\">{$cal_displayname_tmp}</td>\n";
    $column++;
}
// Print remaining empty columns if necessary