Esempio n. 1
0
        </td></tr>
    <tr><td class="tdt"><?php 
te("Password");
?>
:</td> 
        <td><input autocomplete="off" class='input2' size=20 type="password"
	     name='pass' value="<?php 
echo $r['pass'];
?>
">
	 </td></tr>
    <tr><td class="tdt"><?php 
te("Items");
?>
:</td> <td><?php 
echo countitemsofuser($r['id']);
?>
</td>
    </table>
    <ul>
      <li><b><?php 
te("Users are used for both web login and as item assignees");
?>
</b></li>
      <li><sup>1</sup><?php 
te("Blank passwords prohibit login");
?>
</li>
    </ul>
</td>
Esempio n. 2
0
  <th width='5%'><?php 
te("Items");
?>
</th>
</tr>
</thead>
<tbody>

<?php 
$usertype[0] = t("Full Access");
$usertype[1] = t("Read Only");
$usertype[2] = t("copied from LDAP (read only)");
$i = 0;
while ($r = $sth->fetch(PDO::FETCH_ASSOC)) {
    $i++;
    $itemcount = countitemsofuser($r['id']);
    echo "\n<tr>";
    echo "<td><a class='editid' href='{$scriptname}?action=edituser&amp;id=" . $r['id'] . "'>{$r['id']}</a></td>\n";
    echo "<td>{$r['username']}</td>\n";
    echo "<td>{$r['userdesc']}</td>\n";
    echo "<td>{$usertype[$r['usertype']]}</td>\n";
    echo "<td>{$itemcount}</td>\n";
    echo "</tr>\n";
}
?>

</tbody>
</table>

</form>
</body>