示例#1
0
文件: login.php 项目: akivaron/toko
  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');
          }
      }
  }
示例#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;
    }
}
示例#3
0
文件: menu.php 项目: akivaron/toko
                            <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
示例#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>
示例#5
0
文件: ubaru.php 项目: akivaron/toko
<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>

示例#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;
示例#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':