Formulario, Base de datos PHPMyAdmin, archivos php, html, css
-
Vale, lo haré en español, y traduciré luego para el inglés.
Estoy realizando la FCT, prácticas, en el Ayuntamiento de El Tanque, municipio en Tenerife, Canarias. Mi proyecto se ha basado en algo que la alcaldesa quiere proyectar y crear.
Mi proyecto esta basado en la creación de un formulario de incidencias para los habitantes de El Tanque. Es una web de incidencias donde marcan varias casillas según el problema, ponen algo acerca de su información personal y dirección de la incidencia.
Esa información se almacena en una base de datos, llamada incidencia, con esta estructura:
CREATE TABLE
incidencias(idint(11) NOT NULL,nombre_apellidosvarchar(255) DEFAULT NULL,correovarchar(255) DEFAULT NULL,telefonovarchar(15) DEFAULT NULL,problema_aguatinyint(1) DEFAULT NULL,problema_luztinyint(1) DEFAULT NULL,problema_carreteratinyint(1) DEFAULT NULL,mas_informaciontext DEFAULT NULL,fecha_creaciontimestamp NOT NULL DEFAULT current_timestamp(),problema_otrotinyint(1) NOT NULL DEFAULT 0,problema_cementeriotinyint(1) NOT NULL DEFAULT 0,problema_limpiezatinyint(1) NOT NULL DEFAULT 0) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
Bien, a parte de eso, he creado 3 webs para visualizar las incidencias: – La primera es para observar todas las incidencias de cualquier tipo y poder borrarlas definitivamente, como un Admin. – La segunda sirve para un concejal, de Aguas, solo tiene permitido visualizarlas y resolverlas, que dando a un botón lo que hace es modificar el problema_agua en 0, así no lo eliminaría y no le aparecería, en cambio al Admin le seguiría saliendo. – La tercera es para una concejala, quien interviene en los demás problemas, cuando los resuelve simplemente marca como resuelto y se modifica los problemas en 0 así como la segunda web, y el Admin viendo que la casilla problemas está vacía puede eliminar la incidencia.
Todo esto funciona a la perfeccion con un servidor XAMPP, ahora bien, quiero pasarlo a WordPress, he accedido a la base de datos, creado una tabla llamada incidencias con las mismas columnas exactas. Ahora, cómo puedo pasar el CSS, PHP, enlazarlo con el html, es lo único que necesito saber.
Además he creado una APP en Android Studio para visualizar la web que quiera, entonces solo me queda como hacer eso y ya estaría, gracias por escucharme
———————————TRADUCCIÓN A INGLES——————————–
I am doing the FCT, internship, at the El Tanque City Council, a municipality in Tenerife, Canary Islands. My project has been based on something that the mayor wants to project and create. My project is based on the creation of an incident form for the inhabitants of El Tanque. It is an incident website where they check various boxes depending on the problem, put something about their personal information and address of the incident. This information is stored in a database, called incident, with this structure:
CREATE TABLE
incidencias(idint(11) NOT NULL,nombre_apellidosvarchar(255) DEFAULT NULL,correovarchar(255) DEFAULT NULL,telefonovarchar(15) DEFAULT NULL,problema_aguatinyint(1) DEFAULT NULL,problema_luztinyint(1) DEFAULT NULL,problema_carreteratinyint(1) DEFAULT NULL,mas_informaciontext DEFAULT NULL,fecha_creaciontimestamp NOT NULL DEFAULT current_timestamp(),problema_otrotinyint(1) NOT NULL DEFAULT 0,problema_cementeriotinyint(1) NOT NULL DEFAULT 0,problema_limpiezatinyint(1) NOT NULL DEFAULT 0) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
Well, apart from that, I have created 3 websites to view the incidents: – The first is to observe all the incidents of any type and be able to delete them permanently, like an Admin. – The second is for a councilor, for Water, he is only allowed to view and solve them, which by clicking a button what he does is modify the water_problem to 0, so he would not delete it and it would not appear, however the Admin would continue to see it. – The third is for a councilor, who intervenes in the other problems, when she solves them she simply marks them as resolved and modifies the problems to 0 as well as the second website, and the Admin seeing that the problems box is empty can delete the incident. All of this works perfectly with a XAMPP server, now, I want to transfer it to WordPress, I have accessed the database, created a table called issues with the exact same columns. Now how can I pass the CSS, PHP, link it to the html, that’s all I need to know. I have also created an APP in Android Studio to view the website I want, so I only have how to do that and that’s it, thanks for listening to me -
¡Hola!
Voy por partes:
El proyecto parece muy interesante, pero este tipo de personalizaciones escapan un poco del tipo de soporte que damos desde aquí. Por lo que entiendo, lo que quieres crear tiene una una mezcla de PHP, HTML y CSS, así que seguramente te interese desarrollar la herramienta dentro de un plugin. Hay bastante documentación al respecto en el Codex de WordPress.org y seguramente puedan echarte una mano en sus foros oficiales:
https://codex.wordpress.org/es:Escribiendo_un_Plugin
Dicho eso, sin entrar en muchos detalles y a título meramente personal, te recomendaría que probases a usar la ayuda de una IA para crear el plugin. Para soluciones sencillas suele ser bastante efectivo :)
Y si te decides a hospedar los sitios aquí, en WordPress.com, avísanos y te echaremos una mano con las dudas que tengas más allá del código.
¡Un saludo!
- El debate ‘Formulario, Base de datos PHPMyAdmin, archivos php, html, css’ está cerrado y no admite más respuestas.