[spoiler]
<span class="psevdoFile">
<input id="psevdoFileValue_<?=$i?>" class="inputFileText" type="text" value="Прикрепить файл"/>
<input class="fileInput" type="file" onchange="document.getElementById('psevdoFileValue_<?=$i?>').value = this.value.replace( 'C:\\fakepath\\', '' )" size="<?=$arResult["PROPERTY_LIST_FULL"][$propertyID]["COL_COUNT"]?>" name="PROPERTY_FILE_<?=$propertyID?>_<?=$arResult["ELEMENT_PROPERTIES"][$propertyID][$i]["VALUE_ID"] ? $arResult["ELEMENT_PROPERTIES"][$propertyID][$i]["VALUE_ID"] : $i?>" />
</span>
<style>
.psevdoFile {
overflow:hidden;
background: url(img/inputFileBtn.gif) right top no-repeat;
position: relative;
display: inline-block;
}
.fileInput {
position: absolute;
top: 0;
right: 0;
font-size:199px;
opacity:0;
filter:alpha(opacity:0);
}
.inputFileText {
border: 1px solid #dadada;
height: 26px;
line-height: 26px;
float: left;
width: 182px;
padding: 0 3px;
margin: 0 54px 0 0;
}
</style>
|