@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb012 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
addons
/
Commercial.pack
/
tmpl
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/addons/Commercial.pack/tmpl/asset-chooser.tmpl
<mt:if name="simple"> <div class="field-content "> <input type="file" name="file_<mt:var name="field_name">" id="entry-file" class="fi" /> <input type="hidden" name="type_<mt:var name="field_name">" value="<mt:var name="asset_type">" /> </div> <mt:else> <mt:unless name="asset_chooser_js"> <script type="text/javascript"> <!-- function insertCustomFieldAsset(html, id) { getByID(id).value = html; try { /* remove the form enclosure from the preview */ var enc = document.createElement( "div" ); enc.innerHTML = html; var form = enc.getElementsByTagName( "form" )[ 0 ]; getByID(id + '_preview').innerHTML = form.innerHTML; } catch(e) { log.error(e); }; var remove_button = getByID(id + '_remove_asset'); if (remove_button && html) { TC.removeClassName(getByID(id + '_remove_asset'), 'hidden'); } else if (remove_button) { TC.addClassName(getByID(id + '_remove_asset'), 'hidden'); } } //--> </script> <mt:setvar name="asset_chooser_js" value="1"> </mt:unless> <input name="<mt:var name="field_name">" id="<mt:var name="field_id">" class="hidden" value="<mt:var name="value" escape="html">" /> <div id="<mt:var name="field_id">_preview" class="customfield_preview"> <mt:var name="value"> </div> <div class="actions-bar" style="clear: none;"> <div class="actions-bar-inner pkg actions"> <button type="submit" onclick="return openDialog(this.form, 'list_assets', '_type=asset&blog_id=<mt:var name="blog_id">&dialog_view=1&filter=class&filter_val=<mt:var name="asset_type">&<mt:if name="asset_type" ne="asset">require_type=<mt:var name="asset_type">&</mt:if>edit_field=<mt:var name="field_id">&asset_select=1')" ><__trans phrase="Choose [_1]" params="<mt:var name="asset_type_label">"></button> <mt:if var="required"><mt:else> <button id="<mt:var name="field_id" escape="html">_remove_asset" <mt:if var="value"><mt:else>class="hidden"</mt:if> type="submit" onclick="insertCustomFieldAsset('', '<mt:var name="field_id" escape="JS">'); return false;" ><__trans phrase="Remove [_1]" params="<mt:var name="asset_type">"></button> </mt:if> </div> </div> </mt:if>