当前位置: 首页>>代码示例>>PHP>>正文


PHP getGroups函数代码示例

本文整理汇总了PHP中getGroups函数的典型用法代码示例。如果您正苦于以下问题:PHP getGroups函数的具体用法?PHP getGroups怎么用?PHP getGroups使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getGroups函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _moduleContent

function _moduleContent(&$smarty, $module_name)
{
    include_once "libs/paloSantoGrid.class.php";
    include_once "libs/paloSantoForm.class.php";
    include_once "libs/paloSantoOrganization.class.php";
    //folder path for custom templates
    $local_templates_dir = getWebDirModule($module_name);
    //conexion resource
    $pDB = new paloDB($arrConf['elastix_dsn']["elastix"]);
    global $arrCredentials;
    $action = getAction();
    $content = "";
    switch ($action) {
        case "new_user":
            $content = viewFormUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "view":
            $content = viewFormUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "edit":
            $content = viewFormUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "save_new":
            $content = saveNewUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "save_edit":
            $content = saveEditUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "delete":
            $content = deleteUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "getGroups":
            $content = getGroups($pDB, $arrCredentials);
            break;
        case "getImage":
            $content = getImage($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "reloadAasterisk":
            $content = reloadAasterisk($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "reconstruct_mailbox":
            $content = reconstruct_mailbox($pDB, $arrConf, $arrCredentials);
            break;
            /*case "changes_email_quota":
              $content = changes_email_quota($smarty, $module_name, $pDB, $arrConf, $arrCredentials);
              break;*/
        /*case "changes_email_quota":
          $content = changes_email_quota($smarty, $module_name, $pDB, $arrConf, $arrCredentials);
          break;*/
        default:
            // report
            $content = reportUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
    }
    return $content;
}
开发者ID:lordbasex,项目名称:elastix-gui,代码行数:56,代码来源:index.php

示例2: action_selectgroup

 /**
  * Allow a user to chose the membergroups to send the announcement to.
  * Lets the user select the membergroups that will receive the topic announcement.
  * Accessed by action=announce;sa=selectgroup
  * @uses Announce template announce sub template
  */
 public function action_selectgroup()
 {
     global $context, $topic, $board_info;
     require_once SUBSDIR . '/Membergroups.subs.php';
     require_once SUBSDIR . '/Topic.subs.php';
     // Build a list of groups that can see this board
     $groups = array_merge($board_info['groups'], array(1));
     foreach ($groups as $id => $group) {
         $groups[$id] = (int) $group;
     }
     // Prepare for a group selection list in the template
     $context['groups'] = getGroups($groups);
     // Get the subject of the topic we're about to announce.
     $topic_info = getTopicInfo($topic, 'message');
     $context['topic_subject'] = $topic_info['subject'];
     censorText($context['announce_topic']['subject']);
     // Prepare for the template
     $context['move'] = isset($_REQUEST['move']) ? 1 : 0;
     $context['go_back'] = isset($_REQUEST['goback']) ? 1 : 0;
     $context['sub_template'] = 'announce';
 }
开发者ID:KeiroD,项目名称:Elkarte,代码行数:27,代码来源:Announce.controller.php

示例3: vk_parse_wall

function vk_parse_wall()
{
    $postCount = 150;
    // Сколько постов парсить
    $groups = getGroups();
    // Получаем группы
    $gCount = count($groups);
    // Получаем количество групп
    for ($l = 0; $l < $gCount; $l++) {
        $postsOnGroup = $postCount / $gCount;
        // Узнаем сколько постов парсить из каждоый группы
        $page = file_get_contents(trim($groups[$l]['url']));
        // Получаем страничку
        $mcount = countPostsInGroup($page);
        // Количество постов в группе
        if ($groups[$l]['parsed_count'] < $mcount - 100) {
            $offset = $mcount - $groups[$l]['parsed_count'];
            for ($k = $postsOnGroup; $k > 0; $k = $k - 10) {
                $thisPage = file_get_contents(trim('' . $groups[$l]['url'] . '?offset=' . $offset . ''));
                preg_match_all('/class="cc">(.*)class="links[\\n]*/Us', $thisPage, $firstContent);
                $countCc = count($firstContent);
                echo $countCc;
                for ($h = 0; $h < $countCc; $h++) {
                    preg_match_all('/class="like i"><i><\\/i><b>(.*)<\\/b>[\\n]*/Us', $firstContent[1][$h], $content1);
                    if ($content1[1][0] > 30) {
                        preg_match_all('/<div class="text">(.*)<\\/div>[\\n]*/Us', $firstContent[1][$h], $content);
                        if (isset($content[1][0])) {
                            echo $content[1][0];
                            echo ' - ';
                            echo $content1[1][0];
                            echo ' - ' . $groups[$l]['url'] . '?offset=' . $offset . '';
                            echo '<br />';
                        }
                    }
                }
                $offset = $offset - 10;
            }
        }
    }
}
开发者ID:DenisMalofeyev,项目名称:vk,代码行数:40,代码来源:par.php

示例4: _t

                <td><?php 
    echo _t("Widget");
    ?>
</td>
                <td><select name="module"><?php 
    echo makefileopts($widgets, $db->widget_module);
    ?>
</select></td>
            </tr>
            <tr>
                <td><?php 
    echo _t("Visible for");
    ?>
</td>
                <td><select name="group"><?php 
    echo getGroups($db->widget_group);
    ?>
</select> <?php 
    echo _t("and above");
    ?>
</td>
            </tr>
            <tr>
                <td><input type="submit" name="install" value="<?php 
    echo _t("Save");
    ?>
"></td>
            </tr>
        </table>
    </form>
开发者ID:n4v,项目名称:openTracker,代码行数:30,代码来源:edit.php

示例5: getGroups

//birthday
//image
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
require_once '../Templates/session-start.req-inc.php';
include '../Functions/dbconnect.php';
include '../Functions/Add-functions.php';
include '../Functions/utils-function.php';
include '../Functions/upload-function.php';
$results = getGroups();
if (isPostRequest()) {
    $address_group_id = filter_input(INPUT_POST, 'address_group_id');
    $fullname = filter_input(INPUT_POST, 'fullname');
    $email = filter_input(INPUT_POST, 'email');
    $address = filter_input(INPUT_POST, 'address');
    $phone = filter_input(INPUT_POST, 'phone');
    $website = filter_input(INPUT_POST, 'website');
    $birthday = filter_input(INPUT_POST, 'birthday');
    $isAdded = addToBook();
    if ($isAdded === false) {
        $message = 'Data was not added, please make sure you have entered all required data and that the data is valid<br>';
    } else {
        $message = 'Data was added<br>';
    }
}
开发者ID:Dayakes,项目名称:PHPWinterCLass2016,代码行数:31,代码来源:AddAddress.html.php

示例6: elseif

} else {
    $password = '';
}
if (isset($_POST['confirm'])) {
    $confirm = $_POST['confirm'];
} else {
    $confirm = '';
}
if (isset($_POST['user_group_id'])) {
    $user_group_id = $_POST['user_group_id'];
} elseif (!empty($user_info)) {
    $user_group_id = $user_info['group_id'];
} else {
    $user_group_id = '';
}
$user_groups = getGroups();
if (isset($_POST['status'])) {
    $status = $_POST['status'];
} elseif (!empty($user_info)) {
    $status = $user_info['status'];
} else {
    $status = 0;
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $action = $_POST['action'];
    $user_id = $_POST['user_id'];
    $username = $_POST['username'];
    $email = $_POST['email'];
    $password = $_POST['password'];
    $confirm = $_POST['confirm'];
    $user_group = $_POST['user_group_id'];
开发者ID:nvcDeb,项目名称:CoinCod,代码行数:31,代码来源:user_form.php

示例7: _t

                </td>
                <td>
                    <?php 
    echo $this->addon;
    ?>
                </td>
            </tr>
            <tr>
                <td>
                    <?php 
    echo _t("Visible for");
    ?>
                </td>
                <td>
                    <select name="group"><?php 
    echo getGroups($db->addon_group);
    ?>
</select> <?php 
    echo _t("and above");
    ?>
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" name="save" value="<?php 
    echo _t("Save");
    ?>
">
                </td>
            </tr>
        </table>
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:edit.php

示例8: db_connect

<?php

// Get list of all users or one in particualr if the id is given
include_once '../include/headers.php';
include_once '../include/dbutils.php';
include_once '../include/main.php';
include_once 'domain/groups.php';
db_connect();
$expand = isset($_GET['expand']) ? $_GET['expand'] : null;
if (isset($_GET['id'])) {
    $value = getGroup($_GET['id'], $expand);
} else {
    $value = getGroups($expand);
}
//return JSON array
exit(json_encode($value));
开发者ID:eznibe,项目名称:north-telas,代码行数:16,代码来源:groups_GET.php

示例9: while

if ($upcomingGroupEvents->have_posts()) {
    while ($upcomingGroupEvents->have_posts()) {
        $upcomingGroupEvents->the_post();
        ?>

			<?php 
        if ($counter == 0) {
            echo "<li class='col-sm-4 active'>";
        } else {
            echo "<li class='col-sm-4'>";
        }
        ?>
			<span class='state-indicator'></span>
			<h3>
				<?php 
        $groups = getGroups($post->ID);
        ?>
				<?php 
        echo $groups->post_title . ":";
        ?>
				<br>
				<a href="<?php 
        echo the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
			</h3>
			<small>
				<?php 
开发者ID:aigamn,项目名称:aigamn2016,代码行数:31,代码来源:home-groupevents.php

示例10: array

require_once 'Helper/PHPExcel/IOFactory.php';
$relations = array();
$definitions = array();
$additionalData = array();
$file = __DIR__ . '/data/US Data v1.1.xlsx';
if (!file_exists($file)) {
    exit("File ' . {$file} . ' first not found.\n");
}
$objPHPExcel = PHPExcel_IOFactory::load($file);
$relations = getSheetData($objPHPExcel, 0);
$definitions = getSheetData($objPHPExcel, 1);
$additionalData = getSheetData($objPHPExcel, 2);
$returns = array();
if (count($relations) > 0 && count($definitions) > 0 && count($additionalData)) {
    $groups = getGroups($relations);
    $nodes = getNodes($relations, $definitions, $groups);
    /*echo '<pre>';
      var_dump($nodes);
      echo '</pre>';
      die;*/
    $links = getLinks($relations, $nodes);
    $additionalNodesData = getAdditionalNodesData($additionalData, $nodes);
    $returns = array('nodes' => $nodes, 'links' => $links, 'groups' => $groups, 'additionalNodesData' => $additionalNodesData);
    echo json_encode($returns);
}
// helper functions
function getSheetData($objPHPExcel, $number = 0)
{
    $result = array();
    $objPHPExcel->setActiveSheetIndex($number);
开发者ID:evo9,项目名称:social_graph2,代码行数:30,代码来源:excel_parser.php

示例11: getForumCategory

                <td><input type="text" name="name" value="<?php 
    echo $db->name;
    ?>
" size="40"></td>
            </tr>
            <tr>
                <td>Category</td>
                <td><select name="category"><?php 
    echo getForumCategory($db->category);
    ?>
</select></td>
            </tr>
            <tr>
                <td>Group</td>
                <td><select name="group"><?php 
    echo getGroups($db->group);
    ?>
</select></td>
            </tr>
            <tr>
                <td valign="top">Description</td>
                <td><textarea name="description" rows="5" cols="31"><?php 
    echo $db->description;
    ?>
</textarea></td>
            </tr>
            <tr>
                <td><input type="submit" value="Save forum" name="save" /></td>
            </tr>
        </table>
    </form>
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:edit-forum.php

示例12: getGroups

    ?>
)</option><?php 
    echo getGroups($db->upgradeto);
    ?>
</select></td>
            </tr>
            <tr>
                <td width="100px"><?php 
    echo _t("Downgrade to");
    ?>
:</td>
                <td><select name="downgradeto"><option value="0">(<?php 
    echo _t("Choose");
    ?>
)</option><?php 
    echo getGroups($db->downgradeto);
    ?>
</select></td>
            </tr>
            <tr>
                <td><?php 
    echo _t("Minimum Upload");
    ?>
:</td>
                <td><input name="minupload" type="text" value="<?php 
    echo $db->minupload;
    ?>
" size="25"></td>
            </tr>
            <tr>
                <td><?php 
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:edit.php

示例13: setCurrentGroupId

function setCurrentGroupId()
{
    global $cmd;
    if (!isset($_GET['groupid']) && !isset($_SESSION['groupid'])) {
        if (php_uname("s") != "Darwin") {
            $profiles = $cmd->bmonitor->getAllGroupsHost();
        } else {
            $groups = getGroups();
            foreach ($groups as $p) {
                $profiles[] = array('name' => $p['name'], 'groupid' => $p['groupid']);
            }
        }
        foreach ($profiles as $p => $value) {
            $_SESSION['profile'] = $value['name'];
            $_SESSION['groupid'] = $value['groupid'];
        }
    } else {
        if (isset($_GET['groupid'])) {
            $_SESSION['profile'] = $_GET['profile'];
            $_SESSION['groupid'] = $_GET['groupid'];
        }
    }
}
开发者ID:rafaelurrutia,项目名称:bmonitor-y-bi,代码行数:23,代码来源:api.php

示例14: getTasks

    getTasks();
} elseif ($_POST["action"] == "add_user") {
    $response['action'] = 'get_users';
    userAdd();
    getUsers();
} elseif ($_POST["action"] == "remove_users") {
    $response['action'] = 'get_users';
    usersRemove();
    getUsers();
} elseif ($_POST["action"] == "get_complete_tasks") {
    $response['action'] = 'get_complete_tasks';
    getCompleteTasks();
} elseif ($_POST["action"] == "get_groups") {
    $response['action'] = 'get_groups';
    getGroups();
} elseif ($_POST["action"] == "add_group") {
    $response['action'] = 'get_tasks';
    groupAdd();
    getGroups();
    getTasks();
} elseif ($_POST["action"] == "group_remove") {
    $response['action'] = 'get_tasks';
    groupRemove();
    getGroups();
    getTasks();
}
/*
if(defined('JSON_NUMERIC_CHECK'))
	echo json_encode($response, JSON_NUMERIC_CHECK);
else*/
echo json_encode($response);
开发者ID:ColleagueOnTheProject1,项目名称:tcs,代码行数:31,代码来源:action.php

示例15: getGroupName

    </div><!--/.navbar-header -->
    <p class="weekSelector-text">Your Picks for <?php 
echo "{$this_season_year} {$this_season_type} Week {$this_week}";
?>
</p>
    <div id="navbar2" class="navbar-collapse collapse weekSelector">
     <ul class="nav navbar-nav weekSelector">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php 
echo getGroupName($db, $this_group_id);
?>
 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li class="dropdown-header">Groups</li>
            <?php 
$groups = getGroups($db, $this_user_id);
foreach ($groups as $group) {
    echo '<li><a href="' . $THIS_PAGE . '?group_id=' . $group['group_id'] . '&season_year=' . $this_season_year . '&season_type=' . $this_season_type . '&week=' . $this_week . '">' . $group['group_name'] . '</a></li>';
}
?>
      
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php 
echo $this_season_year;
?>
 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li class="dropdown-header">Season Years</li>
            <?php 
开发者ID:jeffmoreland,项目名称:football,代码行数:31,代码来源:selector.php


注:本文中的getGroups函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。