本文整理汇总了PHP中xtable::row_end方法的典型用法代码示例。如果您正苦于以下问题:PHP xtable::row_end方法的具体用法?PHP xtable::row_end怎么用?PHP xtable::row_end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xtable
的用法示例。
在下文中一共展示了xtable::row_end方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xtable
$fmod='sirkulasi_peminjaman_form_buku';
$xtable = new xtable($fmod,'Item','',2);
$xtable->pageorder='pus_tpjm.replid DESC';
// Query
$db=new xdb("pus_tpjm");
$db->field('pus_tpjm:*','pus_buku:barkode,idbuku','pus_katalog:judul');
$db->join('buku','pus_buku');
$db->joinother('pus_buku','katalog','pus_katalog','replid');
$db->where("ssid='$ssid'");
$t=$db->query();
$xtable->ndata=mysql_num_rows($t);
echo '<div style="float:none !important">';
if($xtable->ndata>0){
// Table head
$xtable->head('Barkode','Judul','{44px}');
while($r=mysql_fetch_array($t)){$xtable->row_begin();
//$xtable->td('<button class="btn" onclick="peminjaman_baliktabelpinjam('.$r['barang'].')" title="Hapus dari daftar barang yang dipinjam."><div class="bi_canb"> </div></button>',30,'c');
$xtable->td($r['barkode'],100);
$xtable->td(buku_judul($r['judul']));
$s='<button class="btn" onclick="'.$fmod.'_form(\'d\','.$r['replid'].')" title="Keluarkan dari daftar"><div class="bi_canb"> </div></button>~40';
$xtable->opt($r['replid'],$s);
$xtable->row_end();}$xtable->foot();
}else{
$xtable->nodata_cust('<span style="color:'.CLGREY.'"><i>Belum ada item yang dipilih.</i></span>');
}
echo '</div>';
?>
示例2: while
//echo $db->getsql();
$t = $db->query();
$xtable->ndata = mysql_num_rows($t);
//$xtable->btnbar_begin();
// echo '<button class="btn" title="Tambah item" onclick="'.$fmod.'_form(\'af\')"><div class="bi_add">Item</div></button>';
//$xtable->btnbar_end();
echo '<div style="float:none !important">';
if ($xtable->ndata > 0) {
// Table head
$xtable->head('barkode', 'Callnumber', 'Judul', 'status', 'Dikembalikan Tgl');
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
//$xtable->td('<button class="btn" onclick="peminjaman_baliktabelpinjam('.$r['barang'].')" title="Hapus dari daftar barang yang dipinjam."><div class="bi_canb"> </div></button>',30,'c');
$xtable->td($r['barkode'], 100);
$xtable->td($r['callnumber'], 120);
$xtable->td(buku_judul($r['judul']));
$xtable->td($r['status'] == 1 ? 'Belum dikembalikan' : 'Dikembalikan', 120);
$xtable->td(fftgl($r['tanggal3']), 120);
if ($r['status'] == 1) {
$s = '<button class="btn" onclick="pengembalian_buku_form(\'uf\',' . $r['replid'] . ')" title="Kembaliakan item ini."><div class="bi_inb"> </div></button>~30';
} else {
$s = ' ';
}
$xtable->opt($r['replid'], $s);
$xtable->row_end();
}
$xtable->foot();
} else {
$xtable->nodata_cust('<span style="color:' . CLGREY . '"><i>Tidak ada data peminjaman.</i></span>');
}
echo '</div>';
示例3: if
if($xtable->ndata>0){
// Table head
$n=0;
$xtable->head('@Barkode','@Judul','@Cek~C','Keterangan');
while($r=mysql_fetch_array($t)){$xtable->row_begin();
$xtable->td($r['barkode'],120);
$xtable->td(buku_judul($r['judul']),300);
$xtable->td($r['cek'],50,'c');
//td($a,$b='*',$c='',$k='',$atr=''){
//td($a,$b='*',$c='',$atr=''){
$xtable->td(nl2br($r['note']),'*','','id="cttn'.$r['replid'].'"');
$s='<button class="btn" title="Edit catatan." onclick="stocktake_note_form(\'uf\','.$r['replid'].')"><div class="bi_edit">Catatan</div></button>~80';
$xtable->opt($r['replid'],$s);
$xtable->row_end(); $n++;} $xtable->foot();
} else {
if($tamp==0){
$f=" yang belum dicek";
} else if($tamp==1){
$f=" yang sudah dicek";
} else {
$f="";
}
$xtable->nodata_cust('Tidak ada data item'.$f.'.');
}
$xtable->btnbar_begin();
echo '<div style="width:100%;float:left;text-align:center;margin-top:20px">';
echo '<button class="btn" style="margin-right:4px" onclick="stocktake_note_done(\'df\')">Kembali</button>';
echo '<button class="btnz" style="" onclick="stocktake_note_done(\'af\')">Selesai</button>';