for ($i = date('Y'); $i >= date('Y') - 32; $i -= 1) { echo "<option value='{$i}'> {$i} </option>"; } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="basicinput">Foto</label> <div class="controls"> <input data-title="A tooltip for the input" name="foto" type="file" data-original-title="" class="span6 tip"> </div> </div> <div class="control-group"> <div class="controls"> <input type="submit" name="tambah" class="btn btn-success" value="Update"> <a href="?page=data_petugas" class="btn btn-warning">Kembali</a> </div> </div> </form> </div> </div> </div> </div> <?php if (@$_POST['tambah']) { $main = new petugasController(); $main->update(); }
echo "<option value='{$i}'> {$i} </option>"; } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="basicinput">Foto</label> <div class="controls"> <input name="foto" type="file"> </div> </div> <div class="control-group"> <div class="controls"> <input type="submit" name="tambah" class="btn btn-success" value="Tambah"> <button type="reset" class="btn btn-danger">Reset</button> <a href="?page=data_petugas" class="btn btn-warning">Kembali</a> </div> </div> </form> </div> </div> </div> </div> <?php if (@$_POST['tambah']) { $main = new petugasController(); $main->insert(); }
<?php include "controller/login.php"; include "controller/jabatanController.php"; include "controller/petugasController.php"; include "controller/kasController.php"; include "controller/zakatFitrahController.php"; include "controller/zakatMalController.php"; include "controller/reportController.php"; include "controller/userController.php"; include "controller/hitungZakatController.php"; $login = new login(); $jabatan = new jabatanController(); $petugas = new petugasController(); $kas = new kasController(); $zakatFitrah = new zakatFitrahController(); $zakatMal = new zakatMalController(); $report = new reportController(); $user = new userController(); $hitung = new hitungZakatController(); $page = @$_GET['page']; $act = @$_GET['act']; $id = @$_GET['id']; if (@$_SESSION['level'] == 'admin') { if ($page == '') { include "view/beranda.php"; } else { if ($page == 'logout') { $login->logout(); } else { if ($page == 'struktur_jabatan') {