.id
4259
.gutitle
x_smp_new_spot
.title
x_smp_new_spot
.file
.extension
.name
|/routinetype-page|
.user_id
7
.notes
.body
<fake_person>
<goto url="http://#this_domain#/">
<break>
</fake_person>


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


<if get.s2 EQ "go">

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

<if isNumeric(get.s3) AND get.s3 GT 1>

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

<set j="/spot-#get.s3#.userid_unsignedint">
<setcrawl>
<if get.s4 EQ "add_to_my_profile" AND ( set.user_id EQ client_id OR set.userid_unsignedint EQ client_id )>
<!--- one spot at a time --->
<update orb="user" where="user.id = #client_id#"
spots="|#set.id#|">
<h3>Spot Added to Profile</h3>
<p>
<tag.fico i="tick" linkback="off" style="height:0.88em;">
The <b>#escapeMarkup(set.title)#</b> has been added to your profile.
Thanks for creating this spot!
</p>
<tag.smp_pagebtn val="Go to Profile" slash="#client_id#">
<else>
<h3>Small Spot Added</h3>
<p>
<tag.fico i="tick" linkback="off" style="height:0.88em;">
A spot called <b>#escapeMarkup(set.title)#</b> has been added.
</p>
<p>
SmallerPage will review this spot and add it to the list of small spots.
</p>
<p>
You can add this spot to your profile now, even though the spot
has not been reviewed.
</p>
<p align="left">
<a href="http://#this_domain#/">Back to SmallerPage</a>
</p>
<tag.smp_pagebtn val="Yes, Add to My Profile" slash="#get.s1#/#get.s2#/#get.s3#/add_to_my_profile">
</if>
</setcrawl>
<setempty>
<h3>Whoops.</h3>
<p>
<tag.fico i="exclamation" linkback="off" style="height:0.88em;">
It looks like an error occurred when adding this spot.
</p>
<tag.smp_pagebtn val="Back to SmallerPage" slash="home">
</setempty>
</set>

<else>

<var _spot_post_status = 0>

<if isDefined("POST.yes_add_spot") AND POST.yes_add_spot EQ 1>
<var _spot_post_status = 2>
<if POST.title NEQ "" AND POST.location NEQ "">
<insert orb="spot" giveto_unsignedint="1294" published_unsignedint="0"
title="#POST.title#"
notes="#POST.notes#"
location="#POST.location#"
userid_unsignedint="#client_id#">
<if isNumeric(return) AND return GT 1>
<var _spot_post_status = 1>
<var _idnum = return>
<!--- email admin first --->
<email from="aRobot@smallerpage.com" to="spadmin@smallerpage.com" cc="steve@fentriss.com" subject="Small Spot Added to SmallerPage">Dear Admin,

It looks like #escapeMarkup(client_name)# added a small spot on SmallerPage.

Admin Link: http://smallerpage.com/spbusinessworksheet

-- THE SPOT --
TITLE: #escapeMarkup(POST.title)#
LOCATION: #escapeMarkup(POST.location)#
NOTES: #escapeMarkup(POST.notes)#

-- THE USER --
NAME: #escapeMarkup(client_name)#
PROFILE: http://smallerpage.com/#client_id#
JOELIE: http://joelie.org/j:/user-#client_id#

-- CGI DETAILS --
#SerializeJSON(cgi)#




- SmallerPage Email Robot



--</email>
<if randRange(1,2) NEQ "pants">
<goto url="http://#this_domain#/#get.s1#/#get.s2#/#_idnum#">
</if>
<BREAK>
</if>
</if>
</if>

<postform>
<h3>Add a Small Spot</h3>

<div style="margin-left:1em;">

<div>
<b>Name of Spot:</b>
<div style="padding:3px;">
<input type="text" name="title" value="<if isDefined("POST.title")>#trim(escapeDoubleQuotes(escapeMarkup(POST.title)))#</if>">
<if _spot_post_status EQ 2 AND trim(POST.title) EQ "">
<div style="padding:3px; color:red;"><small>
Please choose a name for this spot.
</small></div>
</if>
</div>
</div>
<div>&nbsp;</div>

<div>
<b>Location of Spot:</b>
<div style="padding:3px;">
<textarea name="location" style="width:78%; height:5em; font-family:inherit; font-size:0.88em;"><if isDefined("POST.location")>#trim(escapeMarkup(POST.location))#</if></textarea>
<if _spot_post_status EQ 2 AND trim(POST.notes) EQ "">
<div style="padding:3px; color:red;"><small>
Please enter the location of this spot.
</small></div>
</if>
</div>
</div>
<div>&nbsp;</div>

<div>
<b>Notes:</b> &nbsp;(optional)
<div style="padding:3px;">
<textarea name="notes" style="width:78%; height:3em; font-family:inherit; font-size:0.88em;"><if isDefined("POST.notes")>#trim(escapeMarkup(POST.notes))#</if></textarea>
</div>
</div>
<div>&nbsp;</div>

<div class="pagebtn" align="center">
<input type="submit" value="Add This Spot" style="cursor:pointer;" class="button">
</div>
<div>&nbsp;</div>

</div>

<input type="hidden" style="display:none;" name="yes_add_spot" value="1">
</postform>

</if>

<else>

<h3>Add a Small Spot</h3>

<p>
Everyone on SmallerPage belongs to at least one small spot. Sometimes, the
spot you want to join doesn't appear on our list of spots. If you think a new
spot should be added to the list, please go ahead and add it!
</p>

<h4>Know the Rules First</h4>

<p>
Not every spot can be added to the list. Please remember the following rules when you
add spots:
</p>

<ul class="spaced_li">
<li>
<b>Spots are public places.</b> Cafes, libraries, restaurants, parks and churches
are examples of public places. Generally anyone may enter these places during daytime
hours. <i>Schools and colleges do not count as public places, but a college library
might count if it is open to the public.</i>
</li>
<li>
<b>Spots are small.</b> One person should be able to walk all the way around
the outside of the spot in less than five minutes.
</li>
<li>
<b>Spots are safe and appropriate.</b> A spot should be family-friendly and
in a good area.
</li>
<li>
<b>Spots are not residential.</b> Safety is important - please do not suggest
spots that are directly related to a certain neighborhood or residential area.
For instance, do not add your neighborhood pool or clubhouse as a spot.
</li>
</ul>

<tag.smp_pagebtn slash="#get.s1#/go" val="I Know The Rules">

</if>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0