|
129 | 129 | if($num_rows > 0){
|
130 | 130 | $contenido = '';
|
131 | 131 | //$contenido .= '<input type="hidden" id="query_sql" value="'.encriptar($presql).'">';
|
| 132 | + $contenido .= '<div class="num_reg">Number of records: <strong>'.$num_rows.'</strong></div>'; |
132 | 133 | $contenido .= '<a class="btn btn-special" href="exportar-excel.php?query='.urlencode(encriptar($presql)).'" style="float: right; padding: 2px 5px; text-align: center;">Exportar a Excel</a>';
|
133 | 134 | $contenido .= '<br /><div align="center">';
|
134 | 135 | $contenido .= '<table class="stylized" width="100%">';
|
135 | 136 | $contenido .= '<tr>
|
136 | 137 | <th class="name">
|
137 |
| - Name<br> |
138 | 138 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 139 | + Name |
139 | 140 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
140 | 141 | </th>
|
141 | 142 | <th class="surname">
|
142 |
| - Surname<br> |
143 | 143 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 144 | + Surname |
144 | 145 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
145 | 146 | </th>
|
146 | 147 | <th class="email">
|
147 |
| - E-mail<br> |
148 | 148 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 149 | + E-mail |
149 | 150 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
150 | 151 | </th>
|
151 | 152 | <th class="renewal">
|
152 |
| - Renewal<br> |
153 | 153 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 154 | + Renewal |
154 | 155 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
155 | 156 | </th>
|
156 | 157 | <th class="type">
|
157 |
| - Member type<br> |
158 | 158 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 159 | + Member type |
159 | 160 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
160 | 161 | </th>
|
| 162 | + <th>Status</th> |
161 | 163 | <th>Quota</th>
|
162 | 164 | <th class="option">Options</th>
|
163 | 165 | </tr>';
|
|
180 | 182 | $contenido .= '<td>'.htmlspecialchars($row['email']).'</td>';
|
181 | 183 | $contenido .= '<td class="ta-center">'.date("d/m/Y",strtotime($row['renewal'])).'</td>';
|
182 | 184 | $contenido .= '<td>'.htmlspecialchars($tipos[$row['type']]).'</td>';
|
| 185 | + $contenido .= '<td>'.obtener("status","cod",$row['status'],"status").'</td>'; |
183 | 186 | $contenido .= '<td>'.htmlspecialchars($row['quota']).' €</td>';
|
184 | 187 | $contenido .= '<td id="member'.$row['cod'].'" class="options-width">';
|
185 | 188 | $contenido .= '<a href="renovar-user.php?cod='.$row['cod'].'" title="Renewal" class="renovar"><img src="images/update.png" /></a> ';
|
|
313 | 316 | $num_rows = $result->num_rows;
|
314 | 317 | if($num_rows > 0){
|
315 | 318 | $contenido = '';
|
| 319 | + $contenido .= '<div class="num_reg">Number of records: <strong>'.$num_rows.'</strong></div>'; |
316 | 320 | $contenido .= '<a class="btn btn-special" href="exportar-excel.php?query='.urlencode(encriptar($presql)).'" style="float: right; padding: 2px 5px; text-align: center;">Exportar a Excel</a>';
|
317 | 321 | $contenido .= '<br /><div align="center">';
|
318 | 322 | $contenido .= '<table class="stylized" width="100%">';
|
319 | 323 | $contenido .= '<tr>
|
320 | 324 | <th class="name">
|
321 |
| - Name<br> |
322 | 325 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 326 | + Name |
323 | 327 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
324 | 328 | </th>
|
325 | 329 | <th class="surname">
|
326 |
| - Surname<br> |
327 | 330 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 331 | + Surname |
328 | 332 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
329 | 333 | </th>
|
330 | 334 | <th class="email">
|
331 |
| - E-mail<br> |
332 | 335 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 336 | + E-mail |
333 | 337 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
334 | 338 | </th>
|
335 | 339 | <th class="renewal">
|
336 |
| - Renewal<br> |
337 | 340 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 341 | + Renewal |
338 | 342 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
339 | 343 | </th>
|
340 | 344 | <th class="type">
|
341 |
| - Member type<br> |
342 | 345 | <img class="buscar_campo_ordenado_desc" src="images/down.png" width="16" height="16" border="0" title="Sort Descending" />
|
| 346 | + Member type |
343 | 347 | <img class="buscar_campo_ordenado_asc" src="images/up.png" width="16" height="16" border="0" title="Sort ascending" />
|
344 | 348 | </th>
|
| 349 | + <th>Status</th> |
345 | 350 | <th>Quota</th>
|
346 | 351 | <th class="option">Options</th>
|
347 | 352 | </tr>';
|
|
364 | 369 | $contenido .= '<td>'.htmlspecialchars($row['email']).'</td>';
|
365 | 370 | $contenido .= '<td class="ta-center">'.date("d/m/Y",strtotime($row['renewal'])).'</td>';
|
366 | 371 | $contenido .= '<td>'.htmlspecialchars($tipos[$row['type']]).'</td>';
|
| 372 | + $contenido .= '<td>'.obtener("status","cod",$row['status'],"status").'</td>'; |
367 | 373 | $contenido .= '<td>'.htmlspecialchars($row['quota']).' €</td>';
|
368 | 374 | $contenido .= '<td id="member'.$row['cod'].'" class="options-width">';
|
369 | 375 | $contenido .= '<a href="renovar-user.php?cod='.$row['cod'].'" title="Renewal" class="renovar"><img src="images/update.png" /></a> ';
|
|
0 commit comments