.id
3327
.gutitle
qi_compose
.title
qi_compose
.file
.extension
.name
|/routinetype-page|
.user_id
7
.notes
.body
<!--- >
Compose a new message on iqtpi.
< --->

<fake_person>
<div>
<h3>Log In to Compose Messages</h3>
<p>
You are not logged in. You must log into iqtpi to compose a new message.
</p>
<p>
<a href="http://#this_domain#/">Log into iqtpi</a> | <a href="http://#this_domain#/Sign_Up">Create a new account</a>
</p>
</div>
<BREAK>
</fake_person>

<ensure variable="get.u" value="0">
<if isValidGutitle(get.u) NEQ 1 AND NOT isNumeric(get.u)>
<var get.u = 0>
</if>
<ensure variable="get.m" value="0">
<if isValidGutitle(get.m) NEQ 1 AND NOT isNumeric(get.m)>
<var get.m = 0>
</if>

<div class="noverflow">
<set j="/user-#get.u#" maxrows="1">

<setcrawl>

<tag.set_format orb="user"> <var D = return>

<!--- doing a manual postform because
i need to use tag.m, to send the message --->
<div style="float:left; width:140px; height:140px; background:##999;">
&nbsp;
</div>
<DIV style="margin-left:164px;">
<if isdefined("POST.Submit")>
<ensure variable="POST.subject">
<ensure variable="POST.body">
<tag.m task="send" to="#set.id#" subject="#POST.subject#" body="#POST.body#">
<div>
<h3>Message Sent!</h3>
<p>
Your message was sent to <a style="color:black;" href="http://#this_domain#/#get.u#"><b>#D.title#</b></a>.
</p>
<p>
<a href="http://#this_domain#/Messages">Inbox</a> | <a href="http://#this_domain#/"><b>iqtpi home</b></a>
</p>
</div>
<else>
<form method="post" enctype="multipart/form-data" action="http://#this_domain#/?&so_slash_string=#so_slash_string#&u=#get.u#&m=#get.m#">

<var _subject = "">
<var _body = "">
<if get.m NEQ 0>
<set j="/m-#get.m#" maxrows="1"><setcrawl>
<var _subject = "re: #set.title#">
<var _body = "--- Original Message ---" & CHR(10) & set.body>
</setcrawl></set>
</if>

<!--- user overview --->
<var _href = "http://#this_domain#/#D.idstr#">
<div class="noverflow" style="padding-bottom:3px; border-bottom:1px solid ##999;">
<div style="float:left; width:32px; max-height:48px; overflow:hidden;">
<a href="#_href#"><img alt="Profile Picture" src="http://#this_domain#/file:/user-#D.idstr#?&f2=icon-2&picwidth=32" border="0"></a>
</div>
<div style="margin-left:40px;">
<h4 style="margin-bottom:0.2em;"><a href="#_href#">#D.title#</a></h4>
<div><small>
Write a message to #D.title# on iqtpi
</small></div>
</div>
</div>
<div>&nbsp;</div>

<!--- message form --->
<div>

<div class="unit">
<div class="unit_left">
Subject:
</div>
<div class="unit_right">
<input type="text" id="m_subject" name="subject" value="#escapeDoubleQuotes(_subject)#" style="width:60%; font-size:1em;">
</div>
</div>

<div class="unit">
<div class="unit_left">
Message:
</div>
<div class="unit_right">
<textarea id="m_body" name="body"
style="width:88%; height:10em; border:1px solid ##999; font-family:Tahoma, Arial, Sans-Serif; font-size:0.93em;"><if _body NEQ "">#CHR(10) & CHR(10) & CHR(10)##escapeMarkup(_body)#</if></textarea>
</div>
</div>

<div class="unit">
<div class="unit_left">
&nbsp;
</div>
<div class="unit_right">
<input type="submit" id="m_submit" name="Submit" value="Send" style="cursor:pointer; width:auto !important;">
</div>
</div>

</div>

</form>
<tag.jquery>
<script type="text/javascript">
$(document).ready(function() {
<if _subject EQ "">
$('##m_subject').focus();
<else>
var el = $('##m_body')[0];
$(el).focus();
if(el.createTextRange) {
var range = el.createTextRange();
range.move('character', 0);
range.select();
}
else {
if(el.selectionStart) {
el.focus();
el.setSelectionRange(0, 0);
}
}
</if>
});
</script>
</if>
</DIV>

</setcrawl>

<setempty>
<div>
<h3>iqtpi cannot find this user.</h3>
<p>
iqtpi can't find user <b>#escapeMarkup(get.u)#</b>.
</p>
</div>
</setempty>

</set>
</div>

<div>&nbsp;</div>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0