Exemplo n.º 1
0
    insert_ebook($id);
}


switch ($_GET['type']) {
    case 'work': $pageName = "$langAdd $langInsertWork";
        include 'insert_work.php';
        list_assignments();
        break;
    case 'doc': $pageName = "$langAdd $langInsertDoc";
        include 'insert_doc.php';
        list_docs();
        break;
    case 'exercise': $pageName = "$langAdd $langInsertExercise";
        include 'insert_exercise.php';
        list_exercises();
        break;
    case 'text': $pageName = "$langAdd $langInsertText";
        include 'insert_text.php';
        display_text_form();
        break;
    case 'link': $pageName = "$langAdd $langInsertLink";
        include 'insert_link.php';
        list_links();
        break;
    case 'lp': $pageName = "$langAdd $langLearningPath1";
        include 'insert_lp.php';
        list_lps();
        break;
    case 'video': $pageName = "$langAddV";
        include 'insert_video.php';
Exemplo n.º 2
0
function fitnesslog_menu_exercises()
{
    echo '<div class="wrap">';
    echo '<h2>Exercises</h2>';
    echo '<form action="' . get_bloginfo('url') . '/wp-content/plugins/fitnesslog/ftlogexercisestype.php" method="post">';
    echo '<table>';
    echo '<tr><td>Exercise Category:</td>';
    echo '<td><input type="text" name="exercise_category" id="exercise_category" TABINDEX=1/></td></tr>';
    echo '<tr><td>Exercise description:</td>';
    echo '<td><input type="text" name="exercise_desc" id="exercise_desc" TABINDEX=2/></td></tr>';
    echo '</table>';
    echo '<p class="submit"><input type="submit" value="Save Exercise" /></p>';
    echo '</form>';
    // Print out the current exercises in a table for the user to see and edit or delete.
    list_exercises();
    echo '</div>';
}
Exemplo n.º 3
0
<?php

require 'libs/checklogin.php';
require 'libs/functions.php';
$username = $_SESSION["username"];
$exercises = list_exercises($username);
echo $exercises;