示例#1
0
    protected function column_col3()
    {
        $words = $this->getWords();
        ?>
        <div>
            <h3><?php 
        echo $words->get('GroupsSearchHeading');
        ?>
</h3>
            <form action="groups/search" method="get">
                <input type="text" name="GroupsSearchInput" value="" id="GroupsSearchInput" /><input type="submit" value="<?php 
        echo $words->getSilent('GroupsSearchSubmit');
        ?>
" /><?php 
        echo $words->flushBuffer();
        ?>
<br />
            </form>
        </div>             
    <?php 
        $Forums = new ForumsController();
        $Forums->index();
    }
<?php

$layoutbits = new Mod_layoutbits();
$request = PRequest::get()->request;
include 'suggestionserrors.php';
$vars = $this->getRedirectedMem('vars');
if (empty($vars)) {
    $vars['suggestion-post-title'] = '';
    $vars['suggestion-post-text'] = '';
}
// Show suggestion head (as on every page)
include 'suggestion.php';
if ($this->suggestion->state != SuggestionsModel::DURATION_DISCUSSION) {
    include 'suggestionoptions.php';
}
if (!$this->viewOnly) {
    // Now load the discussion board and show it
    $Forums = new ForumsController();
    $Forums->showExternalSuggestionsThread($this->suggestion->id, $this->model->getGroupId(), $this->suggestion->threadId);
}
<?php

$callbackTags = $this->layoutkit->formkit->setPostCallback('SuggestionsController', 'addOptionCallback');
$layoutbits = new Mod_layoutbits();
$request = PRequest::get()->request;
include 'suggestionserrors.php';
$vars = $this->getRedirectedMem('vars');
if (empty($vars)) {
    $vars['suggestion-post-title'] = '';
    $vars['suggestion-post-text'] = '';
}
// Show suggestion head (as on every page)
include 'suggestion.php';
?>
<div id='suggestion-form'>
<?php 
include 'suggestionoptions.php';
?>
</div><!-- suggestion-form -->
<?php 
if (!$this->viewOnly) {
    // Now load the board and show it
    $Forums = new ForumsController();
    $Forums->showExternalSuggestionsThreadReply($this->suggestion->id, $this->model->getGroupId(), $this->suggestion->threadId, 'addoptions');
}