當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。