Saltar al contenido.
Menú

wakicode

Desarrollo de software

Buscar en el blog

social networks

  • Ver perfil de joaquinmrus en Facebook
  • Ver perfil de @Er_Waki en Twitter
  • Ver perfil de JoaquinMartinezRus en Google+

Arithmos

Blog de Matemáticas

Virgulilla

Blog sobre el español

Categorías

  • Algoritmos (3)
  • Android (3)
  • c# (36)
  • Java (16)
  • Nomenclatura (1)
  • PHP (2)
  • POO (20)
  • Programación Funcional (3)
  • Visual Basic (8)
  • WPF (15)

Entradas

  • septiembre 2018
  • marzo 2018
  • febrero 2018
  • enero 2018
  • diciembre 2017
  • noviembre 2017
  • octubre 2017
  • septiembre 2017
  • julio 2017
  • junio 2017
  • marzo 2017
  • octubre 2016
  • septiembre 2016
  • agosto 2016
  • julio 2016
  • junio 2016
  • mayo 2016
  • enero 2016
  • octubre 2014
  • septiembre 2014
  • agosto 2014

RSS Stack Overflow

  • Importing PCAP into Elasticsearch
  • How to add a hyperlink in overleaf?
  • How do i put box-shadow to Bar(point) on hover of Highcharts?
  • OptionMenu in Tkinter automatically adds brackets to options
  • SYSSEQUENCES in SYSIBM type *FILE not found Error
  • C++ - Defining commas as decimal seperators for CSV-file import and data manipulation
  • MySQL gruop by when there is no aggregation
  • Android notifyDataSetChanged for nested Adapter doesn't work
  • how can I call WinUsb_WritePipe method in C# without issue
  • sending data from app to server works on localhost but not on live server

RSS CodeProject

  • NLP-Samurai@0.0.10 Natural Language Processing Engine In Node.js, Angular 2 and MySQL
  • Implementing an AutoComplete Control on ASP.NET Core using Telerik
  • A Very Basic Binary Search Tree For Excel VBA
  • LINQ to CSV, a Type-Safe, dynamic High-Performance Approach
  • How to enable remote connections to your PostgreSQL server (in Container Station) on QNAP NAT server over the router
  • Entity Framework 2.1 - npg PostgreSql Error
Anuncios

Mes: enero 2018

Diálogo en PHP

Diálogo en PHP
Un sencillo cuadro de dialogo en php. Tiene tres argumentos, uno el título, otro el texto del botón y otro el mensaje en el cual podemos insertarle más HTML. Le asignamos una imagen al botón de cerrar o cancelar y . Este mismo puede usarse añadiéndole un botón más como diálogo de confirmación.

// Obtiene el código html de un cuadro de dialogo
    function getDialog($title, $buttonText, $value1){
        $message = "<div class='divcentrado'>
        
        <table width='100%' cellspacing="0px">
        <tr style='background-color:#73A5C5;color:#FFE4C1;'><td width='30px'></td><td width='180px' style='text-align:left;'>$title</td><td style='text-align:right;'></td></tr>
        <tr><td colspan='3'></td></tr>
        <tr><td></td><td colspan='2'>$value1</td></tr> 
        <td colspan='3' height='30px'></td>
        <tr><td colspan='2'></td><td style='text-align:right;'></td></tr>
        </table></div>";
        return $message;
    }

y el estilo que se lo podéis incluir al div o dejarlo fuera


.divcentrado {
            position: fixed;
            left:50%;
            top:50%;
            margin-left: -200px;
            margin-top: -100;
            width: 400px;
            height: 200px;
            background-color: antiquewhite;
            box-shadow: 5px 10px;
            border-style: double;
            border-color: #255c80;
        }
.btn {
            margin-right:30px; 
            width:80px;
            height: 30px;
            cursor: pointer;
            background: antiquewhite;
            font-weight: bold;
            border: 1px solid #73A5C5;
            border-radius: 5px;
        }
        
.btn:hover{
            color:antiquewhite;
            background-color: #73A5C5;
            border: 1px solid #fff
        }

dialogo_php

Anuncios
por Wakien PHP26 enero, 201812 febrero, 2018154 WordsDeja un comentario
Crea un blog o un sitio web gratuitos con WordPress.com.

Menú

  • Acerca de…
  • Libros
  • Eventos
  • Enlaces
  • Categorías
    • c#
    • Java
    • POO
    • Visual Basic
  • Arithmos. Mi blog de mates y física
  • Virgulilla
Cancelar
Privacidad & Cookies: este sitio usa cookies. Al continuar usando este sitio, estás de acuerdo con su uso. Para saber más, incluyendo como controlar las cookies, mira aquí: Política de Cookies.