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


PHP Jobs类代码示例

本文整理汇总了PHP中Jobs的典型用法代码示例。如果您正苦于以下问题:PHP Jobs类的具体用法?PHP Jobs怎么用?PHP Jobs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Jobs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: load

 /**
  * Load your component.
  *
  * @param \Cx\Core\ContentManager\Model\Entity\Page $page       The resolved page
  */
 public function load(\Cx\Core\ContentManager\Model\Entity\Page $page)
 {
     global $_CORELANG, $subMenuTitle, $objTemplate;
     switch ($this->cx->getMode()) {
         case \Cx\Core\Core\Controller\Cx::MODE_FRONTEND:
             $objJobs = new Jobs(\Env::get('cx')->getPage()->getContent());
             \Env::get('cx')->getPage()->setContent($objJobs->getJobsPage());
             if ($page->getCmd() === 'details') {
                 $objJobs->getPageTitle(\Env::get('cx')->getPage()->getTitle());
                 \Env::get('cx')->getPage()->setTitle($objJobs->jobsTitle);
                 \Env::get('cx')->getPage()->setContentTitle($objJobs->jobsTitle);
                 \Env::get('cx')->getPage()->setMetaTitle($objJobs->jobsTitle);
             }
             break;
         case \Cx\Core\Core\Controller\Cx::MODE_BACKEND:
             $this->cx->getTemplate()->addBlockfile('CONTENT_OUTPUT', 'content_master', 'LegacyContentMaster.html');
             $objTemplate = $this->cx->getTemplate();
             \Permission::checkAccess(148, 'static');
             $subMenuTitle = $_CORELANG['TXT_JOBS_MANAGER'];
             $objJobsManager = new JobsManager();
             $objJobsManager->getJobsPage();
             break;
         default:
             break;
     }
 }
开发者ID:Cloudrexx,项目名称:cloudrexx,代码行数:31,代码来源:ComponentController.class.php

示例2: actionAdmin

 public function actionAdmin()
 {
     $model = new Jobs('search');
     $model->unsetAttributes();
     if (isset($_GET['Jobs'])) {
         $model->setAttributes($_GET['Jobs']);
     }
     $this->render('admin', array('model' => $model));
 }
开发者ID:redsn0w422,项目名称:DarshanVis,代码行数:9,代码来源:JobsController.php

示例3: getDelete

 public function getDelete($id)
 {
     $job = Jobs::find($id);
     $job->delete();
     Session::flash('message', 'The records are deleted successfully');
     return Redirect::to('job');
 }
开发者ID:andrinda,项目名称:myhotel,代码行数:7,代码来源:JobController.php

示例4: getEdit

 public function getEdit($id)
 {
     $data = guest::find($id);
     $regions = Regions::all();
     $country = Countries::where('region_id', '=', $data->city->province->country->region->id)->get();
     $province = Provinces::where('country_id', '=', $data->city->province->country->id)->get();
     $city = Cities::where('province_id', '=', $data->city->province->id)->get();
     $options = array('data' => $data, 'regions' => $regions, 'country' => $country, 'province' => $province, 'city' => $city, 'identity' => Identity::all(), 'job' => Jobs::all());
     return View::make('home/dashboard', array())->nest('content', 'guest/edit', $options);
 }
开发者ID:andrinda,项目名称:myhotel,代码行数:10,代码来源:GuestController.php

示例5: actionIndex

 public function actionIndex()
 {
     $jobs = Jobs::Model()->findAll('office_id = :office_id', array(':office_id' => $oid));
     echo $jobs['description'];
     if (strlen($jobs['description']) > 600) {
         $jobs['description'] = mb_substr($jobs['description'], 0, 600, 'utf-8') . '...';
     }
     $this->render('/office/jobs/index', array('jobs' => $jobs, 'my_office' => $this->checkMyOffice($oid)));
     $this->render('/business/findjob/index');
 }
开发者ID:BGCX067,项目名称:facecom-svn-to-git,代码行数:10,代码来源:FindjobController.php

示例6: Position

 public function Position()
 {
     $data = Jobs::All();
     $array = array();
     $i = 0;
     foreach ($data as $row) {
         $array[$i] = $row->name;
         $i++;
     }
     return $array;
 }
开发者ID:andrinda,项目名称:myhotel,代码行数:11,代码来源:EmployeeController.php

示例7: searchResults

 function searchResults($cat1 = 'ALL', $categoty = '', $loc)
 {
     $retstr = '<div class="searchresult">';
     $retstr .= 'Below shows the <span class="emphasis">lastest</span> postings for ';
     if (empty($cat1)) {
         $findstr = 'ALL ' . $categoty;
     } else {
         $findstr = Jobs::getCat1NameById($cat1) . ' ' . $categoty;
     }
     /*
     if (strtolower($region) == strtolower($city))
     {
     	$location = 'All ' . $city;
     }
     else
     {
     	$location = $region . ' of ' . $city;
     }
     */
     $location = "";
     $searchRule = Location::getSearchRule($coutry);
     logfire('search resutl searchrule', $searchRule);
     if ($searchRule == 1 || $searchRule == 2) {
         if (!empty($city)) {
             $location = $city;
         }
     }
     if (!empty($state)) {
         if (empty($location)) {
             $location = $state;
         } else {
             $location .= ' ' . $state;
         }
     }
     if (!empty($coutry)) {
         if (empty($location)) {
             $location = $coutry;
         } else {
             $location .= ', ' . $coutry;
         }
     }
     $retstr .= '<span class="emphasis">' . $findstr . '</span> ';
     $retstr .= 'in <span class="emphasis">' . $location . '</span>. ';
     $retstr .= '</div>';
     return $retstr;
 }
开发者ID:xinghao,项目名称:shs,代码行数:46,代码来源:SearchResults.php

示例8: date

: <?php 
    echo date("d.m.Y H:i:s", $event->timestamp);
    ?>
<br>
<?php 
    echo $attributes['category_id'];
    ?>
: <?php 
    echo Categories::model()->findByPk($model->category_id)->cat_name;
    ?>
<br>
<?php 
    echo $attributes['job_id'];
    ?>
: <?php 
    echo Jobs::model()->findByPk($model->job_id)->job_name;
    ?>
<br>
<?php 
    echo $attributes['max_exec_date'];
    ?>
: <?php 
    echo $model->dbmax_exec_date;
    ?>
<br>
<?php 
    echo $attributes['date_finish'];
    ?>
: <?php 
    echo $model->dbdate_finish;
    ?>
开发者ID:keltstr,项目名称:dipstart-development,代码行数:31,代码来源:preview.php

示例9: getJobs

 /**
  * Get job tuples
  * @return mixed[int] The jobs
  */
 private function getJobs()
 {
     $jobs = new Jobs();
     $jobList = $jobs->getJobs();
     Tools::usort($jobList);
     $smartyJobs = array();
     $jobsWithoutSupport = array();
     foreach ($jobList as $job) {
         $smartyJobs[$job->getId()] = array("name" => $job->getName(), "type" => $job->getType(), "typeName" => Job::$typeNames[$job->getType()], "color" => $job->getColor());
         if (Jobs::JOB_SUPPORT != $job->getId() && Jobs::JOB_NA != $job->getId()) {
             $jobsWithoutSupport[] = $job->getId();
             $smartyJobs[$job->getId()]["deletedJob"] = true;
         }
     }
     $formattedJobs = implode(", ", $jobsWithoutSupport);
     // if job already used for TimeTracking, delete forbidden
     $query2 = "SELECT jobid, COUNT(jobid) as count " . "FROM `codev_timetracking_table` " . "WHERE jobid IN ({$formattedJobs}) GROUP BY jobid;";
     $result2 = SqlWrapper::getInstance()->sql_query($query2);
     if (!$result2) {
         return NULL;
     }
     while ($row = SqlWrapper::getInstance()->sql_fetch_object($result2)) {
         $smartyJobs[$row->jobid]["deletedJob"] = 0 == $row->count;
     }
     return $smartyJobs;
 }
开发者ID:fg-ok,项目名称:codev,代码行数:30,代码来源:edit_jobs.php

示例10: accessToken

function accessToken($id)
{
    $j = new Jobs($id);
    $job = $j->showJobDetails();
    return sha1($job->id . $job->created);
}
开发者ID:florentsuc,项目名称:jobskee-open-source-job-board,代码行数:6,代码来源:helpers.php

示例11: T_

 $extproj->addIssue($extTasksCatLeave, $task_sickleave, T_("Sick"), 90);
 // Create default jobs
 // Note: Support & N/A jobs already created by SQL file
 // Note: N/A job association to ExternalTasksProject already done in Install::createExternalTasksProject()
 echo "DEBUG 13/16 Create default jobs<br/>";
 if ($isJob2) {
     Jobs::create($job2, Job::type_commonJob, $job2_color);
 }
 if ($isJob3) {
     Jobs::create($job3, Job::type_commonJob, $job3_color);
 }
 if ($isJob4) {
     Jobs::create($job4, Job::type_commonJob, $job4_color);
 }
 if ($isJob5) {
     Jobs::create($job5, Job::type_commonJob, $job5_color);
 }
 // Set default Issue tooltip content
 echo "DEBUG 14/16 Set default content for Issue tooltip <br/>";
 $customField_type = Config::getInstance()->getValue(Config::id_customField_type);
 $backlogField = Config::getInstance()->getValue(Config::id_customField_backlog);
 $fieldList = array('project_id', 'category_id', 'custom_' . $customField_type, 'codevtt_elapsed', 'custom_' . $backlogField, 'codevtt_drift');
 $serialized = serialize($fieldList);
 Config::setValue('issue_tooltip_fields', $serialized, Config::configType_string, 'fields to be displayed in issue tooltip');
 // Add custom fields to existing projects
 echo "DEBUG 15/16 Prepare existing projects<br/>";
 if (isset($_POST['projects']) && !empty($_POST['projects'])) {
     $selectedProjects = $_POST['projects'];
     foreach ($selectedProjects as $projectid) {
         $project = ProjectCache::getInstance()->getProject($projectid);
         echo "DEBUG prepare project: " . $project->getName() . "<br/>";
开发者ID:fg-ok,项目名称:codev,代码行数:31,代码来源:install_step3.php

示例12: uses

<?php

/**
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2075 $
 */
require "../libraries/common.inc.php";
require PHPB2B_ROOT . 'libraries/page.class.php';
require "session_cp.inc.php";
uses("job", "company", "member", "typeoption");
$job = new Jobs();
$page = new Pages();
$member = new Members();
$company = new Companies();
$typeoption = new Typeoption();
$conditions = null;
$table = array();
$job_status = explode(",", L('product_status', 'tpl'));
setvar("CheckStatus", $job_status);
$tpl_file = "job";
if (isset($_GET['do'])) {
    $do = trim($_GET['do']);
    if (!empty($_GET['id'])) {
        $id = intval($_GET['id']);
    }
    if ($do == "del" && !empty($id)) {
        $job->del($_GET['id']);
    }
    if ($do == "view" && !empty($id)) {
开发者ID:reboxhost,项目名称:phpb2b,代码行数:31,代码来源:job.php

示例13: function

 * Homepage
 * Front page controller
 */
$app->get('/(:page)', function ($page = null) use($app) {
    global $categories;
    if (isset($page) && $page != '') {
        $content = R::findOne('pages', ' url=:url ', array(':url' => $page));
        if ($content && $content->id) {
            // show page information
            $seo_title = $content->name . ' | ' . APP_NAME;
            $seo_desc = excerpt($content->description);
            $seo_url = BASE_URL . $page;
            $app->render(THEME_PATH . 'page.php', array('seo_url' => $seo_url, 'seo_title' => $seo_title, 'seo_desc' => $seo_desc, 'content' => $content));
        } else {
            $app->flash('danger', 'The page you are looking for could not be found.');
            $app->redirect(BASE_URL, 404);
        }
    } else {
        // show list of job
        $seo_title = APP_NAME;
        $seo_desc = APP_DESC;
        $seo_url = BASE_URL;
        $j = new Jobs();
        foreach ($categories as $cat) {
            $jobs[$cat->id] = $j->getJobs(ACTIVE, $cat->id, 0, HOME_LIMIT);
        }
        $app->render(THEME_PATH . 'home.php', array('seo_url' => $seo_url, 'seo_title' => $seo_title, 'seo_desc' => $seo_desc, 'jobs' => $jobs));
    }
});
// Run app
$app->run();
开发者ID:aescarcha,项目名称:jobskee-open-source-job-board,代码行数:31,代码来源:index.php

示例14: foreach

<?php

/* @var $this ZakazController */
/* @var $model Zakaz */
$filelist = Yii::app()->fileman->list_files($model->id);
foreach ($filelist as $fd) {
    $real_path = Yii::app()->fileman->get_file_path($fd['id'], $fd['file_id']);
    $files .= CHtml::link($fd['filename'], array('zakaz/download', 'path' => $real_path)) . '&nbsp;&nbsp;';
    //echo EDownloadHelper::download($real_path);
}
$this->breadcrumbs = array(ProjectModule::t('Zakazs') => array('index'), $model->title);
?>

<h1><?php 
echo ProjectModule::t('View Zakaz');
?>
 #<?php 
echo $model->id;
?>
</h1>
<?php 
if (User::model()->isManager() || User::model()->isAdmin()) {
    $attr = array('id', array('name' => 'user_id', 'type' => 'raw', 'value' => User::model()->findByPk($model->user_id)->username), array('name' => 'category_id', 'type' => 'raw', 'value' => Categories::model()->findByPk($model->category_id)->cat_name), array('name' => 'job_id', 'type' => 'raw', 'value' => Jobs::model()->findByPk($model->job_id)->job_name), 'title', 'text', 'date', 'max_exec_date', 'date_finish', 'pages', 'add_demands', array('name' => 'status', 'type' => 'raw', 'value' => $model->status > 0 ? ProjectStatus::model()->findByPk($model->status)->status : null), 'is_payed', 'informed', 'notes');
} else {
    $attr = array('id', array('name' => 'user_id', 'type' => 'raw', 'value' => User::model()->findByPk($model->user_id)->username), array('name' => 'category_id', 'type' => 'raw', 'value' => Categories::model()->findByPk($model->category_id)->cat_name), array('name' => 'job_id', 'type' => 'raw', 'value' => $model->job_id > 0 ? Jobs::model()->findByPk($model->job_id)->job_name : null), 'title', 'text', 'date', 'max_exec_date', 'pages', 'add_demands', array('name' => 'status', 'type' => 'raw', 'value' => $model->status > 0 ? ProjectStatus::model()->findByPk($model->status)->status : null));
}
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => $attr));
$this->widget('application.modules.project.widgets.zakazParts.ZakazPartWidget', array('projectId' => $model->id, 'userType' => '1', 'action' => 'show'));
开发者ID:rahmanjis,项目名称:dipstart-development,代码行数:28,代码来源:view.php

示例15: function

     // show all job applications
     $app->get('(/(:page))', 'validateUser', function ($page = 1) use($app) {
         $a = new Applications();
         $start = getPaginationStart($page);
         $count = $a->countApplications();
         $number_of_pages = ceil($count / LIMIT);
         $applications = $a->getApplications($start);
         $app->render(ADMIN_THEME . 'applications.php', array('applications' => $applications, 'number_of_pages' => $number_of_pages, 'current_page' => $page, 'page_name' => 'applications', 'count' => $count));
     });
     // get job applications
     $app->get('/jobs/:id(/:page)', 'validateUser', function ($id, $page = 1) use($app) {
         $a = new Applications($id);
         $start = getPaginationStart($page);
         $count = $a->countApplications($id);
         $number_of_pages = ceil($count / LIMIT);
         $j = new Jobs($id);
         $title = $j->getSeoTitle();
         $applications = $a->getApplications($start);
         $app->render(ADMIN_THEME . 'applications.job.php', array('applications' => $applications, 'number_of_pages' => $number_of_pages, 'current_page' => $page, 'page_name' => 'applications', 'count' => $count, 'title' => $title, 'id' => $id));
     });
 });
 $app->group('/subscribers', function () use($app) {
     $app->get('(/(:page))', 'validateUser', function ($page = 1) use($app) {
         $s = new Subscriptions('');
         $start = getPaginationStart($page);
         $count = $s->countSubscriptions();
         $number_of_pages = ceil($count / LIMIT);
         $users = $s->getAllSubscriptions($start);
         $app->render(ADMIN_THEME . 'subscribers.php', array('users' => $users, 'number_of_pages' => $number_of_pages, 'current_page' => $page, 'count' => $count, 'page_name' => 'subscribers'));
     });
     $app->get('/:id/:action/:token', 'validateUser', function ($id, $action, $token) use($app) {
开发者ID:aescarcha,项目名称:jobskee-open-source-job-board,代码行数:31,代码来源:admin.php


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