当前位置: 首页>>代码示例>>PHP>>正文


PHP xtable::row_begin方法代码示例

本文整理汇总了PHP中xtable::row_begin方法的典型用法代码示例。如果您正苦于以下问题:PHP xtable::row_begin方法的具体用法?PHP xtable::row_begin怎么用?PHP xtable::row_begin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xtable的用法示例。


在下文中一共展示了xtable::row_begin方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: if

$PSBar->end();

if($PSBar->pass){

$xtable->btnbar_begin();
	//echo '<button style="float:left;margin-right:4px" class="btn" title="Reload" onclick="'.$fmod.'_get()"><div class="bi_relb">&nbsp;</div></button>';
	$xtable->search_box();
	//$xtable->btnbar_print();
$xtable->btnbar_end();

$xtable->search_info();

$membertipe=array(1=>'Siswa',2=>'Pegawai',3=>'Member luar');
if($xtable->ndata>0){
	$xtable->head('@!ID Member','@Nama member','@Jenis member','@Jumlah Item Dipinjam{R,150px}');
	while($r=mysql_fetch_array($t)){$xtable->row_begin($r['replid']);
		
		if($r['mtipe']==1){
			$xtable->td($r['nis'],120);
			$xtable->td($r['nsiswa']);
		}
		else if($r['mtipe']==2){
			$xtable->td($r['nip'],120);
			$xtable->td($r['npegawai']);
		} else {
			$xtable->td($r['nid'],120);
			$xtable->td($r['nmember']);
		}
		$xtable->td($membertipe[$r['mtipe']],150);
		$xtable->td($r['cnt'].' item',150,'r');
		
开发者ID:nickohappy7,项目名称:sister,代码行数:30,代码来源:statistik2.php

示例2: while

$db->join('buku', 'pus_buku');
$db->joinother('pus_buku', 'katalog', 'pus_katalog', 'replid');
$db->where("pus_peminjaman.member='{$cid}' AND pus_peminjaman.mtipe='{$mtipe}'");
$db->order("pus_peminjaman.status DESC");
//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">&nbsp</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">&nbsp;</div></button>~30';
        } else {
            $s = '&nbsp;';
        }
        $xtable->opt($r['replid'], $s);
        $xtable->row_end();
    }
    $xtable->foot();
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:pengembalian_buku_tabel.php

示例3: xtable

<?php

$fmod = 'golongan';
$xtable = new xtable($fmod);
$xtable->use_urut('psb_golongan');
// Query
$t = mysql_query("SELECT * FROM psb_golongan ORDER BY urut");
$xtable->ndata = mysql_num_rows($t);
$xtable->btnbar_f('add', 'updn');
if ($xtable->ndata > 0) {
    // Table head
    $xtable->head('Nama golongan', 'Keterangan');
    while ($r = mysql_fetch_array($t)) {
        $xtable->row_begin($r['replid']);
        $xtable->td($r['golongan'], 200);
        $xtable->td($r['keterangan']);
        $xtable->opt_ud($r['replid']);
        $xtable->row_end();
    }
    $xtable->foot();
} else {
    $xtable->nodata();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:23,代码来源:golongan.php

示例4: 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">&nbsp</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">&nbsp;</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>';
?>
开发者ID:nickohappy7,项目名称:sister,代码行数:31,代码来源:sirkulasi_peminjaman_form_buku_get.php

示例5: iTextArea

 if ($jtrans == JT_UMUM) {
     $rekening = rekening_opt();
     $fform->fa('Uraian', iTextArea('uraian', $r['uraian'], $fform->rwidths, 3));
     echo '<tr height=""><td id="box_transaksi_list" colspan="2"><div style="">';
     $fmod = 'tpi_lain_transaksi_list';
     $xtable = new xtable($fmod, 'siswa');
     $xtable->noopt = true;
     $xtable->row_strip = false;
     $xtable->tbl_width = '';
     $dsp = '';
     $xtable->head('Rek. Perkiraan{80px}', 'Debet', 'Kredit');
     $t1 = mysql_query("SELECT * FROM keu_jurnal WHERE transaksi='{$cid}' ORDER BY replid");
     $l = 1;
     $rs = 0;
     while ($r1 = mysql_fetch_array($t1)) {
         $xtable->row_begin($l, 'style="display:"');
         $xtable->td(iSelect('rekitem' . $l, $rekening, $r1['rek'], 'width:80px'), 80);
         $xtable->td(iTextC('debet' . $l, $r1['debet'], 'width:120px'), 120);
         $xtable->td(iTextC('kredit' . $l, $r1['kredit'], 'width:120px'), 120);
         $xtable->row_end();
         $l++;
         $rs++;
     }
     for ($i = $l; $i <= 10; $i++) {
         if ($i > 4) {
             $dsp = 'none';
         } else {
             $rs++;
         }
         $xtable->row_begin($i, 'style="display:' . $dsp . '"');
         $xtable->td(iSelect('rekitem' . $i, $rekening, '-', 'width:80px'), 80);
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:transaksi2.php

示例6: xtable

        echo '</div>';
    } else {
        $xtable->nodata();
    }
} else {
    // Per siswa
    $xtable = new xtable($fmod, 'siswa', '', 2);
    $xtable->search_keyon('kunci=>aka_siswa.nama:LIKE-0');
    $xtable->search_box_pos('l');
    $xtable->pageorder = "aka_siswa.nis";
    $xtable->noopt = true;
    $xtable->use_select();
    echo '<div style="width:100%;height:300px;max-height:300px;overflow:auto">';
    $xtable->head('Tgl{C}', 'Presensi{C}', 'Keterangan');
    for ($i = 1; $i <= $dim; $i++) {
        $xtable->row_begin($i);
        //$ctgl=$tgl_cm.$i;
        $r = array('replid' => $i);
        $xtable->td($i, 40, 'c');
        $t1 = mysql_query("SELECT absen,keterangan FROM aka_absen WHERE siswa='" . $cid . "' AND tanggal='" . $tgl_cm . $i . "'");
        if (mysql_num_rows($t1) > 0) {
            $r1 = mysql_fetch_array($t1);
            $absen = $r1['absen'];
            $info = $r1['keterangan'];
        } else {
            $absen = '';
            $info = '';
        }
        $s = '<button id="presensi_btn_H_' . $r['replid'] . '" class="presensi_btn' . ($absen == 'H' ? '_H' : '') . '" onclick="xtable2_cekall(false);presensi_list_get_setabsen(' . $r['replid'] . ',\'H\')"><b>H</b></button>';
        $s .= '&nbsp;<button id="presensi_btn_S_' . $r['replid'] . '" class="presensi_btn' . ($absen == 'S' ? '_S' : '') . '" onclick="xtable2_cekall(false);presensi_list_get_setabsen(' . $r['replid'] . ',\'S\')"><b>S</b></button>';
        $s .= '&nbsp;<button id="presensi_btn_I_' . $r['replid'] . '" class="presensi_btn' . ($absen == 'I' ? '_I' : '') . '" onclick="xtable2_cekall(false);presensi_list_get_setabsen(' . $r['replid'] . ',\'I\')"><b>I</b></button>';
开发者ID:nickohappy7,项目名称:sister,代码行数:31,代码来源:presensi_list_get.php


注:本文中的xtable::row_begin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。