本文整理汇总了PHP中DOM::AddText方法的典型用法代码示例。如果您正苦于以下问题:PHP DOM::AddText方法的具体用法?PHP DOM::AddText怎么用?PHP DOM::AddText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DOM
的用法示例。
在下文中一共展示了DOM::AddText方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DOM
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Window'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'История изменений');
#-------------------------------------------------------------------------------
$Row = array();
#-------------------------------------------------------------------------------
$Row[] = new Tag('TD', array('class' => 'Head'), 'Дата изменения');
$Row[] = new Tag('TD', array('class' => 'Head'), 'Статус');
$Row[] = new Tag('TD', array('class' => 'Head'), 'Инициатор');
$Row[] = new Tag('TD', array('class' => 'Head'), 'Комментарий');
#-------------------------------------------------------------------------------
$Table = array($Row);
#-------------------------------------------------------------------------------
$StatusesHistory = DB_Select('StatusesHistory', '*', array('SortOn' => array('StatusDate', 'ID'), 'Where' => SPrintF("`ModeID` = '%s' AND `RowID` = %u", $ModeID, $RowID)));
#-------------------------------------------------------------------------------
switch (ValueOf($StatusesHistory)) {
case 'error':
return ERROR | @Trigger_Error(500);
示例2: DOM
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$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', 'Дополнения → Обслуживание системы → Логи системы');
#-------------------------------------------------------------------------------
$Tmp = System_Element('tmp');
if (Is_Error($Tmp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Logs = SPrintF('%s/logs', $Tmp);
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
#-------------------------------------------------------------------------------
if (File_Exists($Logs)) {
#-----------------------------------------------------------------------------
$Files = IO_Scan($Logs);
if (Is_Error($Files)) {
return ERROR | @Trigger_Error(500);
示例3: Messages
$Messages = Messages();
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Window'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Title = $DSSchemeID ? SPrintF('Редактирование тарифа "%s"', $DSScheme['Name']) : 'Добавление нового выделенного сервера';
#-------------------------------------------------------------------------------
$DOM->AddText('Title', $Title);
#-------------------------------------------------------------------------------
$Table = array('Общая информация');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Owner', 'Владелец тарифа', $DSScheme['GroupID'], $DSScheme['UserID']);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table[] = $Comp;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('type' => 'text', 'name' => 'Name', 'value' => $DSScheme['Name']));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
示例4: DOM
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddAttribs('MenuLeft', array('args' => 'Administrator/Services'));
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Услуги → Вторичный DNS → Заказы');
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
#-------------------------------------------------------------------------------
$Comp1 = Comp_Load('Buttons/Standard', array('onclick' => "ShowWindow('/Administrator/DNSmanagerOrderEdit');"), 'Добавить новый заказ на DNSmanager', 'Add.gif');
if (Is_Error($Comp1)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Comp2 = Comp_Load('Buttons/Standard', array('onclick' => "ShowWindow('/Administrator/DNSmanagerCompensation');"), 'Произвести компенсацию времени заказам клиентов', 'Add.gif');
if (Is_Error($Comp2)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Buttons/Panel', array('Comp' => $Comp1, 'Name' => 'Добавить заказ'), array('Comp' => $Comp2, 'Name' => 'Компенсация времени'));
if (Is_Error($Comp)) {
示例5: DOM
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$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', 'Дополнения → Импорт данных → Средства миграции');
#-------------------------------------------------------------------------------
$Table = array();
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Select', array('onchange' => "form.action = SPrintF('/Administrator/%s',value);"), array('Bpanel' => 'BPanel', 'ClientExec' => 'ClientExec', 'Hostgrad' => 'Hostgrad'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table[] = array('Биллинговая система', $Comp);
#-------------------------------------------------------------------------------
$Table[] = 'Сервер MySQL';
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('type' => 'input', 'name' => 'Server', 'value' => 'localhost'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
示例6: DOM
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddAttribs('MenuLeft', array('args' => 'Administrator/Office'));
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Офис → История операций');
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tables/Super', 'Postings');
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;
示例7: DOM
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Window'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddText('Title', SPrintF('Настройки автопродления, услуга "%s"', $Service['Name']));
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Number = Comp_Load('Formats/Order/Number', $Order['OrderID']);
if (Is_Error($Number)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Table = array(SPrintF('Настройки автопродления, услуга "%s", заказ #%s', $Service['NameShort'], $Number));
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('name' => 'IsAutoProlong', 'type' => 'checkbox', 'value' => 'yes'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
示例8: DOM
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddAttribs('MenuLeft', array('args' => 'User/Office'));
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Мой офис → Счета на оплату');
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Buttons/Standard', array('onclick' => "ShowWindow('/InvoiceMake');"), 'Новый счёт', 'Add.gif');
if (Is_Error($Comp)) {
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);
#-------------------------------------------------------------------------------
if ($IsError) {
$DOM->AddAttribs('Body', array('onload' => "ShowAlert('В ходе оплаты счёта произошла ошибка','Warning');"));
示例9: switch
switch (ValueOf($User)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return new gException('USER_NOT_FOUND', 'Пользователь не найден');
case 'array':
# No more...
break;
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$DOM->AddText('Title', $UserID ? SPrintF('Новый запрос для [%s]', $User['Email']) : 'Новый запрос');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Script = new Tag('SCRIPT', array('type' => 'text/javascript', 'src' => 'SRC:{Js/TicketFunctions.js}'));
#-------------------------------------------------------------------------------
$DOM->AddChild('Head', $Script);
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Form = new Tag('FORM', array('name' => 'TicketEditForm', 'onsubmit' => 'return false;', 'OnKeyPress' => "ctrlEnterEvent(event) && FormEdit('/API/TicketEdit','TicketEditForm','Добавление запроса');"));
#-------------------------------------------------------------------------------
$Table = array('Общие параметры');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('name' => 'Theme', 'style' => 'width: 100%', 'type' => 'text', 'prompt' => "Краткое описание Вашей проблемы или вопроса.\nНапример: Проблемы с почтой"));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
示例10: DOM
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$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', 'Дополнения → Импорт данных');
#-------------------------------------------------------------------------------
$Table = array();
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Upload', 'DataImport');
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table[] = array('Файл базы данных', $Comp);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Form/Input', array('type' => 'checkbox', 'name' => 'IsDelete', 'value' => 'true'));
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
示例11: DOM
return ERROR | @Trigger_Error(400);
case 'false':
return ERROR | @Trigger_Error(700);
case 'true':
#-----------------------------------------------------------------------
$DOM = new DOM();
#-----------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-----------------------------------------------------------------------
if (Is_Error($DOM->Load('Window'))) {
return ERROR | @Trigger_Error(500);
}
#-----------------------------------------------------------------------
$DOM->AddText('Title', 'Профиль');
#-----------------------------------------------------------------------
$Table = array('Общая информация');
#-----------------------------------------------------------------------
$Comp = Comp_Load('Formats/Profile/Number', $Profile['ID']);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-----------------------------------------------------------------------
$Table[] = array('Номер', $Comp);
#-----------------------------------------------------------------------
$Comp = Comp_Load('Formats/Date/Extended', $Profile['CreateDate']);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-----------------------------------------------------------------------
示例12: Links
#-------------------------------------------------------------------------------
$Links =& Links();
#-------------------------------------------------------------------------------
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Window'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Number = Comp_Load('Formats/Order/Number', $ISPswOrder['OrderID']);
if (Is_Error($Number)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddText('Title', SPrintF('Заказ ПО ISPsystem #%s/%s', $Number, $ISPswOrder['IP']));
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Table = array('Общая информация');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Table[] = array('Номер', $Number);
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Formats/Date/Extended', $ISPswOrder['OrderDate']);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table[] = array('Дата заказа', $Comp);
#-------------------------------------------------------------------------------
示例13: DOM
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
#-------------------------------------------------------------------------------
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Window'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddText('Title', SPrintF('Заказ IP адреса %s', $ExtraIPOrder['Login']));
#-------------------------------------------------------------------------------
$Table = array('Общая информация');
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Formats/Order/Number', $ExtraIPOrder['OrderID']);
#-------------------------------------------------------------------------------
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table[] = array('Номер', $Comp);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Formats/Date/Extended', $ExtraIPOrder['OrderDate']);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
示例14: DOM
exit;
#-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Домашняя страница');
#-------------------------------------------------------------------------------
$__MESSAGES =& $GLOBALS['__MESSAGES'];
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (IS_DEBUG) {
$__MESSAGES[] = 'Биллинговая система работает в режиме отладки. Отключите данный режим после устанения проблем, удалив файл DEBUG в корневой папке системы.';
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Count = DB_Count('Profiles', array('ID' => 100));
if (Is_Error($Count)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
if (!$Count) {
示例15: DOM
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddChild('Head', new Tag('SCRIPT', array('type' => 'text/javascript', 'src' => 'SRC:{Js/Tasks.js}')));
#-------------------------------------------------------------------------------
$DOM->AddAttribs('MenuLeft', array('args' => 'Administrator/AddIns'));
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Дополнения → Рассылка → Все рассылки');
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tables/Super', 'Dispatches');
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$NoBody->AddChild($Comp);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tab', 'Administrator/Dispatch', $NoBody);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------