Ejemplo n.º 1
0
		<th width="120">Starter</th>
		<th class="c">Replies</th>
		<th class="r">Last Post</th>
	</tr>
	</thead>
	<tbody>
	<?php 
echo drawBBPosts(15, drawEmptyResult("No topics have been added yet.  Why not <a href='#bottom'>be the first</a>?", 4));
?>
	</tbody>
	<tfoot class="more">
		<tr>
			<td colspan="4">
				<input type="button" id="more" value="Load More">
			</td>
		</tr>
	</tfoot>
</table>
<a name="bottom"></a>
<?php 
$form = new intranet_form();
if ($isAdmin) {
    $form->addUser("createdBy", "Posted By", $user["id"], false, true);
    $form->addCheckbox("isAdmin", "Admin Post?", 0, "(check if yes)", true);
}
$form->addCheckbox("temporary", "Lifespan", true, "Check Box to Delete Post After 30 Days");
$form->addRow("itext", "Subject", "title", "", "", true);
$form->addRow("textarea", "Message", "description", "", "", true);
$form->addRow("submit", "add new topic");
$form->draw("Contribute a New Topic");
drawBottom();