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# (38)
  • Java (16)
  • Kotlin (2)
  • Nomenclatura (1)
  • PHP (2)
  • POO (20)
  • Programación Funcional (3)
  • Visual Basic (8)
  • WPF (16)

Entradas

  • noviembre 2019
  • septiembre 2019
  • 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

  • Recovery of crashed long running Spark jobs on Kubernetes
  • How can i change the menu item (register) > (unregister) once registered and back to (register) when (unregister) is pressed?
  • Is there a way to save some frequently used text and paste inside code in VSCode?
  • Sqoop is giving error on HDInsight by curl
  • Why can I only pickle 2 files BUT only unpickle one?
  • Guzzle: Convert Regular Request to Asynchronous Request
  • How to make scrollview scroll only upto keyboard height in all iphone devices in swift?
  • How to run or debug flutter project on both android and iOS at ones?
  • import JSON data to models in Django
  • Box-shadow is not working on my image element

RSS CodeProject

  • Global Weather - React App with ASP.NET Core 3.0 (Part 2)

Etiqueta: diálogo

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

por Wakien PHP26 enero, 201812 febrero, 2018154 WordsDeja un comentario
Blog de 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.