</optgroup> </select> </div> </div> <div style="margin-bottom: 10px;" class="category_extra_fields"> <div style="display: none;" class="form-group category_users"> <label for="category" class="col-sm-3 control-label">Users</label> <div class="col-sm-6"> <select required="" multiple="" name="users[]" id="users" style="width:100%" class="populate"> <optgroup label="Available users"> <?php foreach (get_active_users() as $row) { ?> <option value="<?= $row['email'] ?>"><?= $row['fname'] . ' ' . $row['lname'] ?></option> <?php } ?> </optgroup> </select> </div> </div> <div style="display: none;" class="form-group category_careers"> <label for="category_careers" class="col-sm-3 control-label">Careers</label> <div class="col-sm-6">
if (!$error) { $ins = array('subject' => $subject, 'content' => $content, 'img' => $img, 'price' => (double) $price, 'days' => $days, 'pop_ads' => $pop_ads, 'down_second' => $down_second, 'downline_num' => $downline_num, 'search_down' => $search_down, 'img_link' => $img_link, 'music_link' => $music_link, 'video_link' => $video_link, 'zero_store_time' => $zero_store_time, 'is_hidden' => $is_hidden); $db->query_unbuffered("update {$tpf}vips set " . $db->sql_array($ins) . " where vip_id='{$vip_id}'"); $sysmsg[] = __('edit_vip_success'); redirect(urr(ADMINCP, "item=vip&menu=user&action=list"), $sysmsg); } else { redirect('back', $sysmsg); } } else { $pa = $db->fetch_one_array("select * from {$tpf}vips where vip_id='{$vip_id}'"); require_once template_echo($item, $admin_tpl_dir, '', 1); } break; case 'del': $vip_id = (int) gpc('vip_id', 'G', 0); if (get_active_users($vip_id)) { $sysmsg[] = __('vip_has_user_del'); redirect('back', $sysmsg); } else { if ($vip_id) { $db->query_unbuffered("delete from {$tpf}vips where vip_id='{$vip_id}'"); } $sysmsg[] = __('vip_del_success'); redirect('back', $sysmsg); } break; case 'change_status': $vip_id = (int) gpc('vip_id', 'G', 0); $is_hidden = (int) @$db->result_first("select is_hidden from {$tpf}vips where vip_id='{$vip_id}'"); $is_hidden = $is_hidden ? 0 : 1; $db->query_unbuffered("update {$tpf}vips set is_hidden={$is_hidden} where vip_id='{$vip_id}'");
} ?> </ul> </div> <?php if (checkperm("u") && !checkperm("U")) { # Full admin access only to user/disk quota status ?> <p><?php echo $lang["usersonline"]; ?> : <?php $active = get_active_users(); for ($n = 0; $n < count($active); $n++) { if ($n > 0) { echo ", "; } echo "<b>" . $active[$n]["username"] . "</b> (" . $active[$n]["t"] . ")"; } ?> </p> <p><?php echo $lang["diskusage"]; ?> : <b><?php echo round(($avail ? $used / $avail : 0) * 100, 0); ?>
function display_edit_oc_form($project_id) { ?> <table width="90%"> <tr> <td align="center" class="naglowek">Wybierz sk³ad OC do projektu <i><?php echo display_link_to_project($project_id); ?> </i><hr></td> </tr> <tr> <td class="naglowek_maly">Aby wybraæ kilka osób, przytrzymaj klawisz CTRL</td> </tr> <tr> <td><form method="POST" action="<?php echo get_www_root(); ?> ocp/edit_oc.php"> <select name="oc_ids[]" size="20" multiple> <?php $active_users = get_active_users(); foreach ($active_users as $user_id => $login) { if (!is_ocp($user_id, $project_id)) { echo '<option value="' . $user_id . '"'; if (is_oc_member($user_id, $project_id)) { echo ' selected'; } echo '>' . htmlspecialchars(stripslashes($login)) . "</option>\n"; } } ?> </select></td> </tr> <tr> <td><input type="hidden" name="project_id" value="<?php echo $project_id; ?> "> <input type="submit" value="Zmieñ"></form> </td> </tr> </table> <?php }