Files
progcode/web/public/visuals/v2/bitrix-file-input.svg

1 line
5.4 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="640" height="1100" viewBox="0 0 640 1100" role="img" aria-labelledby="title desc"><title id="title">Схема работы FileInput</title><desc id="desc">Выбранное изображение доступно для редактирования при edit=true. Контрол выводит и передаёт значение поля picture, а серверный обработчик отдельно проверяет и сохраняет файл. Это схема, а не снимок интерфейса.</desc><defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0 0 8 4 0 8" fill="none" stroke="#b64d26" stroke-width="1.6"/></marker><pattern id="hatch" width="9" height="9" patternUnits="userSpaceOnUse"><path d="M-2 2 2-2 M0 9 9 0 M7 11 11 7" stroke="#d8d0c0" stroke-width="2"/></pattern></defs><rect width="640" height="1100" rx="4" fill="#fbf8f1"/><g font-family="Arial,Helvetica,sans-serif" fill="#242824"><text x="32" y="44" font-size="20" font-weight="bold" fill="#b64d26" text-anchor="start" font-family="monospace">08 / BITRIX</text><text x="32" y="87" font-size="33" font-weight="bold" fill="#242824" text-anchor="start">Схема работы FileInput</text><text x="32" y="122" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">Показать контрол ≠ сохранить файл.</text><path d="M32 148 H608" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><rect x="32" y="176" width="576" height="184" rx="10" fill="white" stroke="#d8d0c0" stroke-width="2"/><text x="54" y="214" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">1. Выбрать изображение</text><path d="M62 238 H140 L166 264 V334 H62 Z" fill="#efe9dd" stroke="#242824" stroke-width="2"/><path d="M140 238 V264 H166" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><circle cx="87" cy="278" r="8" fill="#b64d26" stroke="#b64d26" stroke-width="2"/><path d="M70 323 l29-27 17 15 18-17 25 29" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="202" y="263" font-size="25" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">allowUpload =&gt; &#x27;I&#x27;</text><text x="202" y="300" font-size="25" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">upload =&gt; true</text><text x="202" y="337" font-size="25" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">maxCount =&gt; 1</text><path d="M320 362 V403" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><rect x="32" y="425" width="576" height="199" rx="10" fill="#efe9dd" stroke="#242824" stroke-width="2"/><text x="54" y="464" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">2. Редактировать изображение</text><text x="54" y="504" font-size="27" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">edit =&gt; true</text><path d="M75 532 V575 H122 M65 544 H109 V585" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="145" y="566" font-size="24" font-weight="normal" fill="#242824" text-anchor="start">кадрирование</text><path d="M418 570 a24 24 0 1 1 37-23" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M455 531 V547 H439" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="477" y="566" font-size="24" font-weight="normal" fill="#242824" text-anchor="start">поворот</text><text x="54" y="608" font-size="23" font-weight="normal" fill="#676961" text-anchor="start">Набор инструментов зависит от версии.</text><path d="M320 626 V666" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><rect x="32" y="688" width="576" height="109" rx="10" fill="white" stroke="#d8d0c0" stroke-width="2"/><text x="54" y="728" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">3. Значение поля формы</text><text x="54" y="770" font-size="27" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">name =&gt; &#x27;picture&#x27;</text><path d="M320 799 V854" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><text x="347" y="837" font-size="23" font-weight="normal" fill="#676961" text-anchor="start">отправка формы</text><rect x="32" y="879" width="576" height="130" rx="10" fill="#242824" stroke="#242824" stroke-width="2"/><text x="54" y="919" font-size="27" font-weight="bold" fill="#fbf8f1" text-anchor="start">Серверный обработчик</text><text x="54" y="958" font-size="25" font-weight="normal" fill="#d8d0c0" text-anchor="start">Проверить вход → сохранить файл</text><text x="54" y="992" font-size="23" font-weight="normal" fill="#d8d0c0" text-anchor="start">Контрол не заменяет проверку прав.</text><text x="32" y="1064" font-size="23" font-weight="normal" fill="#676961" text-anchor="start">show($id) возвращает HTML + JavaScript контрола.</text></g></svg>