Пример #1
0
Файл: list.php Проект: ASDAFF/mp
    </tr>
    <tr>
        <td><?php 
echo GetMessage("ws.saleuserprofiles_filter_user_id") . ":";
?>
</td>
        <td>
            <input type="text" id="find_user_id" name="find_user_id" size="41" value="<?echo htmlspecialchars($find_user_id)?>">
            <input class="tablebodybutton" type="button" name="FindUser" id="FindUser" onclick="window.open('/bitrix/admin/user_search.php?lang=ru&amp;FN=find_form&amp;FC=find_user_id', '', 'scrollbars=yes,resizable=yes,width=760,height=500,top='+Math.floor((screen.height - 560)/2-14)+',left='+Math.floor((screen.width - 760)/2-5));" value="...">
        </td>
    </tr>
    <tr>
        <td><?php 
echo GetMessage("ws.saleuserprofiles_filter_person_type_id") . ":";
?>
</td>
        <td><?php 
echo WS_SaleUserProfilesManager::SelectBoxPersonTypes($find_person_type_id, "find_person_type_id", 'style="width: 100%;"');
?>
</td>
    </tr>
    <?
    $oFilter->Buttons(array("table_id"=>$sTableID,"url"=>$APPLICATION->GetCurPage(),"form"=>"find_form"));
    $oFilter->End();
    ?>
</form>
<?
// выведем таблицу списка элементов
$lAdmin->DisplayList();
?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
Пример #2
0
Файл: edit.php Проект: ASDAFF/mp
                        </select>
                        <?
                        break;
                    case "TEXTAREA":
                        ?>
                        <textarea name="FIELDS[PROPS][<?php 
echo $arProp["ID"];
?>
]"><?php 
echo $arProp["VALUE"];
?>
</textarea>
                        <?
                        break;
                    case "LOCATION":
                        echo WS_SaleUserProfilesManager::SelectBoxLocations(LANGUAGE_ID, "FIELDS[PROPS][".$arProp["ID"]."]", $arProp['VALUE']);
                        break;
                    case "RADIO":
                        foreach($arProp["variants"] as $variant){
                            ?><input type="radio" name="FIELDS[PROPS][<?php 
echo $arProp["ID"];
?>
]" value="<?php 
echo $variant['VALUE'];
?>
" <?php 
echo $variant['VALUE'] === $arProp["VALUE"] ? " checked" : "";
?>
><?php 
echo htmlspecialchars($variant["NAME"]);
?>