예제 #1
0
<link href="/modules/ausentismo/css/ausentismo.css" rel="stylesheet" type="text/css" />
<script src="/modules/ausentismo/js/ausentismo.js" type="text/javascript"></script>
<iframe id="iframeAusentismo" name="iframeAusentismo" src="" style="display:none;"></iframe>
<form action="/modules/ausentismo/procesar_ausentismo.php" id="formAusentismo" method="post" name="formAusentismo" target="iframeAusentismo" onSubmit="return validarFormulario(formAusentismo)">
	<input id="caracteres2" name="caracteres2" size="4" type="hidden" />
	<div align="center" id="ausentismoTitulo">En esta pantalla sólo se deben informar aquellas ausencias totales y no solicitadas previamente a RR.HH.</div>
	<div id="ausentismoLineaHorizontal">
		<img id="imgUsuario" src="/modules/ausentismo/images/usuario.jpg" />
		<span>Usuario Actual</span>
		<span id="spanUsuarioActual"><?php 
echo getUserName();
?>
</span>
<?
$usuario = getWindowsLoginName(true);
if ((getUserSector() == "RRHH") or ($usuario == "ALAPACO") or ($usuario == "AANGIOLILLO") or ($usuario == "JBALESTRINI")) {
?>
		<span id="spanBotonesEspeciales">
			<a href="/ausentismo-gestion"><img src="/modules/ausentismo/images/administrador.jpg" title="Gestión" /></a>
			<a href="/ausentismo-historico"><img src="/modules/ausentismo/images/historico.jpg" title="Histórico" /></a>
		</span>
<?
}
?>
	</div>
	<div class="fila">
		<label id="labelEmpleadoAusente">Empleado Ausente</label>
		<?php 
echo $comboEmpleadoAusente->draw();
?>
	</div>
예제 #2
0
	 SELECT se_id ID, InitCap(se_nombre) DETALLE                             /* Los empleados de los empleados a cargo */
		 FROM art.use_usuarios
		WHERE se_fechabaja IS NULL
			AND se_usuariogenerico = 'N'
			AND se_respondea IN (SELECT se_usuario
														 FROM art.use_usuarios
														WHERE se_fechabaja IS NULL
															AND se_usuariogenerico = 'N'
															AND se_respondea = NVL(UPPER(:respondea), ''))
 ORDER BY 2";
$comboUsuarioSolicitud = new Combo($sql, "UsuarioSolicitud", getUserId());
$comboUsuarioSolicitud->addParam(":id", getUserId());
$comboUsuarioSolicitud->addParam(":idjefe", getUserIdJefe(NULL));
$comboUsuarioSolicitud->addParam(":idsector", getUserIdSectorIntranet());
$comboUsuarioSolicitud->addParam(":respondea", getWindowsLoginName());
$comboUsuarioSolicitud->addParam(":sector", getUserSector());
$comboUsuarioSolicitud->setClass("Combo");
$comboUsuarioSolicitud->setOnChange("ValidarPermisoUsuario();");

$sql =
	"SELECT ms_id id, ms_descripcion detalle
		 FROM computos.cms_motivosolicitud
		WHERE ms_idpadre = -1
			AND ms_visible = 'S'
			AND ms_fechabaja IS NULL
			AND ms_id IN (SELECT ms_idpadre
											FROM computos.cms_motivosolicitud, computos.cts_ticketsector
										 WHERE art.agenda_pkg.is_sectordependiente(ts_idsector, ms_idsectordefault) = 'S'
											 AND ts_idsistematicket = ".$sistema.")
          ORDER BY 2";
$comboTipoPedido = new Combo($sql, "TipoPedido");
예제 #3
0
else {
?>
	<img id="imgEditarLocal" src="/images/img_not_found.gif" style="height:0; width:0;" />
<?
}
?>
</div>

<table id="tableDelivery">
	<tr id="trDelivery">
		<td id="tdDelivery">NOMBRE / LUGAR</td>
		<td id="tdDelivery">DIRECCIÓN</td>
		<td id="tdDelivery">TELÉFONO</td>
	</tr>
<?
$params = array(":sector" => getUserSector(),":usualta" => getWindowsLoginName(true));
$sql =
	"SELECT hd_autorizado, hd_direccion, hd_id, hd_nombre, hd_telefono, hd_url
		 FROM rrhh.rhd_delivery
		WHERE hd_fechabaja IS NULL
			AND (hd_autorizado = 'S' OR hd_usualta = :usualta OR :sector = 'RRHH')
 ORDER BY hd_nombre";
$stmt = DBExecSql($conn, $sql, $params);
$bgColor = "";
while ($row = DBGetQuery($stmt)) {
	if ($bgColor == "dadada")
		$bgColor = "f6f6f6";
	else
		$bgColor = "dadada";

	$onClick = "";
예제 #4
0
<?
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
session_start();

require_once($_SERVER["DOCUMENT_ROOT"]."/constants.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/../Common/database/db.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/functions/general.php");


if ((getUserSector() != "RRHH") and (getWindowsLoginName() != "alapaco")) {
	showErrorIntranet("", "Usted no tiene permiso para ingresar a este módulo.");
	exit;
}

$params = array(":id" => $_REQUEST["id"], ":usubaja" => getWindowsLoginName(true));
$sql =
	"UPDATE rrhh.rhd_delivery
			SET hd_fechabaja = SYSDATE,
					hd_usubaja = :usubaja
		WHERE hd_id = :id";
DBExecSql($conn, $sql, $params);
?>
<script language="JavaScript" src="/js/functions.js"></script>
<script type="text/javascript">
	showMsgOk('/delivery', window.parent);
</script>
예제 #5
0
			<input autofocus id="nombre" maxlength="255" name="nombre" type="text" value="" />
		</div>
		<div class="fila fondo2">
			<label for="direccion">DIRECCIÓN</label>
			<input id="direccion" maxlength="255" name="direccion" type="text" value="" />
		</div>
		<div class="fila fondo1">
			<label for="telefono">TELÉFONO</label>
			<input id="telefono" maxlength="255" name="telefono" type="text" value="" />
		</div>
		<div class="fila fondo2">
			<label for="link">LINK</label>
			<input id="link" maxlength="255" name="link" type="text" value="" />
		</div>
<?
if ((getUserSector() == "RRHH") or (getWindowsLoginName() == "alapaco")) {
?>
		<div class="fila fondo1">
			<label for="autorizado">AUTORIZADO</label>
			<input id="autorizado" name="autorizado" type="checkbox" value="ok" />
		</div>
<?
}
?>
		<div id="divBotones">
			<input id="btnDarBaja" name="btnDarBaja" type="button" onClick="darBaja()" />
			<input id="btnGuardar" name="btnGuardar" type="button" onClick="guardar()" />
			<img id="imgProcesando" src="/images/loading.gif" title="Procesando, aguarde unos segundos por favor..." />
			<input id="btnCancelar" name="btnCancelar" type="button" onClick="cancelar()" />
		</div>
		<div id="divErroresForm">