コード例 #1
0
ファイル: admin.php プロジェクト: kenrestivo/ossasep
<?php

Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('instructor-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Manage Instructors</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'instructor-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('Instructor/view'), 'columns' => array('first_name', 'last_name', 'alias', 'instructor_type.description:text:Type', 'company.name:text:Company', 'email:email', 'cell_phone', 'other_phone', 'note', array('class' => 'CButtonColumn', 'template' => '{view}{delete}'))));
echo CHTML::link("Add New Instructor", array("Instructor/create", 'returnTo' => Yii::app()->request->requestUri));
コード例 #2
0
ファイル: _income.php プロジェクト: kenrestivo/ossasep
<?php

$this->widget('zii.widgets.grid.CGridView', array('id' => 'income-grid', 'dataProvider' => new KArrayDataProvider($model->incomes), 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view', 'join'), 'columns' => array('class.summary:text:Class', 'amount:currency:Split Check Amount Assigned', 'check.check_num:text:Check #', 'check.payer:text:Payer', 'check.amount:currency:Total Check Amount', 'check.check_date:date:Check Date', 'check.delivered:date:Delivered to Company', 'check.deposit.deposited_date:date:Deposited', 'check.returned:date:Returned to Payer', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Income', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
コード例 #3
0
ファイル: _cash.php プロジェクト: kenrestivo/ossasep
<?php

echo CHtml::link("Auto-Populate Cash for " . $model->summary, array("populateCash", 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'cash-grid', 'dataProvider' => new KArrayDataProvider($model->cash), 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view', 'join'), 'columns' => array('check_num:ntext:Cash?', 'amount:currency:Cash Amount', 'payer:ntext:Payer', 'check_date:date:Cash Date', 'unassigned:currency:Un-Assigned', array('class' => 'CButtonColumn', 'template' => '{my_button}', 'buttons' => array('my_button' => array('label' => 'Un-Deposit', 'url' => 'Yii::app()->controller->createUrl("/CheckIncome/undeposit", array("id" => $data->id))', 'imageUrl' => Yii::app()->request->baseUrl . '/images/delete.png', 'options' => array('ajax' => array('type' => 'GET', 'url' => "js:\$(this).attr('href')", 'success' => 'js:function(data){
$.fn.yiiGridView.update("cash-grid");}'))))))));
?>

<div class="span-8">

<?php 
$this->renderPartial("_cash_summary", array('model' => $model));
?>

</div>

<div class="span-8 last">

<?php 
$this->renderPartial("_coin_summary", array('model' => $model));
?>

</div>

<div class="clear"> </div>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('subtotal_cash_payments:currency:Cash Total from Payments', 'subtotal_reconciliation:currency:Cash from Reconciliation', 'discrepancy:currency:Discrepancy')));
echo '<div><br /></div>';
echo CHTML::link("Un-Deposit all Cash from " . $model->summary, '#', array('submit' => array('unassignAll', 'id' => $model->id, 'type' => 'cash', 'returnTo' => Yii::app()->request->requestUri), 'confirm' => 'Really remove all cash from deposit?'));
コード例 #4
0
ファイル: admin.php プロジェクト: kenrestivo/ossasep
<?php

$this->breadcrumbs = array('Check Expenses' => array('index'), 'Manage');
$this->menu = array(array('label' => 'Create Check Payables', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('check-expense-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Checks (Payables) for <?php 
echo CHtml::encode($this->savedSessionSummary());
?>
</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'check-expense-grid', 'dataProvider' => $model->search(), 'selectionChanged' => ZHtml::clickableRow('CheckExpense/update'), 'filter' => $model, 'columns' => array('check_num:ntext', 'amount:currency', 'check_date:date', 'payee.full_name:text:Payee', 'delivered:date', 'payer:ntext', array('class' => 'CButtonColumn', 'template' => '{update}{delete}'))));
コード例 #5
0
ファイル: _instructors.php プロジェクト: kenrestivo/ossasep
<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'instructor-grid', 'ajaxUpdate' => false, 'dataProvider' => new KArrayDataProvider($model->instructors), 'selectionChanged' => ZHtml::clickableRow('Instructor/view'), 'columns' => array('full_name:text:Instructor', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Instructor', 'template' => '{view}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>


<?php 
echo CHTML::link(CHtml::encode("Add New Instructor"), array("Instructor/create", 'company_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
コード例 #6
0
ファイル: admin.php プロジェクト: kenrestivo/ossasep
<?php

$this->breadcrumbs = array('Check Incomes' => array('index'), 'Manage');
$this->menu = array(array('label' => 'List CheckIncome', 'url' => array('index')), array('label' => 'Create CheckIncome', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('check-income-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Checks (Received) for <?php 
echo CHtml::encode($this->savedSessionSummary());
?>
</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'check-income-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view'), 'columns' => array('check_num:ntext', 'cash:boolean', 'payer:ntext', 'amount:currency', 'check_date:date', 'payee.name:text:Payee', array('name' => 'unassigned', 'filter' => false, 'value' => 'Yii::app()->format->currency($data->unassigned)'), 'deposit.deposited_date:date:Deposited On', 'delivered:date', 'returned:date', array('class' => 'CButtonColumn', 'template' => '{view}{delete}'))));
コード例 #7
0
ファイル: _income.php プロジェクト: kenrestivo/ossasep
<?php

$attributes = array('student.full_name:text:Student', 'amount:currency:Amount Assigned', 'check.check_num:ntext:Check #', 'check.payer:text:Payer', 'check.amount:currency:Total Check Amount', 'check.check_date:date:Check Date');
if ($model->is_company) {
    $attributes[] = 'check.delivered:date:Delivered to Company';
} else {
    $attributes[] = 'check.deposit.deposited_date:date:Deposited';
}
$attributes[] = array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Income', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri);
$this->widget('zii.widgets.grid.CGridView', array('id' => 'income-grid', 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view', 'join'), 'dataProvider' => new KArrayDataProvider($model->incomes), 'columns' => $attributes));
?>


<?php 
echo '<span class="span-11">';
echo CHTML::link(CHtml::encode("Add Check for " . $model->summary), array("CheckIncome/create", 'class_id' => $model->id, 'company_id' => $model->company_id));
echo "</span><span class=\"span-9 last\">";
$un = CheckIncome::underAssignedChecks(null);
if (count($un) > 0) {
    echo "Or pick from one of these checks:<br />";
}
foreach ($un as $check) {
    echo CHTML::link($check->summary, array("Income/create", 'class_id' => $model->id, 'check_id' => $check->id, 'company_id' => $model->company_id, 'returnTo' => Yii::app()->request->requestUri));
    echo CHtml::encode(': ' . Yii::app()->format->currency($check->unassigned) . ' available');
    echo '<br />';
}
echo "</span><br />";
?>

<div class="clear"></div>
コード例 #8
0
ファイル: admin.php プロジェクト: kenrestivo/ossasep
<?php

$this->breadcrumbs = array('Companys' => array('index'), 'Manage');
$this->menu = array(array('label' => 'List Company', 'url' => array('index')), array('label' => 'Create Company', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('company-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Manage Companys</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'company-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'selectionChanged' => ZHtml::clickableRow('Company/view'), 'columns' => array('name', 'use_publicly:boolean', array('class' => 'CButtonColumn', 'template' => '{view}{delete}'))));
echo CHTML::link("Add New Company", array("Company/create", 'returnTo' => Yii::app()->request->requestUri));
コード例 #9
0
ファイル: _payments.php プロジェクト: kenrestivo/ossasep
return false; }')));
echo CHtml::hiddenField("CheckIncome[id]");
echo CHtml::hiddenField("CheckIncome[deposit_id]", $model->id);
echo CHtml::ajaxSubmitButton('Add', array('/CheckIncome/deposit'), array('success' => 'js: function(data) {
          $( "#chuck_num_util" ).val( "" );
$("#add_status").html( "Added:  " ); 
$.fn.yiiGridView.update("check-income-grid");
                    }'));
echo CHtml::endForm();
?>

<div><span id="add_status"></span><span id="add_details"></span></div>

    </div>

    <div class="span-5">

    <?php 
echo CHTML::link("Auto-Populate Checks for deposit " . $model->summary, array("populateChecks", 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
?>

</div>
<div class="clear"></div>

    <?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'check-income-grid', 'dataProvider' => new KArrayDataProvider($model->checks, array('pagination' => false)), 'summaryText' => 'Subtotal Checks: ' . Yii::app()->format->currencyZero($model->subtotal_checks), 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view', 'join'), 'columns' => array('check_num:ntext:Check #', 'amount:currency:Check Amount', 'unassigned:currency:Discrepancy', 'payer:ntext:Payer', 'check_date:date:Check Date', array('class' => 'CButtonColumn', 'template' => '{my_button}', 'buttons' => array('my_button' => array('label' => 'Un-Deposit', 'url' => 'Yii::app()->controller->createUrl("/CheckIncome/undeposit", array("id" => $data->id))', 'imageUrl' => Yii::app()->request->baseUrl . '/images/delete.png', 'options' => array('ajax' => array('type' => 'GET', 'url' => "js:\$(this).attr('href')", 'success' => 'js:function(data){
$.fn.yiiGridView.update("check-income-grid");}'))))))));
echo CHTML::link("Un-Deposit all Checks from " . $model->summary, '#', array('submit' => array('unassignAll', 'id' => $model->id, 'type' => 'checks', 'returnTo' => Yii::app()->request->requestUri), 'confirm' => 'Really remove all checks from deposit?'));
?>

コード例 #10
0
ファイル: admin.php プロジェクト: kenrestivo/ossasep
<?php

$this->breadcrumbs = array('Deposit Details' => array('index'), 'Manage');
$this->menu = array(array('label' => 'List DepositDetails', 'url' => array('index')), array('label' => 'Create DepositDetails', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('deposit-details-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Deposits for <?php 
echo CHtml::encode($this->savedSessionSummary());
?>
</h1>

    <p>
    You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
                                                    or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
    </p>

    <?php 
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
    <?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'deposit-details-grid', 'dataProvider' => $model->search(), 'selectionChanged' => ZHtml::clickableRow('DepositDetails/view'), 'filter' => $model, 'columns' => array('id', 'deposited_date:date', 'total_calculated:currency:Total Deposit', 'subtotal_checks:currency:Checks Subtotal', 'subtotal_cash_payments:currency:Cash Subtotal', 'note', 'session.summary:text:Session', array('class' => 'CButtonColumn', 'template' => '{print}{view}{delete}', 'buttons' => array('print' => array('label' => 'Printable Deposit', 'imageUrl' => Yii::app()->request->baseUrl . '/images/printer.png', 'url' => 'Yii::app()->createUrl("DepositDetails/print", array("id"=>$data->id))'))))));
/// NOTE NO RETURNTO! I want them to go to the view screeen imeediately!
echo CHtml::link("Add New Deposit", array("DepositDetails/create"));
コード例 #11
0
ファイル: dunning_report.php プロジェクト: kenrestivo/ossasep
<?php

$this->breadcrumbs = array('Dunning Report' => array('dunningreport'), 'Dunning Report');
?>

<h1>Accounts Receivable Dunning Report for <?php 
echo CHtml::encode(ClassSession::current()->summary);
?>
</h1>

<p>Note: Negative balance indicates checks not yet returned or refunds not yet issued.</p>                                      
<?php 
$dp = new KArrayDataProvider($results, array('pagination' => false));
// hack for calculating doubel lines
$lastStudent = "";
$this->widget('zii.widgets.grid.CGridView', array('id' => 'signup-grid', 'dataProvider' => $dp, 'rowCssClassExpression' => 'ZHtml::rowHack($this, $data, $row)', 'selectionChanged' => ZHtml::clickableRow('Student/view', 'join'), 'columns' => array(array('header' => 'Student', 'name' => 'student_id', 'value' => function ($data, $row) {
    global $lastStudent;
    //import the global variable
    if ($lastStudent != $data->student_id) {
        $lastStudent = $data->student_id;
        return $data->student->summary;
    } else {
        return '';
    }
}), 'class.summary:text:Class', 'status:text:Status', array('name' => 'Amount Receivable', 'htmlOptions' => array('style' => 'text-align: right;'), 'value' => '$data->owed', 'type' => 'currency', 'footerHtmlOptions' => array('style' => 'text-align: right'), 'footer' => 'TOTAL: ' . Yii::app()->format->currency(array_reduce($dp->data, function ($i, $j) {
    $i += $j->owed;
    return $i;
}))), 'note:ntext:Note', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Signup', 'template' => '{update}', 'returnTo' => Yii::app()->request->requestUri))));
?>

コード例 #12
0
ファイル: _dashboard.php プロジェクト: kenrestivo/ossasep
<?php

$dp = new KArrayDataProvider($classes, array('pagination' => false));
$this->widget('zii.widgets.grid.CGridView', array('id' => $id, 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('ClassInfo/view'), 'summaryText' => '', 'dataProvider' => $dp, 'columns' => array('summary:ntext:Class', 'signup_status:text:Status', 'enrolled_count:nozero:Signed up', 'waitlist_count:nozero:Waitlisted', array('name' => 'Scholarships', 'value' => '$data->scholarships_count', 'type' => 'nozero', 'htmlOptions' => array('style' => 'text-align: right'), 'footerHtmlOptions' => array('style' => 'text-align: right'), 'footer' => Yii::app()->format->nozero($dp->columnTotal('scholarships_count'))), array('name' => 'Paid By Students', 'value' => '$data->paid', 'type' => 'currency', 'htmlOptions' => array('style' => 'text-align: right'), 'footerHtmlOptions' => array('style' => 'text-align: right'), 'footer' => Yii::app()->format->currency($dp->columnTotal('paid'))), array('name' => 'Owed From Students', 'value' => '$data->owed', 'type' => 'currency', 'htmlOptions' => array('style' => 'text-align: right'), 'footerHtmlOptions' => array('style' => 'text-align: right'), 'footer' => Yii::app()->format->currency($dp->columnTotal('owed'))), array('name' => 'Returned Payments', 'value' => '$data->returned', 'type' => 'currency', 'htmlOptions' => array('style' => 'text-align: right'), 'footerHtmlOptions' => array('style' => 'text-align: right'), 'footer' => Yii::app()->format->currency($dp->columnTotal('returned'))), 'note:text:Admin Note')));
?>

コード例 #13
0
ファイル: _payments.php プロジェクト: kenrestivo/ossasep
<?php

//XXX this is not right at all!
echo CHTML::link("Add Check for " . $model->name, array("CheckIncome/create", 'company_id' => $model->id));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'income-grid', 'dataProvider' => new KArrayDataProvider($model->incomes), 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view', 'join'), 'columns' => array('check.check_num:ntext:Check #', 'check.amount:currency:Total Check Amount', 'student.full_name:text:Student', 'class.summary:ntext:Class', 'amount:currency:Amount Assigned', 'check.check_date:date:Check Date', 'check.payer:text:Payer', 'check.delivered:date:Delivered to Company')));
コード例 #14
0
<h1>Data Integrity Check/Audit for <?php 
echo CHtml::encode($this->savedSessionSummary());
?>
</h1>

<h3>Unbalanced, unreturned checks with unassigned amounts</h3>

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'check-income-grid', 'dataProvider' => new KArrayDataProvider($unassigned), 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view'), 'emptyText' => "Everything OK, no problems found!", 'showTableOnEmpty' => false, 'columns' => array('check_num:ntext:Check #', 'amount:currency:Total Check Amount', 'unassigned:currency:Un-Assigned', 'cash:boolean:Cash?', 'payer:ntext:Payer', 'check_date:date:Check Date', 'payee.name:text:Payee', 'deposit.deposited_date:date:Deposited On', 'delivered:date:Delivered to Company', 'returned:date:Returned to Student', 'session.summary:text:Session', array('class' => 'CButtonColumn', 'template' => '{view}'))));
?>


<h3>Classes with instructors whose total assignment is not 100%</h3>



<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'class-info-grid', 'dataProvider' => new KArrayDataProvider($instructorbalance), 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('ClassInfo/view'), 'emptyText' => "Everything OK, no problems found!", 'showTableOnEmpty' => false, 'columns' => array('class_name:text:Name', 'unbalanced_instructors:percent:Unbalanced Instructor Total', 'min_grade_allowed:grade:Min Grade', 'max_grade_allowed:grade:Max Grade', array('name' => 'Weekday', 'value' => 'ZHtml::weekdayTranslation($data->day_of_week)'), 'location:text:Location', 'company.name:ntext:Company', 'status:text:Status', 'session.summary:text:Session', array('class' => 'CButtonColumn', 'template' => '{view}'))));
コード例 #15
0
ファイル: admin.php プロジェクト: kenrestivo/ossasep
<?php

$this->breadcrumbs = array('Students' => array('index'), 'Manage');
$this->menu = array(array('label' => 'List Student', 'url' => array('index')), array('label' => 'Create Student', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('student-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Manage Students</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'student-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('Student/view'), 'columns' => array('first_name', 'last_name', 'grade:grade', 'contact', 'emergency_1', 'emergency_2', 'emergency_3', 'parent_email:email', 'public_email_ok:boolean', array('class' => 'CButtonColumn', 'template' => '{view}{delete}'))));
echo CHTML::link("Add New Student", array("Student/create", 'returnTo' => Yii::app()->request->requestUri));
コード例 #16
0
ファイル: admin.php プロジェクト: kenrestivo/ossasep
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link('Advanced Search', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->


<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'class-info-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('ClassInfo/view'), 'columns' => array('class_name', 'min_grade_allowed:grade', 'max_grade_allowed:grade', 'start_time:time', 'end_time:time', 'cost_per_class', 'min_students', 'max_students', array('name' => 'day_of_week', 'value' => 'ZHtml::weekdayTranslation($data->day_of_week)'), 'location', 'company.name:ntext:Company', 'status', 'session.summary:text:Session', array('class' => 'CButtonColumn', 'template' => '{view}{delete}'))));
?>

<div class="span-10">
<?php 
echo CHTML::link("Add New Class", array("ClassInfo/create", 'returnTo' => Yii::app()->request->requestUri));
?>

</div>

<div class="span-10 last">
<?php 
echo CHTML::link("Copy Existing Class", array("ClassInfo/chooseCopy", 'returnTo' => Yii::app()->request->requestUri));
?>
</div>