.id
2794
.gutitle
joelie_new
.title
joelie_new
.file
.extension
.name
.user_id
7
.notes
.body
<ensure variable="get.j" value=""><!--- desired title --->
<if isdefined("post.title")><var get.j = post.title></if>
<var get.j = trim(get.j)>
<ensure variable="get.x" value=""><!--- desired otype --->
<if isdefined("post.otype")><var get.x = post.otype></if>

<if isValidOrb(get.x) NEQ 1>
<!--- they dunno what kind of thing to make. guess... --->
<var get.x = "">
<if get.j NEQ "" AND isValidOrb(get.j) EQ 1>
<var get.x = trim(lcase(get.j))>
<var get.j = "">
</if>
</if>

<var OUT = GLOBAL.OUT>

<var o = "routine">
<var where = "">

<!--- general screen --->
<tag.joelie_wrap title="New... | Joelie">
<tag.joelie_bar>
&gt; <b>New...</b>
</tag.joelie_bar>
<div align="center">
<div>&nbsp;</div>
<div>&nbsp;</div>

<var get.howdy = 1234323166543>
<postform>
<var _no_form = 0>
<if isdefined("post.otype") AND isdefined("post.title")>
<var _otype = lcase(trim(post.otype))>
<var _title = trim(post.title)>
<if _otype NEQ "" AND _title NEQ "">
<div align="left" style="max-width:#OUT.width#px;">
<div align="left" style="max-width:#OUT.width#px; border-bottom:1px solid ##ccc;">
<if isValidOrb(_otype) NEQ 1>
<div style="padding:15px; background:#OUT.yellow#;">
<p style="font-size:1.2em;">Cannot make a new <b>#escapeMarkup(_otype)#</b>.</p>
<p>
Use only letters and underscores, like <b>routine</b>, <b>site</b> or <b>bizica_storefront</b>.
</p>
</div>
<elseif trim(_title) EQ "">
<!--- this probably will never happen --->
<div style="padding:15px; background:#OUT.yellow#;">
<p style="font-size:1.2em;">Please add a title.</p>
</div>
<else>
<var _dark = OUT.purple>
<var _light = OUT.light_purple>
<if _otype EQ "routine">
<var _dark = OUT.blue>
<var _light = OUT.light_blue>
<elseif _otype EQ "site">
<var _dark = OUT.green>
<var _light = OUT.light_green>
</if>
<div style="padding:15px; background:#_light#; border-top:3px solid #_dark#;">
<var _idstr = 0>
<insert orb="#_otype#" title="#_title#" user_key_id="1">
<var _idstr = return>
<h1>Created a new <b>#escapeMarkup(_otype)#</b> called <b>#escapeMarkup(_title)#</b>.</h1>
<var _href = "http://joelie.org/x:#_otype#-#_idstr#">
<if _otype EQ "routine">
<var _href = "http://joelie.org/r:#_idstr#">
<elseif _otype EQ "site">
<var _href = "http://joelie.org/s:#_idstr#">
</if>

<!--- just go to view --->
<goto url="#_href#">

<h2 align="center" style="margin:0px;">
<a href="#_href#">View #_otype#</a> | <a href="#_href#/edit">Edit #_otype#</a>
</h2>
<var _no_form = 1>
</div>
</if>
</div>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</if>
</if>
<if _no_form NEQ 1>
<div style="font-size:1.8em; color:##333;">
New
<!--- 1_orb ---><input style="width:8em;" type="text" name="otype" class="<if get.x EQ "" OR get.j EQ "">focusme</if>" value="#escapeDoubleQuotes(escapeMarkup(get.x))#" autocomplete="off">
called
<!--- 1_title ---><input type="text" name="title" class="<if get.j EQ "" AND get.x NEQ "">focusme</if>" value="#escapeDoubleQuotes(escapeMarkup(get.j))#" autocomplete="off">
<input type="submit" value="Go" style="cursor:pointer;">
</div>
</if>
</postform>

<div>&nbsp;</div>
<div>&nbsp;</div>

<if _no_form NEQ 1>
<div align="left" style="max-width:#OUT.width#px;">
<!--- no search! --->
<div align="left" style="max-width:#OUT.width#px; padding:5px; border-top:1px solid ##ccc;">
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</div>
</div>
</if>
<div style="clear:both;">&nbsp;</div>
<div>&nbsp;</div>
</div>
</tag.joelie_wrap>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0