本文整理汇总了PHP中Jobs::getAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Jobs::getAll方法的具体用法?PHP Jobs::getAll怎么用?PHP Jobs::getAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Jobs
的用法示例。
在下文中一共展示了Jobs::getAll方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
}
}
/*$columns[] = array(
'name'=>'date',
'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array(
'model'=>$model,
'attribute'=>'dbdate',
'language'=>Yii::app()->language,
),true),
'value'=>'$data->dbdate'
);*/
$columns[] = array('name' => 'manager_informed', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'dbmanager_informed', 'language' => Yii::app()->language), true), 'value' => '$data->dbmanager_informed');
$columns[] = array('class' => 'CButtonColumn', 'template' => '{delete}{update}');
} else {
$columns = array('id', array('name' => 'status', 'filter' => ProjectStatus::getAll(), 'value' => '$data->statusName'), 'title', array('name' => 'jobName', 'filter' => Jobs::getAll(), 'value' => '$data->jobName'), array('name' => 'catName', 'filter' => Categories::getAll()), array('name' => 'date', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'dbdate', 'language' => 'ru'), true), 'value' => '$data->dbdate'), array('name' => 'manager_informed', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'dbmanager_informed', 'language' => 'ru'), true), 'value' => '$data->dbmanager_informed'), array('name' => 'date_finish', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'dbdate_finishstart', 'language' => 'ru'), true) . $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'dbdate_finishend', 'language' => 'ru'), true), 'value' => '$data->dbdate_finish'), array('class' => 'CButtonColumn', 'template' => '{delete}{update}'));
}
?>
<div id="grid">
<?php
$this->widget('zii.widgets.grid.CGridView', array('id' => 'order_list', 'dataProvider' => $model->search(), 'filter' => $model, 'afterAjaxUpdate' => 'reinstallDatePicker', 'columns' => $columns, 'ajaxType' => 'POST', 'rowHtmlOptionsExpression' => 'array("style" => "cursor:pointer")', 'selectionChanged' => "js:function(id){\n document.location.href=\$('.selected').find('td').find('a.update').attr('href');\n }"));
?>
<script>
$(document).ready(function()
{
$('body').on('dblclick', '#order_list tbody tr', function(event)
{
var
rowNum = $(this).index(),
keys = $('#order_list > div.keys > span'),
rowId = keys.eq(rowNum).text();
示例2: jobs
public function jobs()
{
$jobs = new Jobs();
return $jobs->getAll();
}
示例3: session_start
<?php
require_once __DIR__ . "/../vendor/autoload.php";
require_once __DIR__ . "/../src/Jobs.php";
session_start();
if (empty($_SESSION['job-list'])) {
$_SESSION['job-list'] = array();
}
$app = new Silex\Application();
$app->register(new Silex\Provider\TwigServiceProvider(), array('twig.path' => __DIR__ . '/../views'));
$app->get("/", function () use($app) {
return $app['twig']->render('jobslist.html.twig', array('jobs' => Jobs::getAll()));
});
$app->post("/jobcreate", function () use($app) {
$job = new Jobs($_POST['company'], $_POST['title'], $_POST['description'], $_POST['start'], $_POST['end']);
$job->save();
return $app['twig']->render('jobadded.html.twig');
});
$app->post("/session_cleared", function () use($app) {
Jobs::reset();
return $app['twig']->render('reset.html.twig');
});
return $app;
示例4: Jobs
<th>Heading</th>
<th>Post</th>
<th>Eduction</th>
<th>Experience</th>
<th>Description</th>
<th>Company</th>
<th>Address</th>
<th>Date</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php
$jobsObj = new Jobs();
$rows = $jobsObj->getAll();
foreach ($rows as $row) {
?>
<tr>
<td><?php
echo $row['id'];
?>
</td>
<td class="center"><?php
echo $row['heading'];
?>
</td>
<td class="center"><?php
echo $row['post'];
?>