Example #1
0
echo Form::select('StatusSelect', cmsHelper::getArticleStatusArray(), Input::old('StatusSelect', $passedArticle->status));
?>
</td>
                                <td><p>Only Title </p></td>
                                <td><?php 
echo Form::select('OnlyTitleSelect', cmsHelper::getDisableEnableArray(), Input::old('OnlyTitleSelect', $passedArticle->onlytitle));
?>
</td>
                                <td><p>Type </p></td>
                                <td><?php 
echo Form::select('ArticleType', cmsHelper::getArticleTypeArray(), Input::old('ArticleType', $passedArticle->articletype));
?>
</td>
                                <td><p>Author </p></td>
                                <td><?php 
echo Form::select('Author', cmsHelper::getAllAuthorsArray(), Input::old('Author', $passedArticle->author_id - 1), Auth::user()->id != 1 ? array("disabled" => "enabled") : array());
?>
</td>
                                <td><p>Comments </p></td>
                                <td><?php 
echo Form::select('Comments', array("No", "Yes"), Input::old('Comments', $passedArticle->comments));
?>
</td>

                                <td><?php 
echo Form::submit('Submit', array('id' => 'adminbutton'));
?>
</td>
                            </tr>
                        </table>