Цитата |
---|
Андрей написал: Все еще актуально, прилагаю коды: Код |
---|
Код component.php:
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
CModule::IncludeModule( 'currency' );
$arResult = array ();
$lcur = CCurrency::GetList(( $by = "name" ), ( $order1 = "asc" ), LANGUAGE_ID);
while ( $lcur_res = $lcur ->Fetch())
{
$arResult [] = $lcur_res ;
}
$this ->IncludeComponentTemplate();
?>
template.php:
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true)die();?>
<?
foreach ( $arResult as $Elem )
{
$this ->AddEditAction( $Elem [ 'CURRENCY' ], "/bitrix/admin/currency_edit.php?lang=ru&ID=" . $Elem [ 'CURRENCY' ]. "&bxpublic=Y" , "Изменить элемент" );
?>
< div id = "<?=$this->GetEditAreaId($Elem['CURRENCY']);?>" >
< div style = ' width: 150px ; height: 75px ; background-color: black ; margin-bottom: 15px ;'> </ div >
</ div >
<?
}
?> |
|
А почему 'CURRENCY', а не ID?