Exemplo n.º 1
0
            $the_quiz_id = guruAdminModelguruTask::real_quiz_id($the_text_id);
        }
    }
}
$the_text_obj = guruAdminModelguruTask::select_text($program->id, 2, 11);
if ($the_text_obj) {
    $the_text_obj = explode('$$$$$', $the_text_obj);
    $the_text_id = $the_text_obj[0];
    if ($the_text_id > 0) {
        $layout_text11 = $the_text_id;
        $layout_text11_content = guruAdminModelguruTask::parse_txt($layout_text11);
        $style_before_menu_txt_11 = 'style="display:none"';
        $style_after_menu_txt_11 = '';
        if ($the_text_obj[1] == 2) {
            $text_is_quiz = 1;
            $the_quiz_id = guruAdminModelguruTask::real_quiz_id($the_text_id);
        }
    }
}
$layout_media15 = 0;
$style_before_menu_med_15 = '';
$style_after_menu_med_15 = 'style="display:none"';
$the_media_id = guruAdminModelguruTask::select_media($program->id, 1, 12);
if ($the_media_id > 0) {
    $layout_media15 = $the_media_id;
    $layout_media15_content = guruAdminModelguruTask::parse_media($layout_media15, "15");
    $style_before_menu_med_15 = 'style="display:none"';
    $style_after_menu_med_15 = '';
}
$narration = 0;
$style_before_menu_med_99 = '';
Exemplo n.º 2
0
	</tr>
</thead>

<tbody>
<?php 
$pid = intval($_GET['cid'][0]);
if ($n > 0) {
    for ($i = 0; $i < $n; $i++) {
        $file = $this->medias[$i];
        $media_to_replace = $_GET['txt'];
        $id = $file->id;
        $checked = JHTML::_('grid.id', $i, $id);
        $asoc_file = guruAdminModelguruTask::get_asoc_file_for_media($id);
        $action = JRequest::getVar("action", "");
        if ($file->type == 'quiz') {
            $the_quiz_id = guruAdminModelguruTask::real_quiz_id($file->id);
        }
        if ($file->type == 'quiz') {
            $link = "addmedia('" . $id . "', '" . addslashes($file->name) . "', '" . addslashes($asoc_file) . "', '" . $file->instructions . "' , '1', '" . $the_quiz_id . "' ); ";
        } else {
            if ($action == "new_module") {
                $link = "addmedia('" . $id . "', '" . addslashes($file->name) . "', '" . addslashes($asoc_file) . "', '" . $file->instructions . "' , '0', 'new_module' ); ";
            } else {
                $link = "addmedia('" . $id . "', '" . addslashes($file->name) . "', '" . addslashes($asoc_file) . "', '" . $file->instructions . "' , '0', '0' ); ";
            }
        }
        $published = JHTML::_('grid.published', $file, $i);
        if ($file->type == 'text') {
            ?>
	<tr class="camp0"> 
	   <td><?php