当前位置: 首页>>代码示例>>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;未经允许,请勿转载。