diff --git a/crear_pdf_o6h.php b/crear_pdf_o6h.php
index f575f7b..4206673 100755
--- a/crear_pdf_o6h.php
+++ b/crear_pdf_o6h.php
@@ -19,7 +19,7 @@ protected $HREF = '';
function WriteHTML($html)
{
- // Intérprete de HTML
+ // Intérprete de HTML
$html = str_replace("\n",' ',$html);
$a = preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
foreach($a as $i=>$e)
@@ -275,17 +275,30 @@ function ShadowCell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false,
//$name = $_POST['name'];
$info = $_POST['pdf_power2'];
+$nombre_bd = $_POST['nombre_bd2'];
+$usuario_bd = $_POST['usuario_bd2'];
+$pass_bd = $_POST['pass_bd2'];
$nombreDominio = $_POST['dominio_nuevo'];
+$usuario_ftp = $_POST['usuario_ftp2'];
+$pass_ftp = $_POST['pass_ftp2'];
+
//$nombre_base = $_POST['nombre_bd'];
//$info=$_GET['datos_pdf'];
$enlace = '
www.open6hosting.com';
+$enlaceBlog = '
Blog';
+$enlaceFace = '
Facebook';
+$enlaceTwitter = '
Twitter';
+$enlacePriv = '
Politica de privacidad';
+$enlaceAdvertencia = '
Advertencia legal';
+$enlaceMail = '
info@open6hosting.com';
$hoy = date("d-m-Y H:i:s");
+//print 'en creacion: ' . $nombre_bd . ' ' . $usuario_bd . ' ' . $pass_bd;
$pdf = new PDFO6H();
// Primera página
$pdf->AddPage();
-$pdf->SetFont('Arial','',32);
+$pdf->SetFont('Arial','',28);
//$pdf->Write(5,'Para saber qué hay de nuevo en este tutorial, pulse ');
$pdf->SetFont('','U');
//$link = $pdf->AddLink();
@@ -299,48 +312,100 @@ $pdf->SetTextColor(0, 0, 0);
$pdf->AliasNbPages();
$pdf->SetMargins($pdf->left, $pdf->top, $pdf->right);
//$pdf->AddPage();
-
+
+$pdf->WriteHTML('
');
// create table
$columns = array();
-// header col
+// header tupla
$col = array();
-$col[] = array('text' => '', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.4', 'linearea' => 'LTBR');
-$col[] = array('text' => 'BBDD', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '135,206,250', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
-$col[] = array('text' => 'FTP', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '135,206,250', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
+$col[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.0', 'linearea' => '');
+$col[] = array('text' => 'BBDD', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$col[] = array('text' => '', 'width' => '140', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
$columns[] = $col;
-
-// data col
+//color guapo para fondo '135,206,250'
+// data tupla 1
$col = array();
-$col[] = array('text' => 'Usuario', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
-$col[] = array('text' => 'NUsuario', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
-$col[] = array('text' => 'NUsuarioFTP', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
+$col[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$col[] = array('text' => 'Nombre:', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$col[] = array('text' => $nombre_bd, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
$columns[] = $col;
-// data col
+// data tupla 2
$col = array();
-$col[] = array('text' => 'Clave', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
-$col[] = array('text' => 'NClave', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
-$col[] = array('text' => 'NClave', 'width' => '50', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => 'LTBR');
+$col[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$col[] = array('text' => 'Usuario:', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$col[] = array('text' => $usuario_bd, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
$columns[] = $col;
-
+
+// data tupla 3
+$col = array();
+$col[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$col[] = array('text' => 'Clave:', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$col[] = array('text' => $pass_bd, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$columns[] = $col;
+
+// Draw Table
+$pdf->WriteTable($columns);
$pdf->WriteHTML('
');
+// header tupla 2
+$col2 = array();
+$col2[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.0', 'linearea' => '');
+$col2[] = array('text' => 'FTP', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$col2[] = array('text' => '', 'width' => '140', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$columns2[] = $col2;
+
+// data tupla 1
+$col2 = array();
+$col2[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$col2[] = array('text' => 'Usuario:', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$col2[] = array('text' => $usuario_ftp, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$columns2[] = $col2;
+// data tupla 2
+$col2 = array();
+$col2[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$col2[] = array('text' => 'Clave:', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$col2[] = array('text' => $pass_ftp, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
+$columns2[] = $col2;
+
+
+$pdf->WriteHTML('
');
+$pdf->WriteTable($columns2);
+// header 3
+$col3 = array();
+$col3[] = array('text' => '', 'width' => '10', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.0', 'linearea' => '');
+$col3[] = array('text' => 'Nuevo Dominio:', 'width' => '40', 'height' => '7', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$col3[] = array('text' => $nombreDominio, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
+$columns3[] = $col3;
+$pdf->WriteHTML('
');
// Draw Table
-//$pdf->WriteTable($columns);
+$pdf->WriteTable($columns3);
//$pdf->AddPage();
$pdf->SetLink($link);
$pdf->Image('imagen/open6-logo.png',10,12,50,0,'','http://www.open6hosting.com');
-$pdf->SetLeftMargin(65);
-$pdf->SetFontSize(12);
+$pdf->SetLeftMargin(12);
+$pdf->SetFontSize(10);
+$pdf->WriteHTML('
');
+
+
//$pdf->WriteHTML($name);
-$pdf->WriteHTML($info);
+//$pdf->WriteHTML($info);
$pdf->WriteHTML($enlace);
+$pdf->WriteHTML('
Telf: 951 20 42 88
');
+$pdf->WriteHTML('Fax: 951 39 09 29');
+//$pdf->WriteHTML($enlace);
+$pdf->WriteHTML($enlaceBlog);
+$pdf->WriteHTML($enlaceFace);
+$pdf->WriteHTML($enlaceTwitter);
+$pdf->WriteHTML('
');
+$pdf->WriteHTML($enlacePriv);
+$pdf->WriteHTML($enlaceAdvertencia);
//$pdf->WriteHTML($nombre_base);
$pdf->Output();
diff --git a/new_service_webdns.php b/new_service_webdns.php
index c23853d..7daa7b8 100755
--- a/new_service_webdns.php
+++ b/new_service_webdns.php
@@ -191,11 +191,11 @@ class page_action extends tform_actions {
$eldom = $fields['domain'];
echo '