function but($label, $url, $sure = false, $enabled = true) { echo mkbut($label, $url, $sure, $enabled); }
if ($wk < 1) { $but = mkbut($butlabel, "?action=weekadvance&group_id=" . $o->id, "adv_psure1", true, true, $wk); } else { $but = mkbut($butlabel, "?action=weekadvance&group_id=" . $o->id, "adv_psure2", true, true, $wk); } if ($wk >= $game_weeks + 1) { $but = "—"; } } else { // $butlabel = "Next Task Closed"; // Peter I'd like to fix this, for now hard-coding. $butlabel = "Task " . ($config["week"] + 1) . " Not Open Yet"; // $butlabel = "Task 2 Not Open Yet"; // I have no idea how to make a non-button. I did this pa global $wk; $but = mkbut($butlabel, "?action=nothing" . $o->id, "nothing", false, true, $wk); } // if($wk >= $config["week"]) if ($wk == 0) { $stat = "In Tutorial"; } else { if ($wk >= 4) { $stat = "Game Completed"; } else { $stat = "In task {$wk}"; } } if ($wk < $game_weeks + 1) { $guts .= "<span style='padding-left: 40px;'>{$stat} {$but}</span>"; } if ($dbg) {
<br> <?php $vid = "updates_images_" . $chaltag . "/CEO" . $ww . "_video.swf" . $vidargs; echo mkbut("Click to View", "vid.php?vid={$vid}"); ?> </div> </td><td> <div class=vidlink > New City<br> Breaking News<br> <br> <?php $vid = "updates_images_" . $chaltag . "/Newsreel" . $ww . "_video.swf" . $vidargs; echo mkbut("Click to View", "vid.php?vid={$vid}"); ?> </div> </td></tr></table> <?php } /* -rw-rw-r-- 1 sleepless sleepless 41659 Oct 10 15:38 CEO1_video.swf -rw-rw-r-- 1 sleepless sleepless 41719 Oct 10 15:38 CEO2_video.swf -rw-rw-r-- 1 sleepless sleepless 41785 Oct 10 15:37 CEO3_video.swf -rw-rw-r-- 1 sleepless sleepless 7129536 Oct 10 13:41 Deloitte_CEO_task1.flv -rw-rw-r-- 1 sleepless sleepless 3802124 Oct 10 15:33 Deloitte_CEO_task2.flv -rw-rw-r-- 1 sleepless sleepless 5352165 Oct 10 15:36 Deloitte_CEO_task3.flv -rw-rw-r-- 1 sleepless sleepless 12509813 Oct 10 22:40 newsreel1.flv -rw-rw-r-- 1 sleepless sleepless 41542 Oct 10 22:37 Newsreel1_video.swf