%%document-edit-editor-html%%
progmin : / (context #110)
2002-06-11 21:45:47

%%preprocess%%
$this->beryliumToForm(); 
$this->timeFormat('D, M j, Y, \a\t H:i:s');

if ($this->id!="") {
	$this->hiddenvars= "<input type='hidden' name='id' value=\"$this->id\">";
	}

if ($this->flavor=="") $this->flavor= "Generic";
$fflavor= "flavor".str_replace(" ","",$this->flavor);
$this->{$fflavor}= "selected";

$sstatus= "status".$this->status;
$this->{$sstatus}= "selected";
$ppublic= "public".$this->public; 
$this->{$ppublic}= "checked";

// proper icon
if (!$this->public) $this->iconpvt= "-pvt";
else $this->ispublic= "<b>This item is public</b>";

// title fix
if ($this->title=="") $this->title= "Untitled ($this->name)";

if ($this->imageid!="0") $this->imageidTag= bparsebml("[image:$this->imageid;50,50;right]");
else $this->imageidTag= "<img src='/bicons/document$this->iconpvt.png' align='right'>";



%%header%%



%%css%%
.documentInfo {font-size: 12px; color: #999999; }
.documentInfo b {font-size: 12px; color: #aa9999; font-weight: bold; }
.documentHeader TD {padding: 0px; margin: 0px; }
.documentFlavor {font-size: 12px; }
.documentTitle {font-size: 18px; line-height: 24px; font-weight: bold; color: #006699; }
.documentHeadline {font-size: 18px; line-height: 24px; font-weight: bold; color: #006699; }
.documentByline {font-size: 12px; line-height: 18px; color: #999999; }
.documentBody {font-size: 12px; line-height: 18px; }



%%template%%
<table border=0 class=documentHeader>
	<tr>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=document width=20 height=1></td>
		<td width='99%'><span class='documentFlavor'>$this->flavor:</span></td>
	</tr>
	<tr>
		<td colspan=2>
			<span class='documentTitle'>
			<img src='/bicons/document$this->iconpvt.png' border=0 alt='document:$this->id' title='document:$this->id' align=absmiddle>
			$this->title</span>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><span class="documentByline">By $this->author on $this->created.</span>
			<span class='documentInfo'><br>status: $this->status | rank: $this->rank $this->ispublic</span> 
		</td>
	</tr>
</table>
<form method='post' action='$this->baseURL?method=save$session->cgi' class='.form'>
$this->hiddenvars
<table border='0'>
<tr> 
	<td colspan='2'><b>$session->alert</b> </td>
</tr>
<tr>
	<td align='right' valign='top'>document name:</td>
	<td valign='top'><input type='text' name='name' size='42' maxlength='255' value="$this->name"></td>
</tr>
<tr>
	<td colspan=2 align='center'>The document name determines the filename of this document. No punctuation or spaces, please.<br>&nbsp;</td>
</tr>
<tr> 
	<td align='right' valign='top'>type of document:</td>
	<td valign='top'> 
		<select name='flavor'>
			<option value="Generic" $this->flavorGeneric>Generic (select one:)</option>
			<option value="Tidbit" $this->flavorTidbit>Tidbit</option>
			<option value="Essay" $this->flavorEssay>Essay</option>
			<option value="Discussion" $this->flavorDiscussion>Discussion</option>
			<option value="News" $this->flavorNews>News</option>
			<option value="Memo" $this->flavorMemo>Memo</option>
			<option value="Ramblings" $this->flavorRamblings>Ramblings</option>
			<option value="Notice" $this->flavorNotice>Notice</option>
		</select>
	</td>
</tr>
<tr> 
	<td align='right' valign='top'>document title:</td>
	<td valign='top'><input type='text' name='title' size='42' maxlength='255' value="$this->title"></td>
</tr>
<tr>
	<td align='right' valign='top'>document description:</td>
	<td valign='top'>(bml) A short summary or abstract.</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='description' cols='60' wrap='OFF' rows='3'>$this->description</textarea></td>
</tr>
<tr> 
	<td align='right' valign='top'>headline for document view:</td>
	<td valign='top'><input type='text' name='headline' size='42' maxlength='255' value="$this->headline"></td>
</tr>
<tr>
	<td align='right' valign='top'>document body:</td>
	<td valign='top'>(bml)  The document itself.</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='body' cols='60' wrap='OFF' rows='12'>$this->body</textarea></td>
</tr>
<tr>
	<td colspan='2' align='right'><img src='/bicons/spacer.png' width=10 height=5 border=0 alt=space></td>
</tr>
<tr> 
	<td align='right' valign='top'>author:</td>
	<td valign='top'><input type='text' name='author' size='42' maxlength='255' value="$this->author"><br>
		&nbsp;author's name</td>
</tr>
<tr> 
	<td align='right' valign='top'>alternate icon:</td>
	<td valign='top'>$this->imageidTag<input type='text' name='imageid' size='4' maxlength='8' value="$this->imageid"><br>
		id number of berylium image / 0=none</td>
</tr>
<tr valign='top'> 
	<td align='right'>status:</td>
	<td> 
		<select name='status'>
		<option value='new' $this->statusnew>new</option>
		<option value='posted' $this->statusposted>posted</option>
		<option value='hidden' $this->statushidden>hidden</option>
		<option value='deleted' $this->statusdeleted>deleted</option>
		</select>
	</td>
</tr>
<tr valign='top'>
	<input type=hidden name=public value=0>
	<td align='right'>public:</td>
	<td><input type='checkbox' name='public' value='1' $this->public1></td>
</tr>
<tr valign='top'>
	<td align='right'>rank:</td>
	<td><input type='text' name='rank' size='6' maxlength='6' value="$this->rank"></td>
</tr>
<tr> 
	<td>&nbsp;</td>
	<td><input type='submit' name='submit' value='update' class='buttonstyle' title='Save, then view finished document'> <input type='submit' name='submit' value='save' class='buttonstyle' title='Save, then continue editing'><br>Use the <tt>save</tt> button to save your work periodically!</td>
</tr>
</table>
</form>



%%listrow%%
 



%%nullobject%%
<img src='/bicons/warning.png' alt='Warning' align=absmiddle> Sorry, that document is not available for editing. 



%%footer%%



%%postprocess%%



%%end of context%%
