<h1>Generar XML de DTE</h1> <script type="text/javascript"> var plantillas_dte = JSON.parse('<?php echo json_encode($plantillas_dte); ?> '); </script> <?php $f = new \sowerphp\general\View_Helper_Form(); echo $f->begin(['id' => 'generar_xml', 'onsubmit' => 'dte_generar_xml_validar()']); ?> <div class="row"> <div class="col-md-6"> <h2>Emisor</h2> <?php $f->setStyle(false); echo $f->input(['name' => 'RUTEmisor', 'label' => 'RUT', 'placeholder' => 'RUT del emisor: 11222333-4', 'check' => 'notempty rut', 'attr' => 'maxlength="12" onblur="Emisor.setDatos(\'generar_xml\')"']); echo '<br/>'; echo $f->input(['name' => 'RznSoc', 'label' => 'Razón social', 'placeholder' => 'Razón social del emisor: Empresa S.A.', 'check' => 'notempty', 'attr' => 'maxlength="100"']); echo '<br/>'; echo $f->input(['name' => 'GiroEmis', 'label' => 'Giro', 'placeholder' => 'Giro del emisor', 'check' => 'notempty', 'attr' => 'maxlength="80"']); echo '<br/>'; echo $f->input(['type' => 'select', 'name' => 'Acteco', 'label' => 'Actividad económica', 'options' => ['' => 'Actividad económica del emisor'] + $actividades_economicas, 'check' => 'notempty']); echo '<br/>'; echo $f->input(['name' => 'DirOrigen', 'label' => 'Dirección', 'placeholder' => 'Dirección del emisor', 'check' => 'notempty', 'attr' => 'maxlength="70"']); echo '<br/>'; echo $f->input(['type' => 'select', 'name' => 'CmnaOrigen', 'label' => 'Comuna', 'options' => ['' => 'Comuna del emisor'] + $comunas, 'check' => 'notempty']); echo '<br/>'; echo $f->input(['name' => 'Telefono', 'label' => 'Teléfono', 'placeholder' => 'Teléfono del emisor (opcional)', 'attr' => 'maxlength="20"']); echo '<br/>'; echo $f->input(['name' => 'CorreoEmisor', 'label' => 'Email', 'placeholder' => 'Email del emisor (opcional)', 'attr' => 'maxlength="80"']);