public function actionDelete($id)
 {
     if ($this->isDeleteAllowed()) {
         if (Yii::$app->request->get()) {
             Surat::deleteAll('nomor_surat=' . Yii::$app->request->get()['id']);
             $this->redirect(['surat-arsip']);
         }
     }
 }
Beispiel #2
0
<?php

use yii\helpers\Html;
use app\models\Surat;
$datasurat = new Surat();
$session = Yii::$app->session;
$session->open();
$user_session = $session['session.user'];
$session->close();
$id = $user_session['id'];
?>
<div class="widget widget-blue">
    <div class="widget-title">
        Surat Masuk
    </div>
    <div class="widget-content">
        <div class="row">
            <div class="col-md-12">
                <table class="table">
                    <tr>
                        <th>Nomor Surat</th>
                        <th>Jenis Surat</th>
                        <th>Pengirim</th>
                        <th>Tanggal</th>
                        <th>Perihal</th>
                        <th>Action</th>
                    </tr>
                    <?php 
foreach ($datasurat->showsuratmasuk($id) as $item => $value) {
    echo "<tr>";
    echo "<td>" . $value['nomor_surat'] . "</td>";
Beispiel #3
0
<?php

use app\models\Surat;
$surat = new Surat();
$id = Yii::$app->request->get()['id'];
foreach ($surat->detailSurat($id) as $item => $value) {
    ?>

    <table align="center">
        <tr>
            <td colspan="14" width="800" height="200" align="left">
                <IMG SRC="http://localhost/autocom/web/assets/images/autocom.jpg" >
            </td>
        </tr>
        <tr>
            <td colspan="14" height="30"></td>
        </tr>
        <tr>
            <td>Nomor</td>
            <td align="left"> : <?php 
    echo $value['nomor_surat'];
    ?>
</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
Beispiel #4
0
<?php

use yii\helpers\Html;
use app\models\Surat;
$datasurat = new Surat();
$session = Yii::$app->session;
$session->open();
$user_session = $session['session.user'];
$session->close();
$id = $user_session['id'];
?>
<div class="widget widget-blue">
    <div class="widget-title">
        Surat Keluar
    </div>
    <div class="widget-content">
        <div class="row">
            <div class="col-md-12">
                <table class="table">
                    <tr>
                        <th>Nomor Surat</th>
                        <th>Jenis Surat</th>
                        <th>Penerima</th>
                        <th>Tanggal</th>
                        <th>Perihal</th>
                        <th>Action</th>
                    </tr>
                    <?php 
foreach ($datasurat->showsuratkeluar($id) as $item => $value) {
    echo "<tr>";
    echo "<td>" . $value['nomor_surat'] . "</td>";
Beispiel #5
0
<?php

use yii\helpers\Html;
use app\models\Surat;
$datasurat = new Surat();
?>
<div class="widget widget-blue">
    <div class="widget-title">
        Surat yang harus disetujui
    </div>
    <div class="widget-content">
        <div class="row">
            <div class="col-md-12">
                <table class="table">
                    <tr>
                        <th>Nomor Surat</th>
                        <th>Jenis Surat</th>
                        <th>Pengirim</th>
                        <th>Penerima</th>
                        <th>Tanggal</th>
                        <th>Perihal</th>
                        <th>Action</th>
                    </tr>
                    <?php 
foreach ($datasurat->showsuratsetuju() as $item => $value) {
    echo "<tr>";
    echo "<td>" . $value['nomor_surat'] . "</td>";
    echo "<td>" . $value['jenis_surat'] . "</td>";
    echo "<td>" . $value['pengirim'] . "</td>";
    echo "<td>" . $value['penerima'] . "</td>";
    echo "<td>" . $value['tanggal_surat'] . "</td>";