+
+
+
+ function standup_content($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);
+
+ $content = ' j_stand_cont( [ ';
+
+ for ($e = 0 , $ct = 0 ; $e < MAX_PLAYERS ; $e++) {
+ if ($this->user[$e]->sess == "" || $this->user[$e]->stat != "room" || $this->user[$e]->name == "")
+ continue;
+
+ $flags = 0;
+
+ if ($this->user[$e]->subst == "standup") {
+ if ($this->user[$e] == $user)
+ {
+ $flags |= 1;
+ }
+
+ $content .= sprintf('%s[ %d, \'%s\' ]',($ct > 0 ? ', ' : ''), $flags, xcape($this->user[$e]->name));
+ $ct++;
+ }
+ }
+ $content .= ' ]);';
+
+ // $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 ($content);
+ }