<var C = GLOBAL.Def.Style.color>
<!--- page type... --->
<if isDefined("POST.pagetype_form") AND POST.pagetype_form EQ 1>
<ensure variable="POST.pagetype" value="">
<if trim(POST.pagetype) NEQ "">
<!--- create page --->
<insert orb="sp"
title=""
site_id="631"
user_key_id="1"
pagetype="|#POST.pagetype#|"
commentkey_unsignedint="1"
showmypic_unsignedint="1"
series="a">
<var _idnum = return>
<!--- append to site pages --->
<var _new = GLOBAL.Def.Site.pages & CHR(10) & "|/sp-#_idnum#|">
<update orb="site" where="site.id = #GLOBAL.Def.Site.id#"
pages="#_new#"
sp_edit_datetime="#now()#">
<!--- "new page" bulliten --->
<tag.bull
j='/sp-#_idnum#,/site-#GLOBAL.Def.Site.id#'
title='#client_name# - new page'
body='<a href="/#client_id#">#escapeMarkup(client_name)#</a> added a page to <a href="/j:/site-#GLOBAL.Def.Site.id#">#GLOBAL.Def.Disp.site_title#</a>'
type='new_page'>
<!--- ping! --->
<!--- ping to friends/followers of client --->
<if GLOBAL.Def.Followers.total + GLOBAL.Def.Friends.total GT 0>
<tag.ping function="post"
type="new_page"
jstr="/user-#client_id#"
users_intList="#GLOBAL.Def.Friends.intList#,#GLOBAL.Def.Followers.intList#"
message="#escapeMarkup(client_name)# added a page to their app (#GLOBAL.Def.Disp.site_title#)"
send_email="1"
user_whereclause_append=""
email_href="http://#lcase(escapeMarkup(GLOBAL.Def.Site.gutitle))#.smallerpage.com/j:/sp-#_idnum#"
email_from="aRobot@smallerpage.com"
age_bypass="1"
emailoptout_tag="new_page">
</if>
<!--- redirect --->
<if return NEQ "pants">
<goto url="http://#this_domain#/j:/sp-#_idnum#?&function=edit">
</if>
<BREAK>
</if>
</if>
<h3>Add a Page</h3>
<var _radstyle = "width:1.12em; height:1.12em; cursor:pointer;">
<div style="margin:1em;">
<postform>
<!--- photo page --->
<div class="radio_container" style="padding:3px; clear:both;">
<div style="float:left; width:1.8em;">
<input class="radio" name="pagetype" value="photo" style="#_radstyle#" type="radio" checked>
</div>
<div style="margin-left:2em; position:relative; margin-right:1em;">
<div>
<b>Photo Page</b>
<tag.fico i="pictures" linkback="off" style="height:0.88em;">
</div>
</div>
<div style="clear:both;"> </div>
</div>
<!--- music page --->
<div class="radio_container" style="padding:3px; clear:both;">
<div style="float:left; width:1.8em;">
<input class="radio" name="pagetype" value="audio" style="#_radstyle#" type="radio">
</div>
<div style="margin-left:2em; position:relative; margin-right:1em;">
<div>
<b>Music Page</b>
<tag.fico i="music-beam" linkback="off" style="height:0.88em;">
</div>
</div>
<div style="clear:both;"> </div>
</div>
<!--- video page --->
<div class="radio_container" style="padding:3px; clear:both;">
<div style="float:left; width:1.8em;">
<input class="radio" name="pagetype" value="video" style="#_radstyle#" type="radio">
</div>
<div style="margin-left:2em; position:relative; margin-right:1em;">
<div>
<b>Video Page</b>
<tag.fico i="clapperboard" linkback="off" style="height:0.88em;">
</div>
</div>
<div style="clear:both;"> </div>
</div>
<small><small><small><div> </div></small></small></small>
<div class="pagebtn" align="right">
<input type="submit" value="Add Page" style="cursor:pointer;" class="button">
</div>
<div> </div>
<input type="hidden" style="display:none;" name="pagetype_form" value="1">
</postform>
</div>
<div> </div>
<tag.jquery>
<script type="text/javascript">
$(document).ready(function() {
activate_radio_containers();
});
<tag.function_activate_radio_containers>
</script>