Added export_lotw to export an ADIF file of QSOs that have not been uploaded to LoTW

这个提交包含在:
Corby Krick 2013-03-04 22:57:29 -06:00
父节点 bbfbdd8450
当前提交 cbe6635271
共有 2 个文件被更改,包括 20 次插入0 次删除

查看文件

@ -49,6 +49,18 @@ class adif extends CI_Controller {
}
public function export_lotw()
{
// Set memory limit to unlimited to allow heavy usage
ini_set('memory_limit', '-1');
$this->load->model('adif_data');
$data['qsos'] = $this->adif_data->export_lotw();
$this->load->view('adif/data/exportall', $data);
}
public function import() {
$data['page_title'] = "ADIF Import";

查看文件

@ -23,6 +23,14 @@ class adif_data extends CI_Model {
return $query;
}
function export_lotw() {
$this->db->where("COL_LOTW_QSL_SENT != 'Y'");
$this->db->order_by("COL_TIME_ON", "ASC");
$query = $this->db->get($this->config->item('table_name'));
return $query;
}
}
?>