示例#1
0
    <th width="1%" nowrap>Zugang bis</th>
  </tr>
<?php 
$_zaehler = 1;
$users = $sql->query_all("SELECT u.*, g.gruppe FROM user u LEFT JOIN gruppe g ON u.zugang=g.zugang" . ($isVerwalter ? "" : " WHERE u.eigentuemer=" . convstr($user)) . " GROUP BY u.zugang ORDER BY g.gruppe DESC, u.zugang");
foreach ($users as $_user) {
    $_trClass = "tbl" . ($_zaehler % 2 ? "First" : "Second");
    if ($_user['tmpdel']) {
        $_trClass .= "Del";
    } else {
        if ($_user['tmppass']) {
            $_trClass .= "New";
        }
    }
    echo "\n\n<!-- actionChange: " . formSubmittedValue('actionChange') . ", zugang: " . $_user['zugang'] . " (" . transformRequestValueInName($_user['zugang']) . "), formChangeZugang {$formChangeZugang} -->\n\n";
    if (formSubmittedValue('actionChange') == transformRequestValueInName($_user['zugang']) || $formChangeZugang == $_user['zugang'] && !formSubmittedValue('actionChange')) {
        ?>
  <input type="hidden" name="formChangeZugang" value="<?php 
        echo $_user['zugang'];
        ?>
">
  <tr class="<?php 
        echo $_trClass;
        ?>
">
    <td align="center"><input type="image" name="actionChange_<?php 
        echo $_user['zugang'];
        ?>
" src="images/zuklappen.gif"></td>
    <td><b><?php 
        echo $_user['zugang'];
示例#2
0
    <th width="94%">Name</th>
    <th width="1%">Gr&ouml;&szlig;e</th>        
    <th>&nbsp;</th>
    <th width="1%">Datum</th>
    <th>&nbsp;</th>
    <th width="1%">verf&auml;llt</th>
  </tr>
<?php 
$_zaehler = 1;
$dateien = $sql->query_all("SELECT *, verfallsdatum<now() AS verfallen FROM files WHERE eigentuemer=" . convstr($user) . " ORDER BY anzeigename,datum,id");
foreach ($dateien as $datei) {
    $_trClass = "tbl" . ($_zaehler % 2 ? "First" : "Second");
    if ($datei['verfallen']) {
        $_trClass .= 'Del';
    }
    if (formSubmittedValue('actionChange') == $datei['id'] || $formChangeFile == $datei['id'] && !formSubmittedValue('actionChange')) {
        ?>
  <form method="post" action="<?php 
        echo $PHP_SELF;
        ?>
">
  <input type="hidden" name="area" value="<?php 
        echo $area;
        ?>
">
  <input type="hidden" name="formChangeFile" value="<?php 
        echo $datei['id'];
        ?>
">
  <tr class="<?php 
        echo $_trClass;