Revisión 26
Añadido por Manu Mora Gordillo hace más de 14 años
etiquetas-portatiles/trunk/index.php | ||
---|---|---|
|
||
for($i=0;$i<count($students_tmp);$i++){
|
||
if(in_array($students_tmp[$i]["uid"][0],$students))
|
||
$labels[] = array("cn"=>$students_tmp[$i]["cn"][0],"nie"=>$students_tmp[$i]["employeenumber"][0],"foto"=>$students_tmp[$i]["jpegphoto"][0]);
|
||
$labels[] = array("cn"=>$students_tmp[$i]["cn"][0],"uid"=>$students_tmp[$i]["uid"][0],"nie"=>$students_tmp[$i]["employeenumber"][0],"foto"=>$students_tmp[$i]["jpegphoto"][0]);
|
||
}
|
||
|
||
// Creamos el PDF
|
||
... | ... | |
$y = $margenY + $i*$ancho;
|
||
|
||
$pdf->Text($x, $y+$QR_size+2, $labels[$num_label]["cn"]);
|
||
$pdf->Text($x, $y+$QR_size+5, $_POST["org"]);
|
||
|
||
if(isset($_POST["org"]))
|
||
$pdf->Text($x, $y+$QR_size+5, $_POST["org"]." - ".$labels[$num_label]["uid"]);
|
||
else
|
||
$pdf->Text($x, $y+$QR_size+5, $labels[$num_label]["uid"]);
|
||
|
||
$micro = explode(" ",microtime());
|
||
$id = time().$micro[0];
|
||
|
Exportar a: Unified diff
Añadiendo el username a la etiqueta