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

Entradas

  • enero 2022
  • 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

  • regular expression to replace a combination of characters with a single character
  • How to make a Spring JPARepository query to find most linked entities in other tables
  • Check if an array has certain characters
  • Custom Annotation with Lint Suppress and Reason
  • How to add custom data like "filename, email-id, created by" to plotly figure at the right end/top of the figure
  • Why does Dynatrace show images are failed to load?
  • Psychotherapy Services Toronto | Psychotherapist Pricing | NKS
  • Is there in typescript a common super class for all object like in Java?
  • How to sum multiple columns using a single formula in Google Sheets?
  • "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."

RSS CodeProject

  • How to Install Home Assistant Container on Windows and Publish an MQTT Message
  • Using hCaptcha in ASP.NET Web Forms
  • Binding Several Data Sources to One Reporting Tool
  • Result Builder in Swift for MVVM Pattern

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

Anuncio publicitario
por Wakien PHP26 enero, 201812 febrero, 2018154 palabrasDeja 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
Privacidad y cookies: este sitio utiliza cookies. Al continuar utilizando esta web, aceptas su uso.
Para obtener más información, incluido cómo controlar las cookies, consulta aquí: Política de cookies
  • Seguir Siguiendo
    • wakicode
    • ¿Ya tienes una cuenta de WordPress.com? Accede ahora.
    • wakicode
    • Personalizar
    • Seguir Siguiendo
    • Regístrate
    • Acceder
    • Denunciar este contenido
    • Ver sitio web en el Lector
    • Gestionar las suscripciones
    • Contraer esta barra
 

Cargando comentarios...