示例#1
0
<?php

/**
 * @var AntraegeController $this
 * @var Antrag[] $antraege
 * @var int|null $status_curr
 * @var $suche AdminAntragFilterForm $suche
 */
$this->breadcrumbs = array(Yii::t('app', 'Administration') => $this->createUrl('/admin/index'), Antrag::label(2));
/** @var CWebApplication $app */
$app = Yii::app();
$app->getClientScript()->registerScriptFile($this->getAssetsBase() . '/js/typeahead/typeahead.bundle.js');
echo '<h1>' . GxHtml::encode(Antrag::label(2)) . '</h1>';
$action = $this->createUrl('/admin/antraege/index');
echo '<form method="GET" action="' . CHtml::encode($action) . '" style="padding: 20px;">';
echo $suche->getFilterFormFields();
echo '<div style="float: left;"><br><button type="submit" class="btn btn-success">Suchen</button></div>';
echo '</form><br style="clear: both;">';
$this->widget('zii.widgets.CListView', array('dataProvider' => new CArrayDataProvider($antraege), 'itemView' => '_list'));
示例#2
0
</a>
		</li>

		<li style="margin-top: 10px; font-weight: bold;">
			<a href="<?php 
echo $this->createUrl("admin/index/antragsliste");
?>
">Anträge und Änderungsanträge</a>
		</li>

		<li style="margin-top: 10px; font-weight: bold;"><a
				href="<?php 
echo $this->createUrl("admin/antraege");
?>
"><?php 
echo Antrag::label(2);
?>
</a></li>
		<li style="margin-left: 20px;">
			<?php 
if ($this->veranstaltung->getPolicyAntraege()->checkCurUserHeuristically()) {
    ?>
			<a href="<?php 
    echo $this->createUrl("/antrag/neu");
    ?>
">Neuen Antrag anlegen</a>
			<?php 
} else {
    ?>
				Neuen Antrag anlegen: <em><?php 
    echo CHtml::encode($this->veranstaltung->getPolicyAntraege()->getPermissionDeniedMsg());