예제 #1
0
    $subTabControl->BeginNextTab();
    ?>
	<table width="75%" align="center">
<?php 
    $arDefValues = $site["LID"] == 'ex' ? $arDefaultValues['extranet'] : $arDefaultValues['default'];
    foreach ($arDefValues as $key => $value) {
        if ($key == "user_name_template") {
            ?>
		<tr>
			<td align ="right" valign="middle" width="50%"><?php 
            echo GetMessage("IM_OPTIONS_NAME_TEMPLATE");
            ?>
:</td>
			<td>
				<?php 
            $curVal = CIMContactList::GetUserNameTemplate($site["LID"]);
            ?>
				<select name="<?php 
            echo $key;
            ?>
_<?php 
            echo $site["LID"];
            ?>
">
					<?php 
            $arNameTemplates = CSite::GetNameTemplates();
            $arNameTemplates = array_reverse($arNameTemplates, true);
            //prepend array with default '' => Site Format value
            $arNameTemplates[""] = GetMessage("IM_OPTIONS_NAME_IN_SITE_FORMAT");
            $arNameTemplates = array_reverse($arNameTemplates, true);
            foreach ($arNameTemplates as $template => $phrase) {