?> </td> </tr> <tr> <td>Mostrar Graficos</td> <td colspan="3"><?php echo select_bool("mostrar_grafico"); ?> </td> </tr> <tr> <td>Sucursal</td><td><?php $cSuc = new cSelect("cSucursal", "idSucursal", "general_sucursales"); $cSuc->addEspOption("todas", "Todas"); $cSuc->setOptionSelect("todas"); $cSuc->setNoMayus(); $cSuc->show(false); ?> </td> </tr> <tr> <td>Estatus del Credito</td> <td><?php $xse = new cSelect("estatuscredito", "", "creditos_estatus"); $xse->addEspOption("todas", "Todos"); $xse->setOptionSelect("todas"); $xse->show(false); ?> </td> </tr> <tr>
function __construct($tipo = iDE_CREDITO, $filtro = "", $addList = true) { $this->mTipo = $tipo; $this->mFiltro = $filtro; $this->mOFRM = new cHForm("frmpanel"); $this->mOFRM->OButton("TR.Obtener Reporte", "jsGetReporte()", "reporte", "cmdgetreporte"); //$this->mOFRM->setFieldsetClass("fieldform frmpanel"); $SqlRpt = "SELECT * FROM general_reports WHERE aplica='" . $this->mFiltro . "' ORDER BY `order_index` ASC,`idgeneral_reports` "; $cSRpt = new cSelect("idreporte", "idreporte", $SqlRpt); $cSRpt->setEsSql(); $cSRpt->setNoMayus(); $cSRpt->addEvent("onblur", "if(typeof jsBlurListaDeReportes !='undefined'){ jsBlurListaDeReportes(); }"); $this->mJsVars .= "var idreporte\t= \$('#idreporte').val();\r\n"; $this->mSelectReports = $cSRpt->get("TR.Nombre del Reporte", true); if ($addList == true) { $this->mOFRM->addHElem($this->mSelectReports); } }