Example #1
0
//                                                                           //
//***************************************************************************//
// Initialize OvBB.
require './includes/init.inc.php';
// Build a list of the months.
$aMonths = array(1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
// What are they wanting to do?
switch ($_REQUEST['action']) {
    case 'viewevent':
        ViewEvent();
    case 'addevent':
        AddEvent();
    case 'editevent':
        EditEvent();
    default:
        ViewCalendar();
}
// *************************************************************************** \\
// Displays the calendar.
function ViewCalendar()
{
    global $CFG, $dbConn, $aMonths;
    // Constants
    define('DAY', 0);
    define('INMONTH', 1);
    define('ISTODAY', 2);
    define('AUTHOR', 0);
    define('TITLE', 1);
    define('ISPRIVATE', 2);
    define('BIRTHDAY', 0);
    define('USERNAME', 1);
                ?>
">
				<?php 
                echo $arResult['select_waitpays']['REFERENCE'][$i];
                ?>
				</option>
				<?php 
            }
            ?>
			</select>
			<?php 
        }
        ?>
			<span id="paydate_block">
			<?php 
        ViewCalendar("paydate", $arResult['paydate'], '', "/bitrix/components/travelshop/ibe.tools/templates/.default/");
        ?>
			</span>
		</div>
		<?php 
    }
    ?>
		
		<?php 
    if (array_key_exists('select_discount', $arResult)) {
        ?>
			<!-- Скидки -->
			<div class="passenger category">
				<label class="title" for="passcat"><?php 
        echo GetMessage("TS_STEP1_SEARCHFORM_PASSENGER_CATEGORY");
        ?>