PHP Classes

File: src/Unisal/Encurtador/views/index.twig

Recommend this page to a friend!
  Classes of Lucas de Oliveira  >  Encurtador URL MongoDB  >  src/Unisal/Encurtador/views/index.twig  >  Download  
File: src/Unisal/Encurtador/views/index.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Encurtador URL MongoDB
PHP URL shortener that stores URLs in MongoDB
Author: By
Last change:
Date: 1 year ago
Size: 950 bytes


Class file image Download
{% extends 'layout/base.twig' %}

{% block conteudo %}
    <div class="jumbotron">

        <h3>Insira a URL abaixo:</h3>

        <p><input type="text" class="span8 url"></p>

        <a class="btn btn-large btn-primary encurtar" href="#">>> Encurtar <<</a>

        <br /><br />

        <!-- Url encurtada -->
        <div class="url-encurtada">
            <h3>Url encurtada:</h3>



    <div class="row-fluid marketing ultimas">
        <h2>Últimas URLs encurtadas</h2>
        <div class="span9">
                {% for url in urls %}
                    {% set detalhes = '/?c=detalhes&url='~url['url_encurtada'] %}
                    <li><a href="{{detalhes}}">{{host}}{{detalhes}}</a> - <small>({{url['horario']}})</small></li>
                    {% endfor %}

{% endblock %}
For more information send a message to info at phpclasses dot org.