<li class="active" role="presentation"><a data-toggle="tab" href="#my_contacts" aria-controls="my_contacts" role="tab">My Contacts</a></li> <li role="presentation"><a data-toggle="tab" href="#google_contacts" aria-controls="google_contacts" role="tab">Google Contacts</a></li--> </ul> </li> </ul> <div class="tab-content"> <div class="tab-pane animation-fade active" id="all_contacts" role="tabpanel"> <?php if ($_GET["nom"] != "") { $nom = " and us.nomUser like '" . $_GET["nom"] . "%'"; } else { $nom = ""; } $total = ceil(totaluser($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $nom) / 4); $ini = $_GET["pag"] * 4; ?> <ul class="list-group"> <?php $link = mysql_connect($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL); mysql_select_db($strDBMYSQL, $link); if (mysql_errno() > 0) { $strResultOp = "No fue posible validar el usuario."; $strInfoTec = "No fue posible localizar el host[" . mysql_errno() . "-" . mysql_error() . "]"; $strModulo = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . basename($_SERVER['PHP_SELF']); $strParameters = "host:" . $strHostMYSQL . "~-user:"******"~PWD:" . $strPWDMYSQL . "bd:" . $strDBMYSQL; } else { $str = "SELECT u.iduser, us.nomUser, a.fechaconex,u.latitud,u.longitud,p.sobremi,(6371 * ACOS(SIN(RADIANS(u.latitud)) * SIN(RADIANS(19.4456375))+ COS(RADIANS(u.longitud - -99.119641)) * COS(RADIANS(u.latitud)) * COS(RADIANS(19.4456375))\n )) AS distance FROM ubicacion u, perfiluser p, user us, actividad a where u.iduser=p.iduser and u.iduser=us.iduser and u.iduser=a.iduser and u.iduser!=" . $_SESSION["iduser"] . " " . $nom . " ORDER BY " . $ordenBD . " limit " . $ini . ",4"; $Res = mysql_query($str); if (mysql_errno() > 0) {
<?php include_once 'functions.php'; $user_list = getUserListing(); for ($i = 0; $i < totaluser(); $i++) { $list_email = $user_list[$i]["email"]; $list_id = $user_list[$i]["id"]; $list_username = $user_list[$i]["username"]; $list_date = $user_list[$i]["date"]; $list_token = $user_list[$i]["token"]; ?> <table border="0"> <tr width="100"> <td width="100"><?php echo $list_id; ?> </td> <td width="100"><?php echo $list_username; ?> </td> <td width="150"><?php echo $list_email; ?> </td> <td width="100"><?php echo $list_date; ?> </td> <td width="100"><?php echo $list_token;