4
Thnx for your answer.
I have added the search hack, but when I try to type a ID or username, I can't do it. The second problem: When I click the search button, the popup window doesn't open. I think I have puted the code correctly. And I have uploaded the usersearch.php in the xoops-root directory. Where can the problem be?
echo "<form action='pmlite.php' method='post' name='coolsus'>n";
echo "<table width='300' align='center' class='outer'><tr><td class='head' width='25%'>"._PM_TO."</td>";
if ( $reply == 1 ) {
echo "<td class='even'><input type='hidden' name='to_userid' value='".$pm->getVar("from_userid")."' />".$pm_uname."</td>";
} elseif ( $send2 == 1 ) {
$to_username = XoopsUser::getUnameFromId($to_userid);
echo "<td class='even'><input type='hidden' name='to_userid' value='".$to_userid."' />".$to_username."</td>";
} else {
//comment処理します
// echo "<td class='even'><select name='to_userid'>";
// $result = $xoopsDB->query("SELECT uid, uname FROM ".$xoopsDB->prefix("users")." WHERE level > 0 ORDER BY uname");
// while ( list($ftouid, $ftouname) = $xoopsDB->fetchRow($result) ) {
// echo "<option value='".$ftouid."'>".$myts->makeTboxData4Show($ftouname)."</option>";
// }
// echo "</select></td>";
//popup user search hack start
echo "<td class='even'>ID<input type='text' READONLY size='5' name='to_userid' />";
echo " Name<input type='text' READONLY size='10' name='to_username' />";
echo " <input type='button' name='search' value='Click' onclick='java script:openWithSelfMain("".XOOPS_URL."/usersearch.php","searchuser",450,380);' /></td>";
//popup user search hack end
}
echo "</tr>";
echo "<tr><td class='head' width='25%'>"._PM_SUBJECTC."</td>";