%%document-edit-editor-html%%
2002-07-28 22:12

%%preprocess%%
$this->beryliumToForm(); 
$this->getRuntimeVars();

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";

// headline fix if only title, and vice-versa
if ($this->title=="" && $this->headline=="") $this->title= "Untitled ($this->name)";
elseif ($this->title=="") $this->title= $this->headline;
elseif ($this->headline=="") $this->headline= $this->title;


%%header%%

%%css%%


%%template%%
<table class='objTable' cellspacing=5 cellpadding=5>
	<tr>
		<td>
			<table class='objHeader'>
				<tr>
					<td width='1' valign='middle'>$this->iconTag</td>
					<td>
						<span class='objFlavor'>$this->flavor:<br></span>
						<span class='objTitle'><a href="$this->baseUrl">$this->title</a></span>
						<span class='objByline'> <br> 
							By $this->authorTag (#$this->sitememberid) on $this->dateTag.</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<form method='post' action='$this->baseURL?method=save$session->cgi' class='form'>
$this->hiddenvars
<table border='0' class='editTable'>
<tr> 
	<td colspan='2'> 
		<p>&nbsp; <b>Tip:</b> to blank-out a field that previously had something in it, use a single space.</p>
		<p align="center"><br><b>jump to:</b> <a href="#required">required fields</a> | <a href="#optional">optional fields</a> </p>
	</td>
</tr>
<tr>
	<td colspan=2 align='center'>
		<table class='infoBar'>
			<tr>
				<td><a name="required"> </a>Required Fields:</td>
				<td align="right"><a href="#top">top</a>&nbsp; <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'></td>
			</tr>
		</table>
	</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'>(<a href='http://berylium.org/berylium/docs/quickbml.html' target='_blank'>bml</a>) A summary or abstract that appears in indexes and listings.</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='description' cols='60' rows='10'>$this->description</textarea></td>
</tr>
<tr>
	<td colspan=2 align='center'>
		<p>&nbsp</p>
		<table class='infoBar'>
			<tr>
				<td><a name="optional"> </a>Optional Fields:</td>
				<td align="right"><a href="#top">top</a>&nbsp; <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'></td>
			</tr>
		</table>	
	</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'>(<a href='http://berylium.org/berylium/docs/quickbml.html' target='_blank'>bml</a>)  The document itself.</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='body' cols='60' 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 if not $this->realAuthorTag</td>
</tr>
<tr> 
	<td align='right' valign='top'>original date:</td>
	<td valign='top'><input type='text' name='p_originaldate' size='28' maxlength='255' value="$this->p_originaldate"><br>
		&nbsp;like 2002-05-17 23:15:00 (or just 2002-05-17)</td>
</tr>
<tr> 
	<td align='right' valign='top'>alternate icon:</td>
	<td valign='top'><input type='text' name='imageid' size='4' maxlength='8' value="$this->imageid"> $this->iconTag <br>
		id number of berylium image / 0=none</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"> <br>
		the url filename of this document</td>
</tr>
<tr>
	<td colspan=2 align='center'>
		<p>&nbsp</p>
		<table class='infoBar'>
			<tr>
				<td>Use the <tt>save</tt> button to save your work periodically.</td>
				<td align="right"><a href="#top">top</a>&nbsp; <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'></td>
			</tr>
		</table>
	</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%%
