本文整理汇总了PHP中config::mostrarConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP config::mostrarConfig方法的具体用法?PHP config::mostrarConfig怎么用?PHP config::mostrarConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类config
的用法示例。
在下文中一共展示了config::mostrarConfig方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dato
function dato($Campo)
{
global $folder;
include_once $folder . "class/config.php";
$config = new config();
$cnf = $config->mostrarConfig($Campo);
return htmlspecialchars($cnf['Valor']);
}
示例2: factura
<?php
include_once "../../login/check.php";
$titulo = "RegistrarFactura";
$folder = "../../";
include_once "../../class/config.php";
include_once "../../class/factura.php";
$factura = new factura();
$config = new config();
$FechaLimiteEmision = $config->mostrarConfig("FechaLimiteEmision", 1);
$estado = $factura->statusTable();
$NReferencia = $estado['Auto_increment'];
$f = $factura->mostrarNumeroFactura("Estado='Valido'");
$f = array_shift($f);
$NFactura = $f['NFactura'] + 1;
$CodAlumno = $_GET['CodAlumno'];
$dividido = explode("/", $CodAlumno);
$contardividido = count($dividido);
$codigosalumnos = array();
if ($contardividido > 1) {
$CodAlumno = $dividido[0];
for ($i = 1; $i < $contardividido; $i++) {
if ($dividido[$i] != "") {
array_push($codigosalumnos, '"' . $dividido[$i] . '"');
}
}
}
include_once $folder . "cabecerahtml.php";
?>
<script language="javascript" type="text/javascript" src="../../js/factura/registro2.js"></script>
<script language="javascript" type="text/javascript" src="../../js/core/plugins/jquery.alphanumeric.pack.js"></script>
示例3: asesor
<?php
include_once "../../login/check.php";
include_once "../../class/asesor.php";
include_once "../../class/curso.php";
$asesor = new asesor();
$curso = new curso();
$CodDocente = $_SESSION['CodUsuarioLog'];
$ase = $asesor->mostrarTodoRegistro("CodDocente=" . $CodDocente);
include_once "../../class/config.php";
$config = new config();
$TotalPeriodo = $config->mostrarConfig("TotalPeriodo", 1);
$folder = "../../";
$titulo = "NAsesor";
include_once "../../cabecerahtml.php";
?>
<script language="javascript" type="text/javascript" src="../../js/docente/asesor.js"></script>
<?php
include_once "../../cabecera.php";
?>
<div class="span3">
<div class="box-header"><h2><?php
echo $idioma['Informacion'];
?>
</h2></div>
<div class="box-content">
<?php
if (count($ase)) {
?>
<form class="formulario" action="verreporte.php" method="post">
<table class="table table-bordered">
示例4: extract
extract($_GET);
include_once "../../csv/csv.php";
include_once "../../class/alumno.php";
include_once "../../class/cursomateriaexportar.php";
include_once "../../class/registronotas.php";
include_once "../../class/casilleros.php";
include_once "../../class/config.php";
include_once "../../class/agenda.php";
include_once "../../class/curso.php";
$config = new config();
$agenda = new agenda();
$curso = new curso();
$cur = $curso->mostrarCurso($CodCurso);
$cur = array_shift($cur);
if ($cur['Bimestre']) {
$InicioBimestre1 = $config->mostrarConfig("InicioBimestre1", 1);
$FinBimestre1 = $config->mostrarConfig("FinBimestre1", 1);
$InicioBimestre2 = $config->mostrarConfig("InicioBimestre2", 1);
$FinBimestre2 = $config->mostrarConfig("FinBimestre2", 1);
$InicioBimestre3 = $config->mostrarConfig("InicioBimestre3", 1);
$FinBimestre3 = $config->mostrarConfig("FinBimestre3", 1);
$InicioBimestre4 = $config->mostrarConfig("InicioBimestre4", 1);
$FinBimestre4 = $config->mostrarConfig("FinBimestre4", 1);
} else {
$InicioTrimestre1 = $config->mostrarConfig("InicioTrimestre1", 1);
$FinTrimestre1 = $config->mostrarConfig("FinTrimestre1", 1);
$InicioTrimestre2 = $config->mostrarConfig("InicioTrimestre2", 1);
$FinTrimestre2 = $config->mostrarConfig("FinTrimestre2", 1);
$InicioTrimestre3 = $config->mostrarConfig("InicioTrimestre3", 1);
$FinTrimestre3 = $config->mostrarConfig("FinTrimestre3", 1);
}
示例5: materias
include_once "../../class/observacionesfrecuentes.php";
include_once "../../class/config.php";
$titulo = "AgendaDigital";
$folder = "../../";
$CodAlumno = $_GET['CodAl'];
$_SESSION['CodAl'] = $CodAlumno;
$materia = new materias();
$observaciones = new observaciones();
$observacionesfrecuentes = new observacionesfrecuentes();
$alumno = new alumno();
$curso = new curso();
$config = new config();
if ($Internet == 1) {
$EstadoSms = "NoEnviar";
} else {
$EstadoSms = $config->mostrarConfig("EstadoSms", 1);
}
$al = $alumno->mostrarTodoDatos($CodAlumno);
$al = array_shift($al);
$cur = $curso->mostrarCurso($al['CodCurso']);
$cur = array_shift($cur);
$ima = $folder . "imagenes/alumnos/" . $al['Foto'];
if (!file_exists($ima) || empty($al['Foto'])) {
$ima = $folder . "imagenes/alumnos/0.jpg";
}
?>
<?php
include_once $folder . "cabecerahtml.php";
?>
<script language="javascript" type="text/javascript" src="../../js/agenda/registro.js"></script>
<script language="javascript">var CodCurso
示例6: config
<?php
include_once "fpdf_protection.php";
if (!defined("Config")) {
include_once "../../class/config.php";
}
if (!isset($config)) {
$config = new config();
}
$cnf = $config->mostrarConfig("Titulo");
$title = $cnf['Valor'];
$cnf = $config->mostrarConfig("Gestion");
$gestion = $cnf['Valor'];
$cnf = $config->mostrarConfig("Lema");
$lema = $cnf['Valor'];
$cnf = $config->mostrarConfig("Logo");
$logo = $cnf['Valor'];
class PPDF extends FPDF_Protection
{
var $ancho = 176;
function Header()
{
global $idioma;
$this->SetTitle(utf8_decode("Sistema de Administración de Clinica"), true);
$this->SetAuthor(utf8_decode("Sistema de Administración de Clinica Desarrollado por Ronald Nina Layme. Cel: 73230568 - www.facebook.com/ronaldnina"), true);
$this->SetSubject(utf8_decode("Sistema de Administración de Clinica por Ronald Nina Layme. Cel: 73230568 - www.facebook.com/ronaldnina"), true);
$this->SetCreator(utf8_decode("Sistema de Administración de Clinica por Ronald Nina Layme. Cel: 73230568 - www.facebook.com/ronaldnina"), true);
$this->SetProtection(array('print'));
if ($this->CurOrientation == "P") {
$this->ancho = $this->w - 34;
} else {
示例7: docentemateriacurso
if (isset($_POST)) {
$CodDocente = $_POST['CodDocente'];
$Periodo = $_POST['Periodo'];
include_once "../../class/docentemateriacurso.php";
include_once "../../class/materias.php";
include_once "../../class/curso.php";
include_once "../../class/docente.php";
include_once "../../class/casilleros.php";
include_once "../../class/config.php";
$docentemateriacurso = new docentemateriacurso();
$curso = new curso();
$materias = new materias();
$docente = new docente();
$casilleros = new casilleros();
$config = new config();
$cnf = $config->mostrarConfig("PeriodoActual");
$PeriodoActual = $cnf['Valor'];
if (empty($Periodo)) {
$Periodo = $PeriodoActual;
}
$dmc = $docentemateriacurso->mostrarTodoDocente($CodDocente);
$doc = $docente->mostrarDocente($CodDocente);
$doc = array_shift($doc);
$codigos = array();
foreach ($dmc as $docmateriacurso) {
array_push($codigos, $docmateriacurso['CodDocenteMateriaCurso']);
}
$codigos = implode(",", $codigos);
?>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
示例8: docente
include_once "../../login/check.php";
$folder = "../../";
include_once "../../class/config.php";
include_once "../../class/curso.php";
include_once "../../class/docente.php";
include_once "../../class/docentemateriacurso.php";
include_once "../../class/materias.php";
$titulo = "NReporteNotas";
$docente = new docente();
$curso = new curso();
$docmateriacurso = new docentemateriacurso();
$materias = new materias();
$CodDocente = $_SESSION['CodDocente'];
//$_SESSION['CodDocente']=$CodDocente;
$config = new config();
$cnf = $config->mostrarConfig("TotalPeriodo");
$TotalPeriodo = $cnf['Valor'];
$cnf = $config->mostrarConfig("TrimestreActual");
$trimestreActual = $cnf['Valor'];
include_once "../../cabecerahtml.php";
?>
<script language="javascript" type="text/javascript" src="../../js/notas/reportedocente.js"></script>
<script language="javascript">
$(document).ready(function(e) {
});
</script>
<?php
include_once $folder . "cabecera.php";
?>
<div class="span12 box">
示例9: config
include_once "../../login/check.php";
if (!empty($_GET)) {
$CodAlumno = $_GET['CodAlumno'];
include_once "../pdf.php";
include_once "../../class/alumno.php";
include_once "../../class/curso.php";
include_once "../../class/config.php";
$config = new config();
$alumno = new alumno();
$curso = new curso();
$al = $alumno->mostrarTodoDatos($CodAlumno);
$al = array_shift($al);
$cur = $curso->mostrarCurso($al['CodCurso']);
$cur = array_shift($cur);
$TextoCredito = "Sistema " . $idioma['DesarrolladoPor'] . " Ronald Nina";
$Logo = $config->mostrarConfig("Logo", 1);
$Titulo = $config->mostrarConfig("Titulo", 1);
$UrlInternet = $config->mostrarConfig("UrlInternet", 1);
$NumeroServicioMensajeria = $config->mostrarConfig("NumeroServicioMensajeria", 1);
$Telefono = $config->mostrarConfig("Telefono", 1);
$UrlInternet = str_replace(array("http://", "https://", "/"), "", $UrlInternet);
$Lema = $config->mostrarConfig("Lema", 1);
$titulo = $idioma["DatosAlumno"];
function escribir($w = 210, $h = 10, $t = "", $s = 12, $tipo = "", $align = "", $u = 1)
{
global $pdf;
$pdf->SetFont("Arial", $tipo, $s);
if ($u) {
$pdf->Cell($w, $h, ucfirst(utf8_decode($t)), 0, 0, $align);
} else {
$pdf->Cell($w, $h, utf8_decode($t), 0, 0, $align);
示例10:
$docmatcur = array_shift($docmatcur);
$CodCurso = $docmatcur['CodCurso'];
$mat = $materias->mostrarMateria($docmatcur['CodMateria']);
$mat = array_shift($mat);
$cur = $curso->mostrarCurso($docmatcur['CodCurso']);
$cur = array_shift($cur);
$doc = $docente->mostrarDocente($docmatcur['CodDocente']);
$doc = array_shift($doc);
$Sexo = $docmatcur['SexoAlumno'];
$numcasilleros = $casillas['Casilleros'];
$Dps = $casillas['Dps'];
$Periodo = $casillas['Trimestre'];
$FormulaCalificaciones = $casillas['FormulaCalificaciones'];
$NotaAprobacion = $cur['NotaAprobacion'];
$CodPeriodo = $Periodo;
$Titulo = $config->mostrarConfig("Titulo", 1);
$LogoInicio = $config->mostrarConfig("LogoInicio", 1);
$RegistroNotaHabilitado = $config->mostrarConfig("RegistroNotaHabilitado", 1);
$PeriodoNotaHabilitado = $config->mostrarConfig("PeriodoNotaHabilitado", 1);
$PeriodoNotaHabilitadoBimestre = $config->mostrarConfig("PeriodoNotaHabilitadoBimestre", 1);
$RangoNotaDps1 = $config->mostrarConfig("RangoNotaDps1", 1);
$RangoNotaDps2 = $config->mostrarConfig("RangoNotaDps2", 1);
$RangoNotaDps3 = $config->mostrarConfig("RangoNotaDps3", 1);
$RangoNotaDps4 = $config->mostrarConfig("RangoNotaDps4", 1);
$RangoNotaDps5 = $config->mostrarConfig("RangoNotaDps5", 1);
$RangoNotaDps6 = $config->mostrarConfig("RangoNotaDps6", 1);
if ($casillas['TipoNota'] == "avanzado") {
$FormulaCalificaciones = "n4 n10 + n15 + n20 +";
}
if ($RegistroNotaHabilitado == 1) {
if ($cur['Bimestre']) {
示例11: curso
<?php
include_once "../../login/check.php";
if (!empty($_POST['CodCurso'])) {
include_once "../../class/curso.php";
include_once "../../class/config.php";
include_once "../../class/cursoarea.php";
$curso = new curso();
$cursoarea = new cursoarea();
$config = new config();
$Moneda = $config->mostrarConfig("Moneda", 1);
$CodCurso = $_POST['CodCurso'];
$cur = $curso->mostrarCurso($CodCurso);
$cur = array_shift($cur);
$curarea = todoLista($cursoarea->mostrarTodoRegistro(), "CodCursoArea", "Nombre");
for ($i = 1; $i <= 4; $i++) {
$datos[$i] = $i;
}
$paralelos = array("A" => "A", "B" => "B", "C" => "C", "D" => "D", "E" => "E", "F" => "F", "G" => "G", "H" => "H", "I" => "I", "J" => "J", "K" => "K", "L" => "L");
//$curarea=array_shift($curarea);
?>
<h2><?php
echo $idioma['Modificar'];
?>
</h2>
<form action="actualizar.php" method="post" class="formulario">
<input type="hidden" name="CodCurso" value="<?php
echo $CodCurso;
?>
">
<table class="table table-bordered table-striped">
示例12: agenda
$agenda = new agenda();
$curso = new curso();
$materias = new materias();
$notascualitativa = new notascualitativa();
$cur = $curso->mostrarCurso($CodCurso);
$cur = array_shift($cur);
if (!is_array($Trimestre)) {
//$Trimestre=(array)$Trimestre;
$Trimestre = explode(",", $Trimestre);
}
if ($cur['Bimestre']) {
$texto = "Bimestre";
} else {
$texto = "Trimestre";
}
$LimiteInicio1 = $config->mostrarConfig("LimiteInicio1" . $texto, 1);
$LimiteFin1 = $config->mostrarConfig("LimiteFin1" . $texto, 1);
$LimiteInicio2 = $config->mostrarConfig("LimiteInicio2" . $texto, 1);
$LimiteFin2 = $config->mostrarConfig("LimiteFin2" . $texto, 1);
$LimiteInicio3 = $config->mostrarConfig("LimiteInicio3" . $texto, 1);
$LimiteFin3 = $config->mostrarConfig("LimiteFin3" . $texto, 1);
$LimiteInicio4 = $config->mostrarConfig("LimiteInicio4" . $texto, 1);
$LimiteFin4 = $config->mostrarConfig("LimiteFin4" . $texto, 1);
$LimiteLetras = $config->mostrarConfig("LimiteLetras" . $texto, 1);
if ($cur['Bimestre']) {
$InicioBimestre1 = $config->mostrarConfig("InicioBimestre1", 1);
$FinBimestre1 = $config->mostrarConfig("FinBimestre1", 1);
$InicioBimestre2 = $config->mostrarConfig("InicioBimestre2", 1);
$FinBimestre2 = $config->mostrarConfig("FinBimestre2", 1);
$InicioBimestre3 = $config->mostrarConfig("InicioBimestre3", 1);
$FinBimestre3 = $config->mostrarConfig("FinBimestre3", 1);
示例13: config
<?php
include_once "../../login/check.php";
$folder = "../../";
$titulo = "NFrecuenciaAccesosSistemaPPFF";
include_once "../../class/config.php";
include_once "../../class/alumno.php";
include_once "../../class/curso.php";
$config = new config();
$alumno = new alumno();
$curso = new curso();
$IpInternet = $config->mostrarConfig("IpInternet", 1);
$PuertoInternet = $config->mostrarConfig("PuertoInternet", 1);
$UsuarioInternet = $config->mostrarConfig("UsuarioInternet", 1);
$ContrasenaInternet = $config->mostrarConfig("ContrasenaInternet", 1);
$BaseDatosInternet = $config->mostrarConfig("BaseDatosInternet", 1);
$local = mysql_connect($host, $user, $pass);
mysql_select_db($database, $local);
$inter = mysql_connect($IpInternet . ":" . $PuertoInternet, $UsuarioInternet, $ContrasenaInternet);
mysql_select_db($BaseDatosInternet, $inter);
$resinter = mysql_query("SELECT *, count(*) as Cantidad FROM `lograstreo` WHERE `Nivel` IN (6,7) GROUP BY `CodUsuario` ORDER BY count(*) DESC", $inter);
include_once $folder . "cabecerahtml.php";
include_once $folder . "cabecera.php";
?>
<div class="span12">
<div class="box-header"><h2><?php
echo $idioma['Reporte'];
?>
</h2></div>
<div class="box-content">
<table class="table table-bordered table-hover table-striped">
示例14: curso
<?php
include_once "../../login/check.php";
if (isset($_POST)) {
$CodAlumno = $_POST['CodAlumno'];
$CodCurso = $_POST['CodCurso'];
include_once "../../class/curso.php";
$curso = new curso();
include_once "../../class/config.php";
$config = new config();
$cur = array_shift($curso->mostrarCurso($CodCurso));
$boletinmediacarta = $config->mostrarConfig("BoletinMediaCarta", 1);
if ($boletinmediacarta) {
$ar = "mediacarta";
} else {
$ar = "";
}
if ($cur['Bimestre'] == 1) {
$nombrearchivo = "boletinbimestre{$ar}.php";
} else {
$nombrearchivo = "boletintrimestre{$ar}.php";
}
$url = "../../impresion/notas/{$nombrearchivo}?CodAlumno={$CodAlumno}&CodCurso={$CodCurso}&mf=" . md5("lock");
?>
<a href="<?php
echo $url;
?>
" class="btn btn-danger" target="_blank"><?php
echo $idioma['AbrirOtraVentana'];
?>
</a>
示例15: date
$Nit = $_POST['Nit'];
$FacturaA = $_POST['FacturaA'];
//
$CertificadoNac = $_POST['CertificadoNac'] != "" ? $_POST['CertificadoNac'] : "0";
$LibretaEsc = $_POST['LibretaEsc'] != "" ? $_POST['LibretaEsc'] : "0";
$LibretaVac = $_POST['LibretaVac'] != "" ? $_POST['LibretaVac'] : "0";
$CedulaId = $_POST['CedulaId'] != "" ? $_POST['CedulaId'] : "0";
$CedulaIdP = $_POST['CedulaIdP'] != "" ? $_POST['CedulaIdP'] : "0";
$CedulaIdM = $_POST['CedulaIdM'] != "" ? $_POST['CedulaIdM'] : "0";
$ObservacionesDoc = $_POST['ObservacionesDoc'];
$autoIncrement = $alumno->estadoTabla();
$CodAlumno = $autoIncrement['Auto_increment'];
$FechaInsc = date("Y-m-d");
$HoraIns = date(" H:i:s");
//Obtenemos el Codigo de Barra
$cnf = $conf->mostrarConfig("CodBarra");
$CodBarra = trim($cnf['Valor']) . $CodAlumno;
$CodUsuarioAlumno = trim(mb_strtolower(quitarSimbolos($Paterno), "UTF-8")) . $CodAlumno;
$Password = rand(1000, 9999);
$PasswordP = rand(1000, 9999);
if ($CiPadre != "" && $CiMadre != "") {
$UsuarioPadre = usuarioPadre($CiPadre, $CiMadre);
} else {
$UsuarioPadre = "";
}
if ($CodCurso == 1) {
$cnf = $conf->mostrarConfig("MontoKinder");
$MontoGeneral = $cnf['Valor'];
} else {
$cnf = $conf->mostrarConfig("MontoGeneral");
$MontoGeneral = $cnf['Valor'];