Beispiel #1
0
 protected static function addTestData()
 {
     $echo = "";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(0) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(0) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/celebration.png');\"></div>";
     $echo .= "<div class=\"name\"><b>День знаний</b></div>";
     $echo .= "<div class=\"popup\" id=\"event1\" style=\"display: none;\"></div>";
     $echo .= "</div>";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(0) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(0) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/birthday.png');\"></div>";
     $echo .= "<div class=\"name\"><b>(28 лет) День рождения</b></div>";
     $echo .= "<div class=\"popup\" id=\"event1\" style=\"display: none;\"></div>";
     $echo .= "</div>";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(3) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(3) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/school.png');\"></div>";
     $echo .= "<div class=\"name\"><b>8:30 Школа</b> (5 уроков)</div>";
     $echo .= "</div>";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(1) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(1) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/work.png');\"></div>";
     $echo .= "<div class=\"name\"><b>9:30 На работе</b></div>";
     $echo .= "</div>";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(3) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(3) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/books.png');\"></div>";
     $echo .= "<div class=\"name\"><b>13:00 Дополнительные занятия</b></div>";
     $echo .= "</div>";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(2) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(2) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/personal.png');\"></div>";
     $echo .= "<div class=\"name\"><b>14:30</b> Персональная задача</div>";
     $echo .= "</div>";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(3) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(3) . ";\"></div>";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(2) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/music.png');\"></div>";
     $echo .= "<div class=\"name\"><b>15:00 Музыка</b></div>";
     $echo .= "</div>";
     $echo .= "<div class=\"event\" style=\"border-color: " . Users::getUserColor(2) . ";\">";
     $echo .= "<div class=\"circle\" style=\"background: " . Users::getUserColor(2) . ";\"></div>";
     $echo .= "<div class=\"label\" style=\"background: url('" . CoreLib\Loader::getSiteTemplate("calendar") . "images/locked.png');\"></div>";
     $echo .= "<div class=\"name\">Скрытая задача</div>";
     $echo .= "</div>";
     return $echo;
 }
Beispiel #2
0
 public static function showListUsers($name = "MEMBERS[]")
 {
     global $USER;
     $echo = "<table><tr><td>";
     $echo .= InputType('checkbox', $name, '0', '', false, "", "", "members-0");
     $echo .= "</td><td><div style=\"margin: 6px 3px; width: 16px; height: 16px;" . " -moz-border-radius: 8px; -webkit-border-radius: 8px;border-radius: 8px; display: block;float: left;" . " background: " . Users::getUserColor(0) . ";color: " . Users::getUserColor(0) . "; \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Общий</b></div></td></tr>";
     if ($arUsers = Users::getList()) {
         foreach ($arUsers as $arUser) {
             if ($USER->getID() != $arUser['USER_ID']) {
                 $echo .= "<tr><td>";
                 $echo .= InputType('checkbox', $name, strval($arUser['USER_ID']), '', false, "", "", "members-" . $arUser['USER_ID']);
                 $echo .= "</td><td><div style=\"margin: 6px 3px; width: 16px; height: 16px;" . " -moz-border-radius: 8px; -webkit-border-radius: 8px;border-radius: 8px; display: block;" . "float: left; background: " . $arUser['COLOR'] . ";color: " . $arUser['COLOR'] . "; \">" . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>" . $arUser['NAME'] . "</b></div></td></tr>";
             }
         }
     }
     $echo .= "</table>";
     return $echo;
 }