This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Algoritmo para hacer respaldo de base de datos MySQL | |
* Evilnapsis | |
* http://evilnapsis.com/ | |
*/ | |
// Datos de Acceso a la base de datos | |
$dbhost = 'localhost'; // Host de la base de datos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$c = 10000; // Capital inicial | |
$n = 6; // Numero de CUOTAS | |
$i =(5)/ 100; // Tasa de Interes | |
$a = $c*(($i)/ ( 1 - pow((1+$i) , ($n)*-1) )); // Calcular Amortizacion | |
$a = number_format($a,2,".",""); // Formatear numero a 2 decimales | |
$saldo_inicial = $c; | |
$saldo_inicial = number_format((float)$saldo_inicial,2,".",""); // Formatear numero a 2 decimales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Notifications</title> | |
</head> | |
<body> | |
<h1>Notifications</h1> | |
<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/// Powered by Evilnapsis go to http://evilnapsis.com | |
include "fpdf/fpdf.php"; | |
$pdf = new FPDF($orientation='P',$unit='mm'); | |
$pdf->AddPage(); | |
$pdf->SetFont('Arial','B',20); | |
$textypos = 5; | |
$pdf->setY(12); | |
$pdf->setX(10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/// Powered by Evilnapsis go to http://evilnapsis.com | |
include "fpdf/fpdf.php"; | |
$pdf = new FPDF($orientation='P',$unit='mm'); | |
$pdf->AddPage(); | |
$pdf->SetFont('Arial','B',20); | |
$textypos = 5; | |
$pdf->setY(12); | |
$pdf->setX(10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src='https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.js'></script> | |
<link href='https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.css' rel='stylesheet' /> | |
</head> | |
<body> | |
<h1 style="font-size: 80px;"> Crear mapa con MapBox</h1> | |
<div id='map' style='width: 960px; height: 540px;'></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user="root"; | |
$password = ""; | |
$con = new PDO("mysql:host=localhost;dbname=contacts",$user, $password); | |
$query = $con->query("select * from person;"); | |
$result = $query->fetchAll(PDO::FETCH_OBJ); | |
echo "<h1>Todos los contactos</h1>"; | |
echo "<a href=\"insertar.php\">Insertar</a><br><br>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#selectedall").click(function(e){ // Funcion para seleccionar todos | |
e.preventDefault(); | |
var elements = document.getElementsByClassName("myitem"); // Obtenemos los elementos checkbox | |
for(var i=0;i<elements.length;i++){ // Recorremos los elementos | |
elements[i].checked = true; // Hacemos TRUE los elementos, para que se activen los checkboxes | |
} | |
}); // Termina la funcion para seleccionar todos | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="index.php?view=index&opt=new" class="btn btn-default"><i class='glyphicon glyphicon-user'></i> Nuevo</a> | |
<a href="javascript:void()" id="selectedall" class="btn btn-default"><i class='glyphicon glyphicon-th-list'></i> Seleccionar todos</a> | |
<a href="javascript:void()" id="delselected" class="btn btn-default"><i class='glyphicon glyphicon-remove'></i> Eliminar seleccionados</a> | |
<br><br> | |
<?php | |
$users = UserData::getAll(); | |
if(count($users)>0){ | |
?> | |
<div class="box box-primary"> | |
<table class="table table-bordered datatable table-hover"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>X-EDITABLE - Evilnapsis</title> | |
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css"> | |
<script type="text/javascript" src="js/jquery.min.js"></script> | |
<script src="js/plotly.min.js"></script> | |
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script> | |
<script src="bootstrap3-editable/js/bootstrap-editable.min.js"></script> |
NewerOlder