This file contains hidden or 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
<style type="text/css"> | |
label { | |
float: left; | |
display: block; | |
width: 150px; | |
} | |
input { | |
display: block; | |
} | |
.nostyle { |
This file contains hidden or 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 | |
/* | |
Scrivere una stringa 10 volte senza usare un ciclo | |
*/ | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; |
This file contains hidden or 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 | |
/* | |
Esempio utilizzo ciclo for per mostrare gli elementi di un array | |
*/ | |
/* | |
Dichiaro un array contenente i numeri dispari compresi fra 1 e 10 | |
*/ | |
$array = [1,3,5,7,9]; |
This file contains hidden or 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 | |
/* | |
Scrivere una stringa 10 volte senza usare un ciclo | |
*/ | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; | |
echo "Hello world! <br />"; |
This file contains hidden or 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
<html> | |
<head> | |
<title>PHP pdo</title> | |
</head> | |
<body> | |
<?php | |
$user = 'KBFD9iLsqO'; | |
$password = 'hpZrTdZJCp'; | |
$db = 'KBFD9iLsqO'; | |
$host = 'remotemysql.com'; |
This file contains hidden or 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 | |
$vjson = '[{"id":1,"proyecto":"01","ncosto":"112000000.00","unidades_rh":33792}, {"id":2,"proyecto":"02","ncosto":"5000000.00","unidades_rh":256000}, {"id":3,"proyecto":"03","ncosto":"70000000.00","unidades_rh":11088}, {"id":4,"proyecto":"04","ncosto":"300000000.00","unidades_rh":6336}, {"id":5,"proyecto":"05","ncosto":"10000000.00","unidades_rh":5280}]'; | |
$arr1 = json_decode($vjson,true); | |
print_r($arr1); | |
echo "<br><br>"; | |
$totCosto = $totRH = 0; | |
$totRecs = count($arr1); |
This file contains hidden or 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 | |
function transformCode($number, $reverse = false) | |
{ | |
$number = (string)$number; | |
$len = mb_strlen($number); | |
$codeMap = ['HwBm', 'AzFk', 'XdIp', 'KjJq', 'PlLs', 'QtMg', 'ErNe', 'DfOh', 'VbTv', 'GyUx', 'C' => 'CCCC']; | |
$reverseCodeMap = ['H' => 0, 'w' => 0, 'B' => 0, 'm' => 0, | |
'A' => 1, 'z' => 1, 'F' => 1, 'k' => 1, | |
'X' => 2, 'd' => 2, 'I' => 2, 'p' => 2, | |
'K' => 3, 'j' => 3, 'J' => 3, 'q' => 3, |
This file contains hidden or 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
<html> | |
<head> | |
</head> | |
<body> | |
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> | |
<script src="https://code.jquery.com/jquery-1.10.2.js"></script> |
This file contains hidden or 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 | |
session_start(); | |
/*вспомогательный класс для отрисовки таблицы */ | |
class Table | |
{ | |
static $tr = []; | |
// собирает таблицу |
This file contains hidden or 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 | |
asdfasdfa | |
?> |