本文整理汇总了PHP中e_url函数的典型用法代码示例。如果您正苦于以下问题:PHP e_url函数的具体用法?PHP e_url怎么用?PHP e_url使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了e_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: e_url
ev.preventDefault();
$('#mdl-opname').modal();
//$('#txt-kosong-lama').val($(this).data('kosong'));
$('#txt-isi-lama').val($(this).data('isi'));
//$('#txt-pinjam-lama').val($(this).data('pinjam'));
$('#txt-id').val($(this).data('id'));
//$('#txt-kosong-baru').val(0);
$('#txt-isi-baru').val(0);
//$('#txt-pinjam-baru').val(0);
$('#txt-keterangan').val("");
});
$('#btn-simpan-opname').click(function(ev){
ev.preventDefault();
var post_data = "aksi=" + "<?php
echo e_url('modules/controller/khusus/stok.php');
?>
" + "&" +$('#frm-opname').serialize();
if (confirm('Simpan data ?')) {
$('#btn-simpan-opname').addClass('disabled').html('<i class="fa fa-spinner fa-pulse"></i> Processing...');
$.ajax({
url: "./",
method: "POST",
cache: false,
dataType: "JSON",
data: post_data,
success: function(eve){
if (eve.status){
alert(eve.msg);
$('.btn-close-modal').click();
tabelstok.fnReloadAjax();
示例2: reloading
</div>
<script>
$(document).ready(function(){
function reloading(){
$('#isi_halaman').append("<div class='pull-right loading'><h1><i class='fa fa-refresh fa-spin'></i></h1></div>");
$.ajax({
url : "./",
method: "POST",
cache: false,
data: {"mod" : "<?php
echo e_url('app/set-menu.php');
?>
", "title" : "user" , "id" : "<?php
echo $_REQUEST['id'];
?>
", "nama" : "<?php
echo $_REQUEST['nama'];
?>
" },
success: function(event){
$('.loading').remove();
$('#isi_halaman').html(event);
},
示例3: e_url
}
});
$('#btn-pinjam').click(function(ev){
ev.preventDefault();
var tglpinjam = $('#dp-tgl-pinjam').val();
var konsumen = $('#cmb-konsumen').val();
var barang = $('#cmb-barang').val();
var jenis = $('#cmb-jenis').val();
var tglkembali = $('#dp-tgl-kembali').val();
var jumlah = $('#txt-jumlah').val();
if (confirm("Harap cek kembali data - data yang anda masukkan ! Simpan peminjaman ?")) {
$('#btn-pinjam').addClass('disabled').html('<i class="fa fa-spinner fa-pulse"></i> Processing...');
var post_data = {"aksi" : "<?php
echo e_url('modules/controller/pinjam-tabung/pinjaman.php');
?>
", "apa" : "simpan",
"tglpinjam" : tglpinjam, "barang" : barang, "konsumen" : konsumen, "jumlah" : jumlah, "jenis" : jenis,
"tglkembali" : tglkembali};
$.ajax({
url: "./",
method: "POST",
cache: false,
dataType: "JSON",
data: post_data,
success: function(eve){
if (eve.status){
alert(eve.msg);
reloading();
示例4: function
alert('Gagal terkoneksi dengan server..');
}
});
}
});
$('#tabel-acc').on('click', '#btn-tolak', function(ev){
ev.preventDefault();
var id = $(this).data('id');
var barang = $(this).data('barang');
var jml = $(this).data('jml');
if (confirm("Tolak penjualan ini ?")) {
var post_data = {"aksi" : "<?php
echo e_url('modules/controller/khusus/acc-gudang-jual.php');
?>
", "apa" : "tolak-penjualan",
"id" : id, "barang" : barang, "jml" : jml};
$.ajax({
url: "./",
method: "POST",
cache: false,
dataType: "JSON",
data: post_data,
success: function(eve){
if (eve.status){
alert(eve.msg);
tabelacc.fnReloadAjax();
} else {
示例5: function
</div>
</div>
</div>
<script>
$(document).ready( function () {
function reloading(){
$('#isi_halaman').append("<div class='pull-right loading'><h1><i class='fa fa-refresh fa-spin'></i></h1></div>");
$.ajax({
url : "./",
method: "POST",
cache: false,
data: {"mod" : "<?php
echo e_url('ukuran/ukuran.php');
?>
", "title" : "Master Data Ukuran" },
success: function(event){
$('.loading').remove();
$('#isi_halaman').html(event);
},
error: function(){
$('.loading').remove();
alert('Gagal terkoneksi dengan server, coba lagi..!');
}
示例6: e_url
echo "<li> <a href='#' class='link-menu' data-link='" . e_url($rs1['url']) . "' data-hash='" . $rs1['title'] . "'> <i class='" . $rs1['icon'] . "'></i>" . $rs1['nama'] . "</a> </li>";
}
}
}
//------------ jika admin
} elseif ($_SESSION['media-status'] == e_code("1")) {
if ($level1 = $menu->cek_menu(d_code($_SESSION['media-data']), '1', '0')) {
while ($rs1 = $level1->fetch_assoc()) {
if ($level2 = $menu->cek_menu(d_code($_SESSION['media-data']), '2', $rs1['id'])) {
echo "<li class='dropdown'> <a href='#'> <i class='fa fa-chevron-down'></i> <i class='" . $rs1['icon'] . "'></i> " . $rs1['nama'] . "</a>\n\t\t\t\t\t<ul class='sub-menu-sidr'>";
while ($rs2 = $level2->fetch_assoc()) {
echo "<li><a href='#' class='link-menu' data-link='" . e_url($rs2['url']) . "' data-hash='" . $rs2['title'] . "' ><i class='" . $rs2['icon'] . "'></i> " . $rs2['nama'] . "</a></li>";
}
echo "</ul></li>";
} else {
echo "<li> <a href='#' class='link-menu' data-link='" . e_url($rs1['url']) . "' data-hash='" . $rs1['title'] . "'> <i class='" . $rs1['icon'] . "'></i>" . $rs1['nama'] . "</a> </li>";
}
}
}
}
?>
</ul>
</div><!-- #sidr -->
<script>
$(document).ready(function() {
$('#simple-menu').sidr({
"speed":50,
"displace":false,
示例7: e_url
</section>
</div>
</div>
</section>
<form action="./" method="POST" role="form">
<div class="modal fade " id="mdl-kriteria" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Kriteria</h4>
</div>
<div class="modal-body">
<input type="hidden" id="no_spa" name="no_spa" value="<?php
echo e_url('modules/view/laporan/pinjam_tabung.php');
?>
">
<div class="form-group">
<select class="form-control" id="konsumen" name="konsumen">
<option value="%">Semua</option>
<?php
if ($query = $data->runQuery("SELECT `konsumen`.`id`, `konsumen`.`nama` FROM `konsumen`;")) {
while ($rs = $query->fetch_array()) {
echo "<option value='" . $rs['id'] . "'>" . $rs['nama'] . "</option>";
}
}
?>
</select>
</div>
</div>
示例8: e_url
echo e_url("about.php");
?>
">ABOUT</a></li>
<li><a href="./?no_spa=<?php
echo e_url("contact.php");
?>
">CONTACT</a></li>
<?php
$qMenu = "SELECT id, nama FROM menu_public WHERE hapus = '0';";
if ($resMenu = $data->runQuery($qMenu)) {
while ($rsMenu = $resMenu->fetch_array()) {
echo "<li class='sub'><a href='#'>" . $rsMenu['nama'] . "</a><ul>";
$qKat = "SELECT id, nama FROM kategori WHERE id_menu = '" . $rsMenu['id'] . "' AND hapus = '0';";
if ($resKat = $data->runQuery($qKat)) {
while ($rsKat = $resKat->fetch_array()) {
echo "<li><a href='./?no_spa=" . e_url('product.php') . "&kat=" . e_url($rsKat['nama']) . "&id=" . e_url($rsKat['id']) . "'>" . $rsKat['nama'] . "</a></li>";
}
}
echo "</ul></li>";
}
}
?>
</ul>
</nav>
</div>
<div class="header-bottom">
<ul class="social-icons social-white nav-default">
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#"><i class="fa fa-behance"></i></a></li>
示例9: e_url
$('#detail_map').find('#fjob').val( $(this).data('job') );
$('#detail_map').find('#ftipe').val( $(this).data('tipe') );
$('#detail_map').submit();
});
$('#spv').change(function(ev){
ev.preventDefault();
$.ajax({
url : "./",
method: "POST",
cache: false,
data: {"aksi" : "<?php
echo e_url('kunjungan/cari_customer.php');
?>
", "title" : "Kunjungan", "spv" : $("#spv").val()},
success: function(event){
$('#inputCust').html(event);
},
error: function(){
alert('Gagal terkoneksi dengan server, coba lagi..!');
}
});
});
/*
function lihat(){
$('.wadah').append("<div class='pull-right loading'><h1><i class='fa fa-refresh fa-spin'></i></h1></div>");
var ini = $('.form-kunjungan').serialize();
示例10: function
alert(eve.msg);
}
$('#btn-simpan-loading-out').removeClass('disabled').html('Simpan');
},
error: function(err){
console.log("AJAX error in request: " + JSON.stringify(err, null, 2));
alert('Gagal terkoneksi dengan server..');
}
});
}
});
$('#btn-simpan-loading-in').click(function(ev){
ev.preventDefault();
var post_data = "aksi=" + "<?php
echo e_url('modules/controller/pembelian/loading.php');
?>
" + "&" +$('#frm-loading-in').serialize();
if (confirm('Simpan data ?')) {
$('#btn-simpan-loading-in').addClass('disabled').html('<i class="fa fa-spinner fa-pulse"></i> Processing...');
$.ajax({
url: "./",
method: "POST",
cache: false,
dataType: "JSON",
data: post_data,
success: function(eve){
if (eve.status){
alert(eve.msg);
$('.btn-close-modal').click();
tabelloading.fnReloadAjax();
示例11: user
<?php
if (isset($_POST['karyawan']) && isset($_POST['username']) && isset($_POST['password']) && $_POST['karyawan'] != "" && $_POST['username'] != "" && $_POST['password'] != "") {
include './app/class.user.php';
$data = new user();
if ($insert = $data->add_user($_POST['karyawan'], $_POST['username'], $_POST['password'])) {
echo "<script> alert('Data tersimpan'); window.location='./?no_spa=" . e_url('./app/user.php') . "'; </script>";
} else {
echo "<script> alert('Gagal menyimpan, cek kembali..!');</script>";
}
}
示例12: e_url
</section>
</div>
</div>
</section>
<form action="./" method="POST" role="form">
<div class="modal fade " id="mdl-kriteria" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Kriteria</h4>
</div>
<div class="modal-body">
<input type="hidden" id="no_spa" name="no_spa" value="<?php
echo e_url('modules/view/laporan/piutang.php');
?>
">
<div class="form-group">
<select class="form-control" id="konsumen" name="konsumen">
<option value="%">Semua</option>
<?php
if ($query = $data->runQuery("SELECT `konsumen`.`id`, `konsumen`.`nama` FROM `konsumen`;")) {
while ($rs = $query->fetch_array()) {
echo "<option value='" . $rs['id'] . "'>" . $rs['nama'] . "</option>";
}
}
?>
</select>
</div>
<div class="form-group">
示例13: e_url
<?php
}
?>
<?php
if ($r['component'] & CmsView::TYPE_DATETIME) {
?>
<?php
}
?>
<?php
if ($r['component'] & CmsView::TYPE_EDITOR) {
?>
<script>
ueditorController='<?php
e_url("admin", "ueditor", "index");
?>
';
</script>
<script src="plugin/ueditor/ueditor.config.js" type="text/javascript" charset="utf-8"></script>
<script src="plugin/ueditor/ueditor.all.js" type="text/javascript" charset="utf-8"> </script>
<script>
$(document).ready(function(){
$(".editor").each(function(){
var ue = UE.getEditor($(this).attr("id"));
ue.ready(function() {
var html = ue.getContent();
ue.execCommand('pasteplain');
});
});
示例14: Date
$("#tglAwal").datepicker({
dateFormat : "yy-mm-dd"
});
$("#tglAwal").datepicker('setDate', new Date());
$("#tglAkhir").datepicker({
dateFormat : "yy-mm-dd"
});
$("#tglAkhir").datepicker('setDate', new Date());
tabelpo = $('#tabel-po').DataTable({
ajax:{
url : "./",
type : "POST",
data : function(d) {
d.aksi = "<?php
echo e_url('po/po_aux.php');
?>
";
d.title = "Daftar P.O";
d.apa = "daftar-po-ditolak";
d.tglAwal = $("#tglAwal").val();
d.tglAkhir = $("#tglAkhir").val();
}
}
});
});
</script>
示例15: e_url
</section>
</div>
</div>
</section>
<form action="./" method="POST" role="form">
<div class="modal fade " id="mdl-kriteria" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Kriteria</h4>
</div>
<div class="modal-body">
<input type="hidden" id="no_spa" name="no_spa" value="<?php
echo e_url('modules/view/laporan/kas_bank.php');
?>
">
<div class="form-group">
<select class="form-control" id="bank" name="bank">
<?php
if ($query = $data->runQuery("SELECT `bank`.`id`, `bank`.`nama` FROM `bank`;")) {
while ($rs = $query->fetch_array()) {
echo "<option value='" . $rs['id'] . "'>" . $rs['nama'] . "</option>";
}
}
?>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" id="tgl-awal" name="tgl-awal" placeholder="Tanggal Awal">