Raumliste als Dropdown

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • In der Datei users.html diesen Codeteil...

    {NEED|$roomlist&onlineusers}
    <table border=0 width="100%" cellspacing=0 cellpadding=0 class="outer"><tr><td>
    <table border=0 width="100%" cellspacing=1 cellpadding=0>

    <tr>
    <th>R&auml;ume</th>
    </tr>
    <tr class="row2"><td><table cellspacing=3 width="100%">
    {FOREACH|$room|$roomlist&onlineusers}
    <tr>
    <td width="100%">
    {IF|$room.name_lc ne $current_user.room}<a href="javascript:void(0)" onclick="sendText('/room {GET_JS|$room.name_lc}');return false;">{ELSE}<b>{ENDIF}
    {GET|$room.name}{IIF|$room.name_lc ne $current_user.room|</a>|</b>}
    {IF|$room.onlineusers_count} (<a href="javascript:void(0)" onclick="openWindow('room_users&roomname={GET_ESCAPED|$room.name_lc}',480,480);return false;">{GET|$room.onlineusers_count}</a>){ENDIF}
    </td>
    </tr>
    {ENDFOR}


    ... durch diesen ersetzen.

    {NEED|$roomlist&onlineusers}
    <table border=0 width="100%" cellspacing=0 cellpadding=0 class="outer"><tr><td>
    <table border=0 width="100%" cellspacing=1 cellpadding=0>

    <tr>
    <th>R&auml;ume</th>
    </tr>
    <tr class="row2"><td><table cellspacing=3 width="100%">
    {FOREACH|$room|$roomlist&onlineusers}
    <tr>
    <td width="100%">
    {IF|permission(rooms_create)}
    <a href="javascript:void(0)" onclick=openWindow(",{GET|$runtime.completeurl}&template=editroom&createnew=1",400,100) class="stdlink">*NEU</a>
    {ENDIF}
    </td>
    <td width="250">
    <select name=select onChange="sendText('/room '+value)" width="100%">

    {FOREACH|$room|$roomlist&onlineusers}

    {IF|$user.tempgroup ne 4}
    <option value="{GET|$room.name}" {IIF|$room.name_lc eq $current_user.room|selected}>{GET|$room.name}{IF|$room.onlineusers_count} ({GET|$room.onlineusers_count}){ENDIF}
    {ENDIF}
    {ENDFOR}

    478 mal gelesen