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 showSelectListUsers($name = "USER_ID")
 {
     $arValues = array();
     $arValues[] = array('NAME' => 'Общий', 'VALUE' => 0);
     global $USER;
     if ($arUsers = Users::getList()) {
         foreach ($arUsers as $arUser) {
             $arValues[] = array('NAME' => $arUser['NAME'], 'VALUE' => $arUser['USER_ID']);
         }
     }
     return SelectBox($name, $arValues, '', $USER->getID());
 }