Exemplo n.º 1
0
  public function reg()
  {
      $this->form_validation->set_rules('email', 'email', 'trim|required|xss_clean');
      $this->form_validation->set_rules('uname', 'username', 'trim|required|xss_clean');
      $this->form_validation->set_rules('pass', 'password', 'trim|required|xss_clean');
      if ($this->form_validation->run() == false) {
          $this->form_validation->set_message('cek_database', 'isikan semua field');
          redirect('login?reg');
      } else {
          $email = rtrim($this->input->post('email'));
          $uname = rtrim($this->input->post('uname'));
          $pass = rtrim($this->input->post('pass'));
          $ubaru = array('email' => $email, 'username' => $uname, 'password' => sha1($pass));
          $idbaru = $this->mweb->settable('user', $ubaru);
          if ($idbaru) {
              $notif = array('from' => getid_own(), 'iduser' => getid_min(), 'aksi' => 'register user', 'msg' => 'ada member baru dengan nama user <strong>' . getuname($idbaru) . '</strong><br/>
 					<a href="' . site_url('gudang/slug/4/4/5?id=' . $idbaru . '&tbl=5') . '">details</a>', 'time' => date('d-m-Y h:i:s'));
              $this->mweb->settable('notif', $notif);
              redirect('login?u=' . $idbaru, 'refresh');
          }
      }
  }
Exemplo n.º 2
0
function gettemp_data($kd, $tabel)
{
    $CI =& get_instance();
    $query = $CI->db->select(array('tabel', 'kd', 'aksi', 'iduser'))->get_where('temp_data', array('kd' => $kd, 'tabel' => $tabel));
    if ($query->num_rows === 0) {
        return false;
    } else {
        foreach ($query->result() as $value) {
            switch ($value->aksi) {
                case 'update':
                    $idnya = array('idnya' => $value->kd, 'klas' => 'glyphicon glyphicon-pencil', 'toolstip' => 'data telah diupdate oleh ' . getuname($value->iduser));
                    break;
                case 'delete':
                    $idnya = array('idnya' => $value->kd, 'klas' => 'glyphicon glyphicon-trash', 'toolstip' => 'data telah terhapus oleh ' . getuname($value->iduser));
                    break;
                default:
                    $idnya = array('idnya' => $value->kd, 'klas' => 'glyphicon glyphicon-ok', 'toolstip' => 'oke oke aja');
                    break;
            }
        }
        return $idnya;
    }
}
Exemplo n.º 3
0
                            <a href="<?php 
            echo current_url() . '?id=' . $vnot['id'] . '&tbl=4';
            ?>
">
                            <?php 
        } else {
            ?>
                            <a href="<?php 
            echo current_url() . '/a?id=' . $vnot['id'] . '&tbl=4';
            ?>
">
                            <?php 
        }
        ?>
                            From  <?php 
        echo getuname($vnot['from']);
        ?>
<span class="<?php 
        echo $vnot['r'] === '1' ? 'label label-default' : 'label label-danger';
        ?>
">details</span></a>
                        </li>
                    <?php 
    }
    ?>
                    <?php 
} else {
    ?>
                        <li>
                            <a href="#">
                            Belum ada Notifikasi
Exemplo n.º 4
0
                <?php 
                    include APPPATH . 'views/fields/uploadimg.php';
                    ?>
              </td>
            </tr>
          <?php 
                    break;
                case 'iduser':
                    ?>
          <tr>
            <td>
              Username
          </td>
          <td>
              <label><?php 
                    echo getuname($row[$kolom[$x]]);
                    ?>
</label><input type="hidden" name="<?php 
                    echo $kolom[$x];
                    ?>
" value="<?php 
                    echo $row[$kolom[$x]];
                    ?>
">
          </td>
          </tr>
           <?php 
                    break;
                case 'ket':
                    ?>
                    <tr>
Exemplo n.º 5
0
<h1 style="color:#000000;">hello <?php 
echo isset($_GET['u']) ? getuname(htmlspecialchars($_GET['u'])) : 'anonymous';
?>
</h1>
<br>
<p style="color:#000000;">
	Terima kasih sudah bergabung bersama kami selanjutnya , tunggu konfirmasi dari admin
	untuk penerimaan anggota resmi :) , Terima kasih
</p>

Exemplo n.º 6
0
    $catt = $barisv['catatan'];
    $web = $barisv['website'];
    $produk = explode('|', $barisv['produk']);
    $qty = explode('|', $barisv['qty']);
    $price = explode('|', $barisv['price']);
    $disc = explode('|', $barisv['disc']);
    $amount = $barisv['amount'];
    $subtotal = explode('|', $barisv['subtotal']);
    $total = $barisv['total'];
}
?>
<div class="row">
<div class="col-xs-12">
  <div class="page-header">
    <h1>Created By : <?php 
echo getuname($iduserr);
?>
</h1>
  </div>
</div>
</div>

<div class="row">
    <div class="col-xs-6">
<div class="panel panel-default height">
                        <div class="panel-heading">Informasi TOKO</div>
                        <div class="panel-body">
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
                    <input type="hidden" name="kolid" value="id">
                    <input type="hidden" name="id" id="idkol" value="<?php 
echo $id;
Exemplo n.º 7
0
         case '0':
             echo 'rejected';
             break;
         default:
             echo 'pending';
             break;
     }
     break;
 case 'idcus':
     echo getnamacus($valdata[$valkol]);
     break;
 case 'from':
     echo getuname($valdata[$valkol]);
     break;
 case 'iduser':
     echo getuname($valdata[$valkol]);
     break;
 case 'idreq':
     echo anchor(current_url() . '/a?id=' . $valdata[$valkol] . '&tbl=15', getdescprod($valdata[$valkol]));
     break;
 case 'status':
     $urlm = $this->uri->segment(5);
     if ($urlm === '20') {
         switch ($valdata[$valkol]) {
             case 'p':
                 echo 'pending';
                 break;
             case 'op':
                 echo 'on proccess';
                 break;
             case 's':