Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/modules/messaging/sendmessage.php
<?
define(TEMPDIR,"../../");
@include(TEMPDIR."coreclass.php");
$ae=new CEngine();
$ae->EngineInitialize();
$ae->RequestVariables();
$ae->UserVerifySession();
@include(TEMPDIR."header.php");
?>
<div id="content">
<form method="post" action="modify.php?command=1">
<table cellspacing="0" class="form">
<tr>
<td width="20%"><strong><? echo $ae->textmessaging[3] ?></strong></td>
<td>
<select name="recipientID">
<option selected><? echo $ae->textmessaging[4] ?></option>
<?
@$ae->DBQuery("SELECT ID,fullname FROM ".$ae->table[5]." ORDER BY fullname");
while ($ae->DBGetRow())
{
$optionvalue=$ae->access["ID"];
$optiontext=$ae->access["fullname"];
if ($ae->currentuserID<>$optionvalue)
{
echo '<option value="',$optionvalue,'"';
if ($optionvalue==$ae->recipientID) echo ' selected';
echo '>',$optiontext,'</option>';
}
}
?>
</select>
</td>
</tr>
<tr>
<td><strong><? echo $ae->textmessaging[1] ?></strong></td>
<td>
<input type="text" name="subject" size="30" maxlength="255">
</td>
</tr>
<tr>
<td><strong><? echo $ae->textmessaging[5] ?></strong></td>
<td>
<textarea cols="60" rows="5" name="message"></textarea>
</td>
</tr>
<tr>
<td><strong><? echo $ae->textmessaging[6] ?></strong></td>
<td>
<input type="checkbox" name="email" value="1">
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="username" value="<? echo $ae->username ?>" />
<input type="hidden" name="session" value="<? echo $ae->session ?>" />
<input type="hidden" name="senderID" value="<? echo $ae->currentuserID ?>">
<input type="submit" name="Submit" value="<? echo $ae->textbasic[109] ?>" class="button" />
<input type="reset" name="Reset" value="<? echo $ae->textbasic[104] ?>" class="button" />
</td>
</tr>
</table>
</form>
</div>
<? @include(TEMPDIR.'footer.php'); ?>
Return current item: Absolut Engine