.id
4777
.gutitle
spf_next_cat
.title
spf_next_cat
.file
.extension
.name
.user_id
7
.notes
Outputs a category of posts on behalf of a club steve usa member
.body
<var C = GLOBAL.Def.Style.color>

<ensure variable="get.function" value="">

<ensure variable="att.jstr_tbls" value="">

<if att.jstr_tbls NEQ "">
<var _jstr_tbls = att.jstr_tbls>
<else>
<var _jstr_tbls = "">
<loop from="1" to="#arrayLen(GLOBAL.Def.Cats)#" index="x">
<var Obj = GLOBAL.Def.Cats[x]>
<if listFindNoCase(GLOBAL.Def.Prefs.spfcats,Obj.tag,"|#CHR(10)#") GT 0>
<var _jstr_tbls = _jstr_tbls & "/" & Obj.tbl>
</if>
</loop>
</if>

<if _jstr_tbls EQ "">

<div style="line-height:1.32em;">

<p>
#escapeMarkup(GLOBAL.Def.Prefs.fname)# has not yet added this content. Please try again
later.
</p>

<p>
<if get.s1 NEQ "">
- <a href="http://#this_domain#/">Steve</a>
<else>
- <a href="http://fentriss.com/">Steve</a>
</if>
</p>
</div>

</if>



<var _can_update = 0>
<var _edit_mode = 0>
<ensure variable="get.s2" value=""><var get.s2 = gutitleFormat(get.s2)>
<var _idstr = "">
<if get.s2 NEQ "">
<var _idstr = "-#get.s2#">
</if>
<if listLen(_jstr_tbls,"/") EQ 1>
<var _jstr = _jstr_tbls & "@#so_dot_string#.thumbnail#_idstr#">
<else>
<var _jstr = _jstr_tbls & "@#so_dot_string##_idstr#">
</if>
<var J = jParse(_jstr)>
<set j="#_jstr#" orderby="#J.orb#.so_dateinserted DESC" maxrows="1">
<var _set = set>
<setcrawl>

<if client_id EQ 7 OR ( client_id GT 1 AND client_gutitle EQ so_dot_string AND set.tbl NEQ "video" )>
<var _can_update = 1>
<if get.function EQ "edit">
<var _edit_mode = 1>
</if>
</if>

<!--- publisher controls --->
<if _can_update EQ 1>
<loop from="1" to="#arrayLen(GLOBAL.Def.Cats)#" index="x">
<var Obj = GLOBAL.Def.Cats[x]>
<if Obj.tbl EQ set.tbl>
<var _Obj = Obj>
<break>
</if>
</loop>
<div style="margin-bottom:7px;">
<small><small><div style="border:1px solid #C.g4#; border-radius:7px; padding:7px;">
<div style="float:right;" id="hide:#set.tbl#-#set.id#">
<if _edit_mode EQ 1>
<a href="http://#this_domain#/#get.s1#/#get.s2#">View This</a>
<else>
<a href="http://#this_domain#/#get.s1#/#get.s2#?&function=edit"><tag.fico i="pencil" linkback="off" style="height:0.88em;"></a>
<a href="http://#this_domain#/#get.s1#/#get.s2#?&function=edit">Edit This</a>
</if>
|
<a href="##" class="delete_link" id="delete:#set.tbl#-#set.id#">Delete This</a>
<a href="##" class="delete_link" id="delete:#set.tbl#-#set.id#"><tag.fico i="cross" linkback="off" style="height:0.88em;"></a>
</div>
<a href="http://fentriss.com/club/myblog">#escapeMarkup(GLOBAL.Def.Prefs.fname)# Fentriss</a>
<if isDefined("_Obj")>
|
<a href="http://#this_domain#/new/#_Obj.tag#">New #_Obj.singular#</a>
<a href="http://#this_domain#/new/#_Obj.tag#"><tag.fico i="plus" linkback="off" style="height:0.88em;"></a>
<else>
|
<a href="http://#this_domain#/new">New...</a>
</if>
</div></small></small>
</div>
<if _edit_mode EQ 1>
<div style="padding:7px; margin-bottom:11px;">
<div style="float:right;">
(<a href="http://#this_domain#/#get.s1#/#get.s2#">Finished</a>)
</div>
<tag.fico i="pencil" linkback="off" style="height:0.88em;">
<b>Edit Mode:</b>
Click on an area to make changes.
</div>
</if>
</if>

<DIV id="#set.tbl#-#set.id#">

<div style="padding:7px; min-height:2.4em;">
<small><small><div style="float:right; padding-top:1px; line-height:1.32em; color:#C.g3#;" align="right">
Published #dateFormat(set.so_dateinserted,"full")#
<br>#timeAgo(set.so_dateinserted)#
</div></small></small>
<small><div style="line-height:1.32em; margin-right:40%;">
<if _edit_mode EQ 1>
<!--- title --->
<div>
<tag.jfield j="/#set.tbl#-#set.id#.title" v="#set.title#"
update="#_can_update#"
label="Post Title">
</div>
<!--- notes --->
<div>
<tag.jfield j="/#set.tbl#-#set.id#.notes" v="#set.notes#"
update="#_can_update#"
label="Notes"
style="min-height:2.1em;">
</div>
<else>
<h4 style="margin:0px;">#escapeMarkup(set.title)#</h4>
<small><div>#escapeMarkup(set.notes)#</div></small>
</if>
</div></small>
</div>

<var _container_style = "padding:11px; border-radius:7px; background:#C.g1#; color:#C.back#;">
<if _edit_mode EQ 1>
<var _container_style = "padding:11px; border-radius:7px; background:#C.back#; color:#C.text#; border:2px dashed #C.text#;">
<elseif set.tbl EQ "blogpost">
<var _container_style = "padding:11px; border-radius:7px; background:#C.g6#; color:#C.text#;">
</if>

<div>

<if set.tbl EQ "video">
<div align="center" id="home_page_video_container">
<div align="center" style="#_container_style#">
<!--- video --->
<var _pw = 320>
<var _href = "http://#this_domain#/file:/steveclip-#set.gutitle#.a.flv">
<div style="width:#_pw#px;">
<div id="media_player_video" style="display:block; width:#_pw#px; height:#round(_pw*0.75)#px; background:##202020;" href="#_href#" title="Fentriss.com welcome video">
<img src="http://#this_domain#/file:#set.thumbnail#?&x=1" alt="#escapeDoubleQuotes(escapeMarkup(set.title))#" style="cursor:pointer;">
</div>
</div>
</div>
</div>
<elseif set.tbl EQ "picture">
<div align="center">
<div align="center" style="#_container_style#">
<if _edit_mode EQ 1>
<div style="height:240px;">
<!--- file --->
<tag.jfield j="/#set.tbl#-#set.id#.file" v=""
update="#_can_update#"
picwidth="320" max_height="240"
label="Picture or Video File"
so_lastupdated="#set.so_lastupdated#"
style="height:240px;"
f2="image-707">
</div>
<else>
<!--- post --->
<if listFindNoCase("jpg,png,gif",set.extension) GT 0>
<div>
<a href="http://#this_domain#/file:/#set.tbl#-#set.id#"><img src="http://#this_domain#/file:/#set.tbl#-#set.id#?&picwidth=320" border="0" style="max-height:240px;"></a>
</div>
<div>&nbsp;</div>
<else>
<div>
<a href="http://#this_domain#/file:/image-spf_usa_flag"><img src="http://#this_domain#/file:/image-spf_usa_flag?&picwidth=320" border="0" style="max-height:240px;"></a>
</div>
<div>&nbsp;</div>
</if>
</if>
</div>
</div>
<else>
<div align="center">
<div align="left" style="#_container_style# height:240px; overflow:auto; overflow-x:hidden;">
<if _edit_mode EQ 1>
<div style="height:108px;">
<!--- file --->
<tag.jfield j="/#set.tbl#-#set.id#.file" v=""
update="#_can_update#"
picwidth="84" max_height="100"
label="Picture or Video File"
so_lastupdated="#set.so_lastupdated#"
style="height:108px;">
</div>
<div style="height:132px;">
<!--- text --->
<tag.jfield j="/#set.tbl#-#set.id#.body" v="#set.body#"
update="#_can_update#"
label="Post Body"
style="min-height:5em;">
</div>
<else>
<!--- post --->
<if listFindNoCase("jpg,png,gif",set.extension) GT 0>
<div>
<a href="http://#this_domain#/file:/#set.tbl#-#set.id#"><img src="http://#this_domain#/file:/#set.tbl#-#set.id#?&picwidth=140" border="0" style="max-height:200px;"></a>
</div>
<div>&nbsp;</div>
</if>
<div style="line-height:1.32em;">
#escapeMarkup(set.body,1)#
</div>
</if>
</div>
</div>
</if>

<div>&nbsp;</div>
<div style="border-top:1px solid #C.g4#;">&nbsp;</div>

</div>

</DIV>
</setcrawl>
<setempty>
<!--- publisher controls --->
<if client_id GT 1 AND client_gutitle EQ so_dot_string>
<loop from="1" to="#arrayLen(GLOBAL.Def.Cats)#" index="x">
<var Obj = GLOBAL.Def.Cats[x]>
<if Obj.tag EQ get.s1>
<var _Obj = Obj>
<break>
</if>
</loop>
<div style="margin-bottom:7px;">
<small><small><div style="border:1px solid #C.g4#; border-radius:7px; padding:7px;">
<a href="http://fentriss.com/club/myblog">#escapeMarkup(GLOBAL.Def.Prefs.fname)# Fentriss</a>
<if isDefined("_Obj")>
|
<a href="http://#this_domain#/new/#_Obj.tag#">New #_Obj.singular#</a>
<else>
|
<a href="http://#this_domain#/new">New...</a>
</if>
</div></small></small>
</div>
</if>
<div style="line-height:1.32em;">
<p>
#escapeMarkup(GLOBAL.Def.Prefs.fname)# has not yet added this content. Please try again
later.
</p>
<p>
<if get.s1 NEQ "">
- <a href="http://#this_domain#/">Steve</a>
<else>
- <a href="http://fentriss.com/">Steve</a>
</if>
</p>
</div>
</setempty>
</set>


<if get.s1 EQ "">
<tag.spf_grid pw="90" j="#_jstr_tbls#@#so_dot_string#" current_id="#_set.id#" slash="home">
<else>
<tag.spf_grid pw="90" j="#_jstr_tbls#@#so_dot_string#" current_id="#_set.id#" slash="#get.s1#">
</if>


<div style="clear:both;">&nbsp;</div>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0