
PK 
<!--#include file="includes/openconn.asp" -->
<!--#include file="includes/checkadmin.asp" -->
<!DOCTYPE html>
<html lang="es">
<head>
<!--#include file="includes/metatags.asp" -->
<link rel="stylesheet" href="lightbox/css/bootstrap-lightbox.min.css">
<link rel="stylesheet" href="lightbox/prettify/prettify.css">
<script type="text/javascript">
<!--
function del_confirmation(idDocumento,doc_titulo) {
var answer = confirm("Quiere borrar el Documento " + doc_titulo + " ?")
if (answer){
location.href="Documento_del.asp?idDocumento=" + idDocumento;
}
}
//-->
</script>
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<!--#include file="includes/navup.asp" -->
<!-- Sidebar Documento Items - These collapse to the responsive navigation Documento on small screens -->
<%session("seccion") = "Documentos"%>
<!--#include file="includes/navizq.asp" -->
<!-- /.navbar-collapse -->
</nav>
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Documentos</h1>
<ol class="breadcrumb">
Lista de Documentos
<li class="active"></li>
</ol>
</div>
</div>
<!-- Page Heading -->
<form role="form" action="Documentos.asp" method="POST" class="form" id="busca_Documento" name="busca_Documento">
<div class="row">
<div class="col-lg-3">
<div class="form-group input-group" >
<input type="text" class="form-control" name="clave" id="clave" value="<%=request("clave")%>" placeholder="Buscar ...">
<span class="input-group-btn"><button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button></span>
</div>
</div>
</div>
</form>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="table-responsive">
<%dim sqlstr
'sqlstr="SELECT Fups.*, Usuarios.nombre, Usuarios.idusuario, Usuarios.apellido FROM Fups LEFT JOIN Usuarios ON Fups.autor = Usuarios.idusuario ORDER BY idFups DESC"
sqlstr="SELECT * FROM Documentos ORDER BY doc_fecha DESC"
if request("clave") <> "" then
sqlstr="SELECT * FROM Documentos WHERE doc_titulo LIKE '%" & request("clave") & "%' OR doc_texto LIKE '%" & request("clave") & "%' ORDER BY doc_fecha DESC"
end if
rs.open sqlstr,conn,3,1
if rs.EOF then%>
<div class="alert alert-danger">
<strong>No se encontraron Documentos </strong>Intente nuevamente
</div>
<%else
dim xcant, cantstr
rs.movefirst%>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th width="40">Fecha</th>
<th width="100"> </th>
<th>Titulo / Texto</th>
<th>Archivo</th>
<th>Estado</th>
<th width="70px"></th>
</tr>
</thead>
<tbody>
<%do until rs.EOF%>
<tr <%if not rs("doc_publicado") then%> class="danger"<%end if%>>
<td><%=rs("doc_fecha")%></td>
<td><%if rs("doc_foto") <> "" then%>
<a data-toggle="lightbox" href="#demoLightbox<%=rs("idDocumento")%>" alt="Ver foto" title="Ver foto">
<img src="/database/Documentos/thumbs/<%=rs("idDocumento")%>/<%=rs("doc_foto")%>" alt="Ver foto" title="Ver foto" width="100">
</a>
<div id="demoLightbox<%=rs("idDocumento")%>" class="lightbox fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-dialog'>
<div class='lightbox-content'>
<img src="/database/Documentos/fotos/<%=rs("idDocumento")%>/<%=rs("doc_foto")%>">
<div class="lightbox-caption"><p><%=rs("doc_titulo")%></p></div>
</div>
</div>
</div>
<%end if%></td>
<td><b><%=rs("doc_titulo")%></b><br>
<%=rs("doc_texto")%></td>
<td><a href="/database/documentos/archivos/<%=rs("iddocumento")%>/<%=rs("doc_archivo")%>" target="_blank"><%=rs("doc_archivo")%></td></td>
<td><%if not rs("doc_publicado") then response.Write("NO PUBLICADO</br>")%>
<%if rs("doc_destacado") then %>DESTACADO<%end if%>
</td>
<td><a href="Documento_edit.asp?idDocumento=<%=rs("idDocumento")%>" title="Editar Documento"><i class="fa fa-pencil-square fa-2x"></i></a> <a href="#" onclick="del_confirmation(<%=rs("idDocumento")%>,'<%=rs("doc_titulo")%>');" title="Eliminar Documento"><i class="fa fa-times-circle fa-2x"></i></a></td>
</tr>
<%rs.movenext
loop%>
</tbody>
</table>
<%end if
rs.close%>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- LightBox JavaScript -->
<script src="lightbox/js/scale.fix.js"></script>
<script src="lightbox/prettify/prettify.js"></script>
<script src="lightbox/js/bootstrap-lightbox.min.js"></script>
</body>
</html>
<!--#include file="includes/closeconn.asp" -->


PK 99