Перед выполнением примера ознакомьтесь с рекомендациями к написанию кода.
Для создания компонента AboutBox:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AboutBox</title>
<script src="../build/PP.js" type="text/javascript"></script>
<script src="../build/PP.Metabase.js" type="text/javascript"></script>
<script src="../build/PP.App.js" type="text/javascript"></script>
<link href="../build/PP.css" rel="stylesheet" type="text/css" />
<link href="../build/PP.App.css" rel="stylesheet" type="text/css" />
<script src="../resources/App.resources.ru.js" type="text/javascript"></script>
<script type="text/javascript">
function createAboutBox() {
settings = {
CaptionIcon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA+klEQVR4nGP8//8/AwboWvi2c+EbTHEGBgYmklQzMDAw/EcFnQveCDneEHK80bHgDZoURBzFBrjZZfEi5fHCBJwEV10aJ4xLNUIDXHV+pFBFgghODzAwMP7//x+PL9/uU4ezhZ1uMjAwMBEIExiYt+kDwgasKiDmQWyYs+FD+aSXDAwMZfEiLATNnrj8XdPs1wywoEMK1jcfGbzqGZwqkVVPWIaimgElpiduYvjxi4GLHVlD8xwU1QwMDDAnHb3GcPQag7UWQ64vmpPQI/H/////v//8nzPt/5GrmAkBM4Ew/P////+Dl/+//sBMOZiqYRqwAayq////DwC9swIJSQ+GqgAAAABJRU5ErkJggg==",
ContactInfo: new PP.Application.ContactInfo({
MailAddress: "support@fsight.ru",
Site: "www.fsight.ru"
}),
LogoUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYQAAABrCAIAAAD4umJnAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAZeElEQVR4nO2df1Ab6XnHH6dNr+lJmzRt2kNSM3NNBiSmaS4pkpxeLh2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ATI8lr3Z2boGdBBQEgXWXV+i/sA5RQLpFSbw02FNdW3OMXSC6Cd8UJJegGGWXGM/39g2ws+kpE3QI4lqPg711lwKhGc/aGm4+Ht/o7D7HceW2tfXHvf2DrokrgeAdNrZCTFbrmtYMDi3mlaXYHMexRknDI2O9fQPEDKN3vWG8rXRfslWFR6pPzHjmw5Go1+c/Un2CjRMpePUUm4xsv+Zsf2pPIVg/NA5HoqzwRaLLrO8IogYwgJ1dZmbn2XtAq9EcPnRQeRd2gDM7txCJLlfYym4u+thbC4ht4aJ/oz42kmmy3r4BSYEj1bXyXdZev9geCIbI7gDgmrjCfjuCspEk8RqTb9fpCpTPTGtzAxk5GvQ6BUG3WsywKv1en3+/vWqvxRzj4+xybdKMIefoXqsrUR1IfsCeUU5Jxy6xymFnByyR6PKQc5QokcNeucVYLMdxcofIZGg1mjHnOVbvDHr9hZFhhbCXVqO5MDKcbEDksFcm3Fer0XR3tiufGYNeT9Y0KVstsgEmAIhEl10TV4gSyddnIqoCxShH6HQFY85zaXqrTrldkttGq9F0dbSdPXN6676jxSbjS3PTLY31yprisFfemJ+WN3iv1XzV7UpobOuwV151uxS6LcnMcq+6XRl0nb04MiRvHvGY3eVm9ion+46yO4s0jUapESgJTCTzBVW2ZiXhGJ6PWy1m9kDUaVZiZpusDcosBUJHa9ae1erqaJM/lZoQ6uMKACajMZml7fPHamksvKWxvrW5gXwFEqc3GY0JxUvB8FbSAPJa/mVjPL8UCJGzx5q+ku0gc3xF8g6KEZLdHNgJxQhB5OAwDUEQVYBihCCIKkAxQhBEFeA6IwTYmbstLvKWwy7F1sued0MQCgawEQRRBThMQxBEFaAYIQiiClCMEARRBShGCIKoAhQjBEFUAYoRgiCqAMUIQRBVgGKEIIgqQDFCEEQVoBghCKIKUIwQBFEFKEYIgqgCFCMEQVTB/wObH70mhYhWiQAAAABJRU5ErkJggg==",
ResourceKey: "AboutBox",
ServiceVersion: "Релиз 10.1.13.0",
Version: "10.1.13.0",
ComponentsVersion: [
{
Name: "Алгоритмы расчёта",
Version: "1.180.665"
}, {
Name: "Бизнес-процессы",
Version:"1.180.813"
}, {
Name: "Формы ввода",
Version:"1.180.664"
}
],
AnnouncementUrl: "http://localhost/fp_App_v10.x/app/announcement/announcement.html",
Copyright: "ООО ''ФОРСАЙТ'', 2018"
};
// Создадим компонент
about = new PP.Application.AboutBox(settings);
// Отобразим диалог «О программе»
about.show();
}
</script>
</head>
<body onload="createAboutBox()">
</body>
</html>
В результате выполнения примера на html-странице будет размещен компонент AboutBox в виде окна «О программе»:
См. также: