コード例 #1
0
ファイル: job_talent_views.php プロジェクト: haogm123/ydoa
<table class="TableBlock" border="0" width="90%" align="center" style="border-bottom:#4686c6 solid 0px;">
  
 <tr>
      <td nowrap class="TableContent" width="15%"> 人才编号:</td>
      <td class="TableData">
      <?php 
echo $blog['number'];
?>
</td>
    </tr>
	
		<tr>
      <td nowrap class="TableContent" width="15%"> 招聘计划:</td>
      <td class="TableData">
      <?php 
echo get_job_name($blog['jobpost']);
?>
</td>
    </tr>
	
	
		<tr>
      <td nowrap class="TableContent" width="15%"> 姓名:</td>
      <td class="TableData">
     <?php 
echo $blog['name'];
?>
</td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 性别:</td>
コード例 #2
0
ファイル: job_talent.php プロジェクト: haogm123/ydoa
    echo get_boxlistkey("id[]", $row['id'], $row['uid'], $_USER->id);
    ?>
</td>
<td width="100"><a href="admin.php?ac=job_talent_views&fileurl=jobs&id=<?php 
    echo $row['id'];
    ?>
"><?php 
    echo $row['number'];
    ?>
</a></td>
<td class="title">
<a href="admin.php?ac=job_talent_views&fileurl=jobs&id=<?php 
    echo $row['id'];
    ?>
"><?php 
    echo get_job_name($row['jobpost']);
    ?>
</a>
</td>
<td width="80"><?php 
    echo $row['name'];
    ?>
</td>
<td width="60"><?php 
    echo $row['sex'];
    ?>
</td>
<td width="100"><?php 
    echo get_postname($row['job']);
    ?>
</td>
コード例 #3
0
        return;
    }
} else {
    $logger_tasks->log_info(__METHOD__ . '(' . $backup_process_id . ')', 'No backup job available.');
    wp_clear_scheduled_hook('wpbackitup_run_cleanup_tasks');
    WPBackItUp_Backup::end();
    //release lock
    return;
}
//Should only get here when there is a task to run
$logger_tasks->log_info(__METHOD__ . '(' . $backup_process_id . ')', 'Run Backup task:' . $current_task);
//*************************//
//*** MAIN BACKUP CODE  ***//
//*************************//
//Get the backup ID
$job_name = get_job_name($cleanup_job->backup_id);
global $logger;
$logger = new WPBackItUp_Logger(false, null, $job_name);
global $wp_backup;
$wp_backup = new WPBackItUp_Backup($logger, $job_name, $WPBackitup->backup_type);
//***   SCHEDULED TASKS   ***//
//Run cleanup task
if ('task_scheduled_cleanup' == $current_task) {
    //Init
    $logger->log('***BEGIN JOB***');
    $logger->log_sysinfo();
    $logger->log('Check License');
    do_action('wpbackitup_check_license');
    $logger->log('Scheduled Cleanup requested');
    $logger->log('**CLEAN UNFINISHED BACKUPS**');
    //cleanup any folders that have the TMP_ prefix
コード例 #4
0
ファイル: mod_job_talent.php プロジェクト: haogm123/ydoa
        $wheresql .= " AND job='" . $job . "'";
    }
    if ($education = getGP('education', 'P')) {
        $wheresql .= " AND education='" . $education . "'";
    }
    $vuidtype = getGP('vuidtype', 'P');
    if (!is_superadmin() && $vuidtype == '') {
        $wheresql .= " AND uid = {$_USER->id}";
    }
    if ($vuidtype != '') {
        if ($vuidtype == '-1') {
            $wheresql .= get_subordinate($_USER->id, 'uid');
        } else {
            $wheresql .= " and uid='" . $vuidtype . "'";
        }
    }
    $sql = "SELECT * FROM " . DB_TABLEPRE . "job_talent WHERE 1 {$wheresql} ORDER BY id desc";
    $result = $db->query($sql);
    while ($row = $db->fetch_array($result)) {
        $archive = array("" . $row[number] . "", "" . get_job_name($row[jobpost]) . "", "" . $row[name] . "", "" . $row[sex] . "", "" . $row[contact] . "", "" . get_postname($row[job]) . "", "" . get_typename($row[education]) . "", "" . $row[appendix] . "", "" . $row[content] . "", "" . get_realname($row['uid']) . "", "" . str_replace("-", ".", $row[date]) . "");
        $content[] = $archive;
    }
    $excel = new ExcelWriter($outputFileName);
    if ($excel == false) {
        echo $excel->error;
    }
    foreach ($content as $v) {
        $excel->writeLine($v);
    }
    $excel->sendfile($outputFileName);
}
コード例 #5
0
ファイル: mod_job_hire.php プロジェクト: haogm123/ydoa
        $wheresql .= " AND department='" . $department . "'";
    }
    if ($jobpost = getGP('jobpost', 'P')) {
        $wheresql .= " AND jobpost='" . $jobpost . "'";
    }
    $vuidtype = getGP('vuidtype', 'P');
    if (!is_superadmin() && $vuidtype == '') {
        $wheresql .= " AND uid = {$_USER->id}";
    }
    if ($vuidtype != '') {
        if ($vuidtype == '-1') {
            $wheresql .= get_subordinate($_USER->id, 'uid');
        } else {
            $wheresql .= " and uid='" . $vuidtype . "'";
        }
    }
    $sql = "SELECT * FROM " . DB_TABLEPRE . "job_hire WHERE 1 {$wheresql} ORDER BY id desc";
    $result = $db->query($sql);
    while ($row = $db->fetch_array($result)) {
        $archive = array("" . get_talent_name($row['job_talent']) . "", "" . get_job_name($row['jobpost']) . "", "" . $row['user'] . "", "" . $row[department] . "", "" . str_replace("-", ".", $row[hiredate]) . "", "" . get_postname($row['job']) . "", "" . $row[content] . "", "" . get_realname($row['uid']) . "", "" . str_replace("-", ".", $row[date]) . "");
        $content[] = $archive;
    }
    $excel = new ExcelWriter($outputFileName);
    if ($excel == false) {
        echo $excel->error;
    }
    foreach ($content as $v) {
        $excel->writeLine($v);
    }
    $excel->sendfile($outputFileName);
}