$jsb = new jsBasicForm("frmRegistroDeIde");
$jsb->show();
if ($action == false) {
    //$jxc ->drawJavaScript(false, true);
    ?>
<body>
<form name="frmRegistroDeIde" method="POST" action="./ide_registro_de_pago.frm.php?a=ok">
<fieldset>
	<legend><script> document.write(document.title); </script></legend>
	<table border='0'   >
		<tbody>
		<tr>
			<td>Fecha de Pago</td>
			<td><?php 
    $xF1 = new cFecha(0);
    echo $xF1->show();
    ?>
</td>
		</tr>		
		<tr>
			<td>Banco</td>
			<td><?php 
    $gssql = "SELECT idbancos_cuentas, descripcion_cuenta FROM bancos_cuentas";
    $cBc = new cSelect("cBanco", "id-banco", $gssql);
    //$cFJ->addEvent("onchange", "getCambiosFigura");
    $cBc->setEsSql();
    $cBc->show(false);
    ?>
</td>
		</tr>
		<tr>
//if($permiso === false){		header ("location:../404.php?i=999");	}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
//=====================================================================================================
$xP = new cHPage("Pruebas de Fechas", HP_FORM);
$xP->setIncludes();
echo $xP->getHeader();
echo $xP->setBodyinit();
//Crear formularios
$xHFrm = new cHForm("frmTest", "./test.php");
$xHTxt = new cHText("");
//$txt 	= $xHTxt->getDeMoneda("id", "Moneda de Prueba",  100);
$miFecha = parametro("fecha", fechasys());
$xF = new cFecha(0, $miFecha);
//$xHFrm->addHElem( $txt );
$xHFrm->addHElem($xF->show(true));
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, Inicio se semana==" . $xF->getFechaDeInicioDeSemana() . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, Inicio se nombre semana==" . $xF->getDayName($xF->getFechaDeInicioDeSemana()) . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, Dias del Mes==" . $xF->getDiasDelMes() . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, En Fecha Corta==" . $xF->getFechaCorta() . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, Fecha Larga==" . $xF->getFechaLarga() . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, En Fecha Mediana==" . $xF->getFechaMediana() . "</p>");
//$xHFrm->addHElem(  );
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, Fecha Operativa Maxima==" . $xF->getFechaMaximaOperativa() . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, El Mes Anterior==" . $xF->getFechaMesAnterior() . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, dos meses atras==" . $xF->getFechaMesAnterior(false, 2) . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}  - 30 Dias==" . $xF->setRestarDias(30) . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}  + 30 Dias==" . $xF->setSumarDias(30) . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}  + 2 meses==" . $xF->setSumarMeses(2) . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}  - 2 meses==" . $xF->setRestarMeses(2) . "</p>");
$xHFrm->addHElem("<p class='aviso'>La {$miFecha}, Nombre del Dia==" . $xF->getDayName() . "</p>");
				
			</select></td>
		</tr>
		<tr>
		<!-- <option value="saldos_a_fecha">Comparar con saldos a fecha determinada</option> -->
			<th>Tipo de Comparacion</th>
			<td><select name="tCompara">
				<option value="normal" selected>Comparar con saldos Actuales</option>
				<option value="ultimocierre">Comparar con el Ultimo cierre</option>
			</select></td>
		</tr>		
		<tr>
			<th>Fecha de Cierre de CompacW</th>
			<td><?php 
    $xF = new cFecha(0);
    echo $xF->show(true, "OPERATIVO");
    ?>
</td>
		</tr>
		<tr>
			<th colspan="2"><input type="submit" value="Enviar Archivo" /></th>
		</tr>
		</tbody>
	</table>
</fieldset>
</form>
<?php 
} elseif ($action == "u") {
    ?>
<form name="frmConvs" method="POST" action="">
<fieldset>
		<td><?php 
echo $xHP->lang("observaciones");
?>
</td>
		<td><input name='observaciones' type='text' value='' size="35" maxlength="100" id='idobservaciones' /></td>
	</tr>

	<tr>
		<td><?php 
echo $xL->getT("TR.Fecha de Ministracion");
?>
</td>
		<th><?php 
$xF = new cFecha(1);
$xF->addEvent("onchange", "setEvaluateDate");
$xF->show(false, "OPERATIVO");
?>
</th>
		<th class='warn' id="swFechaMin" colspan='2'></th>
	</tr>
</table>
<p class="aviso" id='idfrmval'><input type="button" name="cmdSubmit" onclick="jsPrevalidarCredito();" value="<?php 
echo $xL->getT("TR.VALIDAR CREDITO");
?>
"></p>
<div id="informacion"></div>
<input type="hidden" id="idalertas" />
</form>
<!-- Datos del Socio, si existe -->
<div id="vcodev"></div>
</fieldset>
function ctrl_date($index = 0, $fecha = 0, $events = "", $tipo = "OPERATIVO")
{
    $cFecha = new cFecha($index, $fecha);
    return $cFecha->show(true, $tipo);
}
echo $xHP->getHeader();
$jsb = new jsBasicForm("frm");
echo $xHP->setBodyinit();
//$oFRM		= new cHForm("frmTemplate", "./");
//echo $oFRM->get();
echo $xHP->setBodyEnd();
?>
<!-- HTML content -->
<!-- Start Formoid form-->
<form class="formoid-default" name="frm" id="frm" title="Registro de Fichas de Pago de Empresas" method="post">
	<div class="element-title" ><h2 class="title">Registro de Depositos</h2></div>
	<div class="element-select" >
		<label class="title">Fecha de Pago<span class="required">*</span></label>
		<?php 
$xF = new cFecha(98);
echo $xF->show(true, FECHA_TIPO_OPERATIVA);
?>
	</div>
	<div class="element-select" ><label class="title">Empresa<span class="required">*</span></label>
		<?php 
$xEmp = new cSocios_aeconomica_dependencias();
$xSel = new cSelect("idempresa", "idempresa", $xEmp->get());
$xSel->addEvent("onchange", "jsaGetEmpresa");
echo $xSel->get();
?>
	</div>
	<div class="element-select" >
		<label class="title">Periocidad<span class="required">*</span></label>
	<?php 
$sqlSc = "SELECT\r\n\t\t\t    `creditos_periocidadpagos`.`idcreditos_periocidadpagos`,\r\n\t\t\t    `creditos_periocidadpagos`.`descripcion_periocidadpagos`\r\n\t\t    FROM\r\n\t\t\t    `creditos_periocidadpagos` `creditos_periocidadpagos`\r\n\t\t    WHERE\r\n\t\t\t    (`creditos_periocidadpagos`.`idcreditos_periocidadpagos` !=99) ";
$xTP = new cSelect("periocidadpagos", "idperiocidadpagos", $sqlSc);
 function get($label = "", $Fecha = false, $indice = false)
 {
     $xTr = new cLang();
     $label = $xTr->getT($label);
     $maxSize = $this->mLabelSize == 0 ? HP_LABEL_SIZE : $this->mLabelSize;
     if ($indice !== false) {
         $this->mIndex = $indice;
     }
     if (strlen($label) < $maxSize) {
         $rll = $maxSize - strlen(html_entity_decode($label));
     }
     $extraDate = "";
     $label = $label == "" ? "" : "<label for='idfecha-" . $this->mIndex . "'>{$label}</label>";
     $this->set($Fecha);
     $xF = new cFecha($this->mIndex, $this->mFecha);
     $events = $this->mEvents;
     $xF->init(FECHA_FORMATO_MX);
     $id = $this->mId == "" ? "idfecha-" . $this->mIndex . "" : $this->mId;
     if ($this->mTipoFecha == FECHA_TIPO_NACIMIENTO) {
         $anno = $xF->anno() - 18;
         $xF->set("{$anno}-" . $xF->mes() . "-" . $xF->dia());
         $this->set($xF->get());
         $extraDate = ",selectYears: true ";
     }
     $txt = "<input type=\"text\" id=\"{$id}\" value=\"" . $xF->get() . "\" name=\"{$id}\" {$events}><script>\$(\"#{$id}\").pickadate({format: 'dd-mm-yyyy',formatSubmit:'yyyy-mm-dd', editable : true {$extraDate}});</script> ";
     $initDiv = $this->mClassDiv == "" ? "" : "<div class=\"" . $this->mClassDiv . "\">";
     $endDiv = $this->mClassDiv == "" ? "" : "</div>";
     return $this->mSelects == false ? $initDiv . $label . $txt . $endDiv : $initDiv . $label . $xF->show(true, $this->mTipoFecha) . $endDiv;
 }
		<td><input type="text" name="tfijo" value="<?php 
echo $arrD["telefono_residencia"];
?>
" id="idTFijo" class="mny" size='10' maxlength='18' /></td>
		<td>Telefono Mov&iacute;l</td>
		<td><input type="text" name="tmovil" value="<?php 
echo $arrD["telefono_movil"];
?>
" id="idTMovil" class="mny" size='10' maxlength='18' /></td>
	</tr>
	<tr>
		<td>Fecha de Nacimiento</td>
		<td>
		<?php 
$xF = new cFecha(0, $arrD["fecha_nacimiento"]);
$xF->show(false, "NACIMIENTO");
?>
</td>
		<td>C.U.R.P.</td>
		<td><input type="text" name="curp" id="idCurp" size='15' value="<?php 
echo $arrD["curp"];
?>
"/></td>
	</tr>
	<tr>
		<td>Ocupaci&oacute;n</td>
		<td colspan="1"><input name="ocupacion" type="text" maxlength="50" size="25" id="idOcupacion" value="<?php 
echo $arrD["ocupacion"];
?>
" /></td>
		<td>Porcentaje Rel.</td>
//$jxc ->drawJavaScript(false, true);
?>
<body>
<form name="" method="POST" action="./">
<fieldset>
	<legend>Reporte Prudencial R0411.- Cartera de Credito por Tipo</legend>
	<table border='0' width='100%'  >
		<tbody>
		<tr>
			<td>Fecha Inicial</td>
			<td><?php 
$cFecha1 = new cFecha(0);
$cFecha1->show();
?>
</td>
			<td>Fecha Final</td>
			<td><?php 
$cFecha2 = new cFecha(0);
$cFecha2->show();
?>
</td>
		</tr>
		</tbody>
	</table>
</fieldset>
</form>
</body>
<script  >
</script>
</html>