当前位置: 首页>>代码示例>>PHP>>正文


PHP Jobs::getAll方法代码示例

本文整理汇总了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();
开发者ID:rahmanjis,项目名称:dipstart-development,代码行数:31,代码来源:index.php

示例2: jobs

 public function jobs()
 {
     $jobs = new Jobs();
     return $jobs->getAll();
 }
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:5,代码来源:class.User.php

示例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;
开发者ID:adamrr724,项目名称:Jobs-PHP,代码行数:23,代码来源:app.php

示例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'];
    ?>
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:31,代码来源:legal_jobs.php


注:本文中的Jobs::getAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。