本文整理汇总了PHP中link_button函数的典型用法代码示例。如果您正苦于以下问题:PHP link_button函数的具体用法?PHP link_button怎么用?PHP link_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了link_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load
function load($modul)
{
echo "<div class='widget-help'><div class=' glyphicon glyphicon-info-sign thumbnail'> HELP_MOD : " . $modul . "</div>";
$this->load->model('article_model');
$article = $this->article_model->get_by_id($modul);
if ($article) {
$content = "";
if ($article->row()) {
$content = $article->row()->content;
}
if ($content == "") {
echo "<p>Tampaknya untuk modul ini belum ada helpnya gan, mau ikut berkonstribusi membuatkan helpnya \n\t\t\t\tdan tatacara input transaksi ini silahkan klik tautan [Edit] dibawah ini.</p>";
}
}
echo "[" . link_button("Edit", "add('help/edit/{$modul}','" . base_url() . "index.php/help/edit/" . $modul . "');", "save", "false") . "...] </div>";
}
示例2: form_input
<legend>DIVISI</legend>
<div class="thumbnail box-gradient">
<form id="frmNew" method="POST">
<table width="100%" class='table2'>
<tr>
<td>Kode</td><td><?php
echo form_input('div_code');
?>
</td>
<td>Nama</td><td colspan='4'><?php
echo form_input('div_name');
?>
</td>
<td><?php
echo link_button("Tambah", "add_divisi()", "save");
?>
</td>
</tr>
</table>
</form>
</div>
<div class="thumbnail" >
<table class="table2" width="100%">
<thead><tr><th>Kode</th><th>Nama Divisi</th>
<th>Action</th></tr></thead>
<tbody>
<?
$CI =& get_instance();
$sql="select * from divisions";
$rst_item=$CI->db->query($sql);
示例3: link_button
<h1>SALESMAN</h1><div class="thumbnail box-gradient">
<?
echo link_button('Save', 'save_this()','save');
echo link_button('Print', 'print()','print');
echo link_button('Add','','add','true',base_url().'index.php/coa/add');
echo link_button('Search','','search','true',base_url().'index.php/coa');
echo link_button('Help', 'load_help(\'salesman\')','help');
?>
<a href="#" class="easyui-splitbutton" data-options="menu:'#mmOptions',iconCls:'icon-tip'">Options</a>
<div id="mmOptions" style="width:200px;">
<div onclick="load_help('salesman')">Help</div>
<div>Update</div>
<div>MaxOn Forum</div>
<div>About</div>
</div>
</div>
<div class="thumbnail">
<form id="myform" method="post" action="<?php
echo base_url();
?>
index.php/salesman/save">
<input type='hidden' name='mode' id='mode' value='<?php
echo $mode;
?>
'>
<?php
echo validation_errors();
?>
<table class='table2' width='100%'>
<tr>
示例4: if
<? if($offset==0){ ?>
<div class='thumbnail'>
<?php
echo link_button("Add", "add();return false;", "add", "true");
?>
<?php
echo link_button('List', 'list();return false;', 'list');
?>
<?php
echo link_button('Search', 'search_stock(' . $offset . ');', 'search');
?>
</div>
<div class='thumbnail'>
<form id='frmSearch'>
<? echo $criteria_text; ?>
</form>
</div>
<?
}
$s="select item_number,description,unit_of_measure,quantity_in_stock,category,
sub_category,supplier_number,item_picture
from inventory where 1=1";
if(isset($sid_kode)){
if($sid_kode!=''){
$s .= " and item_number like '%".$sid_kode."%'";
}
}
if(isset($sid_nama)){
if($sid_nama!=''){
$s .= " and description like '%".$sid_nama."%'";
示例5: link_button
</tr>
</thead>
</table>
</div>
</div>
<div id="tb">
<form id="frmItem" method='post' >
<div class="thumbnail">
<?php
echo link_button('Add Item', 'add_item()', 'save');
?>
<?php
echo link_button('Edit', 'edit_item()', 'edit');
?>
<?php
echo link_button('Remove', 'del_item()', 'remove');
?>
</div>
<div class="thumbnail">
<table>
<tr><td>Komponen</td><td>Rumus</td><td>No Urut</td></tr>
<tr><td><?php
echo form_dropdown('salary_com_code', $com_list, $salary_com_code);
?>
</td>
<td><?php
echo form_input('formula_string', $formula_string, "style='width:350px'");
?>
</td>
<td><?php
echo form_input('no_urut', $no_urut, "style='width:50px'");
示例6: link_button
echo link_button('Save', 'save_this()', 'save');
echo link_button('Print', 'print_voucher()', 'print');
echo link_button('Add', '', 'add', 'true', base_url() . 'index.php/cash_mutasi/add');
echo link_button('Search', '', 'search', 'true', base_url() . 'index.php/cash_mutasi');
if ($mode == "view") {
echo link_button('Refresh', '', 'reload', 'true', base_url() . 'index.php/cash_mutasi/view/' . $voucher);
}
if ($mode == "view") {
echo link_button('Delete', '', 'remove', 'true', base_url() . 'index.php/cash_mutasi/delete/' . $voucher);
}
if ($posted) {
echo link_button('UnPosting', '', 'cut', 'true', base_url() . 'index.php/cash_mutasi/unposting/' . $voucher);
} else {
echo link_button('Posting', '', 'ok', 'true', base_url() . 'index.php/cash_mutasi/posting/' . $voucher);
}
echo link_button('Help', 'load_help()', 'help');
?>
<a href="#" class="easyui-splitbutton" data-options="menu:'#mmOptions',iconCls:'icon-tip'">Options</a>
<div id="mmOptions" style="width:200px;">
<div onclick="load_help()">Help</div>
<div>Update</div>
<div>MaxOn Forum</div>
<div>About</div>
</div>
<script type="text/javascript">
function load_help() {
window.parent.$("#help").load("<?php
echo base_url();
?>
index.php/help/load/cash_mutasi");
}
示例7: link_button
,
By: <?php
echo $create_by;
?>
</div>
<div class='tm_content'>
<?php
echo $description;
?>
</div>
<div class='tm_button'>
<?php
echo link_button("Apply", "themes_apply('{$name}')", "save", "false");
?>
<?php
echo link_button("Preview", "themes_preview('{$name}')", "search", "false");
?>
</div>
</div>
</div>
</div>
<? } ?>
<script language="javascript">
function themes_apply(tm_name){
var url="<?php
echo base_url();
?>
index.php/admin/themes/save/"+tm_name;
window.parent.open(url,"_self");
// location.reload();
}
示例8: link_button
<legend>MUTASI STOCK ANTAR LOKASI</legend>
<div class="thumbnail box-gradient">
<?
echo link_button('Add','','add','true',base_url().'index.php/stock_mutasi/add');
echo link_button("Print","print_mutasi()","print");
echo link_button('Search','','search','true',base_url().'index.php/stock_mutasi');
echo link_button('Help', 'load_help(\'stock_mutasi\')','help');
?>
<a href="#" class="easyui-splitbutton" data-options="menu:'#mmOptions',iconCls:'icon-tip'">Options</a>
<div id="mmOptions" style="width:200px;">
<div onclick="load_help('stock_mutasi')">Help</div>
<div>Update</div>
<div>MaxOn Forum</div>
<div>About</div>
</div>
</div>
<div class="thumbnail">
<form id="frmItem" method='post' >
<table class="table2" width="100%">
<tr>
<td>Nomor</td><td><?php
echo form_input('transfer_id', $transfer_id, 'id=transfer_id');
?>
</td>
</tr>
<tr>
<td>Tanggal</td><td><?php
echo form_input('date_trans', $date_trans, "id='date_trans' class='easyui-datetimebox' required");
?>
</td>
示例9: link_button
<div><h1>KELOMPOK USER<div class="thumbnail">
<?php
echo link_button('Save', 'simpan()', 'save');
?>
</div></H1>
<div class="thumbnail">
<?php
echo form_open(base_url() . 'index.php/jobs/add', "id='myform'");
?>
<table>
<tr><td>Group Id</td><td><?php
echo form_input('user_group_id', $user_group_id, "id='user_group_id'");
?>
</td></tr>
<tr><td>Group Name</td><td><?php
echo form_input('user_group_name', $user_group_name, "id='user_group_name'");
?>
</td></tr>
<tr><td>Description</td><td><?php
echo form_input('description', $description, "id='description'");
?>
</td></tr>
</table>
<div id='divDetail'><?php
echo $modules;
?>
</div>
<?php
echo form_close();
示例10: form_input
</td>
</tr>
<tr>
<td>Tanggal</td><td><?php
echo form_input('tanggal', $tanggal, 'id=tanggal
class="easyui-datetimebox" required style="width:150px"');
?>
</td>
</tr>
<tr>
<td>Faktur</td>
<td><?php
echo form_input('docnumber', $docnumber, 'id="docnumber"');
?>
<?php
echo link_button("", 'select_faktur()', 'search', 'true');
?>
</td>
</tr>
<tr>
<td>Jumlah: </td>
<td><?php
echo form_input('amount', $amount, 'id=amount');
?>
</td>
</tr>
<tr>
<td>Keterangan</td>
<td colspan="6">
<?php
echo form_input('keterangan', $keterangan, 'id=keterangan style="width:300px"');
示例11:
<th data-options="field:'description',width:150">Nama Barang</th>
<th data-options="field:'quantity',width:50,align:'right',editor:{type:'numberbox',options:{precision:2}}">Qty</th>
<th data-options="field:'unit',width:50,align:'left',editor:'text'">Satuan</th>
<th data-options="field:'cost',width:50,align:'right',editor:{type:'numberbox',options:{precision:2}}">Cost</th>
<th data-options="field:'amount',width:50,align:'right',editor:{type:'numberbox',options:{precision:2}}">Total</th>
<th data-options="field:'warehouse',width:50,align:'right',editor:{type:'numberbox',options:{precision:2}}">Warehouse</th>
<th data-options="field:'line_exec_no',width:30,align:'right'">line_exec_no</th>
<th data-options="field:'id',width:30,align:'right'">Line</th>
</tr>
</thead>
</table>
</div>
</form>
</div>
<div id="btnExec"><?=link_button("Select","select_exec();return false;","ok")?></div>
<div id='dlgExec'class="easyui-dialog" style="width:500px;height:380px;padding:10px 20px"
closed="true" buttons="#btnExec">
<table id="dgExec" class="easyui-datagrid"
data-options="singleSelect: true">
<thead>
<tr>
<th data-options="field:'work_exec_no',width:150">Exec Number</th>
<th data-options="field:'start_date',width:80">Exec Date</th>
<th data-options="field:'wo_number',width:80">WO Number</th>
<th data-options="field:'person_in_charge',width:80">Person</th>
</tr>
</thead>
</table>
</div>
示例12: my_input
buttons="#tbAddInvoice">
<form method='post' id='frmAddInvoice'>
<?
echo my_input("Nomor Faktur",'invoice_number','','col-sm-5');
echo my_input("Tanggal",'invoice_date',date("Y-m-d"),'col-sm-5');
echo my_input("Bulan ke",'idx_month','','col-sm-5');
echo my_input("Jumlah",'amount','','col-sm-5');
?>
</form>
</div>
<div id='tbAddInvoice'>
<?php
echo link_button('Save', 'dlgAddInvoice_Save()', 'ok');
?>
<?php
echo link_button('Close', 'dlgAddInvoice_Close()', 'no');
?>
</div>
<script language="JavaScript">
function dgInvoice_Add(){
$('#dlgAddInvoice').dialog('open').dialog('setTitle','Tambah Faktur');
}
function dgInvoice_Edit(){
row = $('#dgInvoice').datagrid('getSelected');
if (row){
$("#invoice_number").val(row.invoice_number);
$("#invoice_date").val(row.invoice_date);
$("#idx_month").val(row.idx_month);
$("#amount").val(row.amount);
}
$('#dlgAddInvoice').dialog('open').dialog('setTitle','Edit Faktur');
示例13: link_button
<legend>STATUS PERKAWINAN</legend>
<div class="thumbnail box-gradient">
<?
echo link_button('Save', 'save_this()','save');
echo link_button('Print', 'print()','print');
echo link_button('Add','','add','true',base_url().'index.php/payroll/ptkp/add');
echo link_button('Search','','search','true',base_url().'index.php/payroll/ptkp');
echo link_button('Help', 'load_help(\'ptkp\')','help');
?>
<a href="#" class="easyui-splitbutton" data-options="menu:'#mmOptions',iconCls:'icon-tip'">Options</a>
<div id="mmOptions" style="width:200px;">
<div onclick="load_help()">Help</div>
<div>Update</div>
<div>MaxOn Forum</div>
<div>About</div>
</div>
</div>
<div class="thumbnail">
<form id="frmEmployee" method="post">
<input type='hidden' name='mode' id='mode' value='<?php
echo $mode;
?>
'>
<?php
echo validation_errors();
?>
<table class='table2' width='100%'>
<tr>
<td>Kode</td>
示例14: get_instance
</div>
<div class="thumbnail" >
<table class="table2" width="100%">
<thead><tr><th>Kode</th><th>Level Name</th><th>Keterangan</th><th>Action</th></tr></thead>
<tbody>
<?
$CI =& get_instance();
$sql="select * from employee_level";
$rst_item=$CI->db->query($sql);
foreach($rst_item->result() as $row_item){
echo "
<tr><td>".$row_item->levelkode."</td>
<td>".$row_item->levelname."</td>
<td>".$row_item->keterangan."</td>
<td>".link_button('Hapus',"del_level('".$row_item->levelkode."')","remove")."
";
}
?>
<tr></tr>
</tbody>
</table>
</div>
</div>
<script language="JavaScript">
function add_level(){
url='<?php
echo base_url();
?>
index.php/payroll/payroll/employee/level_add';
$('#frmNew').form('submit',{
示例15: form_input
?>
</td></tr>
<tr><td>Comments</td><td><?php
echo form_input("comments", $comments, "id='comments'");
?>
</td></tr>
</tbody>
</table>
<div id="divWoItem"><?php
echo $detail;
?>
</div>
</form>
</div>
<div id="btnExec"><?php
echo link_button("Select", "select_exec();return false;", "ok");
?>
</div>
<div id='dlgExec'class="easyui-dialog" style="width:500px;height:380px;padding:10px 20px"
closed="true" buttons="#btnExec">
<table id="dgExec" class="easyui-datagrid" data-options="singleSelect: true">
<thead>
<tr>
<th data-options="field:'work_exec_no',width:150">Exec Number</th>
<th data-options="field:'start_date',width:80">Exec Date</th>
<th data-options="field:'wo_number',width:80">WO Number</th>
<th data-options="field:'person_in_charge',width:80">Person</th>
</tr>
</thead>
</table>
</div>