.id
4420
.gutitle
smp_estate_new_photo
.title
smp_estate_new_photo
.file
.extension
.name
|/routinetype-subutility|
.user_id
7
.notes
.body
<var _tbl = "photo">

<var _browser = GLOBAL.Def.sp_browser_type>


<h3>Upload a Photo</h3>

<var _msg = "">

<postform>

<postsuccess>
<var _idnum = POST_N.n1.status>
<set j="/#_tbl#-#_idnum#">
<setcrawl>
<if listFindNoCase("jpg,png,gif",set.extension) EQ 0>
<delete orb="#_tbl#" where="#_tbl#.id = #set.id#">
<if set.extension EQ "">
<var _msg = "Please select a file to upload.">
<else>
<var _msg = "Invalid photo file of type ""<b>#escapeMarkup(set.extension)#</b>""">
</if>
</if>
</setcrawl>
</set>
<if _msg EQ "">
<tag.smp_new_addto_handler>
<if return NEQ "pants">
<goto url="http://smallerpage.com/j:/#_tbl#-#_idnum#">
</if>
<BREAK>
</if>
</postsuccess>
<postfail>
<var _msg = "Upload failed. The file may be too large, or the system may have encountered an error. Please try again and make sure your file is smaller than <b>50MB</b>.">
</postfail>


<input type="hidden" style="display:none;" name="1_posttype" value="INSERT">
<input type="hidden" style="display:none;" name="1_orb" value="#_tbl#">
<input type="hidden" style="display:none;" name="1_site_id" value="631">
<input type="hidden" style="display:none;" name="1_user_key_id" value="1">

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

<if _msg NEQ "">
<p style="color:##800;">
<tag.fico i="exclamation" linkback="off" style="height:0.88em;">
#_msg#
</p>
</if>

<if _browser EQ "iPhone">

<div>
<tag.fico i="pictures" linkback="off" style="height:0.88em;">
jpg, png or gif file &nbsp;(requires <a href="http://#this_domain#/photo_help_apple?&prev_slash=#urlEncodedFormat(so_slash_string)#">Picup</a>)
</div>
<div style="padding:3px;">
<var _enc = "us-ascii">
<var _earl = "#urlEncodedFormat('http://#this_domain#/?&x=1&so_slash_string=#urlEncodedFormat(so_slash_string,_enc)#&from_picup=1&soTransfer=#urlEncodedFormat(client_cookie,_enc)#',_enc)#">
<!--- &soTransfer=#client_cookie# --->
<var _earl2 = "#urlEncodedFormat('http://#this_domain#/?&x=1&so_slash_string=#urlEncodedFormat(so_slash_string,_enc)#&from_picup=2',_enc)#">
<a id="upload_with_picup"
style="font-size:1.12em; display:inline-block; padding:7px; border:1px solid #C.link#; text-decoration:none;" href="fileupload://new?postURL=#_earl#&callbackURL=#_earl2#&referrername=Edit%20Page&referrerfavicon=#urlEncodedFormat('http://smallerpage.com/file:/site-smp?&picwidth=32',_enc)#&purpose=#urlEncodedFormat('Upload a file for your page')#&returnServerResponse=true&postImageParam=1_file&debug=true&postValues=#urlEncodedFormat('so_postform_identifier=1&1_posttype=insert&1_orb=#_tbl#')#"><b>Upload Using Picup App &gt;</b></a>
<!--- --->
</div>

<else>

<div>
<tag.fico i="pictures" linkback="off" style="height:0.88em;">
jpg, png or gif file
</div>
<div style="padding:3px;">
<input type="file" name="1_file" id="1_file">
</div>
<div>&nbsp;</div>

<div class="pagebtn" align="right" style="margin-right:4em;">
<input type="submit" value="Upload Photo" style="cursor:pointer;" class="button">
</div>
<div>&nbsp;</div>

<tag.smp_new_addto>

</if>

</div>



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