當前位置: 首頁>>代碼示例>>PHP>>正文


PHP xtable::use_urut方法代碼示例

本文整理匯總了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();
}
開發者ID:epiii,項目名稱:siadu-epiii,代碼行數:23,代碼來源:golongan.php

示例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');
開發者ID:nickohappy7,項目名稱:sister,代碼行數:31,代碼來源:semester.php

示例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
開發者ID:nickohappy7,項目名稱:sister,代碼行數:31,代碼來源:tesakademik.php


注:本文中的xtable::use_urut方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。