}
 #---------------------------------------------------------------
 $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
0
      <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
0
#-------------------------------------------------------------------------------
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
0
/******************************************************************************/
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;
#-------------------------------------------------------------------------------