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


PHP CAdminForm::GetFormName方法代码示例

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


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

示例1: GetMessage

				$arPropLinks[$PID] = "PROPERTY_".$PID;
		}
		$tabControl->AddFieldGroup("IBLOCK_ELEMENT_PROPERTY", GetMessage("IBLOCK_ELEMENT_PROP_VALUE"), $arPropLinks, $bPropertyAjax);
	}

	$tabControl->AddSection("IBLOCK_ELEMENT_PROP_VALUE", GetMessage("IBLOCK_ELEMENT_PROP_VALUE"));

	foreach($PROP as $prop_code=>$prop_fields):
		$prop_values = $prop_fields["VALUE"];
		$tabControl->BeginCustomField("PROPERTY_".$prop_fields["ID"], $prop_fields["NAME"], $prop_fields["IS_REQUIRED"]==="Y");
		?>
		<tr id="tr_PROPERTY_<?echo $prop_fields["ID"];?>"<?if ($prop_fields["PROPERTY_TYPE"]=="F"):?> class="adm-detail-file-row"<?endif?>>
			<td class="adm-detail-valign-top" width="40%"><?if($prop_fields["HINT"]!=""):
				?><span id="hint_<?echo $prop_fields["ID"];?>"></span><script type="text/javascript">BX.hint_replace(BX('hint_<?echo $prop_fields["ID"];?>'), '<?echo CUtil::JSEscape($prop_fields["HINT"])?>');</script>&nbsp;<?
			endif;?><?echo $tabControl->GetCustomLabelHTML();?>:</td>
			<td width="60%"><?_ShowPropertyField('PROP['.$prop_fields["ID"].']', $prop_fields, $prop_fields["VALUE"], (($historyId <= 0) && (!$bVarsFromForm) && ($ID<=0)), $bVarsFromForm||$bPropertyAjax, 50000, $tabControl->GetFormName(), $bCopy);?></td>
		</tr>
		<?
			$hidden = "";
			if(!is_array($prop_fields["~VALUE"]))
				$values = Array();
			else
				$values = $prop_fields["~VALUE"];
			$start = 1;
			foreach($values as $key=>$val)
			{
				if($bCopy)
				{
					$key = "n".$start;
					$start++;
				}
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_element_edit.php

示例2: GetMessage

"></span><script>BX.hint_replace(BX('hint_<?php 
    echo $prop_fields["ID"];
    ?>
'), '<?php 
    echo CUtil::JSEscape($prop_fields["HINT"]);
    ?>
');</script>&nbsp;<?php 
}
echo $tabControl->GetCustomLabelHTML();
?>
:</td>
	<td width="60%"><?php 
if (!($USER->CanDoOperation('view_subordinate_users') || $USER->CanDoOperation('view_all_users'))) {
    echo GetMessage('LEARNING_ACCESS_DENIED_TO_USERS');
} else {
    echo _ShowUserPropertyField('PROP[' . $prop_fields["ID"] . ']', $prop_fields, $prop_fields["VALUE"], false, false, 50000, $tabControl->GetFormName(), $bCopy);
}
?>
</td>
</tr>
<?php 
$hidden = "";
if (!is_array($prop_fields["~VALUE"])) {
    $values = array();
} else {
    $values = $prop_fields["~VALUE"];
}
$start = 1;
foreach ($values as $key => $val) {
    if ($bCopy) {
        $key = "n" . $start;
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:learn_group_edit.php

示例3: htmlspecialcharsbx

echo htmlspecialcharsbx($arGroups["NAME"]);
?>
 [<a href="/bitrix/admin/group_edit.php?ID=<?php 
echo $arGroups["ID"];
?>
&lang=<?php 
echo LANGUAGE_ID;
?>
" title="<?php 
echo GetMessage("MAIN_VIEW_GROUP");
?>
"><?echo intval($arGroups["ID"])?></a>]</label>
					</td>
					<td>
						<?php 
echo CalendarDate("GROUP_ID_FROM_" . $ind, array_key_exists($arGroups["ID"], $str_GROUP_ID) ? htmlspecialcharsbx($str_GROUP_ID[$arGroups["ID"]]["DATE_ACTIVE_FROM"]) : "", $tabControl->GetFormName(), "22");
?>
						<?php 
echo CalendarDate("GROUP_ID_TO_" . $ind, array_key_exists($arGroups["ID"], $str_GROUP_ID) ? htmlspecialcharsbx($str_GROUP_ID[$arGroups["ID"]]["DATE_ACTIVE_TO"]) : "", $tabControl->GetFormName(), "22");
?>
					</td>
				</tr>
				<?
			}
			?>
		</table><input type="hidden" name="GROUP_ID_NUMBER" value="<?php 
echo $ind;
?>
"></td>
	</tr>
<?
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:user_edit.php

示例4: array

<span id="hint_<?php 
                    echo $prop_fields["ID"];
                    ?>
"></span><script>BX.hint_replace(BX('hint_<?php 
                    echo $prop_fields["ID"];
                    ?>
'), '<?php 
                    echo CUtil::JSEscape($prop_fields["HINT"]);
                    ?>
');</script>&nbsp;<?php 
                }
                echo $tabControl->GetCustomLabelHTML();
                ?>
:</td>
			<td width="60%"><?php 
                _ShowPropertyField('PROP[' . $prop_fields["ID"] . ']', $prop_fields, $prop_fields["VALUE"], $historyId <= 0 && !$bVarsFromForm && $ID <= 0, $bVarsFromForm, 50000, $tabControl->GetFormName(), $bCopy);
                ?>
</td>
		</tr>
		<?php 
                $hidden = "";
                if (!is_array($prop_fields["~VALUE"])) {
                    $values = array();
                } else {
                    $values = $prop_fields["~VALUE"];
                }
                $start = 1;
                foreach ($values as $key => $val) {
                    if ($bCopy) {
                        $key = "n" . $start;
                        $start++;
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:iblock_element_edit.php

示例5: GetMessage

$tabControl->AddCheckBoxField("ACTIVE", GetMessage("IBLOCK_FIELD_ACTIVE").":", false, "Y", $str_ACTIVE=="Y");
$tabControl->AddEditField("NAME", "URL:", true, array("size" => 50, "maxlength" => 255), $str_NAME);
$tabControl->AddEditField("SORT", GetMessage("IBLOCK_FIELD_SORT").":", $arIBlock["FIELDS"]["SORT"]["IS_REQUIRED"] === "Y", array("size" => 7, "maxlength" => 10), $str_SORT);

if(count($PROP)>0):
	$tabControl->AddSection("IBLOCK_ELEMENT_PROP_VALUE", GetMessage("kaycom.oneplaceseo_PROPS"));

	foreach($PROP as $prop_code=>$prop_fields):
		$prop_values = $prop_fields["VALUE"];
		$tabControl->BeginCustomField("PROPERTY_".$prop_fields["ID"], $prop_fields["NAME"], $prop_fields["IS_REQUIRED"]==="Y");
		?>
		<tr id="tr_PROPERTY_<?echo $prop_fields["ID"];?>">
			<td class="adm-detail-valign-top"><?if($prop_fields["HINT"]!=""):
				?><span id="hint_<?echo $prop_fields["ID"];?>"></span><script>BX.hint_replace(BX('hint_<?echo $prop_fields["ID"];?>'), '<?echo CUtil::JSEscape($prop_fields["HINT"])?>');</script>&nbsp;<?
			endif;?><?echo $tabControl->GetCustomLabelHTML();?>:</td>
			<td><?_ShowPropertyField('PROP['.$prop_fields["ID"].']', $prop_fields, $prop_fields["VALUE"], (($historyId <= 0) && (!$bVarsFromForm) && ($ID<=0)), $bVarsFromForm, 50000, $tabControl->GetFormName(), $bCopy);?></td>
		</tr>
		<?
			$hidden = "";
			if(!is_array($prop_fields["~VALUE"]))
				$values = Array();
			else
				$values = $prop_fields["~VALUE"];
			$start = 1;
			foreach($values as $key=>$val)
			{
				if($bCopy)
				{
					$key = "n".$start;
					$start++;
				}
开发者ID:akniyev,项目名称:itprom.ru,代码行数:31,代码来源:iblock_element_edit.php


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