コード例 #1
0
ファイル: users.php プロジェクト: repsycle/baseline
            echo "<td>" . $values['username'] . "</td>" . nl();
            // Build the miniForm to update the user's email address
            $string = "<input type='text' class='input-medium' name='email' value='" . $values['email'] . "' />";
            $string .= "<input type='hidden' name='action' value='update-email' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_email') . "</td>" . nl();
            // Build the miniForm to update the user's email address
            $string = select('group', Users::types(), $values['group'], 'input-small');
            $string .= "<input type='hidden' name='action' value='update-group' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_group') . "</td>" . nl();
            // Build the miniForm to update the user's email address
            $string = "<input type='password' class='input-medium' name='password' value='password' />";
            $string .= "<input type='hidden' name='action' value='update-password' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_password') . "</td>" . nl();
            /*echo "<td>" . Options::userGet($id, 'firstName') . "</td>". nl();*/
            // Build the miniForm to update the user's email address
            $string = bool_select(Activation::status($id), 'active');
            $string .= "<input type='hidden' name='action' value='update-activation' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_activation') . "</td>" . nl();
            /*echo "<td>" . Options::userGet($id, 'firstName') . "</td>". nl();*/
            echo "</tr>" . nl();
        }
    }
    ?>

<?php 
    // If the user is just a normal user
    if ($admin == false) {
        ?>
  <thead>
      <tr>
        <th>Username</th>
コード例 #2
0
ファイル: admin.php プロジェクト: repsycle/baseline
        echo "No results found";
    } else {
        foreach ($options as $option => $value) {
            $type = $value['type'];
            $val = $value['value'];
            $label = camelcase2space($option);
            echo '<label class="control-label" for="' . $option . '">' . $label . '</label>
                    <div class="controls">';
            if ($type == 'input') {
                echo '<input type="text" class="input-xlarge" id="' . $option . '" name="' . $option . '" value="' . $val . '">';
            }
            if ($type == 'textarea') {
                echo '<textarea class="textarea input-xxlarge" id="' . $option . '" name="' . $option . '">' . $val . '</textarea>';
            }
            if ($type == 'bool') {
                echo bool_select($val, $option);
            }
            if ($type == 'date') {
                echo mdy($val, $option, 'd m y');
            }
            echo "</div>";
        }
    }
    echo '</div></div>
            <div class="clearfix"></div>';
    //. Options::all($name) . "</div>";
    $i++;
}
?>