Revisión 201
Añadido por Manu Mora Gordillo hace más de 13 años
etiquetas-portatiles/trunk/index.php | ||
---|---|---|
|
||
sort($students);
|
||
|
||
$filter = "";
|
||
if($_POST["filter"]!="")
|
||
$filter = $_POST["filter"]."*";
|
||
$filter = "uid=*";
|
||
if($_POST["filter"]!=""){
|
||
$array_filter = explode(",",$_POST["filter"]);
|
||
|
||
$filter = "(|";
|
||
for($r=0;$r<count($array_filter);$r++){
|
||
$filter.="(uid=*".trim($array_filter[$r])."*)";
|
||
}
|
||
$filter.= ")";
|
||
//$filter = $_POST["filter"]."*";
|
||
}
|
||
//echo ">>>>>>".$filter;
|
||
$dn = "ou=People,dc=instituto,dc=extremadura,dc=es";
|
||
$fields = array("uid","cn","employeenumber","jpegphoto");
|
||
$sr=ldap_search($conex, $dn, "uid=*".$filter, $fields);
|
||
$sr=ldap_search($conex, $dn, $filter, $fields);
|
||
//$sr=ldap_search($conex, $dn, "(|(uid=*marriaza*)(uid=*arodriguez*))", $fields);
|
||
$students_tmp = ldap_get_entries($conex, $sr);
|
||
|
||
for($i=0;$i<count($students_tmp);$i++){
|
||
... | ... | |
<form id='form_labels' method='POST' action="index.php">
|
||
<table style="width:100%;">
|
||
<tr>
|
||
<td colspan="2" style="width:33%; vertical-align:top;">
|
||
<td colspan="2" style="width:25%; vertical-align:top;">
|
||
<fieldset><legend>LDAP</legend>
|
||
<div style="padding-left:10px">
|
||
<p>Servidor LDAP:<br>
|
||
... | ... | |
</div>
|
||
</fieldset>
|
||
</td>
|
||
<td style="width:33%; vertical-align:top;">
|
||
<td style="width:42%; vertical-align:top;">
|
||
<fieldset><legend>Parámetros etiquetas</legend>
|
||
<div style="padding-left:10px">
|
||
<p>
|
||
... | ... | |
</p>
|
||
<p>
|
||
<label for="filter">Filtro:</label><br>
|
||
<input type="text" id="filter" name="filter" class="text ui-widget-content ui-corner-all"/>
|
||
<input type="text" id="filter" name="filter" class="text ui-widget-content ui-corner-all"/> Valores separados por comas <b>(p.e. jprado, agordillo)</b>
|
||
</p>
|
||
<p style="text-align:center; font-weight:bold;">Parámetros por defecto para etiquetas apli24</p>
|
||
</div>
|
Exportar a: Unified diff
Buscar varios alumnos separados por comas