本文整理汇总了PHP中base_index函数的典型用法代码示例。如果您正苦于以下问题:PHP base_index函数的具体用法?PHP base_index怎么用?PHP base_index使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了base_index函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</div>
<div class="box-body">
<form id="input" method="post" class="form-horizontal foto_banyak" action="<?=base_admin();?>modul/transaksi_grosir/transaksi_grosir_action.php?act=in">
<div class="form-group">
<label for="NO_NOTA_PENJUALAN" class="control-label col-lg-2">NO_NOTA_PENJUALAN</label>
<div class="col-lg-10">
<input type="text" name="NO_NOTA_PENJUALAN" placeholder="NO_NOTA_PENJUALAN" class="form-control" >
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<input type="submit" class="btn btn-primary btn-flat" value="Simpan">
<a href="<?=base_index();?>transaksi-grosir" class="btn btn-success btn-flat"><i class="fa fa-step-backward"></i>Kembali</a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->
示例2: foreach
<td>
<a href="<?=base_index();?>lap_jual/detail/<?=$isi->ID_PENJUALAN;?>" class="btn btn-success btn-flat"><i class="fa fa-eye"></i></a>
<?=($role_act["up_act"]=="Y")?'<a href="'.base_index().'lap_jual/edit/'.$isi->ID_PENJUALAN.'" class="btn btn-primary btn-flat"><i class="fa fa-pencil"></i></a>':"";?>
<?=($role_act["del_act"]=="Y")?'<button class="btn btn-danger hapus btn-flat" data-uri="'.base_admin().'modul/lap_jual/lap_jual_action.php" data-id="'.$isi->ID_PENJUALAN.'"><i class="fa fa-trash-o"></i></button>':"";?>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
</div>
<?php
foreach ($db->fetch_all("sys_menu") as $isi) {
if ($path_url==$isi->url) {
if ($role_act["insert_act"]=="Y") {
?>
<a href="<?=base_index();?>lap-jual/tambah" class="btn btn-primary btn-flat"><i class="glyphicon glyphicon-plus-sign"></i> Tambah</a>
<?php
}
}
}
?>
</section><!-- /.content -->
示例3:
<label for="Nama perusahaan" class="control-label col-lg-2">Nama perusahaan</label>
<div class="col-lg-10">
<input type="text" name="NAMA_PERUSAHAAN" value="<?=$data_edit->NAMA_PERUSAHAAN;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="Tanggal terdaftar" class="control-label col-lg-2">Tanggal terdaftar</label>
<div class="col-lg-10">
<input type="text" id="tgl1" data-rule-date="true" name="TANGGAL_TERDAFTAR" value="<?=$data_edit->TANGGAL_TERDAFTAR;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<input type="hidden" name="id" value="<?=$data_edit->ID_SUPPLIER;?>">
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<input type="submit" class="btn btn-primary btn-flat" value="Ubah">
<a href="<?=base_index();?>supplier" class="btn btn-success btn-flat">Batal</a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->
示例4:
<label for="STATUS" class="control-label col-lg-2">STATUS</label>
<div class="col-lg-10">
<input type="text" name="STATUS" value="<?=$data_edit->STATUS;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="KETERANGAN" class="control-label col-lg-2">KETERANGAN</label>
<div class="col-lg-10">
<input type="text" name="KETERANGAN" value="<?=$data_edit->KETERANGAN;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<input type="hidden" name="id" value="<?=$data_edit->ID_KALKULASI;?>">
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<input type="submit" class="btn btn-primary btn-flat" value="Ubah">
<a href="<?=base_index();?>kalkulasi-bahan" class="btn btn-success btn-flat">Batal</a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->
示例5:
<section class="content">
<div class="row">
<div class="col-lg-12">
<div class="box box-solid box-primary">
<div class="box-header">
<h3 class="box-title">Detail Pengiriman Barang</h3>
</div>
<div class="box-body">
<form class="form-horizontal">
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<a href="<?=base_index();?>pengiriman-barang" class="btn btn-success btn-flat"><i class="fa fa-step-backward"></i>Kembali</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->
示例6: foreach
<li class="treeview <?=$db->terpilih($path_url,$main_menu->id);?>">
<a href="#">
<i class="<?=$main_menu->icon;?>"></i>
<span><?=ucwords($main_menu->modul_name);?></span>
<i class="glyphicon1 glyphicon-chevron-left pull-right"></i>
</a>
<ul class="treeview-menu">
<?php
$sub= $db->fetch_custom("select * from sys_menu where modul_id=? order by urutan_menu asc",array('modul_id'=>$main_menu->id));
foreach ($sub as $sub_menu) {
if (in_array($sub_menu->url, $role_user)) {
?>
<li class="<?=($path_url==$sub_menu->url)?'active':'';?>">
<a href="<?=base_index().$sub_menu->url;?>">
<i class="glyphicon1 glyphicon-record"></i> <?=ucwords($sub_menu->page_name);?></a>
</li>
<?php
}
}
?>
</ul>
</li>
<?php
}
}
示例7: str_replace
<label for="Sisa" class="control-label col-lg-2">Sisa</label>
<div class="col-lg-10">
<input type="text" readonly name="UANG_KEMBALI" id="UANG_KEMBALI" value="<?php echo str_replace("-","",$data_edit->UANG_KEMBALI);?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="Biaya Kirim" class="control-label col-lg-2">Nominal Pelunasan</label>
<div class="col-lg-10">
<input type="text" name="NOMINAL_PELUNASAN" id="NOMINAL_PELUNASAN" onchange="hitung();" value="" placeholder="Rp." class="form-control" >
</div>
</div><!-- /.form-group -->
<input type="hidden" name="id" value="<?=$data_edit->ID_PENJUALAN;?>">
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<input type="submit" class="btn btn-primary btn-flat" value="Simpan">
<a href="<?=base_index();?>piutang-grosir/detail/<?php echo $data_edit->ID_PENJUALAN;?>" class="btn btn-success btn-flat">Batal</a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->
示例8:
<label for="Parameter" class="control-label col-lg-2">Parameter</label>
<div class="col-lg-10">
<input type="text" name="PARAMETER_NAME" value="<?=$data_edit->PARAMETER_NAME;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="Nilai Parameter" class="control-label col-lg-2">Nilai Parameter</label>
<div class="col-lg-10">
<input type="text" name="PARAMETER_VALUE" value="<?=$data_edit->PARAMETER_VALUE;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<input type="hidden" name="id" value="<?=$data_edit->PARAMETER_ID;?>">
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<input type="submit" class="btn btn-primary btn-flat" value="Ubah">
<a href="<?=base_index();?>pengaturan-penjualan" class="btn btn-success btn-flat">Batal</a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->
示例9: Header
<!-- Content Header (Page header) -->
<section class="content-header">
<ol class="breadcrumb">
<li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i>Home</a></li>
<li><a href="<?=base_index();?>penjualan">Penjualan</a></li>
<li class="active">Detail Penjualan</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row" >
<div class="col-lg-12">
<div class="box box-solid box-primary" >
<div class="box-header">
<h3 class="box-title">Consigment Invoice</h3>
</div>
<div class="box-body">
<section class="invoice">
<!-- title row -->
<div class="row">
<div class="col-xs-12">
<h2 class="page-header">
<i class="glyphicon glyphicon-list-alt" style="color:black"></i> <?=$data_edit->NO_NOTA_KONSINYASI;?>
<small class="pull-right">Tanggal: <?=$data_edit->TANGGAL;?></small>
</h2>
示例10: array
?>
</span>
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<?php
$sub = $db->fetch_custom("select * from sys_menu where modul_id=? order by urutan_menu asc", array('modul_id' => $main_menu->id));
foreach ($sub as $sub_menu) {
if (in_array($sub_menu->url, $role_user)) {
?>
<li class="<?php
echo $path_url == $sub_menu->url ? 'active' : '';
?>
">
<a href="<?php
echo base_index() . $sub_menu->url;
?>
">
<i class="fa fa-circle-o"></i> <?php
echo ucwords($sub_menu->page_name);
?>
</a>
</li>
<?php
}
}
?>
</ul>
</li>
示例11:
<div class="form-group">
<div class="col-lg-12">
<input type="text" name="STOK" id="STOK" value="<?php echo $_GET["stok"];?>" placeholder="Stok Saat ini" readonly class="form-control" required>
</div>
</div><!-- /.form-group -->
<!-- /.form-group -->
<!-- /.form-group -->
<div class="form-group" style="margin-top:-30px">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-12" style="margin-left:35px">
<button type="submit" class="btn btn-success btn-flat" id="input_scanner"><i class="glyphicon glyphicon-chevron-left"></i></button>
<a href="<?=base_index();?>sales-order?DAFTAR_BARANG" class="btn btn-success btn-flat"><i class="glyphicon glyphicon-search"></i></a>
<a href="<?=base_index();?>sales-order" class="btn btn-success btn-flat"><i class="glyphicon glyphicon-refresh"></i></a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
<div class="col-lg-3" style="width:260px;margin-top:60px">
<div class="box box-solid box-primary">
<div class="box-body">
示例12: Header
//Restore orignal HTML
document.body.innerHTML = oldPage;
}
</script>
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Kalukulasi Bahan
</h1>
<ol class="breadcrumb">
<li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i>Beranda</a></li>
<li><a href="<?=base_index();?>kalukulasi-bahan">Produksi Barang</a></li>
<li class="active">Kalukulasi Bahan</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<?php
echo'
<div class="row">
<div class="col-lg-12">
<div class="box box-solid box-primary">
示例13: Header
<!-- Content Header (Page header) -->
<section class="content-header">
<ol class="breadcrumb">
<li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i>Beranda</a></li>
<li><a href="<?=base_index();?>laporan">Filter</a></li>
<li class="active">Laporan</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-lg-12">
<div class="box box-solid box-primary">
<div class="box-header">
<h3 class="box-title">Periode laporan penjualan</h3>
</div>
<div class="box-body">
<form id="input" method="post" class="form-horizontal foto_banyak" action="" style="margin-top:20px">
<div class="form-group">
<label for="AWAL" class="control-label col-lg-2">Tanggal awal</label>
<div class="col-lg-10">
<input type="text" id="tgl1" data-rule-date="true" name="AWAL" placeholder="AWAL" class="form-control" >
</div>
</div>
示例14:
<label for="SATUAN" class="control-label col-lg-2">SATUAN</label>
<div class="col-lg-10">
<input type="text" name="SATUAN" value="<?=$data_edit->SATUAN;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="STOCK" class="control-label col-lg-2">STOCK</label>
<div class="col-lg-10">
<input type="text" name="STOCK" value="<?=$data_edit->STOCK;?>" class="form-control" readonly="true" >
</div>
</div><!-- /.form-group -->
<input type="hidden" name="id" value="<?=$data_edit->ID_BAHAN;?>">
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<input type="submit" class="btn btn-primary btn-flat" value="Ubah">
<a href="<?=base_index();?>master-bahan" class="btn btn-success btn-flat">Batal</a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->
示例15:
<label for="TANGGAL" class="control-label col-lg-2">TANGGAL</label>
<div class="col-lg-10">
<input type="text" id="tgl1" data-rule-date="true" name="TANGGAL" value="<?=$data_edit->TANGGAL;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="OPERATOR_KASIR" class="control-label col-lg-2">OPERATOR_KASIR</label>
<div class="col-lg-10">
<input type="text" id="tgl2" data-rule-date="true" name="OPERATOR_KASIR" value="<?=$data_edit->OPERATOR_KASIR;?>" class="form-control" >
</div>
</div><!-- /.form-group -->
<input type="hidden" name="id" value="<?=$data_edit->ID_PENJUALAN;?>">
<div class="form-group">
<label for="tags" class="control-label col-lg-2"> </label>
<div class="col-lg-10">
<input type="submit" class="btn btn-primary btn-flat" value="Ubah">
<a href="<?=base_index();?>lap-jual" class="btn btn-success btn-flat">Batal</a>
</div>
</div><!-- /.form-group -->
</form>
</div>
</div>
</div>
</div>
</section><!-- /.content -->