Example #1
0
<?php

include_once "./vendor/autoload.php";
//      session_start();
use App\Url\Bookmark;
use App\Utility\Utility;
$bookmark = new Bookmark();
$bookmark->delete($_REQUEST['id']);
Example #2
0
                </div>
                <div id="navbar" class="navbar-collapse collapse navbar-right">
                    <ul class="nav navbar-nav">
                        <li> <a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
                        <li><a href="create.php"><span class="glyphicon glyphicon-save"></span> Add</a></li>
                        <li class="active"><a href="show.php"><span class="glyphicon glyphicon-zoom-in"></span> View</a></li>
                    </ul>
                </div><!--/.navbar-collapse -->
            </div>
        </nav>
        <!--php code here-->
        <?php 
include_once "./vendor/autoload.php";
use App\Url\Bookmark;
use App\Utility\Utility;
$bookmark = new Bookmark();
$bookmarks = $bookmark->show($_GET['id']);
?>
        <!--php code here-->

        <!-- Main jumbotron for a primary marketing message or call to action -->
        <div class="jumbotron text-center">
            <div class="container">
                <h1>Bookmark View</h1>
                <p>This is a web application. You can easily Store your URL collection with title.</p>
            </div>
        </div>

        <div class="container">
            <!--this is add and search section -->
            <div class="row">
Example #3
0
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
include_once "./vendor/autoload.php";
use App\Url\Bookmark;
use App\Utility\Utility;
$newbookmark = new Bookmark();
$newbookmark->title = $_POST['title'];
$newbookmark->url = $_POST['url'];
$newbookmark->store();
Utility::redirectbookmark();
?>
    </body>
</html>
Example #4
0
                </div>
                <div id="navbar" class="navbar-collapse collapse navbar-right">
                    <ul class="nav navbar-nav">
                        <li><a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
                        <li><a href="create.php"><span class="glyphicon glyphicon-save"></span> Add</a></li>
                        <li class="active"><a href="trashed.php"><span class="glyphicon glyphicon-retweet"></span> All Trashed</a></li>
                    </ul>
                </div><!--/.navbar-collapse -->
            </div>
        </nav>
        <!--php code here-->
        <?php 
include_once "./vendor/autoload.php";
use App\Url\Bookmark;
use App\Utility\Utility;
$bookmark = new Bookmark();
$bookmarks = $bookmark->trashed();
?>
        <!--php code here-->

        <!-- Main jumbotron for a primary marketing message or call to action -->
        <div class="jumbotron text-center">
            <div class="container">
                <h1>Bookmark Trashed Files</h1>
                <p>This is a web application. You can easily Store your URL collection with title.</p>
            </div>
        </div>

        <div class="container">
            <!--this is add and search section -->
            <div class="row">
Example #5
0
<?php

include_once "./vendor/autoload.php";
use App\Url\Bookmark;
use App\Utility\Utility;
$bookmark = new Bookmark();
$bookmark->id = $_POST['id'];
$bookmark->title = $_POST['title'];
$bookmark->url = $_POST['url'];
$bookmark->update();
Example #6
0
<?php

include_once "./vendor/autoload.php";
use App\Url\Bookmark;
use App\Utility\Utility;
//      session_start();
$bookmark = new Bookmark();
$bookmark->trash($_REQUEST['id']);
Example #7
0
<?php

include_once "./vendor/autoload.php";
//      session_start();
use App\Url\Bookmark;
use App\Utility\Utility;
$bookmark = new Bookmark();
$bookmark->recover($_REQUEST['id']);
Example #8
0
                </div>
                <div id="navbar" class="navbar-collapse collapse navbar-right">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
                        <li><a href="create.php"><span class="glyphicon glyphicon-save"></span> Add</a></li>
                        <li><a href="trashed.php"><span class="glyphicon glyphicon-retweet"></span> All Trashed</a></li>
                    </ul>
                </div><!--/.navbar-collapse -->
            </div>
        </nav>
        <!--php code here-->
        <?php 
include_once "./vendor/autoload.php";
use App\Url\Bookmark;
use App\Utility\Utility;
$bookmark = new Bookmark();
$bookmarks = $bookmark->index();
?>
        <!--php code here-->

        <!-- Main jumbotron for a primary marketing message or call to action -->
        <div class="jumbotron text-center">
            <div class="container">
                <h1>Bookmark Tools</h1>
                <p>This is a web application. You can easily Store your URL collection with title.</p>
            </div>
        </div>

        <div class="container">
            <!--this is add and search section -->
            <div class="row">