- function standup_content_old($user)
- {
- $ret = "";
- $content = "";
-
- if ($user->stat != 'room')
- return;
-
- for ($e = 0 , $ct = 0 ; $ct < 4 && $e < MAX_PLAYERS ; $e++) {
- if ($this->user[$e]->sess == "" || $this->user[$e]->stat != "room" || $this->user[$e]->name == "")
- continue;
- $ct++;
- }
-
- $content .= sprintf('<table cols=\\"%d\\" class=\\"table_standup\\">', $ct);
-
- for ($e = 0 , $ct = 0 ; $e < MAX_PLAYERS ; $e++) {
- if ($this->user[$e]->sess == "" || $this->user[$e]->stat != "room" || $this->user[$e]->name == "")
- continue;
-
-
- if ($this->user[$e]->subst == "standup") {
- if (($ct % 4) == 0) {
- $content .= '<tr>';
- }
- if ($this->user[$e] == $user)
- { $hilion = "<b>"; $hilioff = "</b>"; }
- else
- { $hilion = ""; $hilioff = ""; }
-
- $content .= sprintf('<td class=\\"room_standup\\">%s%s%s</td>',$hilion, xcape($this->user[$e]->name), $hilioff);
- if (($ct % 4) == 3) {
- $content .= '</tr>';
- }
- $ct++;
- }
- }
- $content .= '</table>';
-
- $content2 = '<input class=\\"button\\" name=\\"logout\\" value=\\"Esco.\\" onclick=\\"window.onunload = null; act_logout();\\" type=\\"button\\">';
- $ret .= sprintf('$("standup").innerHTML = "%s"; $("esco").innerHTML = "%s";',
- $content, $content2);
-
- return ($ret);
- }
-
-