How to integrate the bootstrap in a project in php in dreamweaver cs5.5?

0

I'm having difficulty integrating the bootstrap into dreamweaver. For better insight, I'll post the code.

header.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>CRUD EM PHP COM PDO OOP USANDO BOOTSTRAP</title>
	<link href="bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet" media="screen>
</head>

<body>
	<div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
 
        <div class="navbar-header">
            <a class="navbar-brand" href="http://www.codingcage.com" title='Programming Blog'>Coding Cage</a>
            <a class="navbar-brand" href="http://www.codingcage.com/search/label/CRUD">CRUD</a>
            <a class="navbar-brand" href="http://www.codingcage.com/search/label/PDO">PDO</a>
            <a class="navbar-brand" href="http://www.codingcage.com/search/label/jQuery">jQuery</a>
        </div>
 
    </div>
</div>

footer.php:

<div class="container">
 <div class="alert alert-info">
    <strong>tutorial !</strong> <a href="http://www.codingcage.com/">Coding Cage</a>!
 </div>
</div>
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>

dbconfig.php:

<?php
    $DB_host = "localhost";
    $DB_user = "root";
    $DB_pass = "";
    $DB_name = "dbpdo";

    try
    {
        $DB_con = new PDO("mysql:host{$DB_host}; dbname={$DB_name}",$DB_user,$DB_pass);
        $DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    }
    catch (PDOException $e)
    {
        echo $e->getMessage();
    }

    include_once 'class.crud.php';
    $crud = new crud($DB_con); 
?>

index.php

<?php include_once 'dbconfig.php'; ?>
    <?php include_once 'header.php'; ?>

    <div class="clearfix"></div>

    <div class="container">
        <a href="add-data.php" class="btn btn-large btn-info"><i class="glyphicon glyphicon-plus"></i> &nbsp; Gravar</a>
    </div><!--container-->

    <div class="clearfix"></div><br />

    <div class="container">
        <table class='table table-border table-responsive'>
            <tr>
                <th>#</th>
                <th>Nome</th>
                <th>Sobrenome</th>
                <th>Email</th>
                <th>Telefone</th>
                <th colspan="2" align="center">Ação</th>            
            </tr>
            <?php
                $query="SELECT * FROM tbl_usuarios";
                $record_per_page=3;
                $newquery=$crud->paging($query,$records_per_page);
                $crud->dataview($newquery);
            ?>
            <tr>
                <td colspan="7" align="center">
                    <div class="pagination-wrap">
                        <?php $crud->paginglink($query,$record_per_page); ?>

                    </div><!--pagination-wrap-->                
                </td>
            </tr>

        </table>

    </div><!--container-->

    <?php include_once 'footer.php';?>

As a result I have this:

    
asked by anonymous 20.03.2017 / 15:55

0 answers