return;
}
+ $name = '';
+ $id = '';
+
+ if(intval($_GET['c'])) {
+ $r = q("select id,name from contact where id = %d and uid = %d limit 1",
+ intval($_GET['c']),
+ intval(local_user())
+ );
+ if(count($r)) {
+ $name = $r[0]['name'];
+ $id = $r[0]['id'];
+ }
+ }
+
+
$base = $a->get_baseurl();
$a->page['htmlhead'] .= '<script src="' . $a->get_baseurl(true) . '/library/jquery_ac/friendica.complete.js" ></script>';
'$clabel' => t('Recipient'),
'$choice' => t('Choose what you wish to do to recipient'),
'$verbs' => $shortlist,
- '$submit' => t('Submit')
+ '$submit' => t('Submit'),
+ '$name' => $name,
+ '$id' => $id
));
return $o;
<div id="poke-recip-label">$clabel</div>
<br />
-<input id="recip" type="text" size="64" maxlength="255" value="" name="pokename" autocomplete="off">
-<input id="recip-complete" type="hidden" value="" name="cid">
+<input id="recip" type="text" size="64" maxlength="255" value="$name" name="pokename" autocomplete="off">
+<input id="recip-complete" type="hidden" value="$id" name="cid">
<br />
<br />