Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1374898
image_blocks.tpl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 1, 5:11 AM
Size
7 KB
Mime Type
text/html
Expires
Tue, Feb 3, 5:11 AM (1 d, 3 h)
Engine
blob
Format
Raw Data
Handle
884102
Attached To
rINP In-Portal
image_blocks.tpl
View Options
<
inp2:m_DefineElement
name
=
"image_block"
>
<
img
src
=
"<inp2:m_param name="
img_path
"
/>
"
<
inp2:m_param
name
=
"img_size"
/>
border="0" />
<
br
/>
</
inp2:m_DefineElement
>
<
inp2:m_DefineElement
name
=
"thumbnail_section"
prefix
=
""
>
<
tr
class
=
"<inp2:m_odd_even odd="
table-color1
"
even
=
"table-color2"
/>
">
<
td
class
=
"text"
>
<
inp2:m_phrase
label
=
"la_fld_Location"
/><
br
>
<
span
class
=
"error"
><
inp2:
$
prefix_Error
field
=
"ThumbPath"
/><
inp2:
$
prefix_Error
field
=
"ThumbUrl"
/></
span
>
</
td
>
<
td
>
<
table
border
=
"0"
>
<
tr
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"radio"
<
inp2:m_if
check
=
"{
$
prefix}_FieldEquals"
field
=
"LocalThumb"
value
=
"1"
>
checked
</
inp2:m_if
>
name="
<
inp2:
$
prefix_InputName
field
=
"LocalThumb"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"LocalThumb"
/>
_1" value="1">
</
td
>
<
td
>
<
inp2:m_phrase
label
=
"la_fld_Upload"
/>
:
</
td
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"file"
name
=
"<inp2:
$
prefix_InputName field="
ThumbPath
"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"ThumbPath"
/>
" tabindex="
<
inp2:m_get
param
=
"tab_index"
/>
" size="
<
inp2:m_param
name
=
"size"
/>
" class="
<
inp2:m_param
name
=
"class"
/>
" onclick="document.getElementById('
<
inp2:m_param
name
=
"prefix"
/>
[
<
inp2:
$
prefix_Field
field
=
"ImageId"
/>
][LocalThumb]_1').checked = true">
<
input
type
=
"hidden"
name
=
"<inp2:
$
prefix_InputName field="
ThumbPath
"
/>
[upload]" id="
<
inp2:
$
prefix_InputName
field
=
"ThumbPath"
/>
[upload]" value="
<
inp2:
$
prefix_Field
field
=
"ThumbPath"
/>
">
</
td
>
</
tr
>
<
tr
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"radio"
<
inp2:m_if
check
=
"{
$
prefix}_FieldEquals"
field
=
"LocalThumb"
value
=
"0"
>
checked
</
inp2:m_if
>
name="
<
inp2:
$
prefix_InputName
field
=
"LocalThumb"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"LocalThumb"
/>
_0" value="0">
</
td
>
<
td
>
<
inp2:m_phrase
label
=
"la_fld_RemoteUrl"
/>
:
</
td
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"text"
name
=
"<inp2:
$
prefix_InputName field="
ThumbUrl
"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"ThumbUrl"
/>
" value="
<
inp2:
$
prefix_Field
field
=
"ThumbUrl"
/>
" tabindex="
<
inp2:m_get
param
=
"tab_index"
/>
" size="
<
inp2:m_param
name
=
"size"
/>
" class="
<
inp2:m_param
name
=
"class"
/>
" onclick="document.getElementById('
<
inp2:m_param
name
=
"prefix"
/>
[
<
inp2:
$
prefix_Field
field
=
"ImageId"
/>
][LocalThumb]_0').checked = true">
</
td
>
</
tr
>
</
table
>
</
td
>
<
td
>
<
inp2:
$
prefix_Image
block
=
"image_block"
Thumbnail
=
"1"
DefaultImage
=
"../../kernel/images/noimage.gif"
/>
</
td
>
</
tr
>
</
inp2:m_DefineElement
>
<
inp2:m_DefineElement
name
=
"fullsize_section"
prefix
=
""
>
<
tr
class
=
"<inp2:m_odd_even odd="
table-color1
"
even
=
"table-color2"
/>
">
<
td
class
=
"text"
>
<
inp2:m_phrase
label
=
"la_fld_Location"
/><
br
>
<
span
class
=
"error"
><
inp2:
$
prefix_Error
field
=
"LocalPath"
/><
inp2:
$
prefix_Error
field
=
"Url"
/></
span
>
</
td
>
<
td
>
<
table
border
=
"0"
>
<
tr
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"radio"
<
inp2:m_if
check
=
"{
$
prefix}_FieldEquals"
field
=
"LocalImage"
value
=
"1"
>
checked
</
inp2:m_if
>
name="
<
inp2:
$
prefix_InputName
field
=
"LocalImage"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"LocalImage"
/>
_1" value="1">
</
td
>
<
td
>
<
inp2:m_phrase
label
=
"la_fld_Upload"
/>
:
</
td
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"file"
name
=
"<inp2:
$
prefix_InputName field="
LocalPath
"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"LocalPath"
/>
" tabindex="
<
inp2:m_get
param
=
"tab_index"
/>
" size="
<
inp2:m_param
name
=
"size"
/>
" class="
<
inp2:m_param
name
=
"class"
/>
" onclick="document.getElementById('
<
inp2:m_param
name
=
"prefix"
/>
[
<
inp2:
$
prefix_field
field
=
"ImageId"
/>
][LocalImage]_1').checked = true">
<
input
type
=
"hidden"
name
=
"<inp2:
$
prefix_InputName field="
LocalPath
"
/>
[upload]" id="
<
inp2:
$
prefix_InputName
field
=
"LocalPath"
/>
[upload]" value="
<
inp2:
$
prefix_Field
field
=
"LocalPath"
/>
">
</
td
>
</
tr
>
<
tr
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"radio"
<
inp2:m_if
check
=
"{
$
prefix}_FieldEquals"
field
=
"LocalImage"
value
=
"0"
>
checked
</
inp2:m_if
>
name="
<
inp2:
$
prefix_InputName
field
=
"LocalImage"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"LocalImage"
/>
_0" value="0">
</
td
>
<
td
>
<
inp2:m_phrase
label
=
"la_fld_RemoteUrl"
/>
:
</
td
>
<
td
>
<
inp2:m_inc
param
=
"tab_index"
by
=
"1"
/>
<
input
type
=
"text"
name
=
"<inp2:
$
prefix_InputName field="
Url
"
/>
" id="
<
inp2:
$
prefix_InputName
field
=
"Url"
/>
" value="
<
inp2:
$
prefix_Field
field
=
"Url"
/>
" tabindex="
<
inp2:m_get
param
=
"tab_index"
/>
" size="
<
inp2:m_param
name
=
"size"
/>
" class="
<
inp2:m_param
name
=
"class"
/>
" onclick="document.getElementById('
<
inp2:m_param
name
=
"prefix"
/>
[
<
inp2:
$
prefix_Field
field
=
"ImageId"
/>
][LocalImage]_0').checked = true">
</
td
>
</
tr
>
</
table
>
</
td
>
<
td
>
<
inp2:
$
prefix_Image
block
=
"image_block"
DefaultImage
=
"../../kernel/images/noimage.gif"
/>
</
td
>
</
tr
>
</
inp2:m_DefineElement
>
<
inp2:m_DefineElement
name
=
"images_edit_js"
>
function FieldID(
$
fi
eld_name) {
var
$
fi
eld_mask = '
<
inp2:
$
prefix_InputName
field
=
"#FIELD#"
/>
';
return
$
fi
eld_mask.replace('#FIELD#',
$
fi
eld_name);
}
function toggle_fullsize() {
if (document.getElementById('_cb_' + FieldID('SameImages')).checked) {
document.getElementById(FieldID('LocalImage') + '_0').disabled = true;
document.getElementById(FieldID('LocalImage') + '_1').disabled = true;
document.getElementById(FieldID('LocalPath')).disabled = true;
document.getElementById(FieldID('Url')).disabled = true;
}
else {
document.getElementById(FieldID('LocalImage') + '_0').disabled = false;
document.getElementById(FieldID('LocalImage') + '_1').disabled = false;
document.getElementById(FieldID('LocalPath')).disabled = false;
document.getElementById(FieldID('Url')).disabled = false;
}
}
if (document.getElementById('_cb_' + FieldID('DefaultImg')).checked) {
document.getElementById('_cb_' + FieldID('DefaultImg')).disabled = true;
document.getElementById('_cb_' + FieldID('Enabled')).disabled = true;
}
function check_status() {
if (document.getElementById('_cb_' + FieldID('DefaultImg')).checked) {
document.getElementById('_cb_' + FieldID('Enabled')).checked = true;
document.getElementById(FieldID('Enabled')).value = 1;
}
}
function check_primary() {
if (!document.getElementById('_cb_' + FieldID('Enabled')).checked) {
document.getElementById('_cb_' + FieldID('DefaultImg')).checked = false;
document.getElementById(FieldID('DefaultImg')).value = 0;
}
}
</
inp2:m_DefineElement
>
<
inp2:m_block
name
=
"image_caption_td"
/>
<
td
valign
=
"top"
class
=
"text"
>
<
input
type
=
"checkbox"
name
=
"<inp2:
$
PrefixSpecial_InputName field="
$
IdField
"
IdField
=
"
$
IdField"
/>
" id="
<
inp2:
$
PrefixSpecial_InputName
field
=
"
$
IdField"
IdField
=
"
$
IdField"
/>
">
<
img
src
=
"<inp2:ModulePath module="
In-Portal
"
/>
img/itemicons/
<
inp2:
$
PrefixSpecial_ItemIcon
grid
=
"
$
grid"
/>
">
<
inp2:Field
field
=
"
$
fi
eld"
grid
=
"
$
grid"
/><
span
class
=
"priority"
><
inp2:m_if
prefix
=
"
$
PrefixSpecial"
function
=
"fieldequals"
field
=
"Priority"
value
=
"0"
/><
inp2:m_else
/><
sup
><
inp2:
$
PrefixSpecial_field
field
=
"Priority"
/></
sup
><
inp2:m_endif
/></
span
>
</
td
>
<
inp2:m_blockend
/>
<
inp2:m_block
name
=
"image_preview_td"
/>
<
td
>
<
inp2:Image
block
=
"image_block"
Thumbnail
=
"1"
DefaultImage
=
"../../kernel/images/noimage.gif"
MaxWidth
=
"120"
MaxHeight
=
"120"
/>
</
td
>
<
inp2:m_blockend
/>
<
inp2:m_block
name
=
"image_url_td"
/>
<
td
valign
=
"top"
class
=
"text"
>
<
inp2:img_ImageUrl
local_phrase
=
"!la_LocalImage!"
/>
</
td
>
<
inp2:m_blockend
/>
Event Timeline
Log In to Comment