Exemple #1
0
 function index()
 {
     $this->data['title'] = $this->title;
     $this->data['main_title'] = $this->module . '';
     $q = $this->stok->get_judul();
     $this->data['tipedokumen'] = $q->result();
     $filter['statusisasi'] = 'where/1';
     if ($this->session->userdata('webmaster_grup') == 10) {
         $filter['id'] = 'where/2';
     }
     $this->data['opt_dok'] = GetOptAll('report', '-Document-', $filter, 'title_document');
     $this->data['options_barang'] = options_row($this->model_name, 'get_barang', 'kode', 'title', '-- Pilih Barang --');
     $this->data['options_satuan'] = options_row($this->model_name, 'get_satuan', 'id', 'title', '-- Pilih Satuan --');
     $this->data['options_gudang'] = options_row($this->model_name, 'get_gudang', 'id', 'title', '-- Pilih Gudang --');
     $this->data['options_kurensi'] = options_row($this->model_name, 'get_kurensi', 'id', 'title', '-- Pilih Kurensi --');
     $this->_render_page('report/menu/menu', $this->data);
 }
Exemple #2
0
 function input($id = NULL)
 {
     $this->data['val'] = $this->data['list'] = array();
     if ($id > 0) {
         $this->data['val'] = GetAll($this->file_name, array('id' => 'where/' . $id))->row_array();
         $this->data['list'] = GetAll($this->file_name . '_list', array($this->file_name . '_id' => 'where/' . $id))->result_array();
     }
     $this->data['title'] = $this->title . ' - Input';
     permissionUser();
     $this->data['module'] = $this->module;
     $this->data['file_name'] = $this->file_name;
     $this->data['r'] = $this->main->get_detail($id);
     $this->data['opt_barang'] = GetAll('barang')->result();
     $this->data['barang'] = getAll('barang')->result_array();
     $this->data['satuan'] = getAll('satuan')->result_array();
     $this->data['opt_satuan'] = GetOptAll('satuan');
     $this->_render_page($this->module . '/' . $this->file_name . '/input', $this->data);
 }
Exemple #3
0
 function input()
 {
     $this->data['title'] = $this->title . ' - Input';
     permissionUser();
     $num_rows = getAll($this->module . '_' . $this->file_name)->num_rows();
     $last_id = $num_rows > 0 ? $this->db->select('id')->order_by('id', 'asc')->get($this->module . '_' . $this->file_name)->last_row()->id : 0;
     $this->data['last_id'] = $num_rows > 0 ? $last_id + 1 : 1;
     $this->data['barang'] = getAll('barang')->result_array();
     $this->data['satuan'] = getAll('satuan')->result_array();
     $this->data['kurensi'] = getAll('kurensi')->result();
     $this->data['metode'] = getAll('metode_pembayaran')->result();
     //$this->data['gudang'] = getAll('gudang')->result();
     $this->data['gudang'] = GetOptAll('gudang', '-Pilih Gudang-');
     $this->data['opt_po'] = GetOptAll('purchase_order', '-Purchase Order-', array('app_status_id_lv4' => 'where/1', 'is_closed' => 'where/0', 'id' => 'order/desc'), 'po', '', '', array('!=status_id' => '2'));
     // $this->data['options_kontak'] = options_row('main','get_kontak','id','title','-- Pilih kontak --');
     $this->_render_page($this->module . '/' . $this->file_name . '/input', $this->data);
 }
Exemple #4
0
    ?>
</th>
													<th width="15%"> Sub Total </th>
												<th width="5%"><?php 
    echo $daftar['pajak'];
    ?>
</th-->
												<th width="5%"><?php 
    echo $daftar['jumlah'];
    ?>
</th>
												<th width="5%"><?php 
    //echo form_dropdown("satuan[$c]",getoptsatuan($daftar['kode_barang']),GetValue('satuan','barang',array('id'=>'where/'.$daftar['kode_barang'])))
    ?>
												<?php 
    echo form_dropdown("satuan[{$c}]", GetOptAll('satuan'), GetValue('satuan', 'barang', array('id' => 'where/' . $daftar['kode_barang'])));
    ?>
</th>
											</tr><?php 
    $c++;
}
?>
									</thead>
									<tbody>
									</tbody>
								</table>
							</div>
						</div>
					</fieldset>
				</div>
				<!--button id="btnAdd" type="button" class="btn btn-green" onclick="addRow('table')">
Exemple #5
0
<div id="department">
    <div class="row">
		<div class="col-md-4">
		Mata Uang
		</div>
		<div class="col-md-1">
		:
		</div>
		<div class="col-md-7">
	      <?php 
echo form_dropdown('kurensi', GetOptAll('kurensi', 'All'), '', 'class="select2" style="width:100%"');
?>
		</div>
	</div>
</div>
</table>

Exemple #6
0
 function detail($id)
 {
     $this->data['title'] = $this->title . ' - Detail';
     permissionUser();
     $this->data['id'] = $id;
     $this->data['pemindahan'] = GetAll('stok_pemindahan', array('id' => 'where/' . $id))->row_array();
     $this->data['list'] = GetAll('stok_pemindahan_list', array('pemindahan_id' => 'where/' . $id));
     $this->data['gudang'] = GetOptAll('gudang', '-Pilih Gudang-');
     //$this->data['refid']=GetAll($this->data['pemindahan']->ref_type,array('id'=>'where/'.$this->data['pemindahan']->ref_id))->row_array();
     // $this->data[$this->file_name] = $this->main->get_detail($id);
     // $this->data[$this->file_name.'_list'] = $this->main->get_list_detail($id);
     $this->_render_page($this->module . '/' . $this->file_name . '/detail', $this->data);
 }
Exemple #7
0
 <?php 
    if (isset($part)) {
        echo "(SISA " . $carisisa['sisa'] . ")";
    }
    ?>
</th>
					<th width="10%"><?php 
    echo GetValue('title', 'satuan', array('id' => 'where/' . $daftar['satuan_id']));
    ?>
 </th>
					<th width="5%"><?php 
    echo form_input("jumlah[]", isset($part) ? $carisisa['sisa'] : $daftar['jumlah'], 'max="' . (isset($part) ? $carisisa['sisa'] : $daftar['jumlah']) . '"');
    ?>
</th>
					<th width="5%"><?php 
    echo form_dropdown("satuan[]", GetOptAll('satuan'), $daftar['satuan_id']);
    ?>
</th>
					<th>
                    	<a target="_blank" href="<?php 
    echo base_url("uploads/pr/" . $daftar['attachment']);
    ?>
"><?php 
    echo $daftar['attachment'];
    ?>
</a>
                    </th>
				</tr><?php 
    $c++;
}
?>
Exemple #8
0
echo form_dropdown('user_id', GetOptAll('users', '-Username-', array(), 'username'), $id_user);
?>
							</div>
						</div>
					</div>
				</div>
				<!--div class="form-group">
					<div class="col-md-12" style="margin-top:20px;border-top:1px solid #8CE5FF;">	
						<div class="col-md-6">
							<div class="col-md-3">
							<label>
							User Group
							</label>
							</div><div class="col-md-6">
							<?php 
echo form_dropdown('user_group', GetOptAll('groups', '-Username-', array(), 'username'), $id_user);
?>
							</div>
						</div>
					</div>
				</div-->
				</div>
				<hr>
				<div class="row">
						<?php 
foreach ($modul->result_array() as $mod) {
    $getv = GetValue('view', 'users_permission', array('menu_id' => 'where/' . $mod['id'], 'user_id' => 'where/' . $id_user));
    $getc = GetValue('create', 'users_permission', array('menu_id' => 'where/' . $mod['id'], 'user_id' => 'where/' . $id_user));
    $getu = GetValue('update', 'users_permission', array('menu_id' => 'where/' . $mod['id'], 'user_id' => 'where/' . $id_user));
    $getd = GetValue('delete', 'users_permission', array('menu_id' => 'where/' . $mod['id'], 'user_id' => 'where/' . $id_user));
    $submodul = GetAll('menu', array('id_parents' => 'where/' . $mod['id']));
Exemple #9
0
$nm_f = 'tgl';
$js = 'style="width:100%" class="form-control"  id="' . $nm_f . '"';
echo form_input($nm_f, $refid['tanggal_transaksi'], $js);
//echo $refid[$nm_f];
?>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label" for="inputPassword3">
				Asal Gudang
			</label>
			<div class="col-sm-9">
				<?php 
$nm_f = 'gudang_id';
$js = 'style="width:100%" class="form-control"  id="' . $nm_f . '"';
echo form_dropdown($nm_f, GetOptAll('gudang', '-GUDANG-'), $refid[$nm_f], $js);
//echo GetValue('title','gudang',array('id'=>'where/'.$refid[$nm_f]));
?>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label" for="inputPassword3">
				Notes
			</label>
			<div class="col-sm-9">
				<?php 
$nm_f = 'catatan';
$js = 'style="width:100%; height:60px;" class="form-control"  id="' . $nm_f . '"';
echo form_textarea($nm_f, $refid[$nm_f], $js);
//echo GetValue('title','gudang',array('id'=>'where/'.$refid[$nm_f]));
?>
Exemple #10
0
?>
">
						</p-->
					</div>
				</div>
				<div class="row">
				<div class="form-group">
					<div class="col-md-12">	
						<div class="col-md-6">
							<div class="col-md-3">
							<label>
							Username
							</label>
							</div><div class="col-md-6">
							<?php 
echo form_dropdown('user_id', GetOptAll('users', '-Username-', array(), 'username'), $id_user);
?>
							</div>
						</div>
					</div>
				</div>
				</div>
                            <div class="row">
                                <table id="tabledata" >
            <thead>
            <tr>
                <th><?php 
echo form_checkbox('checkall', '1', FALSE, 'onclick="klikdisini()" class="allcek"');
?>
Hak</th>
                <th>Laporan</th>
Exemple #11
0
]">
			   </div>
			   </div>
		  
		    <div class="form-group">
			   <?php 
$nm_f = "currency";
?>
			   <div class="col-sm-3">
				   <label for="<?php 
echo $nm_f;
?>
">Currency</label>
				   </div><div class="col-sm-9">
                                       <?php 
echo form_dropdown($nm_f, GetOptAll('kurensi'), isset($val[$nm_f]) ? $val[$nm_f] : '', 'class="validate[required]"');
$nm_f = "kurs";
?>
                                       <?php 
echo form_input($nm_f, isset($val[$nm_f]) ? $val[$nm_f] : '', 'class="validate[required] duit" placeholder="Kurs"');
?>
			   </div>
                    </div>
                                
		    <div class="form-group">
			   <?php 
$nm_f = "amount";
?>
			   <div class="col-sm-3">
				   <label for="<?php 
echo $nm_f;
Exemple #12
0
 function input($id)
 {
     $this->data['title'] = $this->title . ' - Input';
     permissionUser();
     $num_rows = getAll($this->file_name)->num_rows();
     $last_id = $num_rows > 0 ? $this->db->select('id')->order_by('id', 'asc')->get($this->file_name)->last_row()->id : 0;
     $this->data['last_id'] = $num_rows > 0 ? $last_id + 1 : 1;
     $this->data['opt_coa'] = GetOptAll('sv_setup_coa', '-COA-', array(), 'code', 'id', 'name');
     $this->data['barang'] = getAll('barang')->result_array();
     $this->data['satuan'] = getAll('satuan')->result_array();
     $this->data['kurensi'] = getAll('kurensi')->result();
     $this->data['metode'] = getAll('metode_pembayaran')->result();
     //$this->data['gudang'] = getAll('gudang')->result();
     $this->data['gudang'] = GetOptAll('gudang', '-Pilih Gudang-');
     // $this->data['options_kontak'] = options_row('main','get_kontak','id','title','-- Pilih kontak --');
     $numbering = GetAll('cash_transfer');
     $this->data['numbering'] = 'CA' . sprintf('%05d', $numbering->num_rows() + 1);
     if ($id > 0) {
         $this->data['val'] = GetAll('cash_transfer', array('id' => 'where/' . $id))->row_array();
     } else {
         $this->data['var'] = array();
     }
     $this->_render_page($this->module . '/' . $this->file_name . '/input', $this->data);
 }
Exemple #13
0
												<th width="5%"><?php 
        echo $daftar['disc'];
        ?>
</th>
												<th width="15%"> Sub Total </th>
											<th width="5%"><?php 
        echo $daftar['pajak'];
        ?>
</th-->
											<th width="5%"><?php 
        echo form_input("jumlah[]", isset($part) ? $carisisa['sisa'] : $daftar['jumlah'], '');
        ?>
</th>
											<th width="5%">
												<?php 
        echo form_dropdown("satuan[]", GetOptAll('satuan'), $daftar['satuan_id'], 'readonly');
        ?>
												<?php 
        //echo form_hidden("satuan_id[]",$daftar['satuan_id'],'')
        ?>
</th>
										</tr><?php 
        $c++;
    }
    ?>
								</thead>
								<tbody>
								</tbody>
							</table>
						</div>
					</div>
Exemple #14
0
										</select>
									</td>
									<!--th width="20%"> Deskripsi </th--><?php 
    $nmf = 'jumlah[]';
    ?>
									<td><input name="jumlah[]" value="<?php 
    echo isset($ls['jumlah']) ? $ls['jumlah'] : '';
    ?>
" type="text" class="form-control jumlah text-right" required="required" id="jumlah<?php 
    echo $a;
    ?>
"></td>
									<td> <?php 
    $nmf = 'satuan[]';
    $js = 'class="select2" style="width:100%" id="jumlah' . $a . '"';
    echo form_dropdown($nmf, GetOptAll('satuan'), isset($ls['satuan_id']) ? $ls['satuan_id'] : '', $js);
    ?>
 </td>
								</tr>
                                                                <?php 
    $a++;
}
?>
                                                                
							</tbody>
						</table>
					</div>
					</div>
				</div>
				<div class="row">
					
Exemple #15
0
 function input()
 {
     $this->data['title'] = $this->title . ' - Input';
     permissionUser();
     $num_rows = getAll($this->file_name)->num_rows();
     $last_id = $num_rows > 0 ? $this->db->select('id')->order_by('id', 'asc')->get($this->file_name)->last_row()->id : 0;
     $this->data['last_id'] = $num_rows > 0 ? $last_id + 1 : 1;
     $this->data['barang'] = getAll('barang')->result_array();
     $this->data['satuan'] = getAll('satuan')->result_array();
     $this->data['kurensi'] = getAll('kurensi')->result();
     $this->data['metode'] = getAll('metode_pembayaran')->result();
     //$this->data['gudang'] = getAll('gudang')->result();
     $this->data['gudang'] = GetOptAll('gudang', '-Pilih Gudang-');
     // $this->data['options_kontak'] = options_row('main','get_kontak','id','title','-- Pilih kontak --');
     $this->_render_page($this->module . '/' . $this->file_name . '/input', $this->data);
 }
Exemple #16
0
 </th>
												<th width="5%"><?php 
    echo $daftar['disc'];
    ?>
</th>
												<th width="15%"> Sub Total </th>
											<th width="5%"><?php 
    echo $daftar['pajak'];
    ?>
</th-->
											<th width="5%"><?php 
    echo form_input("jumlah[{$c}]", isset($part) ? $carisisa['sisa'] : $daftar['jumlah'], 'readonly');
    ?>
</th>
											<th width="5%"><?php 
    echo form_dropdown("satuan[{$c}]", GetOptAll('satuan'), $daftar['satuan_id'], 'disabled');
    ?>
</th>
											<th>
					                        	<a target="_blank" href="<?php 
    echo base_url("uploads/pr/" . $daftar['attachment']);
    ?>
"><?php 
    echo $daftar['attachment'];
    ?>
</a>
					                        </th>
										</tr><?php 
    $c++;
}
?>
Exemple #17
0
 function addso($id = NULL)
 {
     $data['idp'] = $_POST['idp'];
     $data['opt_po'] = GetOptAll('sales_order', '-Sales Order-', array('is_draft' => 'where/0', 'is_deleted' => 'where/0', 'id' => 'order/desc'), 'so', '', '', array('!=status_id' => '2'));
     $this->load->view('stok/pengeluaran/sobaru', $data);
 }