コード例 #1
0
ファイル: list_view.php プロジェクト: AliEksi/DokuDok
//("users.php");
//echo 'something good';
//session_start();
if (isset($_POST['lout'])) {
    session_start();
    //echo $_SESSION['password'];
    //echo $tst;
    User::deleteUser($_SESSION['password']);
    //echo 'passed';
    logout();
    //direct('google.com');
}
list_verify();
$link_list = "";
$id = 0;
foreach (list_docs() as $doc) {
    # code...
    $current_html = "<input type='radio' name='docname' value='{$doc}'>{$doc}<br>";
    $link_list .= $current_html;
}
echo '<div class="login-card">';
echo '<h1>Book List</h1>';
echo "<form action='ajax_viewer.php' method='post' accept-charset='utf-8'>\n\t\t{$link_list}\n<br/><input type='submit' name='doc_form' value='Read' class='login login-submit'>\n</form>";
echo "<form action='' method='post'>\n\t<input type='submit' name='lout' value='Logout' class='login login-submit'>\n\t</form>";
echo '</div>';
//logout();
?>

<script src='inc/jquery.min.js'></script>
<script src='inc/jquery-ui.min.js'></script>
</body>
コード例 #2
0
ファイル: insert.php プロジェクト: nikosv/openeclass
    insert_wiki($id);
} elseif (isset($_POST['submit_link'])) {
    insert_link($id);
} elseif (isset($_POST['submit_ebook'])) {
    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';