<a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-play icon-white"></i> <?php echo T_('Servers'); ?> <b class="caret"></b> </a> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> <li class="nav-header"><?php echo T_('Game Servers'); ?> </li> <?php //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ //We have to build the dropdown menu $groups = getClientGroups($_SESSION['clientid']); if ($groups != FALSE) { foreach ($groups as $value) { if (getGroupServers($value) != FALSE) { $groupServers[] = getGroupServers($value); // Multi- dimensional array } } } // Build NEW single dimention array if (!empty($groupServers)) { foreach ($groupServers as $key => $value) { foreach ($value as $subkey => $subvalue) { $servers[] = $subvalue; } }
public function outputClientLink($userid, $firstname = "", $lastname = "", $companyname = "", $groupid = "") { global $CONFIG; static $clientgroups = ""; static $ClientOutputData = array(); static $ContactOutputData = array(); $contactid = 0; if (is_array($userid)) { $contactid = $userid[1]; $userid = $userid[0]; } if (!is_array($clientgroups)) { $clientgroups = getClientGroups(); } if (!$firstname && !$lastname && !$companyname) { if (isset($ClientOutputData[$userid])) { $data = $ClientOutputData[$userid]; } else { $result = select_query("tblclients", "firstname,lastname,companyname,groupid", array("id" => $userid)); $data = mysql_fetch_array($result); $ClientOutputData[$userid] = $data; } $firstname = $data['firstname']; $lastname = $data['lastname']; $companyname = $data['companyname']; $groupid = $data['groupid']; if ($contactid) { if (isset($ContactOutputData[$contactid])) { $contactdata = $ContactOutputData[$contactid]; } else { $contactdata = get_query_vals("tblcontacts", "firstname,lastname", array("id" => $contactid, "userid" => $userid)); $ContactOutputData[$contactid] = $contactdata; } $firstname = $contactdata['firstname']; $lastname = $contactdata['lastname']; } } $style = isset($clientgroups[$groupid]['colour']) ? " style=\"background-color:" . $clientgroups[$groupid]['colour'] . "\"" : ""; $clientlink = "<a href=\"clientssummary.php?userid=" . $userid . "\"" . $style . ">"; if ($CONFIG['ClientDisplayFormat'] == 2) { if ($companyname) { $clientlink .= $companyname; } else { $clientlink .= $firstname . " " . $lastname; } } else { if ($CONFIG['ClientDisplayFormat'] == 3) { $clientlink .= $firstname . " " . $lastname; if ($companyname) { $clientlink .= " (" . $companyname . ")"; } } else { $clientlink .= $firstname . " " . $lastname; } } $clientlink .= "</a>"; return $clientlink; }
if (isset($_GET['id']) && is_numeric($_GET['id'])) { $clientid = $_GET['id']; } else { exit('Error: ClientID error.'); } ### $return = 'clientsummary.php?id=' . urlencode($clientid); require "../configuration.php"; require "./include.php"; $title = T_('Client Summary'); if (query_numrows("SELECT `username` FROM `" . DBPREFIX . "client` WHERE `clientid` = '" . $clientid . "'") == 0) { exit('Error: ClientID is invalid.'); } $rows = query_fetch_assoc("SELECT * FROM `" . DBPREFIX . "client` WHERE `clientid` = '" . $clientid . "' LIMIT 1"); $logs = mysql_query("SELECT * FROM `" . DBPREFIX . "log` WHERE `clientid` = '" . $clientid . "' ORDER BY `logid` DESC LIMIT 5"); $groups = getClientGroups($clientid); include "./bootstrap/header.php"; /** * Notifications */ include "./bootstrap/notifications.php"; ?> <ul class="nav nav-tabs"> <li class="active"><a href="clientsummary.php?id=<?php echo $clientid; ?> "><?php echo T_('Summary'); ?> </a></li> <li><a href="clientprofile.php?id=<?php
* * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Mass Mail"); $aInt->title = $aInt->lang("permissions", "21"); $aInt->sidebar = "clients"; $aInt->icon = "massmail"; $aInt->helplink = "Mass Mail"; $aInt->requiredFiles(array("customfieldfunctions")); $clientgroups = getClientGroups(); $jscode = "function showMailOptions(type) {\n \$(\"#product_criteria\").slideUp();\n \$(\"#addon_criteria\").slideUp();\n \$(\"#domain_criteria\").slideUp();\n \$(\"#client_criteria\").slideDown();\n if (type) \$(\"#\"+type+\"_criteria\").slideDown();\n}"; ob_start(); echo "\n<p>"; echo $aInt->lang("massmail", "pagedesc"); echo "</p>\n\n<form method=\"post\" action=\"sendmessage.php?type=massmail\">\n\n<h2>"; echo $aInt->lang("massmail", "messagetype"); echo "</h2>\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"20%\" class=\"fieldlabel\">"; echo $aInt->lang("massmail", "emailtype"); echo "</td><td class=\"fieldarea\">\n<input type=\"radio\" name=\"emailtype\" value=\"General\" id=\"typegen\" onclick=\"showMailOptions('')\" /> <label for=\"typegen\">"; echo $aInt->lang("emailtpls", "typegeneral"); echo "</label> <input type=\"radio\" name=\"emailtype\" value=\"Product/Service\" id=\"typeprod\" onclick=\"showMailOptions('product')\" /> <label for=\"typeprod\">"; echo $aInt->lang("fields", "product"); echo "</label> <input type=\"radio\" name=\"emailtype\" value=\"Addon\" id=\"typeaddon\" onclick=\"showMailOptions('addon')\" /> <label for=\"typeaddon\">"; echo $aInt->lang("fields", "addon"); echo "</label> <input type=\"radio\" name=\"emailtype\" value=\"Domain\" id=\"typedom\" onclick=\"showMailOptions('domain')\" /> <label for=\"typedom\">";