$user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ ); return; } global $wpdb; //”SELECT id_registro,nombre FROM `Resgistro_Usuario` where id_usuario=”.$user_id $results = $wpdb->get_results( “SELECT ru.id_registro, ru.nombre, ru.a_paterno, ru.a_materno, ru.id_usuario, COUNT(id_registro_familiares) as num_fam FROM Resgistro_Usuario as ru…Continue reading
$user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ ); return; } global $wpdb; $results = $wpdb->get_results( “SELECT id_registro,nombre,a_paterno,a_materno FROM `Resgistro_Usuario` where id_usuario=”.$user_id ); ?> Nombre Apellido Paterno Apellido Materno Ver Bitacoras Ver lista de GrabacionesContinue reading
$idreg=($_GET[‘idreg’]); $user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ ); return; } global $wpdb; $results = $wpdb->get_results( “SELECT * FROM Registro_Familiares WHERE id_registro_usuario =”.$idreg.” AND id_usuario =”.$user_id ); if(isset($_GET[“eliminarF”])) { $results = $wpdb->get_results( “DELETE FROM…Continue reading
function restrict_letters_in_phone_field( ) { ?>Continue reading
/** * Limit number range allowed for a Numbers field * Apply the class “wpf-num-limit” to the field to enable. * * @link https://wpforms.com/developers/how-to-limit-range-allowed-in-numbers-field/ */ function wpf_dev_num_limit() { ?>Continue reading
$variabledelete=($_GET[‘id_usrfami’]); global $wpdb; $wpdb->delete( ‘Registro_Familiares’, array( ‘id_registro_familiares’ => $variabledelete, ) ); echo ““;Continue reading
/** * Make standard form fields to make read-only * To apply, add CSS class ‘wpf-disable-field’ (no quotes) to field in form builder * * @link https://wpforms.com/developers/disable-a-form-field-to-prevent-user-input/ */ function wpf_dev_disable_field() { ?>Continue reading
if ( isset($_GET[‘id_benef’])&&isset($_GET[‘id_fam’])) { $id_b=($_GET[‘id_benef’]); $id_fam=($_GET[‘id_fam’]); global $wpdb; $wpdb->query(“UPDATE Registro_Familiares SET f_principal = 0 WHERE f_principal= 1 AND id_registro_usuario =”.$id_b); $wpdb->query(“UPDATE Registro_Familiares SET f_principal = 1 WHERE id_registro_familiares =”.$id_fam); echo ““; } else{ echo ““; }Continue reading
/* * Check the single line text field for profanity. * * @link https://wpforms.com/developers/wpforms_process_validate_text/ * * @param int $field_id Field ID. * @param array $field_submit Unsanitized field value submitted for the field. * @param array $form_data Form data and settings.…Continue reading