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


PHP make_table函数代码示例

本文整理汇总了PHP中make_table函数的典型用法代码示例。如果您正苦于以下问题:PHP make_table函数的具体用法?PHP make_table怎么用?PHP make_table使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: umwords_build

function umwords_build($p, $o)
{
    $ratio = 50;
    $min = $p * $ratio;
    $limit = $min . ', ' . ($min + $ratio);
    $r = sql_inner('pub_art.id,msg', 'qda', 'qdm', 'id', 'kv', 'where nod="ummo" limit ' . $limit);
    if ($r) {
        foreach ($r as $k => $v) {
            $v = str_replace("'", ' ', $v);
            //$v=str_replace('-',' ',$v);
            $rb = str_word_count($v, 2);
            if ($rb) {
                foreach ($rb as $ka => $va) {
                    if ($va == strtoupper($va) && !umwords_dicos($va) && strlen($va) > 1) {
                        $rd[] = array($k, $va, $ka, soundex($va));
                        //idart,voc,pos,sound
                        $rc[$va] = array($k, $va, $ka, soundex($va));
                    }
                }
            }
        }
    }
    //if(auth(6))umwords_sav($rc);
    return $rd;
    $ret = count($rc);
    $ret .= make_table($rc);
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:28,代码来源:umwords.php

示例2: udc_build

function udc_build($p)
{
    if ($p == '1' && auth(6)) {
        $r = udc_source();
    }
    $r = msql_read('users', 'ummo_umvoc_1', '', 1);
    if ($r) {
        foreach ($r as $k => $v) {
            $ra[$v[0]] = $v;
        }
    }
    ksort($ra);
    if ($ra) {
        foreach ($ra as $k => $v) {
            //if(strpos($v[3],'Eyaoloowa')!==false){}
            //$rb[$k][]=divc('title',$k);
            $rb[$k][] = lj('', 'popup_plup___umvoc_ud*glossary_' . ajx($k), $k) . ' ';
            $f = 'users/ummo/glyphes/' . strtoupper($k) . '.png';
            $rb[$k][] = is_file($f) ? udc_imz($f, 6) : '';
            //$rb[$k][]=is_file($f)?image('/'.$f,'',''):'';
            $rb[$k][] = stripslashes($v[1]);
            $rb[$k][] = lj('', 'popup_search___' . ajx($k), picto('search', 16));
            $rb[$k][] = $v[3];
        }
    }
    return make_table($rb);
}
开发者ID:philum,项目名称:cms,代码行数:27,代码来源:umdico.php

示例3: create_tracking_table

function create_tracking_table($substatus, $textstat)
{
    global $status, $login_id;
    $action = "";
    $issue['id'] = "Bug ID";
    $issue['title'] = "Bug Title";
    $issue['status'] = "Status";
    $issue['login_id'] = "Submitted By";
    $issue['action'] = "Action(s)";
    $out = make_table($issue, "WIDTH=55%");
    $counter = 0;
    db("SELECT id, title, login_id FROM server_issuetracking WHERE status= " . $status . $substatus);
    while ($issues = dbr(1)) {
        $action = "<a href='{$_SERVER['PHP_SELF']}?status={$status}&id={$issues['id']}&action=view'>View</a>";
        if ($login_id == OWNER_ID) {
            //server admin only
            if ($status == 1) {
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=forward'>Outstanding</a>";
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=resolve'>Close</a>";
            } elseif ($status == 2) {
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=forward'>Close</a>";
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=up'>Up</a>";
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=down'>Down</a>";
            } elseif ($status == 3) {
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=reopen'>Reopen</a>";
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=up'>Up</a>";
                $action .= " - <a href='{$_SERVER['PHP_SELF']}?&status={$status}&id={$issues['id']}&action=down'>Down</a>";
            }
        }
        //end of admin only.
        $issue['id'] = $issues['id'];
        $issue['title'] = $issues['title'];
        $issue['status'] = $textstat;
        db2("select login_name from user_accounts where login_id = '{$issues['login_id']}'");
        $temp_store = dbr2(1);
        $issue['login_id'] = $temp_store['login_name'];
        $issue['action'] = $action;
        $out .= make_row($issue);
        $counter++;
    }
    if ($counter == 0) {
        //if no bugs
        $issue['id'] = "NONE";
        $issue['title'] = "";
        $issue['status'] = "";
        $issue['login_id'] = "";
        $issue['action'] = "";
        $out .= make_row($issue);
    }
    $out .= "</table>";
    return " - {$counter} Entries<br />" . $out;
}
开发者ID:nilsine,项目名称:Astra-Vires,代码行数:52,代码来源:bugs_tracker.php

示例4: mform_read

function mform_read($id)
{
    reqp('msql');
    $msq = new msql('', ses('mform'));
    $msq->read('i');
    //p($msq->ret);
    //if(auth(6))$ret.=lj('','mfr'.$id.'_plug___microform_mform*read_'.$id,picto('reload'));
    if (auth(6)) {
        $ret .= lj('', ses('mformj'), picto('reload'));
    }
    $ret .= make_table($msq->ret, 'txtcadr', '') . br();
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:13,代码来源:microform.php

示例5: mq_cols

function mq_cols($p, $o, $res = '')
{
    list($p, $o) = ajxp($res, $p, $o);
    //echo $p."-".$o;
    $r = sql_b('select column_name,data_type,character_maximum_length from information_schema.columns where table_name="' . $p . '" and table_schema="' . $o . '";', '');
    //p($r);
    if ($r) {
        foreach ($r as $v) {
            //p($v);
            $ret[] = array(lj('txtx', 'popup_plup___mysqm_mq*edit_' . $v[0], $v[0]), $v[1], $v[2]);
        }
    }
    return make_table($ret);
}
开发者ID:philum,项目名称:cms,代码行数:14,代码来源:mysqm.php

示例6: plug_msqads

function plug_msqads($p, $o)
{
    $rid = 'plg' . randid();
    $p = $p ? $p : 'msqads';
    reqp('msql');
    $msq = new msql('', $p);
    //table
    $rb = array('day', 'quest', 'resp');
    $msq->create($rb);
    $ret .= input(1, $rb[0], $rb[0], '', 1) . br() . txarea($rb[1], '', 40, 4) . txarea($rb[2], '', 40, 4);
    $ret .= lj('txtbox', $rid . '_plug___msqads_msqads*j_' . $p . '__' . implode('|', $rb), 'save') . ' ';
    $ret .= msqlink('users', ses('qb') . '_' . $p);
    $msq->read('i');
    return $ret . divd($rid, make_table($msq->ret, 'txtblc', 'txtx'));
}
开发者ID:philum,项目名称:cms,代码行数:15,代码来源:msqads.php

示例7: statsee_j

function statsee_j($p, $o, $res = '')
{
    if (!$p) {
        $p = 0;
    }
    //$r=sql('iq,qb,page,time','qdv','','id>'.$p.' order by id desc');
    $r = sql_inner('ip,qb,page,DATE_FORMAT(' . qd('live') . '.time,\'%H:%i:%s\')', 'qdp', 'qdv', 'iq', '', 'where ' . qd('live') . '.id>' . $p . ' order by ' . qd('live') . '.id desc limit 50');
    //p($r);
    if ($r) {
        foreach ($r as $k => $v) {
            $ret[] = array($k, $v[3], $v[0], $v[2]);
        }
    }
    return make_table($ret, 'txtx', 'txtx');
}
开发者ID:philum,项目名称:cms,代码行数:15,代码来源:statsee.php

示例8: atomic_build

function atomic_build($p, $o)
{
    $r = msql_read('', 'public_atomic', '');
    $rb['-'] = $r['_menus_'];
    if (is_numeric($p)) {
        $rb[] = msql_read('', 'public_atomic', $p);
    } elseif ($p) {
        foreach ($r as $k => $v) {
            if (strtolower($v[0]) == strtolower($p)) {
                $rb[$k] = $v;
            }
        }
    }
    //p($rb);
    return make_table($rb);
}
开发者ID:philum,项目名称:cms,代码行数:16,代码来源:atomic.php

示例9: plug_model

function plug_model($p, $o)
{
    $rid = 'plg' . randid();
    $p = $p ? $p : 'model';
    reqp('msql');
    $msq = new msql('', $p);
    //table
    $rb = array('title', 'text');
    $msq->create($rb);
    //cols
    $ret .= input(1, $rb[0], '', '', 20);
    $ret .= lj('txtbox', $rid . '_plug___model_model*j_' . $p . '__' . implode('|', $rb), 'save') . br();
    $ret .= txarea($rb[1], '', 40, 4);
    $ret .= msqlink('users', ses('qb') . '_' . $p);
    $msq->read('i');
    return $ret . divd($rid, make_table($msq->ret, 'txtblc', 'txtx'));
}
开发者ID:philum,项目名称:cms,代码行数:17,代码来源:model.php

示例10: msqmerge_build

function msqmerge_build($p, $o)
{
    req('pop,spe,tri');
    $r = explode(',', $p);
    $ra = array();
    if ($r && $p) {
        foreach ($r as $k => $v) {
            //echo $v;
            $r = msql_read('', $v);
            //pr($r);
            if ($r) {
                $ra += msqmerge($r, $v);
            }
        }
    }
    ksort($ra);
    return make_table($ra);
}
开发者ID:philum,项目名称:cms,代码行数:18,代码来源:msqmerge.php

示例11: plug_cart

function plug_cart()
{
    if ($_GET["del"]) {
        unset($_SESSION['cart'][$_GET["del"]]);
    }
    $ar[] = array("", "réf", "titre", "prix", "qté", "sub_total", "x");
    //"ancien prix","remise",
    if ($_SESSION['cart']) {
        foreach ($_SESSION['cart'] as $k => $v) {
            $save .= $k . '=' . $v . ';' . "\r";
            list($day, $frm, $tit, $amg, $nod, $tag, $lu, $re, $host, $mail, $ib) = pecho_arts($k);
            list($prx, $ref, $stock) = prod_from_art($k);
            //,$reduc,$descript
            $tit = lkc("txtcadr", good_url($k, 'read'), $tit) . '' . br();
            $img = minimg($amg, 1) . br();
            //if($reduc){$oldprice=$prix;$prx=round($prix*($reduc/100));}
            //else{$oldprice="";$prx=$prix;}//prix
            $qte = qtes($k, $v);
            $erz = lkc('', '?plug=cart&del=' . $k, 'x');
            $ar[] = array($img, $ref, $tit, $prx, $qte, $prx * $qte, $erz);
            //$oldprice,$reduc,
            $total += $prx * $qte;
        }
        $_SESSION["prixtotal"] = $total;
        $ar[] = array("", "", "", "", "total", $total);
        //"","",
        $tb = make_table($ar, 'txtred', '');
        //$tb=str_replace("table",'table width="100%"',$tb);
        $tb = str_replace("td", 'td class="txtblc" align="center"', $tb);
        //$_SESSION["commande"]=$tb;
        $ret = $tb . br();
        $ret .= ljb('txtbox', 'jumpval', 'ref5_command::' . $save, $_SESSION['nms'][27]) . br() . br();
        $ret .= nl2br(make_form_fromstring('::Name=input::Adress=input::city=input::Email=input::Message=text', ''));
    } else {
        $ret = btn("txtred", "empty_cart");
    }
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:38,代码来源:cart.php

示例12: msqt_read

function msqt_read($nod, $p)
{
    $r = read_vars('msql/users/', $nod, '');
    if (isset($r['_menus_'])) {
        $mnu = $r['_menus_'];
        unset($r['_menus_']);
    }
    if (substr($p, 0, 1) == 'x') {
        $p = substr($p, 1);
    } else {
        $o = 'x';
    }
    $rb = array_keys_r($r, $p);
    if ($o) {
        arsort($rb);
    } else {
        asort($rb);
    }
    $r = conform_order($r, $rb);
    foreach ($mnu as $k => $v) {
        $pb = ajx($o . $v, 0);
        $tts[] = lj('', 'msqt_plug___msqtemplate_msqt*read_' . ajx($nod, 0) . '_' . $o . $k, $v);
    }
    foreach ($r as $k => $v) {
        if ($v) {
            foreach ($v as $ka => $va) {
                if ($mnu[$ka] == 'date') {
                    $va = date('d/m/Y', $va);
                }
                $r[$k][$ka] = $va;
            }
        }
    }
    array_unshift($r, $tts);
    return make_table($r, 'txtred', 'txtx');
}
开发者ID:philum,项目名称:cms,代码行数:36,代码来源:msqtemplate.php

示例13: make_table

<?php

require_once "user.inc.php";
$filename = 'options.php';
$error_str = "";
// change player options
if (isset($_GET['player_op']) && $_GET['player_op'] == 1) {
    $error_str .= $st[925];
    $error_str .= make_table(array("", ""));
    $error_str .= "<form method='post' action='options.php'>";
    if ($user['login_id'] != 1 && $user['login_id'] != OWNER_ID) {
        #admins can't alter icq etc.
        $error_str .= quick_row("<br />" . $st[926] . ":", " <input type='text' name='aim' value='{$p_user['aim']}' />");
        $error_str .= quick_row("<br />" . $st[927] . " #:", " <input type='text' name='icq' value='{$p_user['icq']}' />");
        $error_str .= quick_row("<br />" . $st[928] . ":", " <input type='text' name='yim' value='{$p_user['yim']}' />");
        $error_str .= quick_row("<br />" . $st[929] . ":", " <input type='text' name='msn' value='{$p_user['msn']}' />");
    } else {
        $error_str .= "<br />" . $st[930] . "<br />";
    }
    $error_str .= quick_row($st[931], "<p />" . $cw['note'] . ": <b class='b1'>" . $st[932] . "<br /><textarea name=sig cols=25 rows=10>" . stripslashes($user['sig']) . "</textarea>");
    $error_str .= "</table><input type='hidden' name='player_op' value='2' /><br /><br />";
    $error_str .= "<input type='submit' name='submit' /></form><br /><br />";
    print_page($st[933], $error_str);
} elseif (isset($_POST['player_op']) && $_POST['player_op'] == 2) {
    if ($user['login_id'] != 1) {
        #admins can't alter icq etc
        dbn("update user_accounts set aim = '" . mysql_escape_string(strip_tags((string) $_POST['aim'])) . "', icq = '" . (int) $_POST['icq'] . "', yim = '" . mysql_escape_string(strip_tags((string) $_POST['yim'])) . "', msn = '" . mysql_escape_string(strip_tags((string) $_POST['msn'])) . "' where login_id = '{$user['login_id']}'");
    }
    dbn("update {$db_name}_users set sig = '" . mysql_escape_string(strip_tags((string) $_POST['sig'])) . "' where login_id = '{$user['login_id']}'");
    $error_str .= $st[934];
}
开发者ID:nilsine,项目名称:Astra-Vires,代码行数:31,代码来源:options.php

示例14: adm_apps

function adm_apps($id, $cnd, $sys = '')
{
    //id=dir;cnd=;sys=;
    $rid = 'mp' . randid();
    //echo $id.'-'.$sys; p($_GET);
    $m = 'apps';
    $j = 'sbm_submds___';
    $top .= lj('', $j . '_' . $id . '_' . $sys . '__', picto('reload')) . '';
    $top .= lj('txtx', $j . '_' . $id . '_' . $sys, 'root') . '';
    $r = explode('/', $id);
    foreach ($r as $k => $v) {
        $idb[] = $v;
        //echo $v;
        if ($v) {
            $top .= lj('txtx', $j . '_' . implode('/', $idb), $v) . '';
        }
    }
    $top .= ' ' . admhlp('grey', $m, 'help') . ' ';
    foreach (array('menu', 'desk', 'boot', 'home', 'user') as $v) {
        //,'favs'
        $top .= lj($cnd == $v ? 'txtaa' : 'txtab', $j . '_' . $id . '__' . $v, $v) . ' ';
    }
    $top .= lj('" title="' . nms(103), 'popup_submds____' . $id . '_add', picto('plus')) . ' ';
    $top .= msqlink('', ses('qb') . '_' . $m) . ' ';
    if (rstr(61) && $m == 'apps') {
        $top .= hlpbt('apps', 'alert');
    }
    $top .= msqlink('system', 'default_apps') . ' ';
    $top .= lj('txtsmall2', 'popup_admin___apps_1', 'sys') . ' ';
    if ($sys) {
        $r = msql_read_b('system', 'default_apps', '', 1);
    } else {
        $r = msql_read('', ses('qb') . '_' . $m, '', 1);
    }
    $ar[] = array('', 'icon', nms(71), 'root', 'type', 'condition', nms(105));
    if (!$r) {
        $r = submod_revert('_users');
    }
    foreach ($r as $k => $v) {
        if ($cnd && strpos($v[5], $cnd) !== false or !$cnd) {
            $prv = $v[9] ? picto('lock') : '';
            $jp = 'popup_submds___' . $k . '_' . $id . '_';
            $up = lj('', $jp . 'pos', picto('ktop§10')) . ' ';
            $bt = lj($v[8] ? 'grey' : '', $jp . 'edit_' . $cnd, $v[0]);
            $pt = lj($v[8] ? 'grey' : '', $jp . 'edit_' . $cnd, picto($v[7]));
            $cd = strpos($v[5], 'menu') !== false ? picto('admin') : '';
            $cd .= strpos($v[5], 'desk') !== false ? picto('desktop') : '';
            $cd .= strpos($v[5], 'boot') !== false ? picto('get') : '';
            $cd .= strpos($v[5], 'home') !== false ? picto('home') : '';
            $cd .= strpos($v[5], 'user') !== false ? picto('user') : '';
            $dir = $v[6] ? lj('txtx', $j . '_' . $v[6] . '_' . $cnd . '_' . $sys, $v[6]) : '';
            if (substr($v[6], 0, strlen($id)) == $id or !$id) {
                $ar[$k] = array($up, $pt, $bt, $dir, $v[1], $cd, $prv);
            }
        }
    }
    //,$v[2],$v[5]
    $ret .= make_table($ar, '') . hidden('', $id, '');
    return divd('sbm', $top . $ret);
}
开发者ID:philum,项目名称:cms,代码行数:60,代码来源:adminx.php

示例15: config_list

function config_list($details, $lookup = -1)
{
    //empty config, so return nothing.
    if ($lookup == "") {
        return $cw['None'];
    }
    $temp_where = "";
    //list selected $lookup configs, rather than all
    if ($lookup != -1) {
        $temp_where = " where ";
        //loop through all entries in lookup and add them to the where
        foreach (explode(",", $lookup) as $val) {
            $temp_where .= "config_id = '{$val}' || ";
        }
        $temp_where = preg_replace("/\\|\\| \$/", "", $temp_where);
    }
    $ret_str = "";
    db("select * from se_config_list {$temp_where}");
    //showing only title of configs.
    if ($details == 0) {
        while ($list_conf = dbr(1)) {
            $ret_str .= $list_conf['short_for'] . "<br />";
        }
        //showing all info about the configs.
    } else {
        //make tables with all information for all of resultaint configs.
        while ($list_conf = dbr(1)) {
            $ret_str .= make_table(array("", ""), "WIDTH=95%");
            $ret_str .= quick_row($st[1142], $list_conf['config_id']);
            $ret_str .= quick_row($st[1143], $list_conf['short_for']);
            $ret_str .= quick_row($st[1144], $list_conf['type']);
            $ret_str .= quick_row($st[1145], $list_conf['description']);
            $ret_str .= quick_row($st[1146], $list_conf['does_to_ship']);
            $ret_str .= "</table><br />";
        }
    }
    return $ret_str;
}
开发者ID:nilsine,项目名称:Astra-Vires,代码行数:38,代码来源:common.inc.php


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