本文整理汇总了PHP中Tag::AddChild方法的典型用法代码示例。如果您正苦于以下问题:PHP Tag::AddChild方法的具体用法?PHP Tag::AddChild怎么用?PHP Tag::AddChild使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tag
的用法示例。
在下文中一共展示了Tag::AddChild方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: XML_Read
function XML_Read($Object, $Level = 1)
{
#-----------------------------------------------------------------------------
static $Index = 1;
#-----------------------------------------------------------------------------
$Md5 = Md5($Index++);
#-----------------------------------------------------------------------------
$Attribs = $Object->Attribs;
#-----------------------------------------------------------------------------
$Name = isset($Attribs['comment']) ? $Attribs['comment'] : $Object->Name;
#-----------------------------------------------------------------------------
$P = new Tag('P', array('class' => 'NodeName', 'onclick' => SPrintF("TreeSwitch('%s');", $Md5)), new Tag('IMG', array('align' => 'left', 'src' => 'SRC:{Images/Icons/Node.gif}')), new Tag('SPAN', $Name));
#-----------------------------------------------------------------------------
$Node = new Tag('DIV', array('class' => 'Node'), $P);
#-----------------------------------------------------------------------------
if (Count($Attribs)) {
#---------------------------------------------------------------------------
foreach (Array_Keys($Attribs) as $AttribID) {
$Node->AddChild(new Tag('P', array('class' => 'NodeParam'), new Tag('SPAN', SPrintF('%s: ', $AttribID)), new Tag('SPAN', array('class' => 'NodeParam'), $Attribs[$AttribID])));
}
}
#-----------------------------------------------------------------------------
if (Count($Childs = $Object->Childs)) {
#---------------------------------------------------------------------------
$Content = new Tag('DIV', array('style' => 'display:none;'), array('id' => $Md5));
#---------------------------------------------------------------------------
foreach ($Childs as $Child) {
$Content->AddChild(XML_Read($Child, $Level + 1));
}
#---------------------------------------------------------------------------
$Node->AddChild($Content);
}
#-----------------------------------------------------------------------------
return $Node;
}
示例2: Links
$Links =& Links();
#-------------------------------------------------------------------------------
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddAttribs('MenuLeft', array('args' => 'Administrator/AddIns'));
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Дополнения → Мастера настройки → Прочее');
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$NoBody->AddChild(new Tag('BR'));
$List = new Tag('UL', array('class' => 'Standard'));
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Menus = Styles_XML('Menus/Administrator/Masters.Other.xml');
#Debug(SPrintF("[comp/www/Administrator/SystemMaintenance]: Menus = %s",print_r($Menus,true)));
#-------------------------------------------------------------------------------
foreach ($Menus['Items'] as $Menu) {
#-------------------------------------------------------------------------------
$A = new Tag('A', array('class' => 'Standard', 'href' => $Menu['Href']), $Menu['Text']);
#-------------------------------------------------------------------------------
if (isset($Menu['Prompt'])) {
#-------------------------------------------------------------------------------
$LinkID = UniqID('Href');
#-------------------------------------------------------------------------------
$Links[$LinkID] =& $A;
示例3: Tag
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table[] = $Comp;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Div = new Tag('DIV', array('align' => 'right'));
#-------------------------------------------------------------------------------
if ($DSSchemeID) {
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('type' => 'checkbox', 'onclick' => 'form.DSSchemeID.value = (checked?0:value);', 'value' => $DSSchemeID));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Div->AddChild($Comp);
#-------------------------------------------------------------------------------
$Div->AddChild(new Tag('SPAN', array('class' => 'Comment'), 'создать новый тариф'));
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('type' => 'button', 'onclick' => SPrintF("FormEdit('/Administrator/API/DSSchemeEdit','DSSchemeEditForm','%s');", $Title), 'value' => $DSSchemeID ? 'Сохранить' : 'Добавить'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Div->AddChild($Comp);
#-------------------------------------------------------------------------------
$Table[] = $Div;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
示例4: array
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Buttons/Panel', array('Comp' => $Comp, 'Name' => 'Новый тариф'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY', $Comp);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tables/Super', 'VPSSchemes');
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$NoBody->AddChild($Comp);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tab', 'Administrator/VPS', $NoBody);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddChild('Into', $Comp);
#-------------------------------------------------------------------------------
$Out = $DOM->Build();
#-------------------------------------------------------------------------------
if (Is_Error($Out)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
return $Out;
示例5: Tag
$Replacing = Array_ToLine($WorkComplite, '%');
#-------------------------------------------------
$Tr = new Tag('TR');
#-------------------------------------------------
foreach ($Childs as $Child) {
#-----------------------------------------------
$Td = clone $Child;
#-----------------------------------------------
foreach (Array_Keys($Replacing) as $Pattern) {
#---------------------------------------------
$String = $Replacing[$Pattern] ? $Replacing[$Pattern] : '-';
#---------------------------------------------
$Td->Text = Str_Replace($Pattern, $String, $Td->Text);
}
#-----------------------------------------------
$Tr->AddChild($Td);
}
#-------------------------------------------------
$DOM->AddChild('WorksComplite', $Tr);
break;
default:
return ERROR | @Trigger_Error(101);
}
}
#-------------------------------------------------------
$DOM->Delete('WorkComplite');
#-------------------------------------------------------
$Comp = Comp_Load('Formats/WorkComplite/Report/Number', $ContractID, $Month);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
示例6: unset
$Links[$LinkID] =& $Image;
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Prompt', $LinkID, $Collation['Prompt']);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
unset($Links[$LinkID]);
#-------------------------------------------------------------------------------
$Div1 = new Tag('DIV', $Image, new Tag('DIV', array('style' => 'margin:0 0 0 3px; width:145px; white-space:nowrap; overflow:hidden;'), $Collation['Description']));
#-------------------------------------------------------------------------------
$List->AddChild(new Tag('LI', array('class' => 'pp-rounded-5px'), $Div1));
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
$Div->AddChild($List);
#-------------------------------------------------------------------------------
$Table[] = $Div;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('name' => 'PaymentSystemID', 'type' => 'hidden', 'value' => ''));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Form->AddChild($Comp);
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Count = DB_Count('BasketOwners', array('Where' => SPrintF('`ContractID` = %u', $Contract['ID'])));
示例7: array
$Comp = Comp_Load('Form/Input', array('type' => 'button', 'onclick' => isset($GLOBALS['__USER']['IsEmulate']) ? "javascript:ShowConfirm('Вы действительно хотите написать в тикет от чужого имени?','TicketAddMessage();');" : 'TicketAddMessage();', 'value' => 'Добавить'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Div = new Tag('DIV', $Comp, new Tag('SPAN', 'и'));
#-------------------------------------------------------------------------------
if ($__USER['ID'] == $Ticket['UserID']) {
# is ordinar user
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('name' => 'Flags', 'type' => 'checkbox', 'value' => 'Closed'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Div->AddChild(new Tag('NOBODY', $Comp, new Tag('SPAN', array('style' => 'cursor:pointer;', 'onclick' => 'ChangeCheckBox(\'Flags\'); return false;'), 'закрыть запрос (проблема решена)')));
#-------------------------------------------------------------------------------
} else {
# user -> support
#-------------------------------------------------------------------------------
$Config = Config();
#-------------------------------------------------------------------------------
$Positions = $Config['Edesks']['Flags'];
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Select', array('name' => 'Flags'), $Positions, $Ticket['Flags']);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Div->AddChild(new Tag('NOBODY', $Comp));
#-------------------------------------------------------------------------------
示例8: array
$Columns = array('ID', 'Name', 'ServersGroupID', 'Comment', 'CostMonth', 'CostInstall', 'disklimit', 'ncpu', 'cpu', 'mem', '(SELECT `Name` FROM `ServersGroups` WHERE `ServersGroups`.`ID` = `ServersGroupID`) as `ServersGroupName`', '(SELECT `Comment` FROM `ServersGroups` WHERE `ServersGroups`.`ID` = `ServersGroupID`) as `ServersGroupComment`', '(SELECT `SortID` FROM `ServersGroups` WHERE `ServersGroups`.`ID` = `ServersGroupID`) as `ServersGroupSortID`');
#-------------------------------------------------------------------------
$VPSSchemes = DB_Select($UniqID, $Columns, array('SortOn' => array('ServersGroupSortID', 'SortID'), 'Where' => "`IsActive` = 'yes'"));
#-------------------------------------------------------------------------
switch (ValueOf($VPSSchemes)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return new gException('VPS_SCHEMES_NOT_FOUND', 'Тарифные планы на виртуальные сервера не определены');
case 'array':
#---------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
#---------------------------------------------------------------------
$Tr = new Tag('TR');
#---------------------------------------------------------------------
$Tr->AddChild(new Tag('TD', array('class' => 'Head', 'colspan' => 2), 'Тариф'));
$Tr->AddChild(new Tag('TD', array('class' => 'Head', 'align' => 'center'), 'Цена в мес.'));
$Tr->AddChild(new Tag('TD', array('class' => 'Head', 'align' => 'center'), 'Цена установки'));
#---------------------------------------------------------------------
$Td = new Tag('TD', array('class' => 'Head', 'align' => 'center'), new Tag('SPAN', 'Место'), new Tag('SPAN', array('style' => 'font-weight:bold;font-size:14px;'), '?'));
#---------------------------------------------------------------------
$LinkID = UniqID('Prompt');
#---------------------------------------------------------------------
$Links[$LinkID] =& $Td;
#---------------------------------------------------------------------
$Comp = Comp_Load('Form/Prompt', $LinkID, 'Размер диска');
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#---------------------------------------------------------------------
$Tr->AddChild($Td);
示例9: Tag
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if ($Attrib['Type'] == 'Hidden') {
#-------------------------------------------------------------------------------
$Form->AddChild($Comp);
#-------------------------------------------------------------------------------
} else {
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY', new Tag('SPAN', isset($Attrib['CommentAttribs']) ? $Attrib['CommentAttribs'] : array(), $Attrib['Comment']));
#-------------------------------------------------------------------------------
$NoBody->AddChild(new Tag('BR'));
#-------------------------------------------------------------------------------
if (isset($Attrib['Example'])) {
$NoBody->AddChild(new Tag('SPAN', array('class' => 'Comment'), SPrintF('Например: %s', $Attrib['Example'])));
}
#-------------------------------------------------------------------------------
$Table[] = array($NoBody, $Comp);
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Table[] = 'Служба мониторинга';
示例10: array
#-------------------------------------------------------------------------------
$Table[] = $Comp;
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Edesks/Panel', array('hidden'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Tr = new Tag('TR', $Comp);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('type' => 'button', 'onclick' => "FormEdit('/API/EdeskEdit','EdeskEditForm','Добавление нового обсуждения');", 'value' => 'Добавить'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Tr->AddChild(new Tag('TD', array('align' => 'right'), $Comp));
#-------------------------------------------------------------------------------
$Table[] = new Tag('TABLE', array('width' => '100%'), $Tr);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tables/Standard', $Table);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddChild('Into', new Tag('FORM', array('name' => 'EdeskEditForm', 'onsubmit' => 'return false;'), $Comp));
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Build(FALSE))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
return array('Status' => 'Ok', 'DOM' => $DOM->Object);
示例11: Tag
switch (ValueOf($Images)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return new Tag('SPAN', 'Изображений не найдено');
case 'array':
#---------------------------------------------------------------------------
$Table = new Tag('TABLE', array('cellspacing' => 10));
#---------------------------------------------------------------------------
$Tr = new Tag('TR');
#---------------------------------------------------------------------------
foreach ($Images as $Image) {
#-------------------------------------------------------------------------
if (Count($Tr->Childs) % $Groups == 0) {
#-----------------------------------------------------------------------
$Table->AddChild($Tr);
#-----------------------------------------------------------------------
$Tr = new Tag('TR');
}
#-------------------------------------------------------------------------
$Size = Image_Get_Size($Image['FileData']);
if (Is_Error($Size)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------
$Index = $Size['Height'] / $Size['Width'];
#-------------------------------------------------------------------------
$Height = $Width * $Index;
#-------------------------------------------------------------------------
$Img = new Tag('IMG', array('border' => 0, 'width' => $Width, 'height' => $Height, 'style' => 'border:1px solid #DCDCDC;cursor:pointer;', 'title' => $Image['Comment'], 'src' => SPrintF('/ClauseImage?ImageID=%u&Width=%u', $Image['ID'], $Width)));
#-------------------------------------------------------------------------
示例12: Tag
# если общая сумма больше нуля - добавляем строку - иначе - смысла нет
if (IntVal($Total['Summ']) > 0) {
#$Table[] = $TableLine;
$Table[] = $Tr;
CacheManager::add($CacheID1, $Tr, 24 * 3600);
}
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
# полная статистика за год
$Tr = new Tag('TR');
#-------------------------------------------------------------------------------
# ячейка с датой
$Tr->AddChild(new Tag('TD', array('align' => 'center', 'class' => 'Standard'), 'Итого:'));
#-------------------------------------------------------------------------------
$TimeBegin = MkTime(0, 0, 0, 1, 1, $Year);
$TimeEnd = MkTime(23, 59, 59, 12, 31, $Year);
#-------------------------------------------------------------------------------
# ячейка с общей суммой за месяц
$Columns = array('SUM(`Summ`) AS `Summ`');
$Where = "`StatusID` = 'Payed' AND `StatusDate` BETWEEN {$TimeBegin} AND {$TimeEnd}";
$Total = DB_Select('Invoices', $Columns, array('UNIQ', 'Where' => $Where));
switch (ValueOf($Total)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return ERROR | @Trigger_Error(400);
case 'array':
Debug("[comp/www/Administrator/PaymentsSystemsStatistics]: общая сумма за {$Year} = " . $Total['Summ']);
示例13: Tag
}
}
#-----------------------------------------------------------------------------
if (Count($Finded) < 1) {
continue;
}
#-----------------------------------------------------------------------------
$Tr = new Tag('TR');
#-----------------------------------------------------------------------------
foreach ($Finded as $Color) {
#---------------------------------------------------------------------------
if (In_Array($Color, $Colors)) {
continue;
}
#---------------------------------------------------------------------------
$Tr->AddChild(new Tag('TD', array('align' => 'center', 'bgcolor' => SPrintF('#%s', $Color), 'height' => 50, 'width' => 50), $Color));
}
#-----------------------------------------------------------------------------
if (Count($Tr->Childs) < 1) {
continue;
}
#-----------------------------------------------------------------------------
$DOM->AddChild('Into', new Tag('H1', $HostsID));
#-----------------------------------------------------------------------------
$Table = new Tag('TABLE', array('class' => 'Standard', 'cellspacing' => 0, 'cellpadding' => 0), $Tr);
#-----------------------------------------------------------------------------
$DOM->AddChild('Into', $Table);
}
#-------------------------------------------------------------------------------
$Out = $DOM->Build();
#-------------------------------------------------------------------------------
示例14: String_Xml_Parse
function String_Xml_Parse($String, $IsUseCache = TRUE)
{
#-------------------------------------------------------------------------------
# костыль для удаления не-UTF8 символов
$String = iconv('UTF-8', 'UTF-8//IGNORE', $String);
#-------------------------------------------------------------------------------
$Length = Mb_StrLen($String);
#-------------------------------------------------------------------------------
$IsUseCache = $IsUseCache && $Length > 1024;
#-------------------------------------------------------------------------------
if ($IsUseCache) {
#-------------------------------------------------------------------------------
$CacheID = SPrintF('String_XML_Parse[%s]', Md5(Crc32($String)));
#-------------------------------------------------------------------------------
$Result = CacheManager::get($CacheID);
if ($Result) {
return $Result;
}
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
Debug(SPrintF('[String_XML_Parse]: парсирование строки (%u bytes)', $Length));
#-------------------------------------------------------------------------------
$XmlParser = Xml_Parser_Create('UTF-8');
#-------------------------------------------------------------------------------
if (!Xml_Parser_Set_Option($XmlParser, XML_OPTION_CASE_FOLDING, FALSE)) {
return ERROR | Trigger_Error('[String_Xml_Parse]: не удалось установить опцию парсирования (XML_OPTION_CASE_FOLDING)');
}
#-------------------------------------------------------------------------------
if (!Xml_Parser_Set_Option($XmlParser, XML_OPTION_SKIP_WHITE, FALSE)) {
return ERROR | Trigger_Error('[String_Xml_Parse]: не удалось установить опцию парсирования (XML_OPTION_SKIP_WHITE)');
}
#-------------------------------------------------------------------------------
if (!Xml_Parse_Into_Struct($XmlParser, $String, $Nodes)) {
#-------------------------------------------------------------------------------
$ByteIndex = Xml_Get_Current_Byte_Index($XmlParser);
#-------------------------------------------------------------------------------
Debug(SPrintF('[system/libs/auto/String.php]: xml_error_string = %s', Xml_Error_String(Xml_Get_Error_Code($XmlParser))));
#-------------------------------------------------------------------------------
Debug(SPrintF('[system/libs/auto/String.php]: %s', Mb_SubStr($String, $ByteIndex - 100, $ByteIndex + 100)));
#-------------------------------------------------------------------------------
$Buffer = Mb_SubStr($String, 0, $ByteIndex);
#-------------------------------------------------------------------------------
$Line = Preg_Match_All("/(\r\n|\n)/sU", $Buffer, $Matches) + 1;
#-------------------------------------------------------------------------------
return new gException('XML_PARSE_ERROR', SPrintF('%s в линии %u', Xml_Error_String($XmlParser), $Line));
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#-----------------------------------------------------------------------------
Xml_Parser_Free($XmlParser);
#-----------------------------------------------------------------------------
$Root = new Tag('__ROOT__');
#-----------------------------------------------------------------------------
$Links = array(&$Root);
#-----------------------------------------------------------------------------
foreach ($Nodes as $Node) {
#---------------------------------------------------------------------------
$Current = $Links[Count($Links) - 1];
#---------------------------------------------------------------------------
switch ($Node['type']) {
case 'open':
#-----------------------------------------------------------------------
$Tag = new Tag($Node['tag']);
#-----------------------------------------------------------------------
if (isset($Node['attributes'])) {
$Tag->AddAttribs($Node['attributes']);
}
#-----------------------------------------------------------------------
if (isset($Node['value'])) {
#---------------------------------------------------------------------
$Value = $Node['value'];
#---------------------------------------------------------------------
if (Trim($Value)) {
$Tag->AddChild(new Tag('CDATA', $Value));
}
}
#-----------------------------------------------------------------------
$Current->Childs[] = $Tag;
#-----------------------------------------------------------------------
$Links[] =& $Current->Childs[Count($Current->Childs) - 1];
break;
case 'cdata':
#-----------------------------------------------------------------------
$Value = $Node['value'];
#-----------------------------------------------------------------------
if (Trim($Value)) {
#---------------------------------------------------------------------
$Tag = new Tag('CDATA', $Value);
#---------------------------------------------------------------------
$Current->Childs[] = $Tag;
}
break;
case 'complete':
#-----------------------------------------------------------------------
$Tag = new Tag($Node['tag']);
#-----------------------------------------------------------------------
if (isset($Node['attributes'])) {
$Tag->AddAttribs($Node['attributes']);
//.........这里部分代码省略.........
示例15: foreach
}
#-------------------------------------------------------------------------------
foreach ($Notes as $Note) {
#-------------------------------------------------------------------------------
$MessageID = SPrintF('note_%s_%s', $GLOBALS['__USER']['ID'], SubStr(Md5(JSON_Encode($Note)), 0, 6));
#-------------------------------------------------------------------------------
if (isset($_COOKIE[$MessageID])) {
continue;
}
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Information', $Note, 'Warning', $MessageID);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table->AddChild(new Tag('TR', new Tag('TD', $Comp)));
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
$Table->Childs = Array_Reverse($Table->Childs);
#-------------------------------------------------------------------------------
$Out = Count($Table->Childs) ? $Table : new Tag('NOBODY', 'No nodes...');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return $Out;
#-------------------------------------------------------------------------------
}