Exemplo n.º 1
0
    }
}
?>

        </table>


<?php 
foreach ($students as $st) {
    echo '<span class="span-11">';
    echo CHTML::link(CHtml::encode("Add New Check for " . $st->full_name) . '<br />', array("CheckIncome/multiEntry", 'student_id' => $st->id, 'class_id' => $model->id, 'company_id' => $model->company_id, 'returnTo' => Yii::app()->request->requestUri));
    echo "</span><span class=\"span-9 last\">";
    $un = CheckIncome::underAssignedChecks(null, $st->id);
    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", 'check_id' => $check->id, 'student_id' => $st->id, 'class_id' => $model->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>

<?php 
if (count($students) < 1) {
    echo "<em>All paid up! Nothing owed.</em>";
}
Exemplo n.º 2
0
    echo $form->hiddenField($model, '[' . $modelId . ']user_input', array("value" => $model->user_input));
    ?>
                <td><?php 
    echo $model->user_input;
    ?>
</td>
                <td>
                    <?php 
    foreach ($geoDistances as $dis => $title) {
        $checked = $dis == $model->distance ? 'checked="checked"' : '';
        echo '<input type="radio" id="Geolocation_' . $modelId . '_distance" name="Geolocation[' . $modelId . '][distance]" value="' . $dis . '" ' . $checked . '/> ' . $title . '&nbsp;&nbsp;&nbsp;';
    }
    ?>
                </td>
                <td><?php 
    echo CHTML::link("remove", '#', array("id" => "link_" . $model->id, "class" => "btn btn-small rm-links"));
    ?>
 </td>
            </tr>
        <?php 
}
?>
        <tr>
            <?php 
$modelId = 'new';
$model = $newGeo;
?>
            <?php 
echo $form->hiddenField($model, '[' . $modelId . ']video_id', array("value" => $model_g->id));
?>
            <?php 
Exemplo n.º 3
0
<?php

$this->breadcrumbs = array('Check Incomes' => array('index'), $model->id);
$this->menu = array(array('label' => 'Edit', 'url' => array('update', 'id' => $model->id)), array('label' => 'Delete', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')));
?>

<h1>View Check <?php 
echo $model->summary;
?>
</h1>

<?php 
echo $this->renderPartial('_view', array('data' => $model));
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('delivered:date', 'returned:date', 'deposit.deposited_date:date:Deposited', 'session.summary:text:Session', 'unassigned:currency:Un-Assigned')));
?>

<p></p>
<h2>Assignments</h2>
<?php 
$un = $model->unassigned;
if ($un == 0) {
    echo "<div>Check completely assigned, no amounts to assign.</div>";
}
// could be a tab, but probably not necessary at the moment
echo CHTML::link("Add Split for " . CHtml::encode(Yii::app()->format->currencyZero($un) . ' (of ' . Yii::app()->format->currency($model->amount) . ')'), array("Income/create", 'check_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'income-grid', 'ajaxUpdate' => false, 'summaryText' => $this->splitSummary(), 'dataProvider' => new KArrayDataProvider($model->incomes), 'columns' => array('student.full_name:text:Student', 'class.summary:text:Class', 'amount:currency:Assigned Split', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Income', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
Exemplo n.º 4
0
<?php 
echo CHTML::link("Add Class for Instructor", array("InstructorAssignment/create", 'instructor_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'instructorassignment-grid', 'dataProvider' => new KArrayDataProvider($model->instructor_assignments), 'columns' => array(array('name' => "Name", 'value' => '$data->class->summary'), 'percentage:percent', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'InstructorAssignment', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>

Exemplo n.º 5
0
<?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?'));
Exemplo n.º 6
0
<div>

<p><em>Requirement Summary:</em></p>

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

<?php 
echo CHTML::link("Receive New Paperwork for " . $model->full_name, array("RequirementStatus/create", 'instructor_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'requirement-status-grid', 'dataProvider' => new KArrayDataProvider($model->requirement_status), 'columns' => array('requirement_type.description:text:Requirement', 'received:date:Received On', 'expired:date:Expires On', 'note:ntext:Note', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'RequirementStatus', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>

Exemplo n.º 7
0
<?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));
Exemplo n.º 8
0
<?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));
Exemplo n.º 9
0
<span class="span-8" >

<?php 
echo CHTML::link("Add 1 Class for " . CHtml::encode($model->full_name), array("Signup/create", 'student_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
?>

</span>

<span class="span-9 last" >

<?php 
echo CHtml::beginForm(array('/Signup/createMulti', 'student_id' => $model->id));
echo CHtml::submitButton('Add');
echo CHtml::textField('count', 2, array('size' => 2));
echo " Classes for " . CHtml::encode($model->full_name);
echo CHtml::endForm();
?>

</span>

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'signup-grid', 'rowCssClassExpression' => 'ZHtml::rowHack($this, $data, $row)', 'dataProvider' => new KArrayDataProvider($model->signups), 'columns' => array('class.summary:text:Class', 'status:text:Status', 'scholarship:boolean:Scholarship', 'signup_date:datetime:Signed Up On', 'note:ntext:Note', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Signup', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
Exemplo n.º 10
0
<?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')));
Exemplo n.º 11
0
<h3>Descriptions</h3>
<?php 
echo CHTML::link("Add Description to Class", array("ClassDescription/create", 'class_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'extrafees-grid', 'dataProvider' => new CArrayDataProvider($model->class_descriptions), 'columns' => array('language.description:text:Language', 'description:ntext:Description', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'ClassDescription', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>


Exemplo n.º 12
0
<?php 
echo $this->renderPartial('_description', array('model' => $model));
?>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('status', 'company.name:ntext:Company', 'session.summary:text:Session', 'note')));
?>

<p class="clear"></p>
<?php 
echo CHTML::link(CHtml::encode("Edit  " . $model->summary), array('update', 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
?>
 &nbsp;<?php 
echo CHTML::link(CHtml::encode("Delete  " . $model->summary), array('#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')));
?>


Exemplo n.º 13
0
<?php

$am = $model->active_meetings;
echo '<div><div class="span-11">';
if (count($am) < 1) {
    echo CHtml::beginForm(array('populate', 'id' => $model->id));
    echo "<span>Auto-populate " . ZHtml::weekdayTranslation($model->day_of_week) . " meeting dates: </span>";
    echo CHtml::textField('num', 8, array('size' => 2));
    echo CHtml::submitButton('Add');
    echo CHtml::endForm();
    echo '<br /> or ';
} else {
    echo "<span>You already have " . count($am) . " meeting dates.</span><br />";
}
echo CHTML::link(CHtml::encode("Add 1 Meeting Date for " . $model->summary), array("ClassMeeting/create", 'class_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
echo "</div><div class=\"span-9 last\">Your session settings are: " . ZHtml::mediumDate($model->session->start_date) . " - " . ZHtml::mediumDate($model->session->end_date) . "  ";
echo "</div>";
echo '</div><div class="clear"></div>';
?>

<?php 
?>


<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'meetingdate-grid', 'dataProvider' => new CArrayDataProvider($model->meetings), 'summaryText' => "" . $model->active_mtg_count . " meetings, " . $model->makeup_day_count . " makeup day(s)", 'columns' => array('meeting_date:date:Date', 'note:ntext:Note', 'makeup:boolean:Make-Up', 'school_day.minimum:boolean:Minimum', 'school_day.day_off:boolean:Day Off', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'ClassMeeting', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>

Exemplo n.º 14
0
<?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));
Exemplo n.º 15
0
<?php 
$attributes = array('first_name', 'last_name', 'alias', 'email:email', 'cell_phone', 'other_phone', 'note:ntext', 'instructor_type.description:ntext:Instructor Type');
if ($model->is_company) {
    $attributes[] = 'company.name:ntext:Company';
}
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => $attributes));
echo CHTML::link("Edit  " . $model->full_name, array('update', 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
?>
 &nbsp;<?php 
echo CHTML::link("Delete  " . $model->full_name, array('#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')));
?>



Exemplo n.º 16
0
<?php

echo CHTML::link(CHtml::encode("Add Student to " . $model->summary), array("Signup/create", 'class_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'signup-grid', 'dataProvider' => new KArrayDataProvider($model->sortedSignups), 'rowCssClassExpression' => 'ZHtml::rowHack($this, $data, $row)', 'selectionChanged' => ZHtml::compositeClickableRow('Signup/update', array('student_id', 'class_id'), Yii::app()->request->requestUri), 'summaryText' => $model->summaryCounts, 'columns' => array('student.full_name:text:Name', 'student.grade:grade:Grade', 'student.contact:text:Contact', 'student.emergency_1:text:Emergency', 'student.emergency_2:text:Emergency 2', 'student.emergency_3:text:Emergency 3', 'student.parent_email:email:Email', 'signup_date:datetime:Signed Up On', 'status:text:Status', 'note:ntext:Note', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Signup', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>

Exemplo n.º 17
0
<?php

echo CHTML::link("Add Payment for " . $model->full_name, array("CheckExpense/create", 'payee_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'requiermentstatus-grid', 'dataProvider' => new KArrayDataProvider($model->expenses), 'columns' => array('check_num:ntext:Check #', 'amount:currency:Total Check Amount', 'check_date:date:Check Date', 'payer:text:Payer', 'delivered:date:Delivered to Company', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'CheckExpense', 'returnTo' => Yii::app()->request->requestUri))));
?>

Exemplo n.º 18
0
<?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));
Exemplo n.º 19
0
<h3>Extra Fees</h3>
<?php 
echo CHTML::link("Add Extra Fee to Class", array("ExtraFee/create", 'class_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'extrafees-grid', 'dataProvider' => new CArrayDataProvider($model->extra_fees), 'columns' => array('description', 'amount', 'pay_to_instructor:boolean', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'ExtraFee', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>


Exemplo n.º 20
0
<?php

// TODO: replace this with a stat query
$c = Yii::app()->db->createCommand();
$c->text = "select count(school_day) as count from school_calendar where school_year_id = :schoolyearid;";
$r = $c->queryRow(true, array('schoolyearid' => $model->id));
if ($r['count'] < 1) {
    echo CHTML::link("Auto-Populate School Days for " . $model->description, array('populate', 'id' => $model->id));
    echo "<br />";
}
echo CHTML::link("Add Date to " . $model->description, array("SchoolCalendar/create", 'school_year_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
$this->widget('zii.widgets.grid.CGridView', array('id' => 'schoolcalendar-grid', 'dataProvider' => new KArrayDataProvider($model->school_calendars), 'columns' => array('school_day:date:Date', 'minimum:boolean:Minimum', 'day_off:boolean:Day Off', 'note:ntext:Note', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'SchoolCalendar', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>

Exemplo n.º 21
0
<?php 
echo CHTML::link(CHtml::encode("Add Instructor to " . $model->summary), array("InstructorAssignment/create", 'class_id' => $model->id, 'company_id' => $model->company_id, 'returnTo' => Yii::app()->request->requestUri));
$un = $model->instructor_discrepancy;
if ($un == 0) {
    echo "<br /><div>Instructors completely assigned, no instructor percentage remaining.</div>";
}
?>
</div>
<div class="span-9 last">


 <b><?php 
echo CHtml::encode($model->getAttributeLabel('company'));
?>
:</b>
  <?php 
echo CHtml::encode($model->company->name);
echo CHTML::link("(Change)", array('update', 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
?>


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

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'instructorassignment-grid', 'ajaxUpdate' => false, 'summaryText' => $this->instructorSplitSummary(), 'dataProvider' => new KArrayDataProvider($model->instructor_assignments), 'columns' => array('instructor.full_name:text:Instructor', 'percentage:percent:Percentage', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'InstructorAssignment', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
?>

Exemplo n.º 22
0
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>