Changeset 2099632
- Timestamp:
- 06/03/2019 07:28:16 AM (7 years ago)
- Location:
- registro-de-jornada-laboral
- Files:
-
- 6 added
- 4 edited
-
tags/1.1.1 (added)
-
tags/1.1.1/ficharme-lite.php (added)
-
tags/1.1.1/ficharme-shortcodes.php (added)
-
tags/1.1.1/js (added)
-
tags/1.1.1/js/ajax.js (added)
-
tags/1.1.1/readme.txt (added)
-
trunk/ficharme-lite.php (modified) (2 diffs)
-
trunk/ficharme-shortcodes.php (modified) (4 diffs)
-
trunk/js/ajax.js (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
registro-de-jornada-laboral/trunk/ficharme-lite.php
r2099392 r2099632 2 2 /** 3 3 * @package ficharme_lite 4 * @version 1.1. 04 * @version 1.1.1 5 5 */ 6 6 /* … … 99 99 //Instalacion 100 100 101 function ficharme_create_plugin_database_table() 102 { 101 function ficharme_create_plugin_database_table(){ 102 103 103 104 global $table_prefix, $wpdb; 104 105 -
registro-de-jornada-laboral/trunk/ficharme-shortcodes.php
r2099392 r2099632 6 6 $current_user = wp_get_current_user(); 7 7 8 global $wpdb; 9 8 10 $consulta_where = " 1 "; 11 9 12 if ( !is_ficharme_boss() ) { 10 13 … … 14 17 $consulta = "SELECT * FROM ".$wpdb->prefix."buzz_registro_fichaje WHERE $consulta_where ORDER BY hora_registro DESC"; 15 18 16 global $wpdb;17 18 19 19 $fichajes = $wpdb->get_results( $consulta, OBJECT ); 20 20 21 22 23 $return .= '<div class="listado-fichajes">'; 21 $return = '<div class="listado-fichajes">'; 24 22 if($fichajes): 25 23 $return .= '<table>'; … … 50 48 $return .= '</table>'; 51 49 endif; 52 $retur m.= '</div>';50 $return .= '</div>'; 53 51 54 52 return $return; … … 70 68 71 69 72 $return .= '<div class="registrar-fichaje">';70 $return = '<div class="registrar-fichaje">'; 73 71 74 72 $return .= __('Hola ','ficharme') . $current_user->display_name .'<br>'; 73 75 74 if($fichajes): 76 75 -
registro-de-jornada-laboral/trunk/js/ajax.js
r2095214 r2099632 2 2 $('#registar').on('click', function(){ 3 3 4 console.log('Pulsado')4 //console.log('Pulsado') 5 5 6 6 … … 21 21 }, 22 22 success: function(response) { 23 console.log(tipoRegistro);24 23 25 console.log('OK'); 24 // console.log(tipoRegistro); 25 26 // console.log('OK'); 26 27 // Actualiza el mensaje con la respuesta 27 28 var obj = JSON.parse(response); … … 29 30 $('.ultimo_fichaje').text(obj.ultimo_fichaje); 30 31 31 32 33 32 $('#registar').text(obj.nuevo_tipo_fichaje); 34 33 $('#registar').data('tipo-registro', obj.nuevo_tipo_fichaje); 35 36 34 37 35 } -
registro-de-jornada-laboral/trunk/readme.txt
r2099392 r2099632 6 6 Tested up to: 5.2.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPLv2 or later 10 10 … … 13 13 = Como funciona = 14 14 15 * Fichar: `[ficharme_fichar]` en la pagina, post, widget o lugar poner el botón de fichar. 16 17 Automáticamente detectará el ultimo fichaje del trabajador y mostrará el botón de entrada o salida automáticamente 15 * Fichar: `[ficharme_fichar]` en la pagina, post, widget o lugar poner el botón de fichar. Automáticamente detectará el ultimo fichaje del trabajador y mostrará el botón de entrada o salida automáticamente 18 16 19 17 * Ver fichajes: `[ficharme_fichajes]` con este shortcode que puedes ingresar donde quieras mostrará los fichajes del propio usuario y si el usuario es 'Administrador' o 'Empresa', mostrará todos los fichajes de todos los trabajadores. … … 34 32 35 33 == Changelog == 34 35 = 1.1.1 = 36 37 Solucionado bug 38 36 39 = 1.1.0 = 37 40
Note: See TracChangeset
for help on using the changeset viewer.