本文整理汇总了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.";
示例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>
示例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"];
?>