本文整理汇总了PHP中mes函数的典型用法代码示例。如果您正苦于以下问题:PHP mes函数的具体用法?PHP mes怎么用?PHP mes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mes函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: things
function things()
{
echo "write statement\r\n";
sqlWriteStatement('');
echo "mes\r\n";
echo mes('This is a thing');
}
示例2: fechaATexto
function fechaATexto($fecha, $formato = 'c')
{
// Validamos que la cadena satisfaga el formato deseado y almacenamos las partes
if (ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $partes)) {
// $partes[0] contiene la cadena original
// $partes[1] contiene el año
// $partes[2] contiene el número de mes
// $partes[3] contiene el número del día
$mes = ' de ' . mes($partes[2]);
// Corregido!
if ($formato == 'u') {
$mes = strtoupper($mes);
} elseif ($formato == 'l') {
$mes = strtolower($mes);
}
if ($formato == 'M') {
return $partes[3] . $mes;
} else {
return $partes[3] . $mes . ' de ' . $partes[1];
}
} else {
// Si hubo problemas en la validación, devolvemos false
return false;
}
}
示例3: stSep
function stSep()
{
include '../../../../includes/db_connect.php';
$maestro = $_SESSION['username'];
$password = $_SESSION['password'];
$seleccion = "SELECT * FROM teacher T, user U \n WHERE T.iduser = U.id_user AND\n U.category = 'maestro' AND\n U.username = '{$maestro}' AND\n U.password = '{$password}' ;";
$do = mysqli_query($db_connect, $seleccion) or die(mysqli_error());
if ($do) {
while ($pointer = mysqli_fetch_array($do)) {
$idTeacher = $pointer['id_teacher'];
}
}
//-- <-------------------------- ******************************* ------------------------------->
#-- Consulta para obtener la lista de alumnos.
$query = "SELECT * FROM student S, academic_info A, sep R, classes C, naatik_course N, groups_nc G\n WHERE S.id_student = A.id_student AND\n A.reg_sep = R.id_sep AND\n A.id_classes = C.id_class AND\n C.id_course = N.id_course AND\n C.id_group = G.id_group AND\n C.teacher = '{$idTeacher}' AND \n R.issep = 'si';";
$result = mysqli_query($db_connect, $query) or die(mysqli_error());
$id = 1;
$info_sep = "";
$showAdd = "";
//-- <-------------------------- ******************************* ------------------------------->
#-- Obtener y mostrar los resultados de la consulta.
while ($row = mysqli_fetch_array($result)) {
if ($id % 2 == 0) {
$div = "<div class='clearfix'></div>";
} else {
$div = '';
}
$showAdd = "\n <div class='row'><div class='col-md-10'></div>\n <div class='col-md-2'>\n <a href='#' onclick='showDataSep(" . $row['id_student'] . ");' data-toggle='modal' data-target='.bs-example-modal-editor' class='btn btn-fab btn-raised mdi-content-create sepIcons'></a>\n </div>\n </div>";
$info_sep = "<hr clss='hr'>\n <label>Número de Registro: </label>" . " " . $row['regis_num'] . "<br>\n <label>Fecha de Registro: </label>" . " " . $row['date_incorporate'] . "<br>\n <label>Calificación: </label>" . " " . $row['calification_sep'] . "<br>";
//-- <-------------------------- ++++++++++ ------------------------------->
$nacimiento = mes($row['birthday']);
$edad = calcular($row['birthday']);
#-- Calcular la edad del alumno con su fecha de nacimiento.
#-- Filtrar unicamente a los alumnos que tengan 15 o mas años.
if ($edad >= 15) {
echo "<div class='col-sm-12 col-sm-12 col-md-6 col-lg-6'>";
echo "<div class='panel-group' id='accordion' role='tablist' aria-multiselectable='true'>\n <div class='panel panel-default'>\n " . $showAdd . "\n <div class='panel-heading' role='tab' id='heading" . $row['id_student'] . "'>\n <div class='row-picture'>\n <img class='circle' src='img/fotos/student/" . $row['photo_s'] . "' alt='icon'>\n </div>\n <h4 class='panel-title'>\n <a data-toggle='collapse' data-parent='#accordion' href='#" . $row['id_student'] . "' aria-expanded='false' aria-controls='" . $row['id_student'] . "'>\n " . $row['name_s'] . " " . $row['surname1_s'] . "</a>\n </h4>\n </div>\n <div style='padding-left:55px;padding-top:20px;'> \n <div id='" . $row['id_student'] . "' class='panel-collapse collapse' role='tabpanel' aria-labelledby='heading" . $row['id_student'] . "' aria-expanded='false'> \n <div class='panel-body'>\n <label>Nombre: </label> " . " " . $row['name_s'] . " " . $row['surname1_s'] . " " . $row['surname2_s'] . " <br>\n <label>Edad: </label> " . " " . $edad . "<br>\n <label>Fecha Nac.: </label>" . " " . $nacimiento . "<br>\n <label>Sexo: </label>" . " " . $row['sexo'] . "<br>\n <label>Tel. Celular: </label>" . " " . $row['cellphone'] . "\n " . $info_sep . "\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class='list-group-separator'></div></div>" . $div . "";
$id++;
}
#-- Fin del if edad.
}
#-- Fin de while.
}
示例4: stSep
function stSep($isSep)
{
include '../../../includes/db_connect.php';
//-- <-------------------------- ******************************* ------------------------------->
#-- Consulta para obtener la lista de alumnos.
$query = "SELECT * FROM student S, academic_info I, sep R \n WHERE S.id_student=I.id_student AND\n I.reg_sep=R.id_sep AND \n R.issep='" . $isSep . "';";
$result = mysqli_query($db_connect, $query);
$id = 1;
$info_sep = "";
$showAdd = "";
//-- <-------------------------- ******************************* ------------------------------->
#-- Obtener y mostrar los resultados de la consulta.
while ($row = mysqli_fetch_array($result)) {
if ($id % 2 == 0) {
$div = "<div class='clearfix'></div>";
} else {
$div = '';
}
if ($isSep == 'no') {
$showAdd = "\n <div class='row'><div class='col-md-10'></div>\n <div class='col-md-2'>\n <a href='#' onclick='setID(" . $row['id_student'] . ");' data-toggle='modal' data-target='.bs-example-modal-register' class='btn btn-fab btn-raised mdi-content-create sepIcons'></a>\n </div>\n </div>";
$info_sep = "no hay datos de Registro";
} else {
$showAdd = "\n <div class='row'><div class='col-md-10'></div>\n <div class='col-md-2'>\n <a href='#' onclick='showDataSep(" . $row['id_student'] . ");' data-toggle='modal' data-target='.bs-example-modal-editor' class='btn btn-fab btn-raised mdi-content-create sepIcons'></a>\n </div>\n </div>";
$info_sep = "<hr clss='hr'>\n <label>Número de Registro: </label>" . " " . $row['regis_num'] . "<br>\n <label>Fecha de Registro: </label>" . " " . $row['date_incorporate'] . "<br>\n <label>Calificación: </label>" . " " . $row['calification_sep'] . "<br>\n ";
}
//-- <-------------------------- ++++++++++ ------------------------------->
$nacimiento = mes($row['birthday']);
$edad = calcular($row['birthday']);
#-- Calcular la edad del alumno con su fecha de nacimiento.
#-- Filtrar unicamente a los alumnos que tengan 15 o mas años.
if ($edad >= 15) {
echo "<div class='col-sm-12 col-sm-12 col-md-6 col-lg-6'>";
echo "<div class='panel-group' id='accordion' role='tablist' aria-multiselectable='true'>\n <div class='panel panel-default'>\n " . $showAdd . "\n <div class='panel-heading' role='tab' id='heading" . $row['id_student'] . "'>\n <div class='row-picture'>\n <img class='circle' src='img/fotos/student/" . $row['photo_s'] . "' alt='icon'>\n </div>\n <h4 class='panel-title'>\n <a data-toggle='collapse' data-parent='#accordion' href='#" . $row['id_student'] . "' aria-expanded='false' aria-controls='" . $row['id_student'] . "'>\n " . $row['name_s'] . " " . $row['surname1_s'] . "</a>\n </h4>\n </div>\n <div style='padding-left:55px;padding-top:20px;'> \n <div id='" . $row['id_student'] . "' class='panel-collapse collapse' role='tabpanel' aria-labelledby='heading" . $row['id_student'] . "' aria-expanded='false'> \n <div class='panel-body'>\n <label>Nombre: </label> " . " " . $row['name_s'] . " " . $row['surname1_s'] . " " . $row['surname2_s'] . " <br>\n <label>Edad: </label> " . " " . $edad . "<br>\n <label>Fecha Nac.: </label>" . " " . $nacimiento . "<br>\n <label>Sexo: </label>" . " " . $row['sexo'] . "<br>\n <label>Tel. Celular: </label>" . " " . $row['cellphone'] . "\n " . $info_sep . "\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class='list-group-separator'></div></div>" . $div . "";
$id++;
}
#-- Fin del if edad.
}
#-- Fin de while.
echo "<div class='row'>\n <div class='col-xs-0 col-sm-2 col-md-3'></div>\n <div class='col-xs-12 col-sm-8 col-md-6'>\n <a id='' href='?menu_ad=registrosep' class='btn btn-sm btn-primary btn-raised'>REGISTRO</a>\n </div>\n <div class='col-xs-0 col-sm-2 col-md-3'></div>\n </div>";
}
示例5: stScholar
function stScholar($request, $togrant)
{
$fecha_beca = "";
include 'includes/db_connect.php';
$result = mysqli_query($db_connect, query($request, $togrant)) or die(mysqli_error());
$i = 1;
//-- <-------------------------- **************************** ------------------------------->
#-- Obtener y mostrar resultados de la consulta.
echo "<div class='panel-group' id='accordion' role='tablist' aria-multiselectable='true'>";
while ($row = mysqli_fetch_array($result)) {
#-- Botón flotante para reasignar becas en la pestaña becados. Boton flotante para asignacion de beca a solicitantes
if ($togrant == 'no') {
$sponsorInfo = "";
$btnA = "<a href='app/profiles/transactions/reassignScholar.php?idStudent=" . $row['id_student'] . "'\n class='btn btn-default btn-fab btn-raised mdi-action-star-rate' id='becadosIcons' \n data-toggle='tooltip' data-placement='left' title='Asignar Beca'></a>";
$fecha_beca = "No Aplica";
} else {
$btnA = "<a href='#' data-toggle='modal' data-target='.bs-example-modal-rs' \n class='btn btn-default btn-fab btn-raised' id='becadosIcons' onclick='changeScholar(" . $row['id_student'] . ");'>\n <i class='mdi-action-cached' data-toggle='tooltip' data-placement='top' title='Reasignar Beca'></i></a>";
$fecha_beca = mes($row['date_scholar']);
$consulta = "SELECT * FROM sponsor S WHERE S.id_scholar = '" . $row['id_grant'] . "';";
$do = mysqli_query($db_connect, $consulta);
$count = $do->num_rows;
while ($i = mysqli_fetch_array($do)) {
if ($count == 1) {
$sponsorInfo = "<label>Padrino(s):</label>" . " " . $i['name_sp'] . " " . $i['surname_sp'] . "<br>";
} elseif ($count > 1) {
$sponsorInfo = "<label>Padrino(s):</label>" . " " . $i['name_sp'] . " " . $i['surname_sp'] . " " . "\n <a href='#' id='" . $row['id_scholar'] . "' title='sp' data-toggle='modal' \n data-target='.bs-example-modal-sp' onclick='moreSponsor(this.id)' \n class='label label-info'>+" . ($count - 1) . " ver todos</a><br>";
}
}
}
$edad = calcular($row['birthday']);
$fecha_nac = mes($row['birthday']);
echo "<div class='col-sm-12 col-sm-12 col-md-6 col-lg-6'>";
echo "<br>\n <div class='panel'>\n " . $btnA . "\n <div class='panel-heading' role='tab' id='heading" . $row['id_student'] . "'>\n <div class='row-picture'>\n <img class='circle' src='img/fotos/student/" . $row['photo_s'] . "' alt='icon'>\n </div>\n <h4 class='panel-title'>\n <a data-toggle='collapse' data-parent='#accordion' href='#" . $row['id_student'] . "' \n aria-expanded='false' aria-controls='" . $row['id_student'] . "'>\n " . $row['name_s'] . " " . $row['surname1_s'] . " " . $row['surname2_s'] . "\n </a>\n </h4>\n </div>\n <div style='padding-left:45px;padding-top:20px;'> \n <div id='" . $row['id_student'] . "' class='panel-collapse collapse' role='tabpanel' aria-labelledby='heading" . $row['id_student'] . "'>\n <div class='panel-body'>\n\t\t\t\t\t\t\t\t\t <label>Alumno:</label>" . " " . $row['name_s'] . " " . $row['surname1_s'] . " " . $row['surname2_s'] . "<br>\n <label>Grupo: </label> " . " " . $row['course'] . "<br>\n <label>Edad: </label> " . " " . $edad . "<br>\n <label>Fecha de Nacimiento: </label>" . " " . $fecha_nac . "<br>\n <label>Sexo: </label>" . " " . $row['sexo'] . "<br>\n <label>Tel. Celular: </label>" . " " . $row['cellphone'] . "<br>\n " . $sponsorInfo . "\n <label>Fecha de inicio de beca: </label>" . " " . $fecha_beca . "<br>\n <label>Tutor: </label>" . " " . $row['name_t'] . " " . $row['surname1_t'] . "<br>\n </div>\n </div>\n </div>\n </div>\n <div class='list-group-separator'></div>";
echo "</div>";
$i++;
}
#-- Fin del while
echo "</div>";
}
示例6: list
<?php
include_once '../../includes/db_connect.php';
include_once 'calcularEdad.php';
$idCurso = $_GET['x'];
list($grupo, $clase, $alumno, $curso) = explode("-", $idCurso);
$query = "SELECT * FROM classes C, naatik_course N, schedule S \n WHERE N.id_course = '" . $curso . "' AND C.id_course='" . $curso . "' AND C.id_group = '" . $grupo . "' AND S.id_schedule = C.id_schedule;";
$echo = mysqli_query($db_connect, $query);
while ($row = mysqli_fetch_array($echo)) {
$fecha_inicio = mes($row['date_init']);
echo "\n <div class='form-group'>\n <label for='inputname' class='col-sm-3 control-label'>Fecha de inicio: </label>\n <div class='col-sm-9'>\n <input type='text' class='form-control' disabled id='fecha_init' name='fecha_init' value='" . $fecha_inicio . "'>\n </div>\n </div>\n <div class='form-group'>\n <label for='inputname' class='col-sm-3 control-label'>Dias: </label>\n <div class='col-sm-9'>\n <input type='text' class='form-control' disabled id='fecha_init' name='days' value='" . $row['days'] . "'>\n </div>\n </div>\n <div class='form-group'>\n <label for='inputname' class='col-sm-3 control-label'>Horario: </label>\n <div class='col-sm-9'>\n <input type='text' class='form-control' disabled id='fecha_init' name='hours' value='" . $row['hour_init'] . " " . $row['hour_end'] . "'>\n </div>\n </div>\n ";
}
示例7: ver_reuniones
//.........这里部分代码省略.........
</div>
</div>
<div class="col-sm-6" >
<div class="form-group">
<label for="fecha">Facultad:</label>
Ingeniería
</div>
<div class="form-group">
<label for="fecha">Estudiante:</label>
<?php
echo $cabecera[2];
?>
</div>
<div class="form-group">
<label for="fecha">Docente:</label>
<?php
echo $cabecera[4];
?>
</div>
</div>
<div class="col-sm-6" >
<div class="form-group">
<label for="fecha">Escuela:</label>
Ingeniería en Informática y Sistemas
</div>
<div class="form-group">
<label for="fecha">Código:</label>
<?php
echo $cabecera[3];
?>
</div>
<div class="form-group">
<label for="fecha">Semestre:</label>
<?php
echo $cabecera[5];
?>
</div>
</div>
<div class="container">
<form <?php
echo "id='crear_reunion_individual'";
?>
action="reunion.php" method="POST">
<input type="hidden" name='accion' value='crear_reunion' >
<input type="hidden" name='id_cons' <?php
echo "value='" . $id_cons . "'";
?>
>
<input type="hidden" name='modalidad' value='I' >
</form>
<form <?php
echo "id='crear_reunion_grupal'";
?>
action="reunion.php" method="POST">
<input type="hidden" name='accion' value='crear_reunion' >
<input type="hidden" name='id_cons' <?php
echo "value='" . $id_cons . "'";
?>
>
<input type="hidden" name='modalidad' value='G' >
</form>
<div class="row" id="collapse_asistidos_2">
<div class='col-sm-12'>
示例8: mes_walk
/**
* @author Dmytro Navrotskyy <navrotskyy@webix.de>
*
* Diese Funktion wird zusammen mit array_walk verwendet um alle Werte in einem
* array zu escapen.
*/
function mes_walk(&$value, $key)
{
if (is_string($value)) {
$value = mes($value);
}
}
示例9: ver_cuestionario
//.........这里部分代码省略.........
<div class="form-group">
<label for="fecha">Facultad:</label>
<!--<div class="input-group">
<span class="input-group-addon"><span class=""></span></span>
<input class="form-control" type="text" value='Ingeniería' readonly>
</div>-->
Ingeniería
</div>
<div class="form-group">
<label for="fecha">Estudiante:</label>
<?php
echo $cabecera[2];
?>
</div>
<div class="form-group">
<label for="fecha">Docente:</label>
<?php
echo $cabecera[4];
?>
</div>
</div>
<div class="col-sm-6" >
<div class="form-group">
<label for="fecha">Escuela:</label>
Ingeniería en Informática y Sistemas
</div>
<div class="form-group">
<label for="fecha">Código:</label>
<?php
echo $cabecera[3];
?>
</div>
<div class="form-group">
<label for="fecha">Semestre:</label>
<?php
echo $cabecera[5];
?>
</div>
</div>
<?php
echo $cuestionario[1];
?>
<div class="container">
<!--formulario simple-->
<form action='consejeria.php' method='post' id='editar'>
<?php
$query = "call ver_secciones('" . $id_cues . "')";
$result = $conexion->query($query);
$secciones = array();
while ($row = mysqli_fetch_row($result)) {
$secciones[] = $row;
}
mysqli_free_result($result);
$conexion->next_result();
for ($i = 0; $i < count($secciones); $i++) {
?>
<!--textos largos-->
<div class="row">
<div class="col-sm-12">
<div class="panel panel-info">
<div class="panel-heading">
示例10: move_selected_scripts
*
* @return void
*/
public function move_selected_scripts()
{
// if( $scripts = get_option( 'mes_front_end_scripts_excluded' ) ) {
// foreach( $scripts as $key => $val ) {
// if($key == 'jquery') {
// wp_deregister_script( $key );
// wp_register_script( 'jquery', home_url().'/wp-includes/js/jquery/jquery.js', '', '', true );
// } else {
// wp_deregister_script( $key );
// wp_register_script( $key, $val, '', '', true );
// }
// }
// }
}
}
function mes()
{
global $mes;
if (!isset($mes)) {
$mes = new MoveEnqueuedScripts();
}
return $mes;
}
// Initialize
// if( is_admin() ) {
mes();
// }
}
示例11: substr
}
return $lista_dados;
/*
<div class="leftx" style="width:8%">1</div>
<div class="leftx" style="width:58%">2fgfgn</div>
<div class="leftx" style="width:14%">3</div>
<div class="leftx" style="width:20%">4</div>
*/
}
$tipoval = "";
if ($obj['tipo_salario'] == 1) {
$tipoval = " MENSAL";
} else {
$tipoval = " HORA/AULA";
}
$valhtml = " <!doctype html>\n<html>\n<head>\n<meta content='text/html'; charset=UTF-8'>\n<title></title>\n\n<style type='text/css'>\nbody{\n\tfont-family: 'DejaVu Sans', Arial, Helvetica, sans-serif;\n\tmargin-top:0px;\t\n\tfont-size: 9px;\n\t}\n\t.fonte{\n\tfont-family: 'DejaVu Sans', Arial, Helvetica, sans-serif;\n\tfont-size: 10px;\n\tfont-weight: bold;\n\tfloat:right;\t\n\t}\n a {text-decoration: none}\n\t.leftx{\n\tfloat:left;\n\tmargin-top:0px;\n\t\n\tcolor: #000000;\n\t\n\tmargin-top:1px;\n\tmargin-bottom:2px;\t\n\t\t}\n\t.titulo{\n\t\n\tcolor: #000000;\n\tline-height: 1.2207031;\n\tfont-weight: bold;\n\tmargin-left:3px;\n\tfont-size:10px;\n\t\n\t}\n\t.tabletopo{\n\t\n\theight:20px;\n\t\n\t}\n\t.textual{\n\t\n\tcolor: #000000;\n\tfont-weight: bold;\n\t\n\t}\n\t.textotal{\n\t\n\tcolor: #000000;\n\tfont-weight: bold;\n\t\n\t\n\t}\n\t.vintq{\n\twidth:32%;\n\tfloat:left;\n\tdisplay: block;\n\tfont-weight: bold;\n\tmargin-left:10px;\t\n\t\t}\n\t.trinq{\n\twidth:16%;\n\tfloat:left;\n\tdisplay: block;\n\tfont-weight: bold;\t\n\tmargin-top:10px;\n\tmargin-left:5px;\n\t\t}\t\n\t\t\n\t.vint15{\n\twidth:15%;\n\tfloat:left;\n\tdisplay: block;\n\tfont-weight: bold;\t\n\t\t}\t\n\t\t\n\t.cinq{\n\twidth:48%;\n\tfloat:left;\t\n\t\n\tfont-weight: bold;\n\tmargin-top:10px;\n\tmargin-left:5px;\n\t\t}\n\t\t.cinx{\n\twidth:49%;\n\tfloat:left;\t\n\t\n\tfont-weight: bold;\n\t\n\t\t}\n\t\t\n\t.quar{\n\twidth:40%;\n\tfloat:left;\t\n\tfont-weight: bold;\n\t/*margin-top:12px;*/\n\theight:20px;\n\tmargin-left:10%;\n\t\t}\n\t.dez{\n\twidth:10%;\n\tfloat:left;\t\n\t\n\tfont-weight: bold;\n\t/*margin-top:12px;*/\n\theight:20px;\n\t}\n\t.container{\n\talignment-adjust:auto;\n\twidth:90%;\n\tmargin-left:10%;\n\t\t\n\t\t}\n\t\tdiv{ \nborder:1px #333 solid; \n} \t\n\t.table2{\n\t\theight:10px;\n\t\t}\n.divbord{\n\tborder-radius: 2mm;\n\tborder:1px solid black;\n}\n.tablex{\n\tborder-radius: 2mm;\n\tborder:1px solid black;\n}\t\n\t\t\n </style>\n</head>\n\n<body>\n\n<table width='100%' class='tablex'>\n <tr>\n <td width='21%' align='center'>\n\t<img width='75px' height='75px' src='" . substr($logo_cheque, 3, 55) . "'>\n\t\n\t</td>\n <td width='79%'>\n <p align='right' style='font-size:7px; margin-right:10px' >DEMONSTRATIVO DE PAGAMENTO DE SALÁRIO (CONTRA-CHEQUE)</p>\n <p class='titulo'>" . $obj['razao_ug'] . "</p>\n <p class='titulo'>" . $obj['ender_ug'] . "Nº " . $obj['num_ug'] . ", " . $obj['bairro_ug'] . "</p>\n <!--p class='titulo'>" . $obj['ender_cidade'] . " - CEP:" . $obj['ender_cep'] . " - " . $obj['ender_uf'] . "</p--><br>\n\n<p class='titulo' align='left' style='float:left; width:75%'>\n CNPJ:" . mask($obj['cnpj_ug'], '##.###.###/####-##') . "\n \n\t \n\t \n\t\n\t" . mes(substr($ano_mes, 4, 2)) . "/" . substr($ano_mes, 0, 4) . "</p>\n\t\n\n\t\n </td>\n </tr>\n</table>\n\n<p> </p>\n\n<div class='divbord'> \n<br>\n<table width='100%' >\n <tr>\n <td width='16%'>Mátricula<br>\n " . $obj['id_servidor'] . "\n </td>\n <td width='33%'>Nome do Servidor<br>\n " . $obj['nome'] . "\n </td>\n <td width='20%'>Admissão<br>\n " . dateFormat($obj['dt_admissao']) . "\n </td>\n <td width='31%'>Cargo/Função<br>\n " . $obj['descr_cargo'] . "\n </td>\n </tr>\n</table>\n<table width='100%' border='0'>\n <tr>\n <td width='49%'>Sub-Unida. Orçamentária (Centro de Custos) <br>\n " . $obj['id_sub_und_orcam'] . ' - ' . $obj['descr_sub_unid_orcan'] . "\n </td>\n <td width='51%'>Unida. de Lotacao (Local de Trabalho )<br>\n " . $obj['descr_unid_lotac'] . "\n </td>\n </tr>\n</table>\n\n<table width='100%' border='0'>\n <tr>\n <td width='49%'>\n " . $obj['descr_situac_tcm'] . "\n <br>\n " . $obj['descr_est_funcional'] . "\n </td>\n <td width='16%'>C.P.F.<br>\n " . mask($obj['cpf'], '###.###.###-##') . "\n </td>\n <td width='17%'>identidade<br>\n " . $obj['rg'] . "\n </td>\n <td width='18%'>PIS/PASEP<br>\n " . mask($obj['pis_pasep'], '###.#####.##-#') . "\n </td>\n </tr>\n</table>\n<p> </p>\n</div> <!--fim da divborder-->\n\n\n<p> </p>\n\n<div>\n\n<table width='100%' border='0' align='center' style='border-collapse: collapse;' >\n <tr align='center'>\n <td>VENCIMENTOS / PROVENTOS</td>\n <td>DESCONTOS</td>\n </tr>\n</table>\n<hr>\n<table width='100%' style='font-size:8px;' border='0' style='border-collapse:collapse; border:1px solid #000000;'>\n <tr>\n <td width='4%'>Cód</td>\n <td width='28%'> </td>\n <td width='7%'>Quant.</td>\n <td width='10%'>Valor(R\$)</td>\n <td width='3%' bordercolor='#FFFFFF'> </td>\n <td width='4%'>Cód</td>\n <td width='27%'> </td>\n <td width='7%'>Quant.</td>\n <td width='10%'>Valor(R\$)</td>\n </tr>\n</table>\n\n</table>\n<table width='100%' border='1' style='border-collapse: collapse;'>\n <tr>\n <td width='49%'>\n\t<table width='100%' border='0'>\n " . vencimento('V', $cli_id, $ano_mes, $parcela, $id_servidor) . "\n\t <p> </p>\n\t <p> </p>\n\t \n </table>\n\t</td>\n <td width='3%'><!--div style='height:80px; width:1px; margin-top:-20px; margin-left:4px'></div--></td>\n <td width='48%'>\n\t<table width='100%' border='0' >\n " . vencimento('D', $cli_id, $ano_mes, $parcela, $id_servidor) . "\n\t <p> </p>\n\t <p> </p>\n\t \n\t \n </table></td>\n </tr>\n</table>\n\n<hr>\n\n<table width='100%'>\n <tr>\n <td width='38%' align='right'><span class='textotal'>T O T A L > > ></span></td>\n <td width='11%' bgcolor='#CCCCCC' bordercolor='#000000' align='right'><span class='textotal'>" . valorM($obj['tot_venctos']) . "\n </span></td>\n\t\n <td width='3%'> <div style='height:18px; width:1px; margin-top:-5px; margin-left:8px'></div> </td>\n\t\n <td width='35%' align='right'><span class='textotal'>T O T A L > > ></span></td>\n <td width='13%' bgcolor='#CCCCCC' bordercolor='#000000' align='right'><span class='textotal'>\n " . valorM($obj['tot_descontos']) . "\n </span></td>\n </tr>\n\n</table>\n\n<hr>\n\n<table width='100%'> \n <tr>\n <td align='right' width='35%'><span class='textotal'>S A L Á R I O L I Q U I D O > > ></span></td>\n <td bgcolor='#CCCCCC' bordercolor='#000000' align='right' width='14%'><span class='textotal'>" . valorM($obj['sal_liquido']) . "</span></td>\n\t\n <td width='2%'><div style='height:18px; width:1px; margin-top:-5px; margin-left:8px'></div></td>\n\t\n <td width='30%'> </td>\n <td width='19%'> </td>\n </tr>\n</table>\n\n</div>\n\n\n<br>\n<br>\n\n<table width='100%' class='tablex'>\n <tr>\n <td><table width='100%' border='0'>\n <tr>\n <td width='25%'>Vencto Base<br>\n " . valorM(substr($obj['vencto_base_cargo'], 0, -2)) . $tipoval . " </td>\n <td width='25%'>Base Calc. Previd. <br>\n " . valorM($obj['bc_previd']) . "</td>\n <td width='18%'>Base Calc. IRRF <br>\n " . valorM($obj['bc_irrf']) . "</td>\n <td width='16%'>Depend.<br>\n " . valorM($obj['qtd_depend_irrf']) . "</td>\n <td width='16%'>Deduções<br>\n " . valorM($obj['tot_deduc_depend']) . "</td>\n </tr>\n </table></td>\n </tr>\n</table>\n\n<br><br>\n\n<table width='100%' align='center' class='tablex'>\n <tr>\n <td>\n \n <p> </p>\n <p align='center'>" . $obj['pagto_quitacao'] . "</p>\n <p> </p>\n \n </td>\n </tr>\n</table>\n\n\n\n\n\n</body>\n</html> ";
//Aqui nós chamamos a class do dompdf
require_once 'dompdf/dompdf_config.inc.php';
//É fundamental definir o TIMEZONE de nossa região para que não tenhamos problemas com a geração.
date_default_timezone_set('America/Sao_Paulo');
//Aqui eu estou decodificando o tipo de charset do documento, para evitar erros nos acentos das letras e etc.
$valhtml = utf8_decode($valhtml);
//Instanciamos a class do dompdf para o processo
$dompdf = new DOMPDF();
//Aqui nós damos um LOAD (carregamos) todos os nossos dados e formatações para geração do PDF
$dompdf->load_html($valhtml);
//string $orientation: 'portrait' or 'landscape'
//$dompdf->set_paper('legal','portrait');
$dompdf->set_paper('legal', 'A4');
//$dompdf->set_paper(array(0,0,750,1030));
//Aqui nós damos início ao processo de exportação (renderizar)
示例12: FormatFechaText_2
function FormatFechaText_2($fecha)
{
if (preg_match("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/", $fecha, $partes)) {
$mes = 'de ' . mes($partes[2]) . ' del ';
return $partes[3] . " " . $mes . $partes[1];
} else {
// Si hubo problemas en la validación, devolvemos false
return false;
}
}
示例13: mask
// [sal_liquido] => 777.36
// [68] => 63.04
// [tot_descontos] => 63.04
// [69] => 840.40
// [tot_venctos] => 840.40
// [70] => 788.00
// [bc_sal_fam] => 788.00
// [71] => 724.96
// [bc_irrf] => 724.96
// [72] => 788.00
// [bc_previd] => 788.00
// [73] => PAGAMENTO/QUITAÇÃO NÃO INFORMADO
// [pagto_quitacao] => PAGAMENTO/QUITAÇÃO NÃO INFORMADO
$obj['cnpj_ug'] = mask($obj['cnpj_ug'], '##.###.###/####-##');
$strAnoMes = $obj['ano_mes'];
$obj['ano_mes'] = mes(substr($ano_mes, 4, 2)) . "/" . substr($ano_mes, 0, 4);
$obj['dt_admissao'] = dateFormat($obj['dt_admissao']);
$obj['cpf'] = mask($obj['cpf'], '###.###.###-##');
$obj['pis_pasep'] = mask($obj['pis_pasep'], '###.#####.##-#');
$obj['tot_venctos'] = valorM($obj['tot_venctos']);
$obj['sal_liquido'] = valorM($obj['sal_liquido']);
$obj['tot_descontos'] = valorM($obj['tot_descontos']);
$obj['vencto_base_cargo'] = valorM(substr($obj['vencto_base_cargo'], 0, -2));
$obj['tipo_salario'] = $obj['tipo_salario'] == 1 ? " MENSAL" : " HORA/AULA";
$obj['bc_previd'] = valorM($obj['bc_previd']);
$obj['bc_irrf'] = valorM($obj['bc_irrf']);
$obj['qtd_depend_irrf'] = valorM($obj['qtd_depend_irrf']);
$obj['tot_deduc_depend'] = valorM($obj['tot_deduc_depend']);
$obj['sal_liquido'] = valorM($obj['sal_liquido']);
$obj['vencimentoV'] = vencimento("V", $cli_id, $strAnoMes, 0, $id_servidor);
$obj['vencimentoD'] = vencimento("D", $cli_id, $strAnoMes, 0, $id_servidor);
示例14: mysqli_query
<?php
include_once '../../../includes/db_connect.php';
include '../../php/calcularEdad.php';
$idAlumno = $_GET['s'];
$idClass = $_GET['c'];
$query = "SELECT * \n\t\t\t\tFROM student S, academic_info A, sep R, classes C, \n\t\t\t\t\t\tnaatik_course N, groups_nc G, schedule H, scholar B\n\t\t\t\t\tWHERE S.id_student ='{$idAlumno}' AND\n\t\t\t\t\t\tS.id_student = A.id_student AND\n\t\t\t\t\t\tA.reg_sep = R.id_sep AND\n\t\t\t\t\t\tA.id_classes = '{$idClass}' AND\n\t\t\t\t\t\tA.id_classes = C.id_class AND\n\t\t\t\t\t\tC.id_course = N.id_course AND\n\t\t\t\t\t\tC.id_group = G.id_group AND\n\t\t\t\t\t\tC.id_schedule = H.id_schedule AND\n\t\t\t\t\t\tS.id_student = B.id_student\n\t\t\t\t\t\tLIMIT 1;";
$res = mysqli_query($db_connect, $query) or die(mysqli_error());
if ($res) {
while ($row = mysqli_fetch_array($res)) {
$fecha_nac = mes($row['birthday']);
$dateInit_cuorse = mes($row['date_init']);
$dateInit_std = mes($row['date_init_s']);
$fecha_nac = mes($row['birthday']);
$photo = $row['photo_s'];
if ($row['togrant'] == 'si') {
$colorIcon = "btn btn-sm btn-info mdi-action-grade";
$toolInfo = "Becado";
$request = "Becado";
} elseif ($row['request'] == 'si' and $row['togrant'] == 'no') {
$colorIcon = "btn btn-sm btn-success mdi-action-grade";
$toolInfo = "Solicitante";
$request = "Quitar solicitud de beca";
} else {
$colorIcon = "btn btn-sm btn-default mdi-action-grade";
$toolInfo = "No becado";
$request = "Solicitar beca";
}
?>
<a id="edit" href='?menu_ad=viewUpdateSt&idStudent=<?php
echo $row['id_student'];
示例15: dumpRecords
function dumpRecords($opts = false)
{
if (is_array($opts)) {
extract($opts);
}
if ($header) {
?>
<textarea cols="160" rows="200"><?php
}
// dump the master record.
foreach ($this->tbl as $f) {
$sets[] = " {$f['field']} = '" . mes($this->{$f}[field]) . "'";
}
$out = " INSERT INTO {$this->_table} SET " . implode(",", $sets);
echo $out;
// dump dependent records
echo "\r\r\r\r";
$this->getRelated();
$tables_used = array($this->_table);
foreach ($this->_related as $rel) {
// get relations
if ($rel['table'] != $this->_table) {
$sql = "SELECT * FROM " . $rel['table'] . " WHERE {$this->indexField} = {$this->id} ";
$result = acquery($sql, $rel['db']);
while ($row = mysql_fetch_array($result)) {
extract($row);
$link = new DBOS($rel['table'], $row[0], $rel['db']);
$link->dumpRecords();
$tables_used[] = $rel['table'];
}
}
}
if ($header) {
?>
</textarea><?php
}
}