<tr><td>admin</td><td><input type="text" style="width: 300px" name="admin" value="<?php echo $admin; ?> "></td><td>Lowercase only, Seperate with comma. Example: <i>user1,user2,user3</i></td></tr> <tr><td>moderator</td><td><input type="text" style="width: 300px" name="moderator" value="<?php echo $moderator; ?> "></td><td>Lowercase only, Seperate with comma. Example: <i>user1,user2,user3</i></td></tr> <tr><td>speaker</td><td><input type="text" style="width: 300px" name="speaker" value="<?php echo $speaker; ?> "></td><td>Lowercase only, Seperate with comma. Example: <i>user1,user2,user3</i></td></tr> <tr><td>textAdverts</td><td><?php echo showSelectedID('textAdverts', $textAdverts); ?> </td><td>Enable text adverts</td></tr> <tr><td>textAdvertsDesc</td><td><textarea wrap="off" name="textAdvertsDesc"><?php echo str_replace(",", "\r\n", $textAdvertsDesc); ?> </textarea></td><td>Add each new text advertisement on a new line,<br>Example: <i>roomID|text advert description</i><br><br>Important: <br><br>a) DO NOT use commas to seperate values<br>b) You must remove all [blank lines] and [spaces] after the last entry.</td></tr> <tr><td>textAdvertsRate</td><td><input type="text" name="textAdvertsRate" value="<?php echo $textAdvertsRate; ?> "></td><td>Show text advert every <i>XXX</i> messages</td></tr> <tr><td>userStatusMes</td><td><input type="text" name="userStatusMes" value="<?php echo $userStatusMes; ?> "></td><td>Seperate all values with a comma. Example: <i>Here,BRB,Away</i></td></tr> <tr><td>news</td><td><textarea name="news"><?php
function editAdminGroups($data) { if (isset($data['edit'])) { $html = ''; $tmp = mysql_query("\n\t\t\tSELECT * \n\t\t\tFROM prochatrooms_group\n\t\t\tWHERE id = '" . $data['edit'][0] . "' \n\t\t\tORDER BY id ASC\n\t\t\t") or die(mysql_error()); while ($i = mysql_fetch_array($tmp)) { $html .= '<tr><td colspan="8"><b>:: Edit Group</b></td></tr>'; $html .= '<tr><td colspan="8"><b> </b></td></tr>'; $html .= '<tr align="center">'; $html .= '<td>Group ID</td>'; $html .= '<td>Group Name</td>'; $html .= '<td>Allow Chat</td>'; $html .= '<td>Private Chat</td>'; $html .= '<td>Show Webcam</td>'; $html .= '<td>View Webcams</td>'; $html .= '<td>Create Room</td>'; $html .= '<td> </td>'; $html .= '<td> </td>'; $html .= '<td> </td>'; $html .= '</tr>'; $html .= '<tr align="center">'; $html .= '<td>' . $i['id'] . '<input type="hidden" name="id" value="' . $i['id'] . '"></td>'; $html .= '<td><input type="text" name="groupName" value="' . urldecode($i['groupName']) . '"></td>'; $html .= '<td>' . showSelectedID('groupChat', $i['groupChat']) . '</td>'; $html .= '<td>' . showSelectedID('groupPChat', $i['groupPChat']) . '</td>'; $html .= '<td>' . showSelectedID('groupCams', $i['groupCams']) . '</td>'; $html .= '<td>' . showSelectedID('groupWatch', $i['groupWatch']) . '</td>'; $html .= '<td>' . showSelectedID('groupRooms', $i['groupRooms']) . '</td>'; $html .= '<td><input type="submit" name="editGroup" value="Confirm"></td>'; $html .= '<td> </td>'; $html .= '<td> </td>'; $html .= '</tr>'; $html .= '<tr><td colspan="10"><b> </b></td></tr>'; } return $html; } }