当前位置: 首页>>代码示例>>PHP>>正文


PHP Tag::AddHTML方法代码示例

本文整理汇总了PHP中Tag::AddHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP Tag::AddHTML方法的具体用法?PHP Tag::AddHTML怎么用?PHP Tag::AddHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tag的用法示例。


在下文中一共展示了Tag::AddHTML方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

#-------------------------------------------------------------------------------
switch (ValueOf($Profiles)) {
    case 'error':
        return ERROR | @Trigger_Error(500);
    case 'exception':
        # No more...
        break;
    case 'array':
        #-------------------------------------------------------------------------------
        $Result = array();
        #-------------------------------------------------------------------------------
        foreach ($Profiles as $Profile) {
            #-------------------------------------------------------------------------------
            $NoBody = new Tag('NOBODY');
            #-------------------------------------------------------------------------------
            $NoBody->AddHTML(TemplateReplace('Notes.User.Profiles', $Profile));
            #-------------------------------------------------------------------------------
            $Result[] = $NoBody;
            #-------------------------------------------------------------------------------
        }
        #-------------------------------------------------------------------------------
        break;
        #-------------------------------------------------------------------------------
    #-------------------------------------------------------------------------------
    default:
        return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Profiles.comp.php

示例2: array

#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$currentVersion = VERSION;
#-------------------------------------------------------------------------------
$opts = array('http' => array('timeout' => 2));
$context = stream_context_create($opts);
$versionInfoJson = @file_get_contents("http://joonte.com/public/version", false, $context);
#Debug(SprintF('[comp/Notes/Administrator/CheckVersion]: versionInfoJson = %s',$versionInfoJson));
#-------------------------------------------------------------------------------
$versionInfo = @json_decode($versionInfoJson, true);
#-------------------------------------------------------------------------------
if ($versionInfoJson && $versionInfo) {
    #-------------------------------------------------------------------------------
    if (!isset($versionInfo['version'])) {
        return $Result;
    }
    #-------------------------------------------------------------------------------
    $LastVersion = $versionInfo['version'];
    #-------------------------------------------------------------------------------
    if ($LastVersion != $currentVersion) {
        #-------------------------------------------------------------------------------
        $NoBody = new Tag('NOBODY');
        $NoBody->AddHTML(TemplateReplace('Notes.Administrator.CheckVersion', array('LastVersion' => $LastVersion)));
        $Result[] = $NoBody;
        #-------------------------------------------------------------------------------
    }
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:CheckVersion.comp.php

示例3: array

            #-------------------------------------------------------------------------------
            $Params = array('Invoice' => $Invoice, 'Summ' => $Comp);
            #-------------------------------------------------------------------------------
            $Array = array();
            #-------------------------------------------------------------------------------
            foreach ($InvoicesItems as $InvoicesItem) {
                #-------------------------------------------------------------------------------
                $Comment = $InvoicesItem['Comment'] ? SPrintF('%s / ', $InvoicesItem['Comment']) : '';
                #-------------------------------------------------------------------------------
                $Summ = Comp_Load('Formats/Currency', $InvoicesItem['Summ']);
                if (Is_Error($Summ)) {
                    return ERROR | @Trigger_Error(500);
                }
                #-------------------------------------------------------------------------------
                $Array[] = SPrintF("<li>%s / %s%s</li>", $InvoicesItem['ServiceName'], $Comment, $Summ);
                #-------------------------------------------------------------------------------
            }
            #-------------------------------------------------------------------------------
            $Params['Items'] = Implode("\n", $Array);
            #-------------------------------------------------------------------------------
            #-------------------------------------------------------------------------------
            $NoBody = new Tag('NOBODY');
            $NoBody->AddHTML(TemplateReplace(SPrintF('Notes.User.Invoices.%s', $Invoice['StatusID']), $Params));
            $Result[] = $NoBody;
            unset($NoBody);
        }
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Invoices.comp.php

示例4: array

#-------------------------------------------------------------------------------
$Settings = $Config['Interface']['Administrator']['Notes']['Tasks'];
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!$Settings['ShowUnExecuted']) {
    return $Result;
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Result = array();
#-------------------------------------------------------------------------------
$Count = DB_Count('Tasks', array('Where' => "(`IsActive` = 'no' OR `Errors` > 0) AND `IsExecuted` = 'no'"));
if (Is_Error($Count)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
if ($Count) {
    #-------------------------------------------------------------------------------
    $Result = array();
    #-------------------------------------------------------------------------------
    $NoBody = new Tag('NOBODY');
    #-------------------------------------------------------------------------------
    $NoBody->AddHTML(TemplateReplace('Notes.Administrator.Tasks', array('Tasks' => $Count)));
    #-------------------------------------------------------------------------------
    $Result = array($NoBody);
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Tasks.comp.php

示例5: switch

 #-------------------------------------------------------------------------------
 switch (ValueOf($Users)) {
     case 'error':
         return ERROR | @Trigger_Error(500);
     case 'exception':
         # No more...
         break;
     case 'array':
         #-------------------------------------------------------------------------------
         $Table = new Tag('TABLE', array('class' => 'Standard', 'cellspacing' => 5), new Tag('CAPTION', 'Сейчас в сети'));
         #-------------------------------------------------------------------------------
         $Block = new Tag('TR');
         #-------------------------------------------------------------------------------
         foreach ($Users as $User) {
             #-------------------------------------------------------------------------------
             $Block->AddHTML(TemplateReplace('www.TicketEdit', $User));
             #-------------------------------------------------------------------------------
             if (Count($Block->Childs) % 2 == 0) {
                 #-------------------------------------------------------------------------------
                 $Table->AddChild($Block);
                 #-------------------------------------------------------------------------------
                 $Block = new Tag('TR');
                 #-------------------------------------------------------------------------------
             }
             #-------------------------------------------------------------------------------
         }
         #-------------------------------------------------------------------------------
         if (Count($Block->Childs)) {
             $Table->AddChild($Block);
         }
         #-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:TicketEdit.comp.php

示例6: array

/** @author Alex Keda, for www.host-food.ru */
/******************************************************************************/
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$Result = array();
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Config = Config();
#-------------------------------------------------------------------------------
$Settings = $Config['Interface']['Administrator']['Notes']['CheckCache'];
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!$Settings['MakeCheckCache']) {
    return $Result;
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!CacheManager::isEnabled()) {
    #-------------------------------------------------------------------------------
    $NoBody = new Tag('NOBODY');
    $NoBody->AddHTML(TemplateReplace('Notes.Administrator.CheckCache'));
    $Result[] = $NoBody;
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:CheckCache.comp.php

示例7: Tag

$Script = new Tag('SCRIPT', array('type' => 'text/javascript', 'src' => 'SRC:{Js/Pages/Basket.js}'));
#-------------------------------------------------------------------------------
$DOM->AddChild('Head', $Script);
#-------------------------------------------------------------------------------
$Columns = array('ID', 'ServiceID', 'ContractID', 'OrderID', 'Summ', 'Amount', 'Comment', '(SELECT `Measure` FROM `Services` WHERE `Services`.`ID` = `ServiceID`) as `Measure`', '(SELECT `Code` FROM `Services` WHERE `Services`.`ID` = `ServiceID`) as `ServiceCode`', '(SELECT `Customer` FROM `Contracts` WHERE `Contracts`.`ID` = `ContractID`) as `Customer`');
#-------------------------------------------------------------------------------
$Basket = DB_Select('BasketOwners', $Columns, array('Where' => SPrintF('`UserID` = %u', $GLOBALS['__USER']['ID']), 'SortOn' => 'ContractID'));
#-------------------------------------------------------------------------------
switch (ValueOf($Basket)) {
    case 'error':
        return ERROR | @Trigger_Error(500);
    case 'exception':
        #---------------------------------------------------------------------------
        $NoBody = new Tag('NOBODY');
        #---------------------------------------------------------------------------
        $NoBody->AddHTML(TemplateReplace('www.Basket'));
        #---------------------------------------------------------------------------
        $Comp = Comp_Load('Information', $NoBody, 'Notice');
        if (Is_Error($Comp)) {
            return ERROR | @Trigger_Error(500);
        }
        #---------------------------------------------------------------------------
        $DOM->AddChild('Into', $Comp);
        break;
    case 'array':
        #---------------------------------------------------------------------------
        $ContractID = UniqID();
        #---------------------------------------------------------------------------
        $Rows = array();
        #---------------------------------------------------------------------------
        for ($i = 0; $i < Count($Basket); $i++) {
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Basket.comp.php

示例8: array

<?php

#-------------------------------------------------------------------------------
/** @author Великодный В.В. (Joonte Ltd.) */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('Element');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$NoBody = new Tag('NOBODY');
#-------------------------------------------------------------------------------
$Path = System_Element($Element);
if (Is_Error($Path)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$HTML = IO_Read($Path);
if (Is_Error($HTML)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$NoBody->AddHTML($HTML);
#-------------------------------------------------------------------------------
return $NoBody;
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:27,代码来源:HTML.comp.php

示例9: foreach

 $Params = $Task['Params'];
 #-----------------------------------------------------------------------
 if (Count($Params)) {
     #---------------------------------------------------------------------
     $Table[] = 'Параметры';
     #---------------------------------------------------------------------
     foreach (Array_Keys($Params) as $ParamID) {
         if (Is_String($Params[$ParamID])) {
             #-------------------------------------------------------------------
             $Text = Str_Replace("\n", '<BR />', HtmlSpecialChars(Trim($Params[$ParamID])));
             #-------------------------------------------------------------------
             $Text = Preg_Replace('/(http\\:\\/\\/[a-zA-Z0-9\\/\\:\\?\\&\\=\\@\\-\\.\\;\\_]+)/', '<A href="\\1">[ссылка]</A>', $Text);
             #-------------------------------------------------------------------
             $Td = new Tag('TD', array('class' => 'Standard', 'style' => 'max-width:400px;'));
             #-------------------------------------------------------------------
             $Td->AddHTML(SPrintF('<SPAN>%s</SPAN>', $Text));
             #-------------------------------------------------------------------
             if (isset($Type['Params'][$ParamID])) {
                 $Table[] = array($Type['Params'][$ParamID], $Td);
             } else {
                 $Table[] = array($ParamID, $Td);
             }
         }
     }
 }
 #-----------------------------------------------------------------------
 $Table[] = 'Текущее состояние';
 #-----------------------------------------------------------------------
 $Comp = Comp_Load('Formats/Logic', $Task['IsExecuted']);
 if (Is_Error($Comp)) {
     return ERROR | @Trigger_Error(500);
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:TaskInfo.comp.php

示例10: array

     $DomainOrder = DB_Select('DomainOrdersOwners', $Columns, array('UNIQ', 'Where' => SPrintF('`OrderID` = %u', $Order['ID'])));
     switch (ValueOf($DomainOrder)) {
         case 'error':
             return ERROR | @Trigger_Error(500);
         case 'exception':
             return ERROR | @Trigger_Error(400);
         case 'array':
             #-------------------------------------------------------------------------------
             $NoBody = new Tag('NOBODY');
             #-------------------------------------------------------------------------------
             $Params['TransferDaysRemainded'] = Ceil(($DomainOrder['StatusDate'] + 180 * 24 * 3600 - Time()) / (24 * 3600));
             $Params['DomainOrder'] = $DomainOrder;
             #-------------------------------------------------------------------------------
             if (In_Array($DomainOrder['Name'], array('ru', 'su', 'рф'))) {
                 #-------------------------------------------------------------------------------
                 $NoBody->AddHTML(TemplateReplace('Notes.User.NoticeOrders.OnTransfer.USSR', $Params));
                 #-------------------------------------------------------------------------------
                 $Result[] = $NoBody;
                 #-------------------------------------------------------------------------------
             } else {
                 # ничё?
             }
             #-------------------------------------------------------------------------
             break;
         default:
             return ERROR | @Trigger_Error(101);
     }
     #-------------------------------------------------------------------------------
     #-------------------------------------------------------------------------------
 } else {
     # ничё не делаем?
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:NoticeOrders.comp.php

示例11: StrToTime

    #-------------------------------------------------------------------------------
    $LastExecuted = File_Get_Contents($Marker);
    #-------------------------------------------------------------------------------
    $LastExecuted = StrToTime($LastExecuted);
    #-------------------------------------------------------------------------------
    Debug(SPrintF('[comp/Notes/Administrator/CheckCronRun]: LastExecuted = %s', Date('Y-m-d H:i:s', $LastExecuted)));
    #-------------------------------------------------------------------------------
    if ($LastExecuted < Time() - $Settings['CronDownTime']) {
        $Array = array('Message' => SPrintF('Последнее задание было выполнено <B>%s в %s</B>', Date('Y-m-d', $LastExecuted), Date('H:i:s', $LastExecuted)));
    }
} else {
    #-------------------------------------------------------------------------------
    $Array = array('Message' => SPrintF('Планировщик ни разу не запускался в штатном режиме, или, отсутствует доступ к файлу <BR /><B>%s</B>', $Marker));
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (isset($Array)) {
    #-------------------------------------------------------------------------------
    $NoBody = new Tag('NOBODY');
    #-------------------------------------------------------------------------------
    $NoBody->AddHTML(TemplateReplace('Notes.Administrator.CheckCronRun', $Array));
    #-------------------------------------------------------------------------------
    $Result[] = $NoBody;
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:CheckCronRun.comp.php

示例12: array

#-------------------------------------------------------------------------------
/** @author Alex Keda, for www.host-food.ru  **/
/******************************************************************************/
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$Result = array();
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Config = Config();
#-------------------------------------------------------------------------------
$Settings = $Config['Interface']['Administrator']['Notes']['CheckUserID'];
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!$Settings['MakeCheckUserID']) {
    return $Result;
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if ($GLOBALS['__USER']['ID'] != 100) {
    return $Result;
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
$NoBody->AddHTML(TemplateReplace('Notes.Administrator.CheckUserID'));
$Result[] = $NoBody;
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:CheckUserID.comp.php

示例13: Tag

#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
#-------------------------------------------------------------------------------
$UniqID = UniqID('AnnouncementsText');
#-------------------------------------------------------------------------------
$Text = SPrintF('Внимание, пользователям показываются объявления. Число отображаемых объявлений: %s штук', SizeOf($Announcements));
#-------------------------------------------------------------------------------
$OnClick = SPrintF("var Style = document.getElementById('%s').style;Style.display = (Style.display != 'none'?'none':'');", $UniqID);
#-------------------------------------------------------------------------------
$NoBody->AddChild(new Tag('SPAN', array('style' => 'cursor:pointer;', 'onclick' => $OnClick), $Text));
#-------------------------------------------------------------------------------
$Div = new Tag('DIV', array('ID' => $UniqID, 'style' => 'display:none;'));
#-------------------------------------------------------------------------------
foreach ($Announcements as $Announcement) {
    #-------------------------------------------------------------------------------
    $Div->AddChild(new Tag('HR', array('size' => 1)));
    #-------------------------------------------------------------------------------
    $Div->AddHTML(SPrintF('<SPAN>%s</SPAN>', $Announcement['Text']));
    #-------------------------------------------------------------------------------
    $Div->AddChild(new Tag('DIV', array('align' => 'right'), new Tag('A', array('href' => SPrintF("javascript: var Window = window.open('/Administrator/ClauseEdit?ClauseID=%s','ClauseEdit',SPrintF('left=%%u,top=%%u,width=800,height=680,toolbar=0, scrollbars=1, location=0',(screen.width-800)/2,(screen.height-600)/2));", $Announcement['ID'])), '[редактировать]')));
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
$NoBody->AddChild($Div);
#-------------------------------------------------------------------------------
$Result[] = $NoBody;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Announcement.comp.php

示例14: IntVal

if ($Config['Other']['Modules']['Security']['IsNoReferer']) {
    return $Result;
}
#-------------------------------------------------------------------------------
$CacheID = Md5(SPrintF('no-referer-%s-%s', $GLOBALS['__USER']['ID'], $_SERVER['REMOTE_ADDR']));
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!isset($_SERVER["HTTP_REFERER"])) {
    #-------------------------------------------------------------------------------
    $Count = IntVal(CacheManager::get($CacheID));
    #-------------------------------------------------------------------------------
    if ($Count > 2) {
        #-------------------------------------------------------------------------------
        $NoBody = new Tag('NOBODY');
        #-------------------------------------------------------------------------------
        $NoBody->AddHTML(TemplateReplace('Notes.User.CheckReferer'));
        #-------------------------------------------------------------------------------
        $Result[] = $NoBody;
        #-------------------------------------------------------------------------------
    }
    #-------------------------------------------------------------------------------
    $Count++;
    #-------------------------------------------------------------------------------
    CacheManager::add($CacheID, $Count, 600);
    #-------------------------------------------------------------------------------
    Debug(SPrintF('[comp/Notes/User/CheckReferer]: HTTP_REFERER is not set for IP = %s, Count = %u', $_SERVER['REMOTE_ADDR'], $Count));
    #-------------------------------------------------------------------------------
} else {
    #-------------------------------------------------------------------------------
    CacheManager::add($CacheID, 0, 600);
    #-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:CheckReferer.comp.php

示例15: array

     $Parse = '<P><SPAN>К сожалению, необходимая статья не найдена: </SPAN><U>%s</U></P>';
     #---------------------------------------------------------------------------
     $P->AddHTML(SPrintF($Parse, $ClauseID));
     #---------------------------------------------------------------------------
     return array('Title' => 'Статья не найдена', 'DOM' => $P, 'IsExists' => FALSE);
 case 'array':
     #---------------------------------------------------------------------------
     $Clause = Current($Clause);
     #---------------------------------------------------------------------------
     if (!$Clause['IsPublish'] && !$Preview) {
         #-------------------------------------------------------------------------
         $P = new Tag('P');
         #-------------------------------------------------------------------------
         $Parse = '<P><SPAN>К сожалению, необходимая статья еще не опубликована: </SPAN><U>%s</U></P>';
         #---------------------------------------------------------------------------
         $P->AddHTML(SPrintF($Parse, $Clause['Partition']));
         #-------------------------------------------------------------------------
         return array('Title' => 'Статья не опубликована', 'DOM' => $P, 'IsExists' => TRUE);
     }
     #---------------------------------------------------------------------------
     $Text = $Clause['Text'];
     #---------------------------------------------------------------------------
     if (Preg_Match('/@link:([a-zA-Z0-9\\/\\_\\-]+)/', $Text, $Matches)) {
         #-------------------------------------------------------------------------
         $Comp = Comp_Load('Clauses/Load', Next($Matches));
         if (Is_Error($Comp)) {
             return ERROR | @Trigger_Error(500);
         }
         #-------------------------------------------------------------------------
         return $Comp;
     }
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Load.comp.php


注:本文中的Tag::AddHTML方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。