Log In
Joelie
Help
.id
4083
.gutitle
prepfuture_new_activityprofile
.title
prepfuture_new_activityprofile
.file
.extension
.name
|/routinetype-subutility|
.user_id
7
.notes
.body
<var C = GLOBAL.Def.Style.color>
<var _cidstr = client_id>
<if trim(client_gutitle) NEQ "">
<var _cidstr = client_gutitle>
</if>
<set j="/activity.titlehash@fentriss" orderby="activity.title ASC">
<var Act = set>
</set>
<var _all_hashes = "x">
<loop query="Act">
<var _all_hashes = _all_hashes & "," & Act.titlehash>
</loop>
<tag.i
q='/activityprofile@#client_id#'
t='get.query'
p='{
"maxrows": 100
}'
i=''>
<var Ap = return>
<var _didit_hashes = "x">
<loop query="Ap">
<var _didit_hashes = _didit_hashes & "," & hash(lcase(Ap.title))>
</loop>
<if isDefined("get.create_title") AND get.create_title NEQ "">
<var _h = hash(lcase(get.create_title))>
<if listFindNoCase(_all_hashes,_h) GT 0>
<if listFindNoCase(_didit_hashes,_h) GT 0>
<!--- already did it! go to profile. --->
<goto url="http://#this_domain#/#_cidstr#">
<BREAK>
<else>
<!--- create, goto. --->
<insert orb="activityprofile"
title="#get.create_title#"
user_key_id="5">
<if return NEQ "pants">
<var _idnum = return>
<goto url="http://#this_domain#/j:/activityprofile-#_idnum#">
<BREAK>
</if>
</if>
</if>
</if>
<style type="text/css">
.newbtn { float:left; margin:1%; padding:1%; border:1px solid #C.g5#; width:28%; height:3em; text-decoration:none; }
.newbtn_used { opacity:0.5; filter:alpha(opacity=50); }
a.newbtn { background:#C.back#; text-decoration:none; }
a.newbtn:normal { background:#C.back#; }
a.newbtn:hover { background:#C.back_accent#; }
</style>
<div align="center" style="padding:1em;">
<div align="left" class="noverflow" style="width:640px; font-size:0.86em;">
<h3>Add a New Activity on PrepFuture</h3>
<loop query="Act">
<if listFindNoCase(_didit_hashes,Act.titlehash) GT 0>
<!--- you already have it --->
<div title="You have already added this activity" class="newbtn newbtn_used">
<div style="float:right; width:16px;">
<tag.fico i="tick" linkback="off" style="width:16px; height:16px;">
</div>
<div style="float:left; width:16px;">
<img src="http://#this_domain#/file:/activity-#Act.id#?&f2=image-558&picwidth=16" border="0">
</div>
<div style="margin-left:20px; margin-right:20px;">
<h4>#escapeMarkup(Act.title)#</h4>
<p>
#escapeMarkup(Act.notes)#
</p>
</div>
</div>
<else>
<!--- yay --->
<a title="#escapeDoubleQuotes(escapeMarkup(Act.notes))#" href="http://#this_domain#/new/activityprofile?&create_title=#urlEncodedFormat(Act.title)#" class="newbtn" style="position:relative;">
<div style="float:right; width:32px;">
<img src="http://#this_domain#/file:/icon-simplistica_add?&picwidth=32" border="0">
</div>
<div style="float:left; width:16px;">
<img src="http://#this_domain#/file:/activity-#Act.id#?&f2=image-558&picwidth=16" border="0">
</div>
<div style="margin-left:20px; margin-right:40px;">
<h4>#escapeMarkup(Act.title)#</h4>
</div>
</a>
</if>
</loop>
</div>
</div>
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0