示例#1
0
文件: list.inc.php 项目: mmr/b1n
 /> Desc
                        </td>
                    </tr>
                    <tr>
                        <td class='formitem'>Quantity</td>
                        <td class='forminput'>
                            <?php 
echo b1n_buildSelect($search["possible_quantities"], array($search["search"]["search_quantity"]), array("name" => "search_quantity"));
?>
                        </td>
                    </tr>
                    <tr>
                        <td class='formitem'>Search</td>
                        <td class='forminput'>
                            <input type='text' name='search_text' value="<?php 
echo b1n_inHtml($search["search"]["search_text"]);
?>
" size="<?php 
echo b1n_DEFAULT_SIZE;
?>
" maxlength="<?php 
echo b1n_DEFAULT_MAXLEN;
?>
" />
                        </td>
                    </tr>
                    <tr>
                        <td class='forminput' colspan='2' align='center'>
                            <input type="submit" value=' Search >>' />
                            <input type="button" value=' Show All >>' onClick='this.form.search_text.value = ""; this.form.submit();' />
                        </td>
示例#2
0
文件: add.php 项目: mmr/b1n
                    </tr>
                    <tr>
                        <td class='formitem' width='1'>&nbsp;</td>
                        <td class='formitem'>Desc</td>
                        <td class='forminput'>
                            <textarea name="fil_desc" rows="<?php 
echo b1n_DEFAULT_ROWS;
?>
" cols="<?php 
echo b1n_DEFAULT_COLS;
?>
" wrap="<?php 
echo b1n_DEFAULT_WRAP;
?>
"><?php 
echo b1n_inHtml($reg_data['fil_desc']);
?>
</textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan='<?php 
echo $colspan;
?>
' class="forminput" align='center'>
                            <input type="submit" value=" <?php 
echo ucfirst($action1);
?>
 >>" />
                            <input type="button" value=" Cancel >>" onClick="location='<?php 
echo b1n_URL . '?page0=' . $page0 . '&page1=' . $page1;
示例#3
0
文件: init.inc.php 项目: mmr/b1n
<?php

/* $Id: init.inc.php,v 1.11 2003/07/06 05:52:59 mmr Exp $ */
if (!ini_get('safe_mode') && is_executable("/usr/games/fortune")) {
    $quote = `/usr/games/fortune -s`;
}
b1n_getVar("text", $text);
if ($text == "welcome") {
    if (strlen(trim($_SESSION['user']['usr_name'])) > 0) {
        $text = $_SESSION['user']['usr_name'] . ",";
    }
    $text .= "<br/>Welcome to <i><b>FlyWatch</b> " . b1n_VERSION . "</i> !";
}
if (isset($quote) && !empty($quote)) {
    $text .= "<br /><i>" . b1n_inHtml($quote) . "</i><br />";
}
?>
<html>
<head>
    <title>FlyWatch <?php 
echo b1n_VERSION;
?>
</title>
    <link rel='stylesheet' href='<?php 
echo b1n_CSS;
?>
' />
</head>

<body>
示例#4
0
文件: add.inc.php 项目: mmr/b1n
        case "textarea":
            ?>
                            <textarea name="<?php 
            echo $reg['reg_data'];
            ?>
" rows="<?php 
            echo $reg['extra']['rows'];
            ?>
" cols="<?php 
            echo $reg['extra']['cols'];
            ?>
" wrap="<?php 
            echo $reg['extra']['wrap'];
            ?>
"><?php 
            echo b1n_inHtml($reg_data[$reg['reg_data']]);
            ?>
</textarea>
<?php 
            break;
    }
    ?>
                        </td>
                    </tr>
<?php 
}
?>
                    <tr>
                        <td colspan='<?php 
echo $colspan;
?>
示例#5
0
文件: data.lib.php 项目: mmr/b1n
function b1n_inHtmlLimit($var)
{
    return b1n_inHtml(strlen($var) <= b1n_LIST_MAX_CHARS ? $var : substr($var, 0, b1n_LIST_MAX_CHARS) . "...");
}
示例#6
0
文件: list.php 项目: mmr/b1n
            ?>
</td>
                        <td class='leg_arrive_gmt'>&nbsp;<?php 
            echo b1n_inHtmlNoBr($item['leg_eta_dt']);
            ?>
</td>
                        <td class='leg_arrive'>&nbsp;</td>
                        <td class='leg_arrive'>&nbsp;</td>
                        <td class='leg_arrive'>&nbsp;</td>
                        <td class='leg_arrive'>&nbsp;<?php 
            echo b1n_inHtmlNoBr($item['leg_groundtime_i']);
            ?>
</td>
                        <td class='leg_arrive'>&nbsp;</td>
                        <td class='leg_arrive'>&nbsp;<?php 
            echo b1n_inHtml($item['leg_remarks']);
            ?>
</td>
                        <td class='leg_arrive'><a href="<?php 
            echo b1n_URL . "?page0=" . $page0 . "&page1=" . $page1 . "&action0=load&action1=view&id=" . $item["id"];
            ?>
">View</a></td>
                        <td class='searchitem'><a href="<?php 
            echo b1n_URL . "?page0=" . $page0 . "&page1=" . $page1 . "&action0=load&action1=change&id=" . $item["id"];
            ?>
">Change</a></td>
                    </tr>
<?php 
            $total_distance += $item['leg_distance'];
            $total_fuel += $item['leg_fuel'];
            $total_flight_time .= " + '" . $item['leg_ete_i'] . "'";
示例#7
0
文件: view.inc.php 项目: mmr/b1n
    }
    ?>
                    <tr>
                        <td class='formitem'><?php 
    echo $title;
    ?>
</td>
                        <td class='forminput'>
<?php 
    switch ($reg['type']) {
        case "text":
        case "textarea":
            if ($reg['check'] == 'email' && !empty($reg_data[$reg['reg_data']])) {
                echo "&nbsp;<a href='mailto:" . $reg_data[$reg['reg_data']] . "'>" . $reg_data[$reg['reg_data']] . "</a>";
            } else {
                echo "&nbsp;" . b1n_inHtml($reg_data[$reg['reg_data']]);
            }
            break;
        case "select":
            switch ($reg['extra']['seltype']) {
                case "date":
                    echo b1n_formatDateShow($reg_data[$reg['reg_data']]);
                    break;
                case "date_hour":
                    echo b1n_formatDateHourShow($reg_data[$reg['reg_data']]);
                    break;
                case "defined":
                    foreach ($reg['extra']['options'] as $opt_title => $opt_value) {
                        if ($reg_data[$reg['reg_data']] == $opt_value) {
                            echo $opt_title;
                            break;