本文整理汇总了PHP中xtable::use_urut方法的典型用法代码示例。如果您正苦于以下问题:PHP xtable::use_urut方法的具体用法?PHP xtable::use_urut怎么用?PHP xtable::use_urut使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xtable
的用法示例。
在下文中一共展示了xtable::use_urut方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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();
}
示例2: xtable
<?php
appmod_use('aka/tahunajaran');
$fmod = 'semester';
$xtable = new xtable($fmod);
$xtable->use_urut('aka_semester');
$dept = gpost('departemen');
$departemen = departemen_r($dept);
if (count($departemen) > 0) {
$tajar = gpost('tahunajaran');
$tahunajaran = tahunajaran_r($tajar, $dept);
// Query
$t = mysql_query("SELECT * FROM aka_semester WHERE tahunajaran='{$tajar}' ORDER BY urut");
$xtable->ndata = mysql_num_rows($t);
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
$PSBar->selection_departemen($fmod, $dept);
if (count($tahunajaran) > 0) {
$PSBar->selection('Tahun ajaran', iSelect('tahunajaran', $tahunajaran, $tajar, "width:" . $PSBar->selw, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('tahunajaran', $tajar);
tahunajaran_warn();
exit;
}
$PSBar->end();
$xtable->btnbar_f('add', 'updn');
if ($xtable->ndata > 0) {
// Table head
$xtable->head('Semester', 'Keterangan', 'Status~C');
示例3: xtable
<?php
appmod_use('aka/tahunajaran');
$fmod = 'tesakademik';
$xtable = new xtable($fmod, 'jenis penilaian');
$xtable->use_urut('aka_tes');
$dept = gpost('departemen');
$departemen = departemen_r($dept);
if (count($departemen) > 0) {
$tajar = gpost('tahunajaran');
$tahunajaran = tahunajaran_r($tajar, $dept);
// Query
$t = mysql_query("SELECT * FROM aka_tes WHERE tahunajaran='{$tajar}' ORDER BY urut");
$xtable->ndata = mysql_num_rows($t);
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
$PSBar->selection_departemen($fmod, $dept);
if (count($tahunajaran) > 0) {
$PSBar->selection('Tahun ajaran', iSelect('tahunajaran', $tahunajaran, $tajar, $PSBar->selws, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('tahunajaran', $tajar);
tahunajaran_warn(0, 'float:left');
$PSBar->pass = false;
}
$PSBar->end();
if ($PSBar->pass) {
$xtable->btnbar_f('add', 'updn');
if ($xtable->ndata > 0) {
// Table head