<?php global $urlHandler, $ADMIN, $foretag; //$helper = new TabBox; $opt_kommuner = Kommun::listField("namn"); $laghelp = Help::loadById(26); ?> <a href="javascript:;" onclick="mm_rapportera_show_help(26,<?php echo $laghelp->getSizeX(); ?> ,<?php echo $laghelp->getSizeY(); ?> ,'topleft')" title="Hjälp"><img src="/img/icons/FaqCircleRed.gif" alt="Hjälp" class="mmFloatRight" /></a> <p> För att göra det enkelt för dig delar MotioMeras system automatiskt in deltagarna i lag. Men om du istället helt själv vill bestämma hur lagen ska se ut är det möjligt. Nedan kan du ta bort eller lägga till deltagare i lagen och du kan också skapa helt nya lag. Du kan också byta namn på lagen och lägga till egna lagsymboler om du vill. <?php $withoutLag = $foretag->getMembersWithoutLag(); if ($withoutLag > 0) { ?> <br /><br /> <span class="mmRed"> OBS! <?php echo $withoutLag; ?> deltagare är ännu ej indelad<?php echo $withoutLag > 1 ? 'e' : ''; ?>
<?php include $_SERVER["DOCUMENT_ROOT"] . "/php/init.php"; $smarty = new MMSmarty(); $smarty->assign("pagetitle", "Beställning för företag"); $nummer = array(); for ($i = 1; $i <= 100; $i++) { $nummer[$i] = $i; } $opt_kommuner = Misc::arrayKeyMerge(array("" => "Välj..."), Kommun::listField("namn")); $campaignCodes = Order::getCampaignCodes("foretag"); $cc_array = array(); foreach ($campaignCodes as $id => $cc) { if (isset($cc["popupid"])) { $helper = Help::loadById($cc["popupid"]); } $cc["popupwidth"] = $helper->getSizeX(); $cc["popupheight"] = $helper->getSizeY(); $cc_array[$id] = $cc; } //find and list 10 mondays at least 14 days ahead $datumalternativ = array(); $datumstralt = array(); $addDays = 14 + (8 - date("w")); //the fist monday at least 14 days ahead $firstMonday = date("Y-m-d", strtotime(date("Y-m-d") . "+{$addDays} days")); $monday = $firstMonday; for ($i = 0; $i < 15; ++$i) { $datumalternativ[] = $monday; $datumstralt[] = "Måndagen den " . date('j', strtotime($monday)) . " " . ucfirst(Misc::month(date('n', strtotime($monday)))); //nice format