onokazu
onoka****@users*****
2005年 6月 7日 (火) 11:41:26 JST
Index: xoops2jp/html/modules/system/admin/users/userform.php diff -u xoops2jp/html/modules/system/admin/users/userform.php:1.2.6.2 xoops2jp/html/modules/system/admin/users/userform.php:1.2.6.3 --- xoops2jp/html/modules/system/admin/users/userform.php:1.2.6.2 Fri May 13 20:04:10 2005 +++ xoops2jp/html/modules/system/admin/users/userform.php Tue Jun 7 11:41:25 2005 @@ -1,5 +1,5 @@ <?php -// $Id: userform.php,v 1.2.6.2 2005/05/13 11:04:10 minahito Exp $ +// $Id: userform.php,v 1.2.6.3 2005/06/07 02:41:25 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -39,40 +39,40 @@ $email_cbox->addOption(1, _AM_AOUTVTEAD); $email_tray->addElement($email_cbox); $url_text = new XoopsFormText(_AM_URL, "url", 30, 100, $url_value); -// $avatar_select = new XoopsFormSelect("", "user_avatar", $avatar_value); -// $avatar_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); -// $avatar_select->addOptionArray($avatar_array); -// $a_dirlist = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); -// $a_dir_labels = array(); -// $a_count = 0; -// $a_dir_link = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=avatars&start=".$a_count."','avatars',600,400);\">XOOPS</a>"; -// $a_count = $a_count + count($avatar_array); -// $a_dir_labels[] = new XoopsFormLabel("", $a_dir_link); -// foreach ($a_dirlist as $a_dir) { -// if ( $a_dir == "users" ) { -// continue; -// } -// $avatars_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/".$a_dir."/", $a_dir."/"); -// $avatar_select->addOptionArray($avatars_array); -// $a_dir_link = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=avatars&subdir=".$a_dir."&start=".$a_count."','avatars',600,400);\">".$a_dir."</a>"; -// $a_dir_labels[] = new XoopsFormLabel("", $a_dir_link); -// $a_count = $a_count + count($avatars_array); -// } -// if (!empty($uid_value)) { -// $myavatar = avatarExists($uid_value); -// if ( $myavatar != false ) { -// $avatar_select->addOption($myavatar, _US_MYAVATAR); -// } -// } -// $avatar_select->setExtra("onchange='showImgSelected(\"avatar\", \"user_avatar\", \"images/avatar\", \"\", \"".XOOPS_URL."\")'"); -// $avatar_label = new XoopsFormLabel("", "<img src='".XOOPS_URL."/images/avatar/".$avatar_value."' name='avatar' id='avatar' alt='' />"); -// $avatar_tray = new XoopsFormElementTray(_AM_AVATAR, " "); -// $avatar_tray->addElement($avatar_select); -// $avatar_tray->addElement($avatar_label); -// foreach ($a_dir_labels as $a_dir_label) { -// $avatar_tray->addElement($a_dir_label); -// } -// $theme_select = new XoopsFormSelectTheme(_AM_THEME, "theme", $theme_value); +// $avatar_select = new XoopsFormSelect("", "user_avatar", $avatar_value); +// $avatar_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); +// $avatar_select->addOptionArray($avatar_array); +// $a_dirlist = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); +// $a_dir_labels = array(); +// $a_count = 0; +// $a_dir_link = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=avatars&start=".$a_count."','avatars',600,400);\">XOOPS</a>"; +// $a_count = $a_count + count($avatar_array); +// $a_dir_labels[] = new XoopsFormLabel("", $a_dir_link); +// foreach ($a_dirlist as $a_dir) { +// if ( $a_dir == "users" ) { +// continue; +// } +// $avatars_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/".$a_dir."/", $a_dir."/"); +// $avatar_select->addOptionArray($avatars_array); +// $a_dir_link = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=avatars&subdir=".$a_dir."&start=".$a_count."','avatars',600,400);\">".$a_dir."</a>"; +// $a_dir_labels[] = new XoopsFormLabel("", $a_dir_link); +// $a_count = $a_count + count($avatars_array); +// } +// if (!empty($uid_value)) { +// $myavatar = avatarExists($uid_value); +// if ( $myavatar != false ) { +// $avatar_select->addOption($myavatar, _US_MYAVATAR); +// } +// } +// $avatar_select->setExtra("onchange='showImgSelected(\"avatar\", \"user_avatar\", \"images/avatar\", \"\", \"".XOOPS_URL."\")'"); +// $avatar_label = new XoopsFormLabel("", "<img src='".XOOPS_URL."/images/avatar/".$avatar_value."' name='avatar' id='avatar' alt='' />"); +// $avatar_tray = new XoopsFormElementTray(_AM_AVATAR, " "); +// $avatar_tray->addElement($avatar_select); +// $avatar_tray->addElement($avatar_label); +// foreach ($a_dir_labels as $a_dir_label) { +// $avatar_tray->addElement($a_dir_label); +// } +// $theme_select = new XoopsFormSelectTheme(_AM_THEME, "theme", $theme_value); $timezone_select = new XoopsFormSelectTimezone(_US_TIMEZONE, "timezone_offset", $timezone_value); $icq_text = new XoopsFormText(_AM_ICQ, "user_icq", 15, 15, $icq_value); $aim_text = new XoopsFormText(_AM_AIM, "user_aim", 18, 18, $aim_value); @@ -102,13 +102,13 @@ $rank_select = new XoopsFormSelect(_AM_RANK, "rank", $rank_value); $ranklist = XoopsLists::getUserRankList(); if ( count($ranklist) > 0 ) { - $rank_select->addOption(0, _AM_NSRA); - $rank_select->addOption(0, "--------------"); - $rank_select->addOptionArray($ranklist); + $rank_select->addOption(0, _AM_NSRA); + $rank_select->addOption(0, "--------------"); + $rank_select->addOptionArray($ranklist); } else { - $rank_select->addOption(0, _AM_NSRID); + $rank_select->addOption(0, _AM_NSRID); } -$pwd_text = new XoopsFormPassword(_AM_PASSWORD, "password", 10, 32); +$pwd_text = new XoopsFormPassword(_AM_PASSWORD, "pass", 10, 32); $pwd_text2 = new XoopsFormPassword(_AM_RETYPEPD, "pass2", 10, 32); $mailok_radio = new XoopsFormRadioYN(_US_MAILOK, 'user_mailok', $mailok_value); @@ -135,8 +135,8 @@ $form->addElement($name_text); $form->addElement($email_tray, true); $form->addElement($url_text); -// $form->addElement($avatar_tray); -// $form->addElement($theme_select); +// $form->addElement($avatar_tray); +// $form->addElement($theme_select); $form->addElement($timezone_select); $form->addElement($icq_text); $form->addElement($aim_text); @@ -155,11 +155,11 @@ $form->addElement($rank_select); // adding a new user requires password fields if (!$form_isedit) { - $form->addElement($pwd_text, true); - $form->addElement($pwd_text2, true); + $form->addElement($pwd_text, true); + $form->addElement($pwd_text2, true); } else { - $form->addElement($pwd_text); - $form->addElement($pwd_text2); + $form->addElement($pwd_text); + $form->addElement($pwd_text2); } $form->addElement($mailok_radio); $form->addElement($group_select); @@ -167,8 +167,8 @@ $form->addElement($op_hidden); $form->addElement($submit_button); if ( !empty($uid_value) ) { - $uid_hidden = new XoopsFormHidden("uid", $uid_value); - $form->addElement($uid_hidden); + $uid_hidden = new XoopsFormHidden("uid", $uid_value); + $form->addElement($uid_hidden); } //$form->setRequired($uname_text); //$form->setRequired($email_text);