if (file_exists($CFG->dirroot . "/mod/podcast/publication/" . $podcast->course . "/rss" . $podcast->id . ".xml")) {
     // RSS Icon
     echo '<div style="border-top: 1px solid black;border-bottom: 1px solid black;">';
     echo '<p style="font-weight:bold; font-variant:small-caps;">';
     echo get_string("subscribe", "podcast");
     echo '</p>';
     echo '<p><a href="' . $CFG->wwwroot . '/mod/podcast/publication/' . $podcast->course . '/rss' . $podcast->id . '.xml">';
     echo '<img src="' . $CFG->wwwroot . '/mod/podcast/icon_rss/rss.jpg" alt="RSS" /></a></p>';
                unset($form);
                $tab = "view";
                echo "<p style='color:green;text-align:center;margin:0;font-size:0.8em;font-weight:bold;'>" . get_string('update_ok', 'podcast') . "</p>";
                // XML
                if (make_xml_podcast($podcast)) {
                    echo "<p style='color:green;text-align:center;margin:0;font-size:0.8em;font-weight:bold;'>" . get_string('xml_ok', 'podcast') . "</p>";
                } else {
                    echo "<p style='color:red;text-align:center;margin:0;font-size:0.8em;font-weight:bold;'>" . get_string('xml_error', 'podcast') . "</p>";
                }
            } else {
                $tab = "add";
                echo "<p style='color:red;text-align:center;margin:0;font-size:0.8em;font-weight:bold;'>" . get_string('errordb', 'podcast') . "</p>";
            }
            break;
        case 1:
            $tab = "add";
            echo "<p style='color:red;text-align:center;font-size:0.8em;font-weight:bold;'>" . get_string('badextension', 'podcast');
            echo " " . implode(", ", get_podcast_limit_mimetypes()) . "</p>";
            break;
        case 2:
            $tab = "add";
            echo "<p style='color:red;text-align:center;font-size:0.8em;font-weight:bold;'>" . get_string('title_empty', 'podcast') . "</p>";
            break;
        default:
    }
}
// Delete Item
$action = optional_param('action', "view", PARAM_ALPHA);
if ($action == "delete" && isteacheredit($course->id)) {
    $id_item = optional_param('id_item', 0, PARAM_INT);
    if (!delete_records_select("podcast_structure", "id = " . $id_item)) {