本文整理汇总了PHP中m_lookup函数的典型用法代码示例。如果您正苦于以下问题:PHP m_lookup函数的具体用法?PHP m_lookup怎么用?PHP m_lookup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了m_lookup函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_map_proses
function get_map_proses()
{
$mapProses = m_lookup("wa_proses", "id_proses", "nama_proses", "", " order by idx asc ");
$this->data["map_proses"] = $mapProses;
$arrProsesAllStatus = $this->adodbx->search_record_where("m_wa_proses_status", "", " order by id_proses,id_status");
$mapProsesAllStatus = array();
if (cek_array($arrProsesAllStatus)) {
$mapProsesAllStatus[$val["id_proses"]][$val["id_status"]] = $val["status"];
}
$this->data["map_proses_all_status"] = $mapProses;
$arrProsesStatus = $this->adodbx->search_record_where("m_wa_proses_status", "id_status<90", " order by id_proses,id_status");
$mapProsesStatus = array();
$mapProses = array();
$mapProsesByOrder = array();
$mapOrderByProcess = array();
if (cek_array($arrProsesStatus)) {
foreach ($arrProsesStatus as $x => $val) {
$mapProses[$val["id_proses"]][] = $val["id_status"];
$mapProsesDataStatus[$val["id_proses"]][] = $val;
$mapProsesStatus[$val["id_proses"]][$val["id_status"]] = $val["status"];
$mapOrderByProses[$val["id_proses"]][$val["id_status"]] = $x;
$mapProsesByOrder[] = $val;
$maxOrder = $x;
}
}
$this->data["max_order"] = $maxOrder;
$this->data["max_proses"] = $arrProsesStatus[$maxOrder]["id_proses"];
$this->data["max_status"] = $arrProsesStatus[$maxOrder]["id_status"];
$this->data["map_status_in_proses"] = $mapProses;
$this->data["map_data_proses"] = $mapProsesDataStatus;
$this->data["map_proses_status"] = $mapProsesStatus;
$this->data["map_proses_order"] = $mapProsesByOrder;
$this->data["map_order_proses"] = $mapOrderByProses;
}
示例2: date
" placeholder="dd/mm/yyyy"/>
<input type="hidden" id="tanggal_terbit_sk" name="tanggal_terbit_sk" value="<?php
echo date("Y-m-d");
?>
" class="required" />
</div>
</div>
</div>
</div>
<br><br>
<h5 class="heading">Batas Wilayah</h5>
<div class="form-group">
<label for="category" class="control-label no-padding-right col-md-3 ">Batas Wilayah</label>
<div class="col-md-9">
<?php
$arrPropinsi = m_lookup("propinsi", "kode_bps", "nama");
$arrPropinsi1 = array("" => "--Pilih Propinsi 1--") + $arrPropinsi;
$arrPropinsi2 = array("" => "--Pilih Propinsi 2--") + $arrPropinsi;
?>
<table class="batas_wilayah table" style="width:100%;padding:0;">
<thead>
<tr>
<th style="width:10px"></th><th class="propinsi_1"><?php
echo form_dropdown("id_propinsi_1", $arrPropinsi1, "", "id='id_propinsi_1' class='select2' style='width:100%'");
?>
</th><th class="propinsi_2"><?php
echo form_dropdown("id_propinsi_2", $arrPropinsi2, "", "id='id_propinsi_2' class='select2' style='width:100%'");
?>
</th><th style="width:20px"></th></tr>
</tr>
</thead>
示例3: m_lookup
<style>
.simplecolorpicker{
border:thin solid #DADADA !important;
}
.frm h3{
color:#aaa;
background:#eee;
padding:5px;
border-radius:3px
}
</style>
<?php
$arrLookupGroup = m_lookup("event_categories", "id_name", "name", "", " order by order_num asc ");
?>
<div class="row">
<div class="col-sm-12 col-lg-12">
<!-- start: page header -->
<div class="page-header">
<div class="row">
<div class="col-md-12">
<h1><?php
echo $this->module_title;
?>
<small> </small></h1>
</div><!-- col -->
</div><!-- row-->
</div><!-- end: page-header -->
<!-- start: breadcrumbs -->
示例4: array
<div class="form-group filter hidden">
<?php
$arr_tahun_first = array('" class="disabled' => "Semua Tahun");
$arrDataTahun = $arr_tahun_first + $arrDataTahun;
?>
<?php
echo form_dropdown("tahun_peraturan", $arrDataTahun, $data_request["tahun_peraturan"], "id='tahun_peraturan' class='form-control input-xs' placeholder='Semua Tahun' style='width:100%'");
?>
</div>
<div class="form-group filter hidden">
<label class="sr-only" for="name">Propinsi</label>
<?php
$arrPropinsi = m_lookup("propinsi", "kode_bps", "nama", "", " order by nama");
$arr_first_propinsi = array('" class="disabled' => "Semua Propinsi");
$arrPropinsi = $arr_first_propinsi + $arrPropinsi;
?>
<?php
echo form_dropdown("id_propinsi", $arrPropinsi, $data_request["id_propinsi"], "id='id_propinsi' class='select2 form-control' style='width:100%'");
?>
</div>
<!-- end: div_filter -->
<div class="btn-group pull-right">
<!--<a href="javascript:void()" class="btn btn-default btn-sm box_shadow export-pdf"><i class="fa fa-print"></i></a>-->
<div class="btn-group">
<a id="btn_down" class="btn btn-sm btn-default" href="#"><i class="icon-download-alt"></i> Print/Download </a>
<a class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"> </span></a>
示例5: m_lookup
<div class="row">
<div class="col-md-12">
<h3>File Pendukung</h3>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="box box-success">
<div class="box-body">
<h5 class="heading">Upload Document</h5>
<div class="form-group">
<div class="col-md-12" >
<?php
$arrLookupGroup = m_lookup("wa_jenis_document", "id_doc", "nama_doc", "", " order by order_num asc ");
//$arrLookupGroup=array(""=>"-- Pilih Potensi --")+$arrLookupGroup;
?>
<div class="form-group">
<?php
//=form_dropdown("id_potensi_hayati",$arrLookupGroup,$data['id_potensi_hayati'],"id='potensi_hayati' class='form-control'");
?>
<table id="table_file" class="table table-bordered" style="width:100%">
<thead>
</thead>
<tbody>
<?php
$no = 1;
?>
<?php
示例6: get_map_jenis_peraturan
function get_map_jenis_peraturan()
{
return m_lookup("jenis_peraturan", "id_jenis_peraturan", "jenis_peraturan");
}
示例7: m_lookup
?>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#acc_fisik" aria-expanded="false" aria-controls="acc_fisik">
Kondisi Fisik
</a>
</h4>
</div>
<div id="acc_fisik" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
<?php
$kfisik = m_lookup("wa_kondisi_fisik", "idx", "kondisi_fisik", "", " order by order_num asc ");
foreach ($kfisik as $k => $v) {
?>
<div class="radio">
<label>
<input class="kfisik" name="id_kondisi_fisik" type="radio" value="<?php
echo $k;
?>
" data-label="<?php
echo $v;
?>
">
<?php
echo $v;
?>
</label>
示例8: m_lookup
<tbody>
<tr>
<td style="width:50%">Jenis Ekosistem</td>
<td><?php
echo $arrLookupGroup[$data["id_jenis_ekosistem"]];
?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?php
$arrLookupGroup = m_lookup("wa_potensi_hayati", "id_potensi_hayati", "nama_potensi_hayati", "", " order by idx asc ");
?>
<table id="table_potensi_hayati" class="table table-bordered" style="width:100%">
<thead>
<tr>
<th style="width:50%">Sumber</th>
<th> </th>
</tr>
</thead>
<tbody>
<?php
if (cek_array($data_potensi_hayati)) {
foreach ($data_potensi_hayati as $k => $v) {
?>
<tr>
<td><?php
示例9: view
function view($id)
{
if ($this->encrypt_status == TRUE) {
$id_enc = $id;
$id = decrypt($id);
}
$arrData = $this->model->GetRecordData("idx={$id}");
$arrData += $this->model_contact->GetRecordData("id_wa={$id}");
$arrData += $this->model_sejarah->GetRecordData("id_wa={$id}");
$arrData += $this->model_hak_atas_tanah->GetRecordData("id_wa={$id}");
$arrData += $this->model_hayati->GetRecordData("id_wa={$id}");
$arrData += $this->model_lembaga_adat->GetRecordData("id_wa={$id}");
$arrData += $this->model_hukum_adat->GetRecordData("id_wa={$id}");
$arrKab = $this->get_kab_kota_arr($arrData["id_propinsi"]);
$arrPropinsi = m_lookup("propinsi2", "kode_bps", "nama");
$arrWaKondisiFisik = m_lookup("wa_kondisi_fisik", "idx", "kondisi_fisik");
$arrEkosistem = m_lookup("wa_jenis_ekosistem", "id_jenis_ekosistem", "jenis_ekosistem", "", " order by order_num asc ");
$arrPotensiHayati = m_lookup("wa_potensi_hayati", "id_potensi_hayati", "nama_potensi_hayati", "", " order by idx asc ");
$data["arr_propinsi"] = $arrPropinsi;
$data["arr_kabupaten"] = $arrKab;
$data["arr_wa_kondisi_fisik"] = $arrWaKondisiFisik;
$data["arr_wa_ekosistem"] = $arrEkosistem;
$data["arr_wa_potensihayati"] = $arrPotensiHayati;
$data["data"] = $arrData;
$this->_render_page($this->module . "v_view", $data, true);
}
示例10: get_map_proses
function get_map_proses()
{
$mapProses = m_lookup("wa_proses", "id_proses", "nama_proses", "", " order by idx asc ");
$this->data["map_proses"] = $mapProses;
$arrProsesStatus = $this->adodbx->search_record("m_wa_proses_status");
$mapProsesStatus = array();
if (cek_array($arrProsesStatus)) {
foreach ($arrProsesStatus as $x => $val) {
$mapProsesStatus[$val["id_proses"]][$val["id_status"]] = $val["status"];
}
}
$this->data["map_proses_status"] = $mapProsesStatus;
}
示例11: m_lookup
<tr>
<th width="20">No.</th>
<th class="forder" width="120" rel="date">Tanggal daftar</th>
<th class="forder" width="300" rel="title">Nama Kewilayahan</th>
<th width="400">Lokasi</th>
<!--<td class="tbldata_header forder">Alamat</td>-->
<th width="100">Proses</th>
<th width="160">Status</th>
<th width="80"> </th>
</tr>
</thead>
<tbody>
<?php
$p1 = m_lookup("wa_proses_status", "id_status", "status", "id_proses='1'");
$p2 = m_lookup("wa_proses_status", "id_status", "status", "id_proses='2'");
$p3 = m_lookup("wa_proses_status", "id_status", "status", "id_proses='3'");
?>
<?php
foreach ($list as $k => $v) {
$tr_color = $k % 2 ? "#fff" : "#fafafa";
$id = $this->encrypt_status == TRUE ? encrypt($v[$this->tbl_idx]) : $v[$this->tbl_idx];
$url_edit = $module . "wa/view/" . $id;
$url_delete = $module . "wa/delete/" . $id;
switch ($v['doc_proses']) {
case '1':
$proses_badges = '<span class="label label-info">Registrasi</span>';
$status_badges = $p1[$v['doc_status']];
break;
case '2':
$proses_badges = '<span class="label label-warning">Verifikasi</span>';
$status_badges = $p2[$v['doc_status']];
示例12: m_lookup
<?php
$arrPropinsi = m_lookup("propinsi2", "kode_bps", "nama");
$arrKabkot = m_lookup("kabupaten_kota", "kode_bps", "nama");
?>
Terimakasih telah mendaftarkan wilayah adat anda di Badan Registrasi Wilayah Adat. <br />
Dalam waktu 5 (lima) hari kerja, Admin kami akan menghubungi anda di nomor telepon atau email yang sudah diberikan.
<br /><br /><br />
Data Pemohon:
<table cellpadding="2" border="0" cellspacing="0">
<tr>
<td width="160">Nama </td><td width="10">:</td><td><?php
echo $nama_pemohon;
?>
</td>
</tr>
<tr>
<td>Jabatan</td><td width="10">:</td><td><?php
echo $jabatan_pemohon;
?>
</td>
</tr>
<tr>
<td>Alamat</td><td width="10">:</td><td><?php
echo $alamat_pemohon;
?>
</td>
</tr>
<tr>
<td>Telp/HP</td><td width="10">:</td><td><?php
echo $telp_pemohon;