• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP table_end函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: display_cart

function display_cart($cart)
{
    $cell_colour = "#DDFFFF";
    table_start();
    table_row_start();
    table_cell('<b>Product</b>', $cell_colour);
    table_cell('<b>Quantity</b>', $cell_colour);
    table_cell('<b>Price</b>', $cell_colour);
    table_row_end();
    $total = 0;
    foreach ($cart->item as $value) {
        table_row_start();
        table_cell($value->description);
        table_cell($value->quantity);
        table_cell($value->price * $value->quantity);
        $total += $value->price * $value->quantity;
        table_row_end();
    }
    table_row_start();
    table_cell('');
    table_cell('<b> Total </b>', $cell_colour);
    table_cell("<b>{$total}<b>", $cell_colour);
    table_row_end();
    table_end();
}
开发者ID:psagi,项目名称:sdo,代码行数:25,代码来源:display_cart.php


示例2: display_orders

function display_orders($status)
{
    $warehouse = SCA::getService('../WarehouseService/WarehouseService.php');
    $orders = $warehouse->getOrdersByStatus($status);
    if (count($orders->order) == 0) {
        echo "None\n";
        return;
    }
    include_once "./table.php";
    table_start();
    table_row_start();
    table_cell('<b>Order ID</b>', '#DDDDFF');
    table_cell('<b>Name</b>', '#DDDDFF');
    table_cell('<b>Status</b>', '#DDDDFF');
    table_row_end();
    $odd = false;
    foreach ($orders->order as $order) {
        table_row_start();
        if (!$odd) {
            table_cell("<a href=\"./order_details.php?orderId=" . $order->orderId . "\">" . $order->orderId . "</a>");
            table_cell(isset($order->customer->name) ? $order->customer->name : 'no name supplied');
            table_cell($order->status);
        } else {
            table_cell("<a href=\"./order_details.php?orderId=" . $order->orderId . "\">" . $order->orderId . "</a>", '#DDFFFF');
            table_cell(isset($order->customer->name) ? $order->customer->name : 'no name supplied', '#DDFFFF');
            table_cell($order->status, '#DDFFFF');
        }
        $odd = !$odd;
        table_row_end();
    }
    table_end();
}
开发者ID:psagi,项目名称:sdo,代码行数:32,代码来源:display_orders.php


示例3: overview

function overview()
{
    global $uid;
    $sth = mysql_query("select b.prod_id,b.count,b.side,p.name,p.typ,b.initiative,b.agility,b.hull,b.weaponpower,b.shield,b.ecm,b.target1,b.sensor,b.weaponskill,b.special,b.armor,b.num_attacks,s.initiative,s.agility,s.hull,s.weaponpower,s.shield,s.ecm,s.target1,s.sensor,s.weaponskill,s.special,s.armor,s.num_attacks from battle_" . $uid . " b, production p, shipvalues s where b.prod_id=p.prod_id and b.prod_id=s.prod_id order by side");
    echo "<form action=\"" . $_SERVER["PHP_SELF"] . "\" method=\"POST\">";
    table_start("center", "700");
    table_head_text(array("Battlesimulator"), 20);
    if (!$sth || mysql_num_rows($sth) == 0) {
        table_text(array("No ships"), "", "", "", "text");
    } else {
        table_head_text(array("Side", "Name", "Type", "count", "initiative", "agility", "hull", "power", "shield", "ecm", "target1", "sensors", "skill", "special", "armor", "num_attacks", "mail"));
        while (list($prod_id, $count, $side, $name, $typ, $cur_ini, $cur_agi, $cur_hull, $cur_pow, $cur_shield, $cur_ecm, $cur_tar1, $cur_sen, $cur_skill, $cur_spec, $cur_arm, $cur_num, $ini, $agi, $hull, $pow, $shield, $ecm, $tar1, $sen, $skill, $spec, $arm, $num) = mysql_fetch_row($sth)) {
            table_text(array($side, $name, $typ, "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][count]\" size=\"4\" value=\"" . $count . "\">", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][initiative]\" size=\"3\" value=\"" . $cur_ini . "\"> (" . $ini . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][agility]\" size=\"3\" value=\"" . $cur_agi . "\"> (" . $agi . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][hull]\" size=\"3\" value=\"" . $cur_hull . "\"> (" . $hull . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][weaponpower]\" size=\"3\" value=\"" . $cur_pow . "\"> (" . $pow . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][shield]\" size=\"3\" value=\"" . $cur_shield . "\"> (" . $shield . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][ecm]\" size=\"3\" value=\"" . $cur_ecm . "\"> (" . $ecm . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][target1]\" size=\"3\" value=\"" . $cur_tar1 . "\"> (" . $tar1 . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][sensor]\" size=\"3\" value=\"" . $cur_sen . "\"> (" . $sen . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][weaponskill]\" size=\"3\" value=\"" . $cur_skill . "\"> (" . $skill . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][special]\" size=\"3\" value=\"" . $cur_spec . "\"> (" . $spec . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][armor]\" size=\"3\" value=\"" . $cur_arm . "\"> (" . $arm . ")", "<input type=\"text\" name=\"battle[" . $side . "][" . $prod_id . "][num_attacks]\" size=\"3\" value=\"" . $cur_num . "\"> (" . $num . ")", "<a href=\"" . $_SERVER["PHP_SELF"] . "?act=suggest&side=" . $side . "&prod_id=" . $prod_id . "\">suggest change</a>"), "", "", "", "text");
        }
    }
    table_form_submit("Change", "proc_change_values");
    table_end();
    echo "</form>";
    $sth = mysql_query("select prod_id,name from production where typ in ('L','M','H','I') \norder by name");
    if (!$sth) {
        show_error("database failersdfiosd");
        return false;
    }
    echo "<form action=\"" . $_SERVER["PHP_SELF"] . "\" method=\"POST\">";
    table_start("center", "500");
    table_head_text(array("Add ships"), "2");
    while (list($prod_id, $name) = mysql_fetch_row($sth)) {
        $select[$name] = $prod_id;
    }
    table_form_select("Ship", "prod_id", $select, "2", "text", "text");
    table_form_select("Side", "side", array(1 => 1, 2 => 2), "2", "text", "text");
    table_form_text("Count", "count");
    table_form_submit("Add ships", "proc_add_ships");
    table_end();
    echo "</form>";
    echo "<br>";
    echo "<form action=\"" . $_SERVER["PHP_SELF"] . "\" method=\"POST\">";
    table_start("center", "500");
    table_head_text(array("Config"), "2");
    table_form_select("Combat rounds", "rounds", array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 10 => 10), "1", "text", "text");
    table_form_select("Fraction limit", "fraction", array(100 => 100, 250 => 250, 500 => 500, 1000 => 1000, 2000 => 2000, "no limit" => 0), "250", "text", "text");
    table_form_select("Orbital Dig-In factor (Side 1)", "digino", array("no dig-in" => 0, 20 => 20, 40 => 40, 60 => 60, 65 => 65, 70 => 70, 75 => 75, 80 => 80, 85 => 85, 90 => 90, 95 => 95, 99 => 99), "0", "text", "text");
    table_form_select("Orbital Dig-In bonus (Side 1)", "diginob", array("no bonus" => 0, 5 => 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 55 => 55), "0", "text", "text");
    table_form_select("Planetary Dig-In factor (Side 1)", "diginp", array("no dig-in" => 0, 20 => 20, 40 => 40, 60 => 60, 65 => 65, 70 => 70, 75 => 75, 80 => 80, 85 => 85, 90 => 90, 95 => 95, 99 => 99), "70", "text", "text");
    table_form_select("Planetary Dig-In bonus (Side 1)", "diginpb", array("no bonus" => 0, 5 => 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 55 => 55), "20", "text", "text");
    table_form_select("Overall combat boost", "boost", array("no boost" => 1, 2 => 2, 3 => 3, 5 => 5), "1", "text", "text");
    table_form_select("Verbosity", "verbosity", array("Results only" => 0, "Overview" => 1, "Full details" => 2), "1", "text", "text");
    table_form_submit("Execute battle", "execute_battle");
    table_end();
    echo "</form>";
    //print "<a href=\"".$_SERVER["PHP_SELF"]."?act=execute_battle\">Execute battle</a>";
}
开发者ID:spaceregents,项目名称:spaceregents,代码行数:52,代码来源:battlesimulater.php


示例4: display_customer_form

function display_customer_form()
{
    $customer_labels = array('Name');
    $address_labels = array('Street', 'City', 'State', 'Zip');
    $payment_labels = array('Bank', 'Account', 'SecurityCode');
    echo '</br><b>Enter your details:</b></br></br>';
    echo '<form method=POST action="submit_order.php">';
    table_start();
    display_form($customer_labels);
    display_form($address_labels);
    display_form($payment_labels);
    table_end();
    echo '<input type=submit name="Order" value="Submit Order"/></br>';
    echo '</form>';
}
开发者ID:psagi,项目名称:sdo,代码行数:15,代码来源:customer.php


示例5: display_catalog

function display_catalog($catalog)
{
    table_start();
    table_row_start();
    table_cell('Product');
    table_cell('Price');
    table_row_end();
    foreach ($catalog->item as $value) {
        table_row_start();
        table_cell('<a href="view_product.php?product_code=' . $value->itemId . '">' . $value->description . '</a>');
        table_cell($value->price);
        table_row_end();
    }
    table_end();
}
开发者ID:psagi,项目名称:sdo,代码行数:15,代码来源:catalog.php


示例6: display_events

function display_events($events)
{
    include_once "table.php";
    table_start();
    table_row_start();
    table_cell('<b>Date</b>', '#DDDDFF');
    table_cell('<b>Status</b>', '#DDDDFF');
    table_cell('<b>Description</b>', '#DDDDFF');
    table_row_end();
    foreach ($events->event as $event) {
        table_row_start();
        table_cell($event->timeStamp);
        table_cell($event->status);
        table_cell($event->description);
        table_row_end();
    }
    table_end();
}
开发者ID:psagi,项目名称:sdo,代码行数:18,代码来源:display_events.php


示例7: newaiinit

function newaiinit($fields, $mode)
{
    global $common_html, $html_etc;
    global $return_sql_line, $db;
    global $action_add, $action_model;
    global $_POST, $_GET, $ROWS_PAGE, $mark;
    global $merge, $childnums, $childsums, $child_filter;
    global $SYSTEM_ADD_SQL;
    $fields = newaiinit_value($fields);
    if ($merge) {
        $fields = newai_merge($fields, $merge);
    }
    if ($childnums) {
        $fields = newai_childnums($fields, $childnums);
    }
    if ($childsums) {
        $fields = newai_childsums($fields, $childsums);
    }
    global $tablewidth;
    $tablewidth = $tablewidth != "" ? $tablewidth : 450;
    //增加对高级搜索支持
    if ($_GET['actionadv'] == "exportadv_default") {
        newai_search($fields);
    }
    table_begin($tablewidth);
    show_search_element($mark);
    //“新建”按钮查询按钮的控制函数,此函数在newai.php中定义
    newaiinit_view($fields);
    UserDefineFunction();
    UserSumFunction($fields);
    //print_R($_REQUEST);
    if ($_GET['action'] == "") {
        $_GET['action'] = "init_default";
    }
    if ($_REQUEST['action'] != "") {
        $_GET['action'] = $_REQUEST['action'];
    }
    //print_R($_GET);
    newaiinit_bottommemo();
    newaiinit_bottom($fields['other']['rc'], $fields['other']['pageid'], $fields['other']['pagenums'], $ROWS_PAGE, $add = 'action', $add_var = $_GET['action']);
    table_end();
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:42,代码来源:newai_init.php


示例8: print_table_end

 function print_table_end()
 {
     table_end();
 }
开发者ID:spaceregents,项目名称:spaceregents,代码行数:4,代码来源:class_srbrowser.inc.php


示例9: show_stock_ticker

function show_stock_ticker()
{
    global $uid;
    $sth = mysql_query("SELECT time, message FROM stockmarket_ticker WHERE uid=" . $uid . " ORDER BY time");
    if (!$sth) {
        show_error("ERROR::GET TRADE TICKER");
        return false;
    }
    if (mysql_num_rows($sth) == 0) {
        table_start("center", 500);
        table_text(array("Trade Ticker"), "", "", "", "head");
        table_text(array("No transactions"), "", "", "", "text");
        table_end();
    } else {
        table_start("center", 500);
        table_text(array("Trade Ticker"), "", "", "2", "head");
        while ($ticker = mysql_fetch_row($sth)) {
            table_text(array($ticker[0], $ticker[1]), "", "", "", "text");
        }
        table_end();
        echo "<br />\n";
        $sth = mysql_query("DELETE FROM stockmarket_ticker WHERE uid=" . $uid);
        if (!$sth) {
            show_error("ERROR::GET DELETE TICKER");
            return false;
        }
    }
}
开发者ID:spaceregents,项目名称:spaceregents,代码行数:28,代码来源:trade.php


示例10: print_actorresults

function print_actorresults($results)
{
    table_start('Actor Results');
    foreach ($results as $actor) {
        echo '                    <li>', filter_var($actor->getName(), FILTER_SANITIZE_STRING), ' (<a href="https://www.themoviedb.org/person/', $actor->getID(), '">', $actor->getID(), '</a>)</li>';
        print "\n";
    }
    table_end();
}
开发者ID:blade2005,项目名称:tmdb-search,代码行数:9,代码来源:printer.php


示例11: show_menu

function show_menu()
{
    global $PHP_SELF;
    global $skin;
    center_headline("Communications");
    table_start("center", "500");
    table_text_open("", "center");
    table_text_design("<a href=\"communication.php?act=show_alliance\"><img src=\"skins/" . $skin . "_alliance.jpg\" border=\"0\" width=\"50\" height=\"50\" alt=\"Alliance Menu\"></A>", "163", "center");
    table_text_design("<a href=\"database.php\"><img src=\"skins/" . $skin . "_database.jpg\" border=\"0\" width=\"50\" height=\"50\" alt=\"Galactic Database\"></A>", "163", "center");
    table_text_design("<a href=\"communication.php?act=show_journal\"><img src=\"skins/" . $skin . "_notebook.jpg\" border=\"0\" width=\"50\" height=\"50\" alt=\"Personal journal\"></A>", "163", "center");
    table_text_design("<a href=\"mail.php\"><img src=\"skins/" . $skin . "_mail.jpg\" border=\"0\" width=\"50\" height=\"50\" alt=\"Mailbox\"></A>", "164", "center");
    table_text_close();
    table_text_open("");
    table_text_design("Alliance Menu", "", "center");
    table_text_design("Galactic Database", "", "center");
    table_text_design("Journal", "", "center");
    table_text_design("Mailbox", "", "center");
    table_text_close();
    table_end();
    echo "<br><br>\n";
}
开发者ID:spaceregents,项目名称:spaceregents,代码行数:21,代码来源:tax.php


示例12: BaseStatistics


//.........这里部分代码省略.........
            print "<TD nowrap class=TableData>" . $Element . "&nbsp;</TD>\n";
        }
        if ($NewArray['USER_YEAR'][$USER_TEXT][$Year] != "") {
            $base64_string = "action=init_default_search&searchvalue={$Year}&searchfield={$DATE_Field}&{$USER_Field}={$USER_TEXT}";
            $base64_url = base64_encode($base64_string);
            $Element = "<a href=\"crm_customer_newai.php?{$base64_url}\" target=_blank>" . $NewArray['USER_YEAR'][$USER_TEXT][$Year] . "</a>";
        } else {
            $Element = "";
        }
        print "<TD nowrap class=TableData><font color=black title='" . $USER_TEXT_NAME . "用户" . $Year . "年客户数量:" . $NewArray['USER_YEAR'][$USER_TEXT][$Year] . "'>" . $Element . "</font>&nbsp;</TD>\n";
        print "</TR>\n";
    }
    //标题栏--部门区域
    print "<TR class=TableContent>\n";
    print "<TD nowrap title='部门列表'>部门列表</TD>\n";
    for ($i = 1; $i <= 12; $i++) {
        $HeaderName = Date("Y-n", mktime(0, 0, 0, $i, Date("d"), $Year));
        print "<TD nowrap title='显示" . $HeaderName . "月份数据统计信息'>{$HeaderName}</TD>\n";
    }
    print "<TD nowrap>" . $Year . "年</TD>\n";
    print "</TR>\n";
    //数据区域--部门区域
    $DEPT_LIST = @array_keys($NewArray['DEPT']);
    for ($i = 0; $i < sizeof($DEPT_LIST); $i++) {
        $DEPT_TEXT = $DEPT_LIST[$i];
        $DEPT_TEXT_NAME = returntablefield("department", "DEPT_ID", $DEPT_TEXT, "DEPT_NAME");
        print "<TR class=TableContent>\n";
        print "<TD nowrap class=TableData><font color=black title=\"" . $DEPT_TEXT_NAME . "一年统计数量:" . $NewArray['DEPT_YEAR'][$DEPT_TEXT][$Year] . "\">" . $DEPT_TEXT_NAME . "[" . $NewArray['DEPT_YEAR'][$DEPT_TEXT][$Year] . "]</font>&nbsp;</TD>\n";
        for ($k = 1; $k <= 12; $k++) {
            $HeaderName = Date("Y-n", mktime(0, 0, 0, $k, Date("d"), $Year));
            $HeaderName2 = Date("Y-m", mktime(0, 0, 0, $k, Date("d"), $Year));
            if ($NewArray['DEPT'][$DEPT_TEXT][$HeaderName] != "") {
                $base64_string = "action=init_default_search&searchvalue={$HeaderName2}&searchfield={$DATE_Field}&{$DEPT_Field}={$DEPT_TEXT}";
                $base64_url = base64_encode($base64_string);
                $Element = "<a href=\"crm_customer_newai.php?{$base64_url}\" target=_blank>" . $NewArray['DEPT'][$DEPT_TEXT][$HeaderName] . "</a>";
            } else {
                $Element = "";
            }
            print "<TD nowrap class=TableData>" . $Element . "&nbsp;</TD>\n";
        }
        if ($NewArray['DEPT_YEAR'][$DEPT_TEXT][$Year] != "") {
            $base64_string = "action=init_default_search&searchvalue={$Year}&searchfield={$DATE_Field}&{$DEPT_Field}={$DEPT_TEXT}";
            $base64_url = base64_encode($base64_string);
            $Element = "<a href=\"crm_customer_newai.php?{$base64_url}\" target=_blank>" . $NewArray['DEPT_YEAR'][$DEPT_TEXT][$Year] . "</a>";
        } else {
            $Element = "";
        }
        print "<TD nowrap class=TableData><font color=black title='" . $DEPT_TEXT_NAME . $Year . "年客户数量:" . $NewArray['DEPT_YEAR'][$DEPT_TEXT][$Year] . "'>" . $Element . "</font>&nbsp;</TD>\n";
        print "</TR>\n";
    }
    //合并说明
    print "<TR class=TableContent>\n";
    print "<TD nowrap colspan=15 title='如果使用浏览器打印不是太方便的话,可以复制表格数据区到MS EXCEL,然后进行排版打印' class=TableData>报表说明:点击标题栏两个黑色三角箭头,即可实现年份之间的切换&nbsp;</TD>\n";
    print "</TR>\n";
    //报表统计主体部分开始
    for ($k = 0; $k < sizeof($showlistfieldlistArray); $k++) {
        $fieldIndex = $showlistfieldlistArray[$k];
        $fieldName = $columns[$fieldIndex];
        $fieldText = $html_etc[$tablename][$fieldName];
        $mode = $showlistfieldfilterArray[$k];
        $modeArray = explode(':', $mode);
        //$rs=$db->CacheExecute(150,$SQL);
        //$rs_array=$rs->GetArray();//print_R($rs_array);
        //父表结构部分
        //本表操作部分--数据处理部分 --形成FLASH要处理的数据类型
        //本表操作部分--FALSH图表显示部分--显示FLASH图表的结果
        //本文信息显示部分
        //print_title($html_etc[$tablename][$tabletitle]."<font color=green>[".$html_etc[$tablename][$fieldName]."]</font>",40);
        print "<TR class=TableData>";
        print "<TD width=30%>名称</TD>";
        print "<TD width=30%>数目</TD>";
        print "<TD width=30%>百分比</TD>";
        print "<TD width=30%>总记录</TD>";
        print "</TR>";
        for ($i = 0; $i < sizeof($rs_array); $i++) {
            $ResultNumber = $rs_array[$i][num];
            $ResultSum = $rs_array[$i][sum];
            $ResultFieldCode = $rs_array[$i][$fieldName];
            $ResultFieldName = returntablefield($tablenameIndex, $WhatIndex, $ResultFieldCode, $ReturnIndex);
            if ($sum_index != "") {
                print "<TD noWrap width=15%>统计额度&nbsp;</TD>";
                print "<TD noWrap width=10%><font color=red>" . $ResultSum . "&nbsp;" . $UserUnitFunctionIndex . "</font></TD>";
            }
            print "<TR class=TableData>";
            print "<TD >{$ResultFieldName}</TD>";
            print "<TD >{$ResultNumber}</TD>";
            //print "<TD >".number_format($ResultNumber/$TotalNumberIndex,2,'.','')."</TD>";
            print "<TD >" . $TotalNumberIndex . "</TD>";
            print "</TR>";
        }
        print "<TR class=TableData>";
        print "<TD noWrap colspan = 40>\n";
        print "&nbsp;";
        print "</TD>";
        print "</TR>";
        table_end();
        print "<BR>";
        break;
    }
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:101,代码来源:newai_statistics.php


示例13: show_tasks

function show_tasks()
{
    page_head("File transfers");
    table_start();
    table_header(array("ID", "Created", "File", "Local", "Remote", "Status", "Last error"));
    $tasks = task_enum();
    foreach ($tasks as $task) {
        $store = store_lookup_id($task->local_store_id);
        table_row(array($task->id, time_str($task->create_time), $task->file_name, $store->name, $task->remote_site . ': ' . $task->remote_store, task_status($task), $task->last_error . ' (' . time_str($task->last_error_time) . ')'));
    }
    table_end();
    if (count($tasks) == 0) {
        echo "No tasks";
    }
    page_tail();
}
开发者ID:pkgw,项目名称:hera-librarian,代码行数:16,代码来源:hl.php


示例14: newaiCharts


//.........这里部分代码省略.........
                            }
                            break;
                    }
                    $TotalNumberIndex += $ResultNumber;
                    $TotalSumIndex += $ResultSum;
                    $Array_Statistic_Value = $sum_index != "" ? $ResultSum : $ResultNumber;
                    $Array['XData'][$i]['Name'] = $ResultFieldName;
                    $Array['XData'][$i]['Value'] = $Array_Statistic_Value;
                    $Array['XData'][$i]['Dir'] = $ResultFieldName;
                    $Array['XData'][$i]['AltText'] = $ResultFieldName;
                    //$Array['XData'][$i]['Url'] = "?action=init_customer&$fieldName=$ResultFieldCode";
                    $ColorArray[$i] == "" ? $ColorArray[$i] = "0xCC0000" : '';
                    $Array['XData'][$i]['Color'] = $ColorArray[$i];
                    $Array['Dir'][$i]['Name'] = $ResultFieldName;
                    $Array['Dir'][$i]['Color'] = $ColorArray[$i];
                    $Array['YData']['AltText'] = "移动查看详细信息";
                    $Array['YData']['Value'] < $Array_Statistic_Value ? $Array['YData']['Value'] = $Array_Statistic_Value : '';
                }
                $Array['title'] = $html_etc[$tablename][$tabletitle] . "[" . $html_etc[$tablename][$fieldName] . "]";
                $array_graphInfo = $Array['title'] . "[" . date("Y-m-d H:i:s") . "] " . $common_html['common_html']['totalrecords'] . ": " . $TotalNumberIndex;
                if ($sum_index != "") {
                    $array_graphInfo .= " " . $common_html['common_html']['allnumbers'] . ": " . $TotalSumIndex . " &nbsp;" . $UserUnitFunctionIndex . "\n";
                }
                $Array['graphInfo'] = $array_graphInfo;
                //print_R($FlashFileName);
                //本表操作部分--FALSH图表显示部分--显示FLASH图表的结果
                table_begin("650");
                $ChartMode = $showlistfieldtypeArray[$k];
                //采用的图表类型选择
                //print $tablename;
                switch ($ChartMode) {
                    case 'vBarF':
                        $FlashFileName = WriteXmlFilevBarF($Array, $tablename, $k);
                        //Flash XML 数据写入文件区
                        $create_chart = create_chart("vBarF", $FlashFileName);
                        //FLASH 图表读入XML数据处理以后的显示区
                        break;
                    case 'hBarF':
                        $FlashFileName = WriteXmlFilehBarF($Array, $tablename, $k);
                        //Flash XML 数据写入文件区
                        $create_chart = create_chart("hBarF", $FlashFileName);
                        //FLASH 图表读入XML数据处理以后的显示区
                        break;
                    case 'pieF':
                        $FlashFileName = WriteXmlFilePieF($Array, $tablename, $k);
                        //Flash XML 数据写入文件区
                        $create_chart = create_chart("pieF", $FlashFileName);
                        //FLASH 图表读入XML数据处理以后的显示区
                        break;
                    default:
                        $FlashFileName = WriteXmlFilevBarF($Array, $tablename, $k);
                        //Flash XML 数据写入文件区
                        $create_chart = create_chart("vBarF", $FlashFileName);
                        //FLASH 图表读入XML数据处理以后的显示区
                        break;
                }
                //HTML文体显示部分
                print "<TR class=TableData>";
                print "<TD noWrap width=100% align=center colspan=40>";
                print "{$create_chart} &nbsp;</TD>";
                print "</TR>";
                //本文信息显示部分
                //print_title($html_etc[$tablename][$tabletitle]."<font color=green>[".$html_etc[$tablename][$fieldName]."]</font>",40);
                print_title($html_etc[$tablename][$tabletitle] . "[" . $html_etc[$tablename][$fieldName] . "]", 6);
                for ($i = 0; $i < sizeof($rs_array); $i++) {
                    $ResultNumber = $rs_array[$i][num];
                    $ResultSum = $rs_array[$i][sum];
                    $ResultFieldCode = $rs_array[$i][$fieldName];
                    $ResultFieldName = returntablefield($tablenameIndex, $WhatIndex, $ResultFieldCode, $ReturnIndex);
                    if ($ResultFieldName == "") {
                        $ResultFieldName = $ResultFieldCode;
                    }
                    print "<TR class=TableData>";
                    print "<TD noWrap width=15%>统计类别名称&nbsp;</TD>";
                    print "<TD width=35%>" . $ResultFieldName . "&nbsp;</TD>";
                    if ($sum_index != "") {
                        print "<TD noWrap width=15%>统计额度&nbsp;</TD>";
                        print "<TD noWrap width=10%><font color=red>" . $ResultSum . "&nbsp;" . $UserUnitFunctionIndex . "</font></TD>";
                    } else {
                        //print "<TD noWrap width=15%>统计类别代码&nbsp;</TD>";
                        //print "<TD noWrap width=10%>".$ResultFieldCode."&nbsp;</TD>";
                    }
                    print "<TD  width=15%>统计记录数&nbsp;</TD>";
                    print "<TD noWrap width=10%><font color=red>" . $ResultNumber . "&nbsp;条</font></TD>";
                    print "</TR>";
                }
                print "<TR class=TableData>";
                print "<TD noWrap colspan = 40>\n";
                print $common_html['common_html']['totalrecords'] . ": <font color=red>{$TotalNumberIndex} &nbsp;条</font>\n";
                if ($sum_index != "") {
                    print $common_html['common_html']['allnumbers'] . ": <font color=red>{$TotalSumIndex} &nbsp;" . $UserUnitFunctionIndex . "</font>\n";
                }
                print "</TD>";
                print "</TR>";
                table_end();
                print "<BR>";
                break;
        }
    }
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:101,代码来源:newai_charts.php


示例15: show_info


//.........这里部分代码省略.........
    $erkunum_plus = round($factors["erkunum"] * ($planet["erkunum"] / 100) * planet_raw_erkunum * $population_factor);
    $gortium_plus = round($factors["gortium"] * ($planet["gortium"] / 100) * planet_raw_gortium * $population_factor);
    $susebloom_plus = round($factors["susebloom"] * ($planet["susebloom"] / 100) * planet_raw_susebloom * $population_factor);
    table_text_design($type, "", "center", "1", "text");
    table_text_close();
    table_text_open();
    table_text_design("Production factor", "", "center", "1", "head");
    table_text_design($planet["production_factor"] * 100 . "%", "", "center", "1", "text");
    table_text_close();
    table_text_open();
    table_text_design("<img src='arts/metal.gif' title='Metal' alt='Metal'>", "", "center", "1", "head");
    table_text_design($metal_plus, "", "center", "1", "text");
    table_text_close();
    table_text_open();
    table_text_design("<img src='arts/energy.gif' title='Energy' alt='Energy'>", "", "center", "1", "head");
    table_text_design($energy_plus, "", "center", "1", "text");
    table_text_close();
    table_text_open();
    table_text_design("<img src='arts/mopgas.gif' title='Mopgas' alt='Mopgas'>", "", "center", "1", "head");
    table_text_design($mopgas_plus, "", "center", "1", "text");
    table_text_close();
    table_text_open();
    table_text_design("<img src='arts/erkunum.gif' title='Erkunum' alt='Erkunum'>", "", "center", "1", "head");
    table_text_design($erkunum_plus, "", "center", "1", "text");
    table_text_close();
    table_text_open();
    table_text_design("<img src='arts/gortium.gif' title='Gortium' alt='Gortium'>", "", "center", "1", "head");
    table_text_design($gortium_plus, "", "center", "1", "text");
    table_text_close();
    table_text_open();
    table_text_design("<img src='arts/susebloom.gif' title='Susebloom' alt='Susebloom'>", "", "center", "1", "head");
    table_text_design($susebloom_plus, "", "center", "1", "text");
    table_text_close();
    table_end();
    echo "<br><br>\n";
    echo "<center>\n";
    //  echo("<a href=\"planet.php?pid=".$planet["id"]."\" target=\"anzeige_frame\">fleet orders</a>\n");
    echo "</center>\n";
    echo "<br>\n";
    $query = mysql_query("SELECT ps.*, p.pic, p.description, p.name FROM planetary_shields ps \nINNER JOIN production p USING (prod_id) WHERE pid={$pid}") or die(mysql_error());
    if (mysql_num_rows($query) > 0) {
        table_start("center", "500");
        table_head_text(array("Shield generators installed on {$planet['name']}"), "5");
        table_text_open("head");
        table_text_design("&nbsp;", "50px", "", "", "head");
        table_text_design("Building", "300", "", "", "head");
        table_text_design("Max", "50", "center", "", "head");
        table_text_design("Power", "50", "center", "", "head");
        table_text_design("Load", "50", "center", "", "head");
        while ($result = mysql_fetch_assoc($query)) {
            table_text_open("text", "center");
            table_text_design("<a href='" . $_SERVER["PHP_SELF"] . "?act=print_building_info&prod_id=" . $result["prod_id"] . "'><img src='arts/" . $result["pic"] . "' alt='" . $result["description"] . "' border='0' width=\"50px\" height=\"50px\" /></a>", "50px", "", "", "text", "2");
            table_text_design($result["name"], "300", "", "", "text", "2");
            table_text_design($result["max_value"], "50", "", "", "text", "2");
            table_text_design($result["value"], "50", "", "", "text", "2");
            table_text_design($result["regeneration"] + $result["regeneration_bonus"], "50", "", "", "text", "2");
            table_text_close();
        }
        table_end();
    }
    echo "<br>\n";
    table_start("center", "500");
    table_head_text(array("Units stationed on " . $planet["name"]), "5");
    table_text(array("&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;"), "center", "100", "", "text");
    table_text_open("head");
    table_text_design("Infantry", "200", "center", "2", "head");
开发者ID:spaceregents,项目名称:spaceregents,代码行数:67,代码来源:production.php


示例16: viewChildTableList


//.........这里部分代码省略.........
                        $DataElement = "";
                    }
                    break;
                case 'userdefine':
                    $functionName = trim($listFilterArray[1]);
                    $fileName = $functionName . ".php";
                    $fileName0 = "userdefine/{$fileName}";
                    $fileName = "../../Enginee/userdefine/{$fileName}";
                    if (file_exists($fileName0)) {
                        require_once $fileName0;
                        $functionName = $functionName . "_value";
                        if (function_exists($functionName)) {
                            $DataElement = $functionName($rs_a[$j][$listIndexName], $rs_a, $j);
                        }
                    } else {
                        $DataElement = $rs_a[$j][$listIndexName];
                    }
                    break;
                case 'tdoafile':
                    require_once 'lib/utility_file.php';
                    //形成通达OA下载文件所需要的变量格式
                    $var_value_array = explode('||', $rs_a[$j][$listIndexName]);
                    $ATTACHMENT_ID = $var_value_array[1];
                    $ATTACHMENT_NAME = $var_value_array[0];
                    if (strlen($rs_a[$j][$listIndexName]) < 3) {
                        $file_path = "无附件";
                    } else {
                        $file_path = attach_link($ATTACHMENT_ID, $ATTACHMENT_NAME, 1, 1, 1, 0, 0, 1, 1, 0);
                    }
                    //print_R($ATTACHMENT_NAME);exit;
                    print "<script src=\"../../Enginee/lib/attach.js\"></script>";
                    print "\n\t\t\t\t\t<input type=\"hidden\" name=\"ATTACHMENT_ID_OLD\" value=\"{$ATTACHMENT_ID}\">\n\t\t\t\t\t<input type=\"hidden\" name=\"ATTACHMENT_NAME_OLD\" value=\"{$ATTACHMENT_NAME}\">";
                    $DataElement = $file_path;
                    break;
                default:
                    $DataElement = $rs_a[$j][$listIndexName];
                    break;
            }
            if ($listIndexName == 'zhekou') {
                $DataElement = $DataElement * 100 . "%";
            }
            $tip = '';
            if ((stristr($tablename2, "detail") || $tablename2 == "store_product") && $listIndexName == 'num') {
                $tablename3 = $tablename2 . "_color";
                if ($tablename2 == "store_product") {
                    $tablename3 = "store_color";
                }
                $sql = "SELECT COUNT(*) as allnum FROM information_schema.TABLES WHERE TABLE_NAME='{$tablename3}'";
                $rs = $db->Execute($sql);
                if ($rs->fields['allnum'] == 1) {
                    $sql = "select id,{$SQLText} from {$tablename2} where {$childkey2} = '" . $parent_value . "'";
                    $rs = $db->Execute($sql);
                    $rs_id = $rs->GetArray();
                    $id = $rs_id[$j][id];
                    $sql = "select a.num,b.name from {$tablename3} a inner join productcolor b on a.color=b.id where a.id={$id}";
                    $rs = $db->Execute($sql);
                    $rs_color = $rs->GetArray();
                    foreach ($rs_color as $row) {
    

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP table_exists函数代码示例发布时间:2022-05-23
下一篇:
PHP table_column函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap