if (array_key_exists('_submit_view_scl', $_POST)) {
        $id = $_POST['_shiftid'];
    } else {
        if (array_key_exists('_submit_save_scl_changes', $_POST)) {
            $id = process_edit_scl($_POST);
        }
    }
}
if ($id) {
    $id = view_scl($id);
}
if (!$id) {
    // The first 8 characters of the shift id shows the dates for the week.
    $mm_dd_yy = substr($_GET['shift'], 0, 8);
    // Displays the option of going back to the House Calendar.
    back_to_calendar($mm_dd_yy, 700, 'house');
    do_scl_index($id);
}
?>
    </div>
    <?php 
include 'footer.inc';
?>
</div>
</body>
</html>

<?php 
/*
 * Generate a new SCL for a shift.  If one is already there, remove it and regenerate it.
 */
Example #2
0
} else {
    if (array_key_exists('_submit_view_scl', $_POST)) {
        $id = $_POST['_shiftid'];
    } else {
        if (array_key_exists('_submit_save_scl_changes', $_POST)) {
            $id = process_edit_scl($_POST);
        }
    }
}
if ($id) {
    $id = view_scl($id, $venue);
} else {
    // The first 8 characters of the shift id shows the dates for the week.
    $yy_mm_dd = substr($_GET['shift'], 0, 8);
    // Displays the option of going back to the Calendar.
    back_to_calendar($yy_mm_dd, 700, $venue);
    do_scl_index($id, $venue);
}
?>
			</div>
			<?php 
include 'footer.inc';
?>
		</div>
	</body>
</html>

<?php 
/*
 * Generate a new SCL for a shift.  If one is already there, remove it and regenerate it.
 */