本文整理汇总了PHP中xtable::foot方法的典型用法代码示例。如果您正苦于以下问题:PHP xtable::foot方法的具体用法?PHP xtable::foot怎么用?PHP xtable::foot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xtable
的用法示例。
在下文中一共展示了xtable::foot方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
$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');
}
$xtable->foot();
} else {
$xtable->nodata_cust('Tidak ada data buku pada lokasi ini.');
}
}
?>
示例2: iText
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 .= ' <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 .= ' <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>';
$s .= ' <button id="presensi_btn_A_' . $r['replid'] . '" class="presensi_btn' . ($absen == 'A' ? '_A' : '') . '" onclick="xtable2_cekall(false);presensi_list_get_setabsen(' . $r['replid'] . ',\'A\')"><b>A</b></button>';
//$xtable->td($s,110,'c');
echo '<td style="width:110px;text-align:center">' . $s . '</td>';
$s = iText('keterangan_' . $r['replid'], $info, 'width:100%');
echo '<td>' . $s . '</td>';
hiddenval('absen_' . $r['replid'], $absen);
$xtable->row_end();
}
$s = '<div style="float:left">';
//$s.='<button class="presensi_btn" onclick="presensi_list_get_setabsen_sel(\'\')"><b> </b></button>';
$s .= '<button class="presensi_btn" onclick="presensi_list_get_setabsen_sel(\'H\')"><b>H</b></button>';
$s .= ' <button class="presensi_btn" onclick="presensi_list_get_setabsen_sel(\'S\')"><b>S</b></button>';
$s .= ' <button class="presensi_btn" onclick="presensi_list_get_setabsen_sel(\'I\')"><b>I</b></button>';
$s .= ' <button class="presensi_btn" onclick="presensi_list_get_setabsen_sel(\'A\')"><b>A</b></button>';
$s .= '</div>';
$xtable->select_opt = '<div class="sfont" style="width:164px;float:left;margin-top:4px;margin-left:0px;margin-right:5px">set presensi siswa yang dipilih:</div>' . $s;
$xtable->foot(0);
echo '</div>';
$xtable->foot_option();
}
示例3: 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>';
?>
示例4: 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>';