當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UserInfo::SetUser方法代碼示例

本文整理匯總了PHP中UserInfo::SetUser方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserInfo::SetUser方法的具體用法?PHP UserInfo::SetUser怎麽用?PHP UserInfo::SetUser使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在UserInfo的用法示例。


在下文中一共展示了UserInfo::SetUser方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: User

     $usif_nick = $usif_first_name;
 }
 $user = new User();
 $user->SetDatabase($database);
 $user->SetUsername($user_username);
 $user->SetPassword($user_password1);
 $user->SetActive(0);
 $user->Insert();
 $user->SelectByName();
 $user_info = new UserInfo();
 $user_info->SetDatabase($database);
 $user_info->SetFirstName($usif_first_name);
 $user_info->SetLastName($usif_last_name);
 $user_info->SetNick($usif_nick);
 $user_info->SetEmail($usif_email);
 $user_info->SetUser($user->GetId());
 if ($user_info->Insert()) {
     $message_position = 8;
     $message = $screen_module_name . " incluídas com sucesso. Aguarde a ativação do usuário pelo administrador.";
     $usif_id = "";
     $usif_first_name = "";
     $usif_last_name = "";
     $usif_nick = "";
     $usif_email = "";
     $usif_user_id = "";
     $user_username = "";
     $user_password1 = "";
     $user_password2 = "";
 } else {
     $message_position = 8;
     $message = "Problemas na operação.";
開發者ID:googlecode-mirror,項目名稱:schifers,代碼行數:31,代碼來源:pgRegister.php

示例2: UserInfo

$result = $user->SelectInactive();
if (mysql_num_rows($result) == 0) {
    ?>

			<tr>
				<td bgcolor="#FFFFFF" width="100%" valign="center" align="center" colspan="6">
					Não existem usuários inativos.
				</td>
			</tr>

<?php 
}
while ($data = mysql_fetch_array($result)) {
    $user_info = new UserInfo();
    $user_info->SetDatabase($database);
    $user_info->SetUser($data["user_id"]);
    $user_info->SelectByUser();
    ?>

			<tr>
				<td bgcolor="#FFFFFF" width="5%" valign="center" align="center">
					<input type="checkbox" name="p_user_id[]" value="<?php 
    echo $data["user_id"];
    ?>
">
				</td>
				<td bgcolor="#FFFFFF" width="20%" valign="center" align="center">
					<?php 
    echo $data["user_username"];
    ?>
				</td>
開發者ID:googlecode-mirror,項目名稱:schifers,代碼行數:31,代碼來源:pgActivateUsers.php

示例3: Topic

							Visualizações
						</td>
						<td bgcolor="#AAAAAA" width="20%" valign="top" align="center">
							Última Mensagem
						</td>
					</tr>

<?php 
    $children = new Topic();
    $children->SetDatabase($database);
    $children->SetTopic($data["topc_id"]);
    $result0 = $children->SelectByTopic();
    while ($data0 = $database->FetchArray($result0)) {
        $users_info = new UserInfo();
        $users_info->SetDatabase($database);
        $users_info->SetUser($data0["topc_user_id"]);
        $users_info->SelectByUser();
        $messages = new Message();
        $messages->SetDatabase($database);
        $messages->SetTopic($data0["topc_id"]);
        $p_topic = new Topic();
        $p_topic->SetDatabase($database);
        $p_topic->SetId($data0["topc_id"]);
        $p_topic->SelectById();
        ?>

					<tr>
						<td bgcolor="#FFFFFF" width="50%" valign="top" align="left">
							<a href="/pages/pgForumMessages.php?p_topc_id=<?php 
        echo $data0["topc_id"];
        ?>
開發者ID:googlecode-mirror,項目名稱:schifers,代碼行數:31,代碼來源:pgForumTopics.php


注:本文中的UserInfo::SetUser方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。