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 (6)
  • Android (3)
  • c# (42)
  • Java (16)
  • Kotlin (11)
  • Nomenclatura (1)
  • PHP (2)
  • POO (26)
  • Programación Funcional (3)
  • Visual Basic (8)
  • WPF (17)

Entradas

  • diciembre 2020
  • septiembre 2020
  • agosto 2020
  • julio 2020
  • marzo 2020
  • 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

  • failed to build a react and laravel app in Heroku
  • GraphQL with nested schema returning null
  • setState not returned from render when using Axios
  • Why does long%int in java sometimes round up? (not being converted to float/double)
  • node-express sever data undefined
  • How to assign int values to char in Java?
  • How Can I Add a New Value Automatically to a Dictionary in Python
  • how to extract the number 2 digits after the second period
  • Need a way to use button click functionality vs GetKeyDown in Coroutine
  • How to handle blur and enter keyup events for custom Vuetify input?

RSS CodeProject

  • Integer Factorization: Dreaded List of Primes
  • Integer Factorization: Optimizing Small Factors Checking
  • Integer Factorization: Trial Division Algorithm
  • DWinLib Build Process
  • Integer factorization: Reversing the Multiplication
  • YACB - Yet Another Circular Buffer
  • Paging and Sorting using ASP .NET Core Razor Page, Web API, and Entity Framework

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

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.