Esempio n. 1
0
<?php

set_time_limit(0);
if (isset($_GET['id'])) {
    $id = $_GET['id'];
    if ($id == 'all') {
        $accounts = getProfiles();
    } else {
        $accounts = getProfiles($id);
    }
} else {
    if (isset($_GET['gid'])) {
        $id = $_GET['gid'];
        $accounts = getProfilesByGroup($id);
    } else {
        die("Please specify profile ID..");
    }
}
Esempio n. 2
0
<?
require_once('inc/db.php');

$groupId = 0;
if (isset($_POST['groupId'])) {
	$groupId = $_POST['groupId'];
}
$profiles = getProfilesByGroup($groupId);

echo '<select class="jls_combo" name="cmbProfile" id="cmbProfile">';
foreach ($profiles as $profile) {
	echo '<option value="'.$profile['id'].'">'.$profile['name'].'</option>';
}
echo '</select>';
?>