• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getUserList函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: testGetUserList

 public function testGetUserList()
 {
     // count there is 7 users
     $this->assertEquals(count(getUserList()), 7);
     // test some username
     $this->assertEquals(getUserList()[0], "user_with_allPermissions");
     $this->assertEquals(getUserList()[1], "user_with_listtaskpermission");
     // test the last username
     $this->assertEquals(getUserList()[6], "user_with_nonepermissions");
 }
开发者ID:vmizoules,项目名称:ZZTasksPHP,代码行数:10,代码来源:authenticationTest.php


示例2: knockKnock

function knockKnock($userName, $callerID)
{
    $user_list = getUserList();
    $users = json_decode($user_list);
    if (count($users->rows) == 0) {
        return false;
    } else {
        foreach ($users->rows as $user) {
            $channel = $user->value->channel;
            $network = $user->value->network;
            $name = $user->value->name;
            $address = $user->key;
            $msg = "{$userName} is outside knocking, please let them in.";
            if ($channel == 'VOICE') {
                $address = 'tel:+1' . $address;
            }
            message($msg, array("to" => $address, "network" => $network));
        }
        return true;
    }
}
开发者ID:hack4reno,项目名称:hack4reno2011,代码行数:21,代码来源:index.php


示例3: get_view

    public function get_view()
    {
        ob_start();
        ?>
<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
<label>Username</label>
<select name="id" class="form-control">
<?php 
        foreach (getUserList() as $uid => $name) {
            echo "<option>" . $name . "</option>";
        }
        ?>
</select>
<p>
    <button class="btn btn-defaut" type="submit">Pose as User</button>
</p>
</form>
        <?php 
        $this->add_onload_command("\$('select.form-control').focus();\n");
        return ob_get_clean();
    }
开发者ID:phpsmith,项目名称:IS4C,代码行数:24,代码来源:AuthPosePage.php


示例4: updateUser

/**
 * 设置人员属性
 */
function updateUser($userId, $matchId, $groupId = -1, $apply_follow = -1, $apply_match = -1, $apply_group = -1, $pass_apply_match = -1, $pass_apply_group = -1)
{
    global $wpdb;
    $_userId = intval($userId);
    $_matchId = intval($matchId);
    $_groupId = intval($groupId);
    $_apply_follow = intval($apply_follow);
    $_apply_match = intval($apply_match);
    $_apply_group = intval($apply_group);
    $_pass_apply_match = intval($pass_apply_match);
    $_pass_apply_group = intval($pass_apply_group);
    $columns = array();
    if ($_groupId > -1) {
        $columns['group_id'] = intval($_groupId);
    }
    if ($_apply_follow > -1) {
        $columns['apply_follow'] = intval($_apply_follow);
    }
    if ($_apply_match > -1) {
        $columns['apply_match'] = intval($_apply_match);
    }
    if ($_apply_group > -1) {
        $columns['apply_group'] = intval($_apply_group);
    }
    if ($_pass_apply_match > -1) {
        $columns['pass_apply_match'] = intval($_pass_apply_match);
    }
    if ($_pass_apply_group > -1) {
        $columns['pass_apply_group'] = intval($_pass_apply_group);
    }
    if ($_userId > 0 && $_matchId > 0) {
        $users = getUserList($userId, $matchId);
        if (empty($users)) {
            return $wpdb->insert('wp_likedome_match_user', array('uid' => $_userId, 'match_id' => $_matchId) + $columns);
        }
        $result = $wpdb->update('wp_likedome_match_user', $columns, array('uid' => $_userId, 'match_id' => $_matchId));
    }
    return $result;
}
开发者ID:hotmob,项目名称:likedome,代码行数:42,代码来源:classes.php


示例5: wp_reset_postdata

        }
        wp_reset_postdata();
    } else {
        ?>
					<li style="width: 100%; float: left;">
						* 目前你还没有参加过任何比赛
					</li>
					<?php 
    }
    ?>
				</ul>
			</div>
			<div class="tab_main">
				<ul class="joinList margin-t13" style="width: 100%; float: left;">
					<?php 
    $users = getUserList($current_user->ID, -1, -1, 1);
    if (count($users)) {
        foreach ($users as $user) {
            $args = get_match_post($user->match_id);
            query_posts($args);
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>
					<li style="width: 100%; float: left;">
						<a href="?p=77&matchid=<?php 
                    echo $user->match_id;
                    ?>
"><?php 
                    the_post_thumbnail();
                    ?>
开发者ID:hotmob,项目名称:likedome,代码行数:31,代码来源:mymatch.php


示例6: getSurveyUserList

/**
* Retrieve a HTML <OPTION> list of survey admin users
*
* @param mixed $bIncludeOwner If the survey owner should be included
* @param mixed $bIncludeSuperAdmins If Super admins should be included
* @param int surveyid
* @return string
*/
function getSurveyUserList($bIncludeOwner = true, $bIncludeSuperAdmins = true, $surveyid)
{
    $surveyid = sanitize_int($surveyid);
    $sSurveyIDQuery = "SELECT a.uid, a.users_name, a.full_name FROM {{users}} AS a\n    LEFT OUTER JOIN (SELECT uid AS id FROM {{permissions}} WHERE entity_id = {$surveyid} and entity='survey') AS b ON a.uid = b.id\n    WHERE id IS NULL ";
    if (!$bIncludeSuperAdmins) {
        // @todo: Adjust for new permission system - not urgent since it it just display
        //   $sSurveyIDQuery.='and superadmin=0 ';
    }
    $sSurveyIDQuery .= 'ORDER BY a.users_name';
    $oSurveyIDResult = Yii::app()->db->createCommand($sSurveyIDQuery)->query();
    //Checked
    $aSurveyIDResult = $oSurveyIDResult->readAll();
    $surveyselecter = "";
    if (Yii::app()->getConfig('usercontrolSameGroupPolicy') == true) {
        $authorizedUsersList = getUserList('onlyuidarray');
    }
    foreach ($aSurveyIDResult as $sv) {
        if (Yii::app()->getConfig('usercontrolSameGroupPolicy') == false || in_array($sv['uid'], $authorizedUsersList)) {
            $surveyselecter .= "<option";
            $surveyselecter .= " value='{$sv['uid']}'>{$sv['users_name']} {$sv['full_name']}</option>\n";
        }
    }
    if (!isset($svexist)) {
        $surveyselecter = "<option value='-1' selected='selected'>" . gT("Please choose...") . "</option>\n" . $surveyselecter;
    } else {
        $surveyselecter = "<option value='-1'>" . gT("None") . "</option>\n" . $surveyselecter;
    }
    return $surveyselecter;
}
开发者ID:GuillaumeSmaha,项目名称:LimeSurvey,代码行数:37,代码来源:common_helper.php


示例7: getUserList

<?php

include 'functions.php';
include 'header.php';
$get = getUserList();
setlocale(LC_TIME, 'Estonia');
date_default_timezone_set('Europe/Tallinn');
$praegu = time();
$algus = strtotime("01-03-2016 10:00:00");
$kulunud = $praegu - $algus;
echo "Kursuse algusest on möödunud " . $kulunud . " sekundit<br>";
echo "Tänane kuupäev: " . strftime("%Y. %B %d.");
?>
<div class="page-header pool">
        <h1>Tabel</h1>
</div>
<form action="new.php" method="post">
<button type="submit" class="btn btn-default">Lisa</button>
</form>
<div class="row">
	<div class="col-md-6">
        <table class="table table-striped">
            <thead>
				<tr>
					<th>#</th>
					<th>Nimi</th>
					<th>Kasutaja</th>
					<th>E-mail</th>
					<th>Tel</th>
					<th>Sugu</th>
					<th>Muudetud</th>
开发者ID:Murtpoiss,项目名称:kool,代码行数:31,代码来源:index.php


示例8: array

        } else {
            $userInfo = array('ip' => $ip, 'addtime' => microtime());
            $redis->rPush('userlist', json_encode($userInfo));
            $redis->decr('goods_count');
            $arr['succ'] = 'T';
            $arr['msg'] = $userInfo['ip'] . '恭喜您,抢到了商品!';
        }
    } else {
        // 不存在商品了,直接返回数据
        $arr['msg'] = '商品已经抢光了,谢谢您的参与,下次再来吧';
    }
    backjson($arr);
} elseif ($act == 'user') {
    //获取中奖用户
    $msg = "";
    $userArr = getUserList();
    if (!empty($userArr)) {
        foreach ($userArr as $user) {
            $msg .= "<tr>\r\n            <td>" . $user['ip'] . "</td>\r\n            <td>" . $user['addtime'] . "</td>\r\n        </tr>";
        }
    } else {
        $msg .= "<tr colspan='2'>没有查询到用户</tr>";
    }
    $arr['succ'] = 'T';
    $arr['msg'] = $msg;
    backjson($arr);
} elseif ($act == 'gettime') {
    $time = date("Y-m-d H:i:s");
}
function backjson($data)
{
开发者ID:sunlyliuh,项目名称:myproject,代码行数:31,代码来源:miaosha.php


示例9: switch

    echo "\n</form>";
} else {
    switch (getVAR("action")) {
        case "create_notice":
            if (strtolower($username) == "student") {
                echo send_notice("ERROR", "Students may not create notices.");
            } else {
                echo "\n<form method=\"POST\" action=\"{$PHP_SELF}?action=create_notice_add&display_date={$display_date}&username={$username}&password={$password}\">";
                echo "\n<table bgcolor={$table_heading_bgcolour} width=100%>";
                echo "\n<tr><td colspan=2><h2>Create New Notice</h2></td></tr>";
                echo "\n<tr><td>Date(s):</td><td><table><tr><td>" . getDateList(true, "") . "</td><td>Note: CTRL + click to select multiple days.</td></tr></table></td></tr>";
                echo "\n<tr><td>Title:</td><td><input type=\"text\" size=40 name=\"txttitle\"></td></tr>";
                echo "\n<tr><td>Notice:</td><td><textarea rows=5 cols=40 name=\"txtnotice\"></textarea></td></tr>";
                echo "\n<tr><td>Author:</td><td><input type=\"text\" size=40 name=\"txtauthor\"></td></tr>";
                echo "\n<tr><td>Importance:</td><td>" . getImportanceList() . "</td></tr>";
                echo "\n<tr><td>Who should see this notice?:</td><td>" . getUserList() . "</td></tr>";
                echo "\n<tr><td>Typeface:</td><td>" . getTypeFaceList() . "</td></tr>";
                echo "\n<tr><td>Size:</td><td>" . getFontSizeList() . "<p>";
                echo "\n<input type=\"submit\" value=\"Create\" name=\"B1\"></td></tr>";
                echo "\n</table>";
                echo "\n</form>";
            }
            break;
        case "create_notice_add":
            if (!getVAR("lstdate")) {
                echo send_notice("ERROR", "No date was specified.");
                continue;
            }
            $tempDate = getVAR("lstdate");
            $tempTitle = mysql_real_escape_string(getVAR("txttitle"));
            $tempNotice = mysql_real_escape_string(getVAR("txtnotice"));
开发者ID:scott-panton,项目名称:Bulletin,代码行数:31,代码来源:index.php


示例10: setusertemplates

 function setusertemplates()
 {
     App()->getClientScript()->registerPackage('jquery-tablesorter');
     App()->getClientScript()->registerScriptFile(App()->getAssetManager()->publish(ADMIN_SCRIPT_PATH . 'users.js'));
     $postuserid = (int) Yii::app()->request->getPost("uid");
     $aData['postuser'] = flattenText(Yii::app()->request->getPost("user"));
     $aData['postemail'] = flattenText(Yii::app()->request->getPost("email"));
     $aData['postuserid'] = $postuserid;
     $aData['postfull_name'] = flattenText(Yii::app()->request->getPost("full_name"));
     $this->_refreshtemplates();
     $templaterights = array();
     foreach (getUserList() as $usr) {
         if ($usr['uid'] == $postuserid) {
             $trights = Permission::model()->findAllByAttributes(array('uid' => $usr['uid'], 'entity' => 'template'));
             foreach ($trights as $srow) {
                 $templaterights[$srow["permission"]] = array("use" => $srow["read_p"]);
             }
             $templates = Template::model()->findAll();
             $aData['list'][] = array('templaterights' => $templaterights, 'templates' => $templates);
         }
     }
     $aData['fullpagebar']['savebutton']['form'] = 'modtemplaterightsform';
     $aData['fullpagebar']['closebutton']['url'] = 'admin/user/sa/index';
     $this->_renderWrappedTemplate('user', 'setusertemplates', $aData);
 }
开发者ID:CSCI-462-01-2016,项目名称:LimeSurvey,代码行数:25,代码来源:useraction.php


示例11: unset

                 $insertlog->execute();
                 $template_file = $spracheResponse->table_add;
             }
             // No update or insert failed
         } else {
             $template_file = $spracheResponse->error_table;
         }
     }
 }
 // An error occurred during validation
 // unset the redirect information and display the form again
 if (!$ui->smallletters('action', 2, 'post') or count($errors) != 0) {
     unset($header, $text);
     // Gather data for adding if needed and define add template
     if ($ui->st('d', 'get') == 'ad') {
         $table = getUserList($resellerLockupID);
         $query = $sql->prepare("SELECT m.`id`,m.`ssh2ip`,m.`description`, COUNT(d.`dnsID`)/(m.`max_dns`/100) AS `usedpercent` FROM `voice_tsdns` AS m LEFT JOIN `voice_dns` AS d ON d.`tsdnsID`=m.`id` WHERE m.`resellerid`=? AND m.`active`='Y' GROUP BY m.`id` HAVING `usedpercent`<100 ORDER BY `usedpercent` ASC");
         $query->execute(array($resellerLockupID));
         while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
             $table2[$row['id']] = trim($row['ssh2ip'] . ' ' . $row['description']);
         }
         $template_file = 'admin_voice_dns_add.tpl';
         // Gather data for modding in case we have an ID and define mod template
     } else {
         if ($ui->st('d', 'get') == 'md' and $id) {
             // Check if database entry exists and if not display 404 page
             $template_file = isset($oldActive) ? 'admin_voice_dns_md.tpl' : 'admin_404.tpl';
             // Show 404 if GET parameters did not add up or no ID was given with mod
         } else {
             $template_file = 'admin_404.tpl';
         }
开发者ID:nightcore125,项目名称:developer,代码行数:31,代码来源:voice_tsdnsrecords.php


示例12: intval

     $messageAuthor = intval($_POST['messageAuthor']);
     $content = trim($_POST['content']);
     $message = addMessage($messageAuthor, $content);
     header("location:index.php?ac=userinfo");
 } else {
     if ($ac == 'search') {
         $type = !empty($_GET['type']) ? intval($_GET['key']) : 1;
         if ($type == 1) {
             $key = !empty($_GET['key']) ? trim($_GET['key']) : null;
             $memberid = !empty($_GET['memberid']) ? intval($_GET['memberid']) : null;
             $title = $memberid ? '我的问题' : '';
             $questions = getQuestionList($memberid, $key);
             include 'tpl/main.php';
         } else {
             $key = !empty($_GET['key']) ? trim($_GET['key']) : null;
             $users = getUserList($key);
             include 'tpl/userlist.php';
         }
     } else {
         if ($ac == 'myanswers') {
             $memberid = !empty($_GET['memberid']) ? intval($_GET['memberid']) : null;
             $myanswers = getAnswerList($memberid);
             include 'tpl/myanswer.php';
         } else {
             if ($ac == 'userinfo') {
                 $usersession = $_SESSION['userinfo'];
                 $info = getOneUser($usersession['username']);
                 include 'tpl/userinfo.php';
             } else {
                 if ($ac == 'good') {
                     $qid = intval($_GET['qid']);
开发者ID:printfll,项目名称:Q-A-website,代码行数:31,代码来源:index.php


示例13: adduser

 /**
  * surveypermission::adduser()
  * Function responsible to add user.
  * @param mixed $surveyid
  * @return void
  */
 function adduser($surveyid)
 {
     $aData['surveyid'] = $surveyid = sanitize_int($surveyid);
     $aViewUrls = array();
     $action = $_POST['action'];
     $clang = Yii::app()->lang;
     $imageurl = Yii::app()->getConfig('imageurl');
     $postuserid = $_POST['uid'];
     if ($action == "addsurveysecurity") {
         $addsummary = "<div class='header ui-widget-header'>" . $clang->gT("Add User") . "</div>\n";
         $addsummary .= "<div class=\"messagebox ui-corner-all\">\n";
         $result = Survey::model()->findAll('sid = :sid AND owner_id = :owner_id AND owner_id != :postuserid', array(':sid' => $surveyid, ':owner_id' => Yii::app()->session['loginID'], ':postuserid' => $postuserid));
         if (count($result) > 0 && in_array($postuserid, getUserList('onlyuidarray')) || Yii::app()->session['USER_RIGHT_SUPERADMIN'] == 1) {
             if ($postuserid > 0) {
                 $isrresult = Survey_permissions::model()->insertSomeRecords(array('sid' => $surveyid, 'uid' => $postuserid, 'permission' => 'survey', 'read_p' => 1));
                 if ($isrresult) {
                     $addsummary .= "<div class=\"successheader\">" . $clang->gT("User added.") . "</div>\n";
                     $addsummary .= "<br />" . CHtml::form(array("admin/surveypermission/sa/set/surveyid/{$surveyid}"), 'post') . "<input type='submit' value='" . $clang->gT("Set survey permissions") . "' />" . "<input type='hidden' name='action' value='setsurveysecurity' />" . "<input type='hidden' name='uid' value='{$postuserid}' />" . "</form>\n";
                 } else {
                     // Username already exists.
                     $addsummary .= "<div class=\"warningheader\">" . $clang->gT("Failed to add user.") . "</div>\n" . "<br />" . $clang->gT("Username already exists.") . "<br />\n";
                     $addsummary .= "<br/><input type=\"submit\" onclick=\"window.open('" . $this->getController()->createUrl('admin/surveypermission/sa/view/surveyid/' . $surveyid) . "', '_top')\" value=\"" . $clang->gT("Continue") . "\"/>\n";
                 }
             } else {
                 $addsummary .= "<div class=\"warningheader\">" . $clang->gT("Failed to add user.") . "</div>\n" . "<br />" . $clang->gT("No Username selected.") . "<br />\n";
                 $addsummary .= "<br/><input type=\"submit\" onclick=\"window.open('" . $this->getController()->createUrl('admin/surveypermission/sa/view/surveyid/' . $surveyid) . "', '_top')\" value=\"" . $clang->gT("Continue") . "\"/>\n";
             }
         } else {
             accessDenied();
         }
         $addsummary .= "</div>\n";
         $aViewUrls['output'] = $addsummary;
     }
     $this->_renderWrappedTemplate('authentication', $aViewUrls, $aData);
 }
开发者ID:ryu1inaba,项目名称:LimeSurvey,代码行数:41,代码来源:surveypermission.php


示例14: getUserList

            $stmt = $db->prepare($pre_user_1);
            $stmt->execute();
            $pre_all_1 = $stmt->fetchAll(PDO::FETCH_NUM);
            $stmt = $db->prepare($pre_user_2);
            $stmt->execute();
            $pre_all_2 = $stmt->fetchAll(PDO::FETCH_NUM);
            $stmt = $db->prepare($this_user_1);
            $stmt->execute();
            $this_all_1 = $stmt->fetchAll(PDO::FETCH_NUM);
            $stmt = $db->prepare($this_user_2);
            $stmt->execute();
            $this_all_2 = $stmt->fetchAll(PDO::FETCH_NUM);
            $data->user_create_pre = getUserList($pre_all_1);
            $data->user_desgin_pre = getUserList($pre_all_2);
            $data->user_create_this = getUserList($this_all_1);
            $data->user_desgin_this = getUserList($this_all_2);
        }
        $db = null;
        //echo $pre_lin;
        echo '{"summary":' . json_encode($data) . '}';
    } catch (PDOException $e) {
        echo '{"error":{"text":"' . $e->getMessage() . '"}}';
    }
});
/**
 * 获取需求属性
 */
$app->get('/users/:power', function ($power) use($app) {
    $sql = "SELECT * FROM  `tb_users` WHERE  `user_power` =" . $power;
    try {
        $db = getConnection();
开发者ID:jacoobwang,项目名称:ecp,代码行数:31,代码来源:index.php


示例15: setFavorite

 case 'setFavorite':
     setFavorite();
     break;
 case 'getBonusHistory':
     getBonusHistory();
     break;
 case 'getMultipleBidList':
     getMultipleBidList();
     break;
 case 'getProjects':
     $userId = isset($_SESSION['userid']) ? $_SESSION['userid'] : 0;
     $currentUser = User::find($userId);
     getProjects(!$currentUser->isInternal());
     break;
 case 'getUserList':
     getUserList();
     break;
 case 'getUsersList':
     getUsersList();
     break;
 case 'payBonus':
     payBonus();
     break;
 case 'pingTask':
     pingTask();
     break;
 case 'userReview':
     userReview();
     break;
 case 'visitQuery':
     echo json_encode(VisitQueryTools::visitQuery((int) $_GET['jobid']));
开发者ID:MaitreyaBuddha,项目名称:worklist,代码行数:31,代码来源:api.php


示例16: _generalTabEditSurvey

 /**
  * survey::_generalTabEditSurvey()
  * Load "General" tab of edit survey screen.
  * @param mixed $iSurveyID
  * @param mixed $esrow
  * @return
  */
 private function _generalTabEditSurvey($iSurveyID, $esrow)
 {
     $aData['action'] = "editsurveysettings";
     $aData['esrow'] = $esrow;
     $aData['surveyid'] = $iSurveyID;
     // Get users, but we only need id and name (NOT password etc)
     $users = getUserList();
     $aData['users'] = array();
     foreach ($users as $user) {
         $aData['users'][] = array('username' => $user['user'], 'uid' => $user['uid']);
     }
     $beforeSurveySettings = new PluginEvent('beforeSurveySettings');
     $beforeSurveySettings->set('survey', $iSurveyID);
     App()->getPluginManager()->dispatchEvent($beforeSurveySettings);
     $aData['pluginSettings'] = $beforeSurveySettings->get('surveysettings');
     return $aData;
 }
开发者ID:GuillaumeSmaha,项目名称:LimeSurvey,代码行数:24,代码来源:surveyadmin.php


示例17: json_decode

					"data": {"group_name":"nouveau groupe"}
				}';
*/
/*$jsonString = '{
			"request": "createGroup",
			"data": {"group_name":"nouveau groupe"}
		}';*/
//$json = json_decode($jsonString,true);
$json = json_decode(file_get_contents("php://input"), true);
$request = $json["request"];
$response = null;
if ($request == "getAllAccount") {
    $response = getUserList($json["userId"], $json["raw"], false);
} else {
    if ($request == "getAllAccountReady") {
        $response = getUserList($json["userId"], $json["raw"], true);
    } else {
        if ($request == "save") {
            $response = saveUser($json["data"]);
        } else {
            if ($request == "createUser") {
                $response = createUser($json["raw"]);
            } else {
                if ($request == "saveGroups") {
                    $response = saveGroups($json["data"]);
                } else {
                    if ($request == "removeUserFromGroup") {
                        $response = removeUserFromGroup($json["data"]);
                    } else {
                        if ($request == "addUserToGroup") {
                            $response = addUserToGroup($json["data"]);
开发者ID:CrepesAuxOeufs,项目名称:ManagementProject,代码行数:31,代码来源:account.php


示例18: getUserList

<?php

require 'authCheck.php';
if (!isset($USER->id)) {
    return;
}
require 'queries/userQueries.php';
$PAGE->id = 'userlistGet';
//setup for query
$stmt = getUserList($DB);
if (!$stmt->execute()) {
    return errorHandler("failed to get this list {$stmt->errno}: {$stmt->error}");
}
//format results
$data = array();
$stmt->bind_result($data['userId'], $data['userName'], $data['userEmail']);
/* fetch values */
$listResults = array();
while ($stmt->fetch()) {
    $row = arrayCopy($data);
    array_push($listResults, $row);
}
echo json_encode($listResults);
function arrayCopy(array $array)
{
    $result = array();
    foreach ($array as $key => $val) {
        if (is_array($val)) {
            $result[$key] = arrayCopy($val);
        } elseif (is_object($val)) {
            $result[$key] = clone $val;
开发者ID:safetyscissors,项目名称:blog,代码行数:31,代码来源:userlistGet.php


示例19: userSelect

 private function userSelect()
 {
     $this->add_onload_command("\$('select.form-control').focus();\n");
     $ret = '<div class="form-group">
         <label>Username</label>
         <select name="id" class="form-control">';
     foreach (getUserList() as $uid => $name) {
         $ret .= "<option>" . $name . "</option>";
     }
     $ret .= '</select></div>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:12,代码来源:AuthUsersPage.php


示例20: get_follow_match_button

/**
 * 获取关注比赛按钮_小
 */
function get_follow_match_button($userid, $matchid)
{
    if (intval($userid) == 0) {
        $userid = -1;
    } else {
        $users = getUserList($userid, $matchid);
    }
    if (!empty($users)) {
        if (intval($users[0]->apply_follow)) {
            ?>
			<div class="btn margin-r10 fl">
			已经关注
			</div>
		<?php 
            return;
        }
    }
    ?>
	<a class="btn margin-r10 fl" onclick="showWindowsFrameTimer('follow_match', 'wp-content/plugins/likedome/tournament.php?opt=follow&matchid=<?php 
    echo $matchid;
    ?>
&flag=1', 500);" >
	关注比赛
	</a>
	<?php 
}
开发者ID:hotmob,项目名称:likedome,代码行数:29,代码来源:functions.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getUserLocale函数代码示例发布时间:2022-05-15
下一篇:
PHP getUserInput函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap