Example #1
0
function afmng_ajax_get_releases()
{
    $project_id = $_POST['project_id'];
    $data = afmng_db_project_releases($project_id);
    ob_clean();
    echo json_encode($data);
    die;
    // this is required to return a proper result
}
Example #2
0
	<?php 
    }
    ?>



	<table class="afmng_table">
		<thead>
			<tr>
			<th>#</th>
			<th>Titel</th>
			<th>Status</th>
			</tr>
		</thead>
	<?php 
    foreach (afmng_db_project_releases($project->project_id) as $release) {
        ?>
		<?php 
        $steps = afmng_db_release_steps($release->release_id);
        ?>
		<tr>
			<td>
				<a href="#" title="Episode anzeigen" onclick="afmng_episode_show(<?php 
        echo $release->release_id;
        ?>
); return false;">
				<?php 
        echo $release->episode_no;
        ?>
				</a>
			</td>