function _ShowPropertyField($name, $property_fields, $values, $bInitDef = false, $bVarsFromForm = false, $max_file_size_show = 50000, $form_name = "form_element", $bCopy = false) { $type = $property_fields["PROPERTY_TYPE"]; if ($property_fields["USER_TYPE"] != "") { _ShowUserPropertyField($name, $property_fields, $values, $bInitDef, $bVarsFromForm, $max_file_size_show, $form_name, $bCopy); } elseif ($type == "L") { //list property _ShowListPropertyField($name, $property_fields, $values, $bInitDef); } elseif ($type == "F") { //file property _ShowFilePropertyField($name, $property_fields, $values, $max_file_size_show, $bVarsFromForm); } elseif ($type == "G") { if (function_exists("_ShowGroupPropertyField_custom")) { _ShowGroupPropertyField_custom($name, $property_fields, $values, $bVarsFromForm); } else { _ShowGroupPropertyField($name, $property_fields, $values, $bVarsFromForm); } } elseif ($type == "E") { //element link _ShowElementPropertyField($name, $property_fields, $values, $bVarsFromForm); } else { _ShowStringPropertyField($name, $property_fields, $values, $bInitDef, $bVarsFromForm); } }
"></span><script>BX.hint_replace(BX('hint_<?php echo $prop_fields["ID"]; ?> '), '<?php echo CUtil::JSEscape($prop_fields["HINT"]); ?> ');</script> <?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;