Ejemplo n.º 1
0
$(function() {
	$( "#selectable" ).selectable();
});
</script>
<script type="text/javascript">
    initialize();
</script>
</div>
<div class="unit one-third">
	<?php 
    include_once 'common/sidebar.php';
    ?>
</div>
</div>
</div>
<?php 
} elseif (isset($_GET['list'])) {
    echo "<ul id='list'>";
    include_once 'inc/class.lists.inc.php';
    $lists = new SpinnereyeListsItems($db);
    list($LID, $URL) = $lists->loadListItemsByListId();
    echo '</ul>';
} else {
    ?>

      <div class="lander"><div class="landertext">“In the long term, the Google generation, the liberals, will be swallowed up and erased from history.”</img></div></div>


<?php 
}
include_once 'common/footer.php';
Ejemplo n.º 2
0
<?php

session_start();
include_once "../inc/constants.inc.php";
include_once "../inc/class.lists.inc.php";
if (!empty($_POST['action']) && isset($_SESSION['LoggedIn']) && $_SESSION['LoggedIn'] == 1) {
    //error_log('record-action'.$_POST['record']);
    $listObj = new SpinnereyeListsItems();
    switch ($_POST['action']) {
        case 'add':
            echo $listObj->addListItem();
            break;
        case 'update':
            $listObj->updateListItem();
            break;
        case 'sort':
            $listObj->changeListItemPosition();
            break;
        case 'color':
            echo $listObj->changeListItemColor();
            break;
        case 'done':
            echo $listObj->toggleListItemDone();
            break;
        case 'delete':
            echo $listObj->deleteListItem();
            break;
        default:
            header("Location: /");
            break;
    }