本文整理汇总了PHP中_display函数的典型用法代码示例。如果您正苦于以下问题:PHP _display函数的具体用法?PHP _display怎么用?PHP _display使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_display函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
if (isset($attributes['token']) && isset($attributes['fuseactionid'])) {
$arrLanguages = array();
if (isset($attributes['languageid'])) {
$arrLanguages[] = $oLanguageManager->getLanguageByID($attributes['languageid']);
} else {
$arrLanguages = $oLanguageManager->getLanguages();
}
_assign("arrLanguages", $arrLanguages);
if ($attributes['fuseactionid'] == 0) {
$tmpoFuseaction =& $ogFuseaction;
_assign("tmpoFuseaction", $tmpoFuseaction);
} elseif (is_numeric($attributes['fuseactionid'])) {
if ($tmpoFuseaction = $oFuseManager->getFuseactionByID($attributes['fuseactionid'])) {
_assign("tmpoFuseaction", $tmpoFuseaction);
} else {
_error("ECannotGetFuseaction", "Cannot get page or action");
}
} else {
_error("EInvalidFuseaction", "Invalid page/action ID given");
}
_display("util/dspGraphicsForm.tpl");
} else {
_error("ENoGraphicsGiven", "No valid graphic content item given to edit");
}
示例2: empty
<?php
$attributes['order'] = empty($attributes['order']) ? "code" : $attributes['order'];
$attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize'];
if (!isset($attributes['sort'])) {
$attributes['sort'] = "ASC";
} else {
if (!in_array($attributes['sort'], array("ASC", "DESC"))) {
$attributes['sort'] = "ASC";
}
}
$attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC";
$attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page'];
$oPaging = new Paging($attributes['pagesize'], $oLanguageManager->getLanguagesCount(), $attributes['page']);
$oPaging->setLinkFormat($here . "&page=%d");
$arrPageSizes = array(10, 25, 50, 100, 200);
if ($arrLanguages = $oLanguageManager->getLanguages($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) {
_assign("arrLanguages", $arrLanguages);
_assign("arrPages", $oPaging->getPages());
_assign("arrPageSizes", $arrPageSizes);
}
_display("admin/dspLanguages.tpl");
示例3: _assign
<?php
if (!empty($attributes['token'])) {
$arrArticleAttachments = $ogArticleAttachmentManager->getAttachments($attributes['token']);
_assign('arrArticleAttachments', $arrArticleAttachments);
}
if (!empty($attributes['id'])) {
$arrAttachment = $ogArticleAttachmentManager->getAttachment(intval($attributes['id']));
}
if (isset($arrAttachment)) {
_assign('arrAttachment', $arrAttachment);
}
_display('admin/dspArticleAttachments.tpl');
示例4: Group
<?php
$tmpoGroup = new Group();
if (!empty($attributes['id'])) {
if (!($tmpoGroup = $oSecurityManager->getGroupByID($attributes['id']))) {
_error("ENoGroupFound", "No security group with ID={$attributes['id']} found");
}
}
if (isset($attributes['fCode'])) {
$tmpoGroup->setCode($attributes['fCode']);
}
if (isset($attributes['fName'])) {
$tmpoGroup->setName($attributes['fName']);
}
if (isset($attributes['fDescription'])) {
$tmpoGroup->setDescription($attributes['fDescription']);
}
if (isset($attributes['fHomePage'])) {
$tmpoGroup->setHomePage($attributes['fHomePage']);
}
_assign("tmpoGroup", $tmpoGroup);
_display("admin/dspGroupForm.tpl");
示例5: _assign
<?php
_assign("arrContentPages", $arrContentPages);
_assign("arrPageSizes", $arrPageSizes);
_assign("arrPages", $oPaging->getPages());
_display("admin/dspContentPages.tpl");
示例6: _warning
<?php
_warning("WAccessDenied", "Access to this page is denied. Please (re-)login or contact administrator.");
_display("home/dspAccessDenied.tpl");
示例7: _error
<?php
$tmpoFuseaction = false;
if (isset($attributes['key'])) {
if (!($tmpoFuseaction = $oFuseManager->getFuseaction($attributes['key']))) {
_error("ECannotGetFuseaction", "No fuseaction found");
}
} elseif (isset($attributes['id'])) {
if (is_numeric($attributes['id'])) {
if ($attributes['id'] == 0) {
$tmpoFuseaction =& $ogFuseaction;
} elseif (!($tmpoFuseaction = $oFuseManager->getFuseactionByID($attributes['id']))) {
_error("ECannotGetFuseaction", "No fuseaction found");
}
} else {
_error("EInvalidFuseactionID", "Invalid Fuseaction ID");
}
} else {
_error("ENoFuseactionGiven", "No page given");
}
if ($tmpoFuseaction) {
$tmpoSEOContentManager = new ContentManager($oDB, $tmpoFuseaction, $tmpoLanguage, $fusebox['tableSEOContentTokens'], $fusebox['tableSEOContent'], false);
$arrTokens = $tmpoSEOContentManager->getTokens();
$arrLanguages = $oLanguageManager->getLanguages();
$smarty->assign("tmpoFuseaction", $tmpoFuseaction);
$smarty->assign("tmpoSEOContentManager", $tmpoSEOContentManager);
$smarty->assign("arrTokens", $arrTokens);
$smarty->assign("arrLanguages", $arrLanguages);
}
_display("admin/dspSEOContentTokens.tpl");
示例8: empty
<?php
$attributes['order'] = empty($attributes['order']) ? "description" : $attributes['order'];
$attributes['sort'] = empty($attributes['sort']) ? "ASC" : $attributes['sort'];
$attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize'];
$attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC";
$attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page'];
$oPaging = new Paging($attributes['pagesize'], $oSettingsManager->getSettingsCount(), $attributes['page']);
$oPaging->setLinkFormat($here . "&page=%d");
$arrPageSizes = array(10, 25, 50, 100, 200);
if ($arrSettings = $oSettingsManager->getSettings($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) {
_assign("arrSettings", $arrSettings);
_assign("arrPages", $oPaging->getPages());
_assign("arrPageSizes", $arrPageSizes);
}
_display("admin/dspSettings.tpl");
示例9: _assign
<?
if($arrFuseactions = $oFuseManager->getFuseactions()){
_assign("arrFuseactions", $arrFuseactions);
}else{
_error("ECannotGetFuseactions", "Cannot retrieve fuseactions from DB");
}
_display("admin/dspSpecification.tpl");
?>
示例10: empty
<?php
$attributes['order'] = empty($attributes['order']) ? "login" : $attributes['order'];
$attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize'];
if (!isset($attributes['sort'])) {
$attributes['sort'] = "ASC";
} else {
if (!in_array($attributes['sort'], array("ASC", "DESC"))) {
$attributes['sort'] = "ASC";
}
}
$attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC";
$attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page'];
$oPaging = new Paging($attributes['pagesize'], $oUserManager->getUsersCount(), $attributes['page']);
$oPaging->setLinkFormat($here . "&page=%d");
$arrPageSizes = array(10, 25, 50, 100, 200);
if ($arrUsers = $oUserManager->getUsers($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) {
foreach ($arrUsers as $k => $u) {
$arrUsers[$k]->setGroups($oSecurityManager->pullUserGroups($u->getID()));
}
_assign("arrUsers", $arrUsers);
_assign("arrPages", $oPaging->getPages());
_assign("arrPageSizes", $arrPageSizes);
}
$arrGroups = $oSecurityManager->getGroups();
_assign("arrGroups", $arrGroups);
_display("admin/dspUsers.tpl");
示例11: elseif
<?php
$tmpoLanguage = false;
if (isset($attributes['id']) && intval($attributes['id']) > 0) {
$tmpoLanguage = $oLanguageManager->getLanguageByID(intval($attributes['id']));
} elseif (isset($attributes['key'])) {
$tmpoLanguage = $oLanguageManager->getLanguage($attributes['key']);
}
$smarty->assign("tmpoLanguage", $tmpoLanguage);
_display("admin/dspLanguageForm.tpl");
示例12: array
}
if (isset($article_id)) {
$arrRelatedArticles = $ogArticleTree->getChildNodes($article_id, array('token'));
$arrBranch = $ogArticleTree->getBranch($node_id, array('token'));
_assign('arrBranch', $arrBranch);
_assign('arrRelatedArticles', $arrRelatedArticles);
}
if (!empty($attributes['article'])) {
$arrArticleAttachments = $ogArticleAttachmentManager->getAttachments($attributes['article']);
_assign('arrArticleAttachments', $arrArticleAttachments);
$intCommentsCount = $ogArticleManager->getCommentsCount($attributes['article']);
_assign('intCommentsCount', $intCommentsCount);
}
$intAuthorID = $ogArticleManager->getAuthorID($attributes['article']);
$intEditorID = $ogArticleManager->getEditorID($attributes['article']);
$oAuthor = false;
$oEditor = false;
if ($intAuthorID) {
$oAuthor = $oUserManager->getUserByID($intAuthorID);
}
if ($intEditorID) {
$oEditor = $oUserManager->getUserByID($intEditorID);
}
if ($oAuthor) {
_assign('oAuthor', $oAuthor);
}
if ($oEditor) {
_assign('oEditor', $oEditor);
}
_display("home/dspArticle.tpl");
示例13: _assign
$attributes['prev_token'] = $arrImages[$i - 1]['token'];
}
break;
}
}
$intAuthorID = $ogGalleryManager->getImageAuthorID($attributes['gallery'], $attributes['image']);
$intEditorID = $ogGalleryManager->getImageEditorID($attributes['gallery'], $attributes['image']);
$oAuthor = false;
$oEditor = false;
if ($intAuthorID) {
$oAuthor = $oUserManager->getUserByID($intAuthorID);
}
if ($intEditorID) {
$oEditor = $oUserManager->getUserByID($intEditorID);
}
if ($oAuthor) {
_assign('oAuthor', $oAuthor);
}
if ($oEditor) {
_assign('oEditor', $oEditor);
}
$arrGalleries = $ogGalleryManager->getGalleries();
_assign("arrGalleries", $arrGalleries);
_display("home/dspGalleryImage.tpl");
}
} else {
_error("EGalleryNotExists", "Gallery not exists");
}
} else {
_error("ENoGalleryGiven", "No gallery given");
}
示例14: _display
<?php
_display("home/dspRecoverPasswordForm.tpl");
示例15: empty
<?php
$attributes['page_size'] = empty($attributes['page_size']) ? $oSettingsManager->getValue("GalleriesPageSize", 10, "INT", "Number of elements in galleries list") : intval($attributes['page_size']);
$attributes['page'] = empty($attributes['page']) ? 1 : intval($attributes['page']);
$oPaging = new Paging($attributes['page_size'], $ogGalleryManager->getGalleriesCount(), $attributes['page']);
$oPaging->setLinkFormat($here . "&page=%d");
$arrAllGalleries = $ogGalleryManager->getGalleries("id", "DESC", $oPaging->getOffSet(), $oPaging->getPageSize());
_assign("arrPages", $oPaging->getPages());
_assign("arrAllGalleries", $arrAllGalleries);
_display("home/dspGalleries.tpl");