我只是想知道是否有一种方法可以限制用户每天针对每个项目报告一次? 例如,用户有2个正在进行的项目,并且一天之内,他必须每天为每个项目报告一次进度
<div class="table-responsive">
<table id="zero_config" class="table table-striped table-bordered display" style="width:100%">
<thead>
<tr>
<th>No.</th>
<th>Project</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
foreach($project as $row) {
?>
<tr>
<td><?php echo $i++ ?>.</td>
<td><?php echo $row->nama_project ?></td>
<td><a href="<?php echo base_url('report/harian/'.$row->id_project) ?>" class="btn btn-primary btn-xs btn-block"><i class="fa fa-file-code"></i> Report</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
SQL
$this->db->select('*');
$this->db->from('project');
$this->db->join('user', 'user.id_user = project.pic', 'right');
$this->db->join('pegawai', 'pegawai.id_pegawai = user.id_pegawai', 'right');
$this->db->where('project.pic', $id);
$query = $this->db->get();
return $query->result();
非常感谢