本文整理汇总了PHP中Documento::ObtenerUbicacionCopia方法的典型用法代码示例。如果您正苦于以下问题:PHP Documento::ObtenerUbicacionCopia方法的具体用法?PHP Documento::ObtenerUbicacionCopia怎么用?PHP Documento::ObtenerUbicacionCopia使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Documento
的用法示例。
在下文中一共展示了Documento::ObtenerUbicacionCopia方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Busqueda
//.........这里部分代码省略.........
} else {
?>
<input name="text3" type="text" style="text-align:center" value="<?php
echo $row_reg['estado'];
?>
" size="3" maxlength="3"/>
<?php
}
?>
</div></td>
<td align="center" width="4%"><div align="center">
<input name="text2" type="text" style=" width:20PX; text-align:center" value="<?php
echo $row_reg['categoria'] == '1' ? 'O' : 'C';
?>
"/>
</div></td>
<?php
$sql_data = "SELECT `a`.`abve_nombre_area`\r\n\t\t\t\t\t\tFROM `areas` AS `a` \r\n\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t`a`.`id_area` = '" . $_SESSION['session'][5] . "' ";
$query_data = new Consulta($sql_data);
$data = $query_data->ConsultaVerRegistro();
$sql_usu = "SELECT \r\n\t\t\t\t\t\tMax(`ha`.`id_historial_atencion`) AS `ultimo`, \t\t\t\r\n\t\t\t\t\t\t`ha`.`id_documento`, \r\n\t\t\t\t\t\tha.original_historial_atencion, \r\n\t\t\t\t\t\t`usuarios`.`id_area` \r\n\t\t\t\t\t\tFROM \r\n\t\t\t\t\t\t`historial_atencion` AS `ha` \r\n\t\t\t\t\t\tInner Join `usuarios` ON `usuarios`.`id_usuario` = `ha`.`id_usuario_destino` \r\n\t\t\t\t\t\tWHERE \r\n\t\t\t\t\t\tha.id_documento='" . $row_reg['id'] . "' and \r\n\t\t\t\t\t\tusuarios.id_area = '" . $_SESSION['session'][5] . "'\r\n\t\t\t\t\t\tGROUP BY\r\n\t\t\t\t\t\t`ha`.`id_historial_atencion`\t";
$query_usu = new Consulta($sql_usu);
$usu = $query_usu->ConsultaVerRegistro();
$susu = "SELECT `u`.`login_usuario`\r\n\t\t\t\tFROM\r\n\t\t\t\t`historial_atencion` AS `ha`\r\n\t\t\t\tInner Join `usuarios` AS `u` ON `u`.`id_usuario` = `ha`.`id_usuario_destino`\r\n\t\t\t\tWHERE\r\n\t\t\t\t`ha`.`id_historial_atencion` = '" . $usu['ultimo'] . "' ";
$qusu = new Consulta($susu);
$u = $qusu->ConsultaVerRegistro();
?>
<td>
<?php
if ($row_reg['categoria'] != 1) {
$doc = new Documento();
$ubic = $doc->ObtenerUbicacionCopia($ids, 1);
$area = $data['abve_nombre_area'];
$tooltip_ubic = "";
if (count($ubic) > 0) {
$cont = 0;
foreach ($ubic as $u) {
if ($cont == 0) {
$tooltip_ubic = $tooltip_ubic . "{$area} - " . $u["destino"];
} else {
$tooltip_ubic = $tooltip_ubic . "<br/>{$area} - " . $u["destino"];
}
$cont++;
}
if (count($ubic) == 1) {
?>
<input type="text" value="<?php
echo $tooltip_ubic;
?>
" style="width:95%"/>
<?php
} else {
?>
<input type="text" value="<?php
echo $area . "- Varios";
?>
" style="width:95%" title ='<?php
echo $tooltip_ubic;
?>
' class='tip'/>
<?php
}
} else {
?>
示例2: listado
//.........这里部分代码省略.........
?>
" style="text-align:center;width:30px;" />
</td>
<?php
} else {
?>
<td align="center" width="4%">
<div align="center">
<input type="text" value="<?php
echo $row_reg['categoria'] == '1' ? 'O' : 'C';
?>
" style=" width:20PX; text-align:center"/>
</div>
</td>
<?php
}
?>
<?php
$sql_data = " SELECT a.nombre_area, a.abve_nombre_area\r\n FROM\r\n areas AS a \r\n WHERE\r\n a.id_area IN ({$area_session}) ";
$query_data = new Consulta($sql_data);
$data = $query_data->ConsultaVerRegistro();
?>
<td title="DR[<?php
echo $row_reg["ubicacion"];
?>
] - HD <?php
echo $data['nombre_area'];
?>
">
<?php
if ($row_reg['categoria'] != 1) {
$doc = new Documento();
$ubic = $doc->ObtenerUbicacionCopia($ids, 1);
$area = $data['abve_nombre_area'];
$tooltip_ubic = "";
if (count($ubic) > 0) {
$cont = 0;
foreach ($ubic as $u) {
if ($cont == 0) {
$tooltip_ubic = $tooltip_ubic . "{$area} - " . $u["destino"];
} else {
$tooltip_ubic = $tooltip_ubic . "<br/>{$area} - " . $u["destino"];
}
$cont++;
}
if (count($ubic) == 1) {
?>
<input type="text" value="<?php
echo $tooltip_ubic;
?>
" style="width:95%"/>
<?php
} else {
?>
<input type="text" value="<?php
echo $area . "- Varios";
?>
" style="width:95%" title ='<?php
echo $tooltip_ubic;
?>
' class='tip'/>
<?php
}
} else {
?>