本文整理汇总了PHP中DOM::AddHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP DOM::AddHTML方法的具体用法?PHP DOM::AddHTML怎么用?PHP DOM::AddHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DOM
的用法示例。
在下文中一共展示了DOM::AddHTML方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Round
}
#---------------------------------------------------------------
$Summ = Round($Result['Summ'], 2);
#---------------------------------------------------------------
$DOM = new DOM();
#---------------------------------------------------------------
if (Is_Error($DOM->Load('WorksComplite/Reports/Template'))) {
return ERROR | @Trigger_Error(500);
}
#---------------------------------------------------------------
$Adding = System_Read(SPrintF('templates/WorksComplite/Reports/Head.%s.xml', $Contract['IsUponConsider'] ? 'Upon' : 'Use'));
if (Is_Error($Adding)) {
return ERROR | @Trigger_Error(500);
}
#---------------------------------------------------------------
$DOM->AddHTML('Body', $Adding, TRUE);
#---------------------------------------------------------------
$Executor = DB_Select('Profiles', 'TemplateID', array('UNIQ', 'ID' => 100));
#---------------------------------------------------------------
switch (ValueOf($Executor)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return $Executor;
case 'array':
#-----------------------------------------------------------
$Profile = Comp_Load('www/Administrator/API/ProfileCompile', array('ProfileID' => 100));
#-----------------------------------------------------------
switch (ValueOf($Profile)) {
case 'error':
return ERROR | @Trigger_Error(500);
示例2:
<TR>
<TD>
<SELECT name="Indexes" size="20" onchange="document.frames.Main.location = value+'.html';" style="width:200px;" />
</TD>
</TR>
</TABLE>
</FORM>
</TD>
<TD>
<IFRAME name="Main" src="FileList.html" style="width:100%;height:100%;s" />
</TD>
</TR>
</TABLE>
EOD;
#-------------------------------------------------------------------------------
$DOM->AddHTML('Into', $Parse);
#-------------------------------------------------------------------------------
$Out = $DOM->Build();
#-------------------------------------------------------------------------------
$IsWrite = IO_Write(SPrintF('%s/Index.html', $JBsDocPath), $Out, TRUE);
if (Is_Error($IsWrite)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$File = IO_Read(SPrintF('%s/styles/root/Css/Standard.css', SYSTEM_PATH));
if (Is_Error($File)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$IsWrite = IO_Write(SPrintF('%s/Standard.css', $JBsDocPath), $File, TRUE);
if (Is_Error($IsWrite)) {
示例3: gException
#-------------------------------------------------------------------------------
if (XML_HTTP_REQUEST) {
return new gException('PAGE_NOT_FOUND', 'Страница не найдена [404]');
}
#-------------------------------------------------------------------------------
if (Is_Error(System_Load('classes/DOM.class.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
#-------------------------------------------------------------------------------
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Main'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Страница не найдена [404]');
#-------------------------------------------------------------------------------
$DOM->AddHTML('Into', TemplateReplace('www.404'));
#-------------------------------------------------------------------------------
$Out = $DOM->Build();
#-------------------------------------------------------------------------------
if (Is_Error($Out)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
return $Out;
#-------------------------------------------------------------------------------
示例4: gException
/******************************************************************************/
if (XML_HTTP_REQUEST) {
return new gException('SOURCE_HIDDEN', 'Содержимое скрыто');
}
#-------------------------------------------------------------------------------
if (Is_Error(System_Load('classes/DOM.class.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM = new DOM();
#-------------------------------------------------------------------------------
$Links =& Links();
#-------------------------------------------------------------------------------
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Main'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Содержимое скрыто');
#-------------------------------------------------------------------------------
$DOM->AddHTML('Into', TemplateReplace('www.Hidden'));
#-------------------------------------------------------------------------------
$Out = $DOM->Build();
#-------------------------------------------------------------------------------
if (Is_Error($Out)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
return $Out;
#-------------------------------------------------------------------------------