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


PHP Component::callComponent方法代码示例

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


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

示例1: ShowMsg

                ?>
</h3>
	<?php 
                ShowMsg();
                ?>
	<p>
		<a href="?ACTION=ADD&TYPE=<?php 
                echo sXss($_GET['TYPE']);
                ?>
"><?php 
                echo LANG("MODULE_CATALOG_ADD_TEXT");
                ?>
</a>
	</p>
	<?php 
                Component::callComponent(":catalog.list", "_admin", array("SHOW_FIELDS" => array("ID", "NAME", "CATALOG_TYPE_ID", "SORT", "ACTIVE", "SID", "CODE"), "CATALOG_TYPE" => $_GET["TYPE"]));
                ?>
	<?php 
                break;
        }
        ?>

<p>
	<a href="/scriptacid/admin/catalog/">Список типов</a>&nbsp;&nbsp;
</p>

<?php 
    }
    ?>

开发者ID:r3c130n,项目名称:scriptacid,代码行数:29,代码来源:catalog.php

示例2: SetTitle

<?php

namespace ScriptAcid;

require_once $_SERVER["DOCUMENT_ROOT"] . "/scriptacid/core/application.php";
SetTitle("Панель управления :: Пользователи");
App::get()->makePage(function (&$arPageParams) {
    ?>

<?php 
    if (intVal($_GET["ID"]) > 0) {
        Component::callComponent("system.user.detail", "", array("SET_TITLE" => "Y", "TITLE_TEXT" => "Панель управления :: Профиль пользователя", "USER_ID" => intVal($_GET["ID"])));
    }
    ?>

<?php 
});
// end of makePage
开发者ID:r3c130n,项目名称:scriptacid,代码行数:18,代码来源:user.php

示例3: sXss

		<a href="?ACTION=ADD_SECTION&TYPE=<?php 
            echo sXss($_GET['TYPE']);
            ?>
&CATALOG_ID=<?php 
            echo sXss($_GET['CATALOG_ID']);
            ?>
"><?php 
            echo LANG("MODULE_CATALOG_SECTION_ADD_TEXT");
            ?>
</a>
	</p>
	<?php 
            Component::callComponent(":catalog.section.list", "_admin", array("SECTION_ID" => $_GET["SECTION_ID"], "CATALOG_ID" => $_GET["CATALOG_ID"], "=CATALOG_TYPE" => $_GET["TYPE"], "FIELDS" => array("ID", "ACTIVE", "NAME", "CATALOG_SECTION_ID", "CATALOG_ID", "SORT", "CODE", "PREVIEW_PICTURE", "PREVIEW_TEXT", "PREVIEW_TEXT_TYPE", "DETAIL_PICTURE", "DETAIL_TEXT", "DETAIL_TEXT_TYPE", "TAGS")));
            ?>
	<?php 
            Component::callComponent(":catalog.section", "_admin", array("CATALOG_TYPE" => $_GET["TYPE"], "CATALOG_ID" => intVal($_GET["CATALOG_ID"]), "=SECTION_ID" => $_GET["SECTION_ID"]));
            ?>
	<?php 
            break;
    }
    ?>

<p>
	<a href="/scriptacid/admin/catalog/">Список типов</a>&nbsp;&nbsp;
	<a href="/scriptacid/admin/catalog/catalog.php?TYPE=<?php 
    echo $_GET["TYPE"];
    ?>
">Список каталогов</a>
</p>

<?php 
开发者ID:r3c130n,项目名称:scriptacid,代码行数:31,代码来源:elements.php

示例4: SetTitle

<?php

namespace ScriptAcid;

require_once $_SERVER["DOCUMENT_ROOT"] . "/scriptacid/core/application.php";
SetTitle("Панель управления :: Пользователи");
App::get()->makePage(function (&$arPageParams) {
    ?>


<h3>Пользователи сайта</h3>

<?php 
    echo Component::callComponent("system.user.list", "", array("SHOW_FIELDS" => array("ID", "LOGIN", "NAME", "LAST_NAME", "EMAIL"), "PAGE_COUNT" => 20));
    ?>

<?php 
});
// end of makePage
开发者ID:r3c130n,项目名称:scriptacid,代码行数:19,代码来源:index.php

示例5: array

<?php

namespace ScriptAcid;

if (!defined("KERNEL_INCLUDED") || KERNEL_INCLUDED !== true) {
    die;
}
?>
<div class="post no-bg">
<?php 
if (!empty($arResult)) {
    ?>
	<div>
		<?php 
    Component::callComponent("system:player.video", "", array("FILE_ID" => $arResult['PROPERTIES']['FILE']['VALUE'], "WIDTH" => 480, "HEIGHT" => 320));
    ?>
	</div>
	<p><?php 
    echo $arResult["DETAIL_TEXT"];
    ?>
</p>
	<p class="tags">
		<strong>Автор: </strong> <a href="/admin/users/user.php?ID=<?php 
    echo $arResult["CREATED_BY"];
    ?>
"><?php 
    echo User::GetSign($arResult["CREATED_BY"]);
    ?>
</a>
		| <strong>Дата: </strong> <?php 
    echo $arResult["DATE_CREATE"];
开发者ID:r3c130n,项目名称:scriptacid,代码行数:31,代码来源:template.php


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