本文整理汇总了PHP中xtable::opt_ud方法的典型用法代码示例。如果您正苦于以下问题:PHP xtable::opt_ud方法的具体用法?PHP xtable::opt_ud怎么用?PHP xtable::opt_ud使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xtable
的用法示例。
在下文中一共展示了xtable::opt_ud方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xtable
<?php
require_once MODDIR . 'xtable/xtable.php';
$fmod = 'pendataan_saudara';
$xtable = new xtable($fmod);
$xtable->row_strip = false;
// Query
$sql = "SELECT * FROM psb_tmp_saudara WHERE sesid='" . session_id() . "' ORDER BY replid";
$t = mysql_query($sql);
$xtable->ndata = mysql_num_rows($t);
if ($xtable->ndata > 0) {
$xtable->begin();
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$s = '<div class="psf12200">Nama: <b>' . $r['nama'] . '</b></div>';
if ($r['tgllahir'] != '0000-00-00') {
$s .= '<div class="psf12200">Tanggal lahir: ' . fftgl($r['tgllahir']) . '</div>';
}
if ($r['sekolah'] != '') {
$s .= '<div class="psf12200">Sekolah: ' . $r['sekolah'] . '</div>';
}
$xtable->td($s);
$xtable->opt_ud($r['replid']);
$xtable->row_end();
}
$xtable->foot();
} else {
}
示例2:
if($xtable->ndata>0){
// Table head
$xtable->head('@Barkode','@!Nomor ID','@sumber','@harga~R','@Tanggal diperoleh','@Status','@lokasi','@tingkat');
while($r=mysql_fetch_array($t)){$xtable->row_begin($r['replid']);
$xtable->td($r['barkode']);
$xtable->td($r['idbuku'],120);
//$xtable->td($r['callnumber'],120);
$xtable->td($r['sumber']==0?'Beli':'Pemberian',100);
$xtable->td($r['satuan'].' '.$r['harga'],80,'r');
$xtable->td(fftgl($r['tanggal']),120);
if($r['status']==1){
$s='Tersedia';
} else {
$s='<table cellspacing="0" cellpadding="0" width="100%"><tr>';
$s.='<td style="border:none"><span class="sfont">Dipinjam</span></td>';
$s.='<td style="border:none" width="24px" align="right"><button title="Tampilkan info peminjam" class="btn"><div class="bi_usr2b"> </div></button></td>';
$s.='</tr></table>';
$s='Dipinjam';
}
//$xtable->td($s,100);
//echo '<td style="width:100px;text-align:left">'.$s.'</td>';
$xtable->td($s,100);
$xtable->td($r['nlokasi'],150);
$xtable->td($r['ntingkat'],120);
if($SOUF==0) $xtable->opt_ud($r['replid']);
}$xtable->foot();
}else{$xtable->nodata('','pada lokasi ini');}
?>