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


PHP table::close方法代码示例

本文整理汇总了PHP中table::close方法的典型用法代码示例。如果您正苦于以下问题:PHP table::close方法的具体用法?PHP table::close怎么用?PHP table::close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在table的用法示例。


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

示例1: Copyright

<?php

/**************************************************
  Coppermine 1.5.x Plugin - forum
  *************************************************
  Copyright (c) 2010 foulu (Le Hoai Phuong), eenemeenemuu
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
  **************************************************/
pageheader($fr_title ? $fr_title : Config::item('fr_title'));
print html::spacer();
print table::open(0);
print table::tds(array(array('text' => $fr_title ? $fr_title : Config::item('fr_title')), array('align' => 'right', 'text' => ($authorizer->is_user() ? html::button('forum.php?c=profile', Lang::item('home.fr_profile')) : '') . NBSP . html::button('forum.php?c=search', Lang::item('home.search')))));
print table::close();
print html::spacer();
print table::open();
print form::hidden('c', 'search');
print table::tds(array(array('class' => 'tableb', 'text' => html::span(forum::nagavitor($nagavitor)))));
print table::close();
print html::spacer();
print $fr_contents;
pagefooter();
开发者ID:phill104,项目名称:branches,代码行数:30,代码来源:admin.php

示例2: show_preprint

function show_preprint($rowId, $action, $showcancelButton = True)
{
    global $dbClass;
    $res = $dbClass->query("SELECT * FROM publications WHERE RowId='" . $rowId . "'");
    $row = $dbClass->next_record($res);
    $c = "class='align_right'";
    $t = new table("cellpadding='2'", "<form action='loader.php?rowId=" . $rowId . "&amp;action=" . $action . "' method='POST'>");
    if ($showcancelButton) {
        $missing = x("", "?");
    } else {
        $missing = False;
    }
    $field = nl2html($GLOBALS["NOR_fields"][$row["Field"]]);
    $authors = nl2html($row["Authors"], $missing);
    $title = nl2html($row["Title"], $missing);
    $location = nl2html($row["Location"], $missing);
    $journal = nl2html($row["PublIn"], $missing);
    $t->tro();
    $t->th($c, "Preprint :");
    $t->td("", pp_preprintID($row["Year"], $row["Report"]));
    $t->trc();
    $t->tro();
    $t->th($c, "Field :");
    $t->td("", $field);
    $t->trc();
    $t->tro();
    $t->th($c, "Authors :");
    $t->td("", $authors);
    $t->trc();
    if ($location) {
        $t->tro();
        $t->th($c, "Location :");
        $t->td("", $location);
        $t->trc();
    }
    if ($journal) {
        $t->tro();
        $t->th($c, "Published in :");
        $t->td("", $journal);
        $t->trc();
    }
    $t->tro();
    $t->th($c, "Entered by :");
    $t->td("", uid2gecos($row["Id"]));
    $t->trc();
    $buttons[] = "<input type='submit' value='continue' name='button'>";
    if ($showcancelButton) {
        $buttons[] = "<input type='submit' value='cancel' name='button'>" . "<input type='hidden' name='load' value='show_preprints.php'>";
    } else {
        $buttons[] = "<input type='submit' value='update information for this preprint' name='button'>" . "<input type='hidden' name='load' value='edit_preprints.php'>" . "<input type='hidden' name='nor_pp_mode' value='" . NOR_PP_MODE_EDIT . "'>";
    }
    $t->tro();
    $t->td();
    $t->td("", join("&nbsp;", $buttons));
    $t->trc();
    if (!$showcancelButton) {
        $t->tr("", "colspan='3'", x("i", "<br>When you have published this preprint in a Public Archive<br>" . "(i.e. you know the URL to the abstract)<br>please return and complete the form.<br><br>" . "If you want to publish _only_ at Nordita you can upload your paper now.<br>" . "Note, you can correct eventual typos at any time, and you may also cancel the preprint reservation."));
    }
    $t->close("</form>");
}
开发者ID:,项目名称:,代码行数:60,代码来源:

示例3: Copyright

<?php

/**************************************************
  Coppermine 1.5.x Plugin - forum
  *************************************************
  Copyright (c) 2010 foulu (Le Hoai Phuong), eenemeenemuu
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
  **************************************************/
echo table::open();
echo table::title(Lang::item('board.topic_preview'), 1);
echo table::tds(array('class' => 'tableh2', 'text' => $subject));
echo table::tds(array('class' => 'tableb', 'text' => $message));
echo table::close();
开发者ID:phill104,项目名称:branches,代码行数:22,代码来源:previewmsg_view.php

示例4: table

        $t->td("", core_getLink("manage preprints", "show_preprints.php"));
    }
    if ($authClass->isAdmin()) {
        $t->td("", core_getLink("manage users", "edit_users.php"));
    }
    if ($authClass->isAdmin()) {
        $t->td("", core_getLink("see access log", "listLog.php"));
    }
    if (True) {
        $t->td("", core_getLink(PP_RESERVE, "edit_preprints.php?nor_pp_period=" . $nor_pp_period . "&amp;nor_pp_mode=" . NOR_PP_MODE_RESERVE));
    }
} else {
    $t->td("", "<div class='only_online'>" . pp_getLink("how to submit preprint", "howto.php", $modal = True) . "</div>");
}
$t->trc();
$t->close("</form>");
$t = new table("class='filled' align='center' width='100%'", "<div id='preprints' class='pp_list'>");
$t->tro();
$t->th("width='60'", "<span class='only_online'>Serial</span>");
$t->th("", "Title and author(s)");
$t->th("", "Published in");
$t->trc();
if ($group != "all") {
    $queryG = " AND Field=" . $dbClass->quote($group);
} else {
    $queryG = "";
}
if ($author) {
    $queryA = " AND Authors LIKE '" . $dbClass->quote("%" . $author . "%") . "'";
} else {
    $queryA = "";
开发者ID:,项目名称:,代码行数:31,代码来源:

示例5: core_importantMessagePrinter

function core_importantMessagePrinter($txt, $h1, $body)
{
    $w = core_getConfig('errorWidth', 'width=70%');
    #  $c = 'class=log2';
    $t = new table("{$w} cellpaddindg=50 cellspacing=0 {$c}", "&nbsp;<br>");
    $t->tr($c, $c, x("{$h1} class=darkgray", $txt, True) . x('i', x('font class=darkgray', '&nbsp;&nbsp;' . eregi_replace('<br>', '<br>&nbsp;&nbsp;', $body))));
    $t->close("<br>");
}
开发者ID:,项目名称:,代码行数:8,代码来源:

示例6: preprints

        $t->td("class='reserved' align='left'", "These preprints should be completed and registered as soon as possible");
        $t->trc();
    }
    if (@$counter["registered"]) {
        $t->tro();
        $t->td("class='registered' align='right'", "Registered preprints (red on grey)");
        $t->td("class='registered' align='left'", "These preprints are waiting for acceptance, possibly they are not completed");
        $t->trc();
    }
    if (@$counter["unused"]) {
        $t->tro();
        $t->td("class='unused' align='right'", "Unused preprint numbers (pale blue background)");
        $t->td("class='unused' align='left'");
        $t->trc();
    }
    $t->close("</div>");
}
endPage();
// ==========================================================================
/// @fn void pp_button ( void )
///
/// ...
///
/// @global
/// @parameter ...
/// @return ...
/// @gobals[out] - none
/// @sideeffect  - none
///
/// @calledby ...
// ==========================================================================
开发者ID:,项目名称:,代码行数:31,代码来源:

示例7: add_SQLuser

function add_SQLuser()
{
    global $t, $links, $tabs, $dbClass, $authClass;
    if (!$_REQUEST["t"]) {
        $_REQUEST["t"] = "event";
    }
    $accE = $_REQUEST["t"] == "event";
    $error = array();
    if ($_REQUEST["button"]) {
        $users = getSQLusers();
        if ($v = $_REQUEST["full_name"]) {
            foreach ($users as $k => $u) {
                if (strToLower($u["gecos"]) == strToLower($v)) {
                    $error[] = x("li", "'{$v}' is already known as '{$u['email']}'");
                }
            }
            if ($accE && !eregi("20[0-9][0-9]\$", $v)) {
                $error[] = x("li", "'event title' must have the year at the end");
            }
        }
        if ($v = strToLower($_REQUEST["username"])) {
            foreach ($users as $k => $u) {
                if (strToLower($u["email"]) == strToLower($v)) {
                    $error[] = x("li", "'{$v}' is already known as '{$u['gecos']}'");
                }
            }
            if ($accE && !eregi("^[a-z0-9]*\$", $v)) {
                $error[] = x("li", "'{$v}' is not a valid login name");
            }
            if (!$accE && !eregi("@", $v)) {
                $error[] = x("li", "'{$v}' is not a valid e-mail address");
            }
        }
    }
    if ($error || !$_REQUEST["username"] || !$_REQUEST["full_name"]) {
        /*
         * (re)send the form
         */
        $tt = new table("cellpadding='10'", "<center>" . x("h3", "Adding new external user"));
        $tt->tr("", "valign='top' colspan='3'", x("i", "The external user account is associated either with a <ul>" . "<li> a person (identified by his e-mail and password) or</li>" . "<li> a Nordita event (program, conference, etc.)</li></ul>"));
        $tt->tro();
        $tt->td($accE ? "Both the <b>event title</b> and <b>login name</b><br>must end by the 4-digits Year." . "<br><br><b>contact e-mail</b> is a comma-separated list<br>of the organizer e-mails" : "");
        $tt->tdo("valign='top'");
        $t = new table("", "<form action='" . $links[$tabs->active] . "' method='post'>");
        if ($error) {
            str(False, "errors detected:" . x("ul", join("\n", $error)), "colspan='3' class='registered'");
        }
        $r = "input type ='radio' name='t' onchange='submit()'";
        str("account type", "<{$r} value='human' " . ($accE ? "" : "checked") . ">personal account <{$r} value='event' " . ($accE ? "checked" : "") . ">event account");
        str($accE ? "event title" : "full name", "<input type='text' name='full_name' value='{$_REQUEST['full_name']}' size='35'>");
        str($accE ? "login name" : "e-mail", "<input type='text' name='username'  value='{$_REQUEST['username']}'  size='35'>");
        if ($accE) {
            str("proposed password", "<input type='password' name='pwd'  value='{$_REQUEST['pwd']}'  size='35'>");
        }
        if ($accE) {
            str("confirm password", "<input type='password' name='pwd2' value='{$_REQUEST['pwd2']}' size='35'>");
        }
        if ($accE) {
            str("contact e-mail(s)", "<input type='text' name='contact' value='{$_REQUEST['contact']}'  size='35'>");
        }
        str(" ", "<input type='submit' name='button' value='submit'> <input type='submit' name='button' value='cancel'>");
        $t->close("</form>");
        $tt->tdc();
        $tt->trc();
        $tt->close("</center>");
    } else {
        /*
         * the form is ok. Create the account, send info mail
         */
        $users = getSQLusers();
        $uid = -1000;
        while ($users[$uid]) {
            --$uid;
        }
        if (!$_REQUEST["pwd"]) {
            $_REQUEST["pwd"] = $authClass->random_password(8);
        }
        $dbClass->query("INSERT INTO accounts (id,username,password,new_password,full_name,status,superviser) " . "VALUES ('{$uid}','{$_REQUEST['username']}','{$_REQUEST['pwd']}','{$_REQUEST['pwd']}','{$_REQUEST['full_name']}',1,'{$_REQUEST['contact']}')");
        logIt("newuser", $_REQUEST["username"], $_REQUEST["full_name"]);
        print x("h3", "New user for the Preprints Database");
        $t = new table();
        #   $t->tr("","",$uid,"uid:");
        $t->tr("", "", $_REQUEST["full_name"], "name:");
        $t->tr("", "", $_REQUEST["username"], x("b", "login name:"));
        if ($_REQUEST["contact"]) {
            $t->tr("", "", $_REQUEST["contact"], x("b", "contact e-mail:"));
        } else {
            $t->tr("", "colspan='2'", x("i", "The password is sent to " . $_REQUEST["username"]));
        }
        $t->close();
        mail2newUser($_REQUEST["username"]);
    }
}
开发者ID:,项目名称:,代码行数:93,代码来源:

示例8: showMailsSent

 public static function showMailsSent()
 {
     if (!empty(self::$sentMails)) {
         $t = new table("cellpadding='5' cellspacing='0' bgcolor='yellow' " . core_getConfig("errorWidth", "width=70%"));
         $t->tro();
         $t->th("colspan=3", "Important message");
         $t->trc();
         $many = count(self::$sentMails) > 1;
         $t->tr("", "colspan=3", "We have sent the following e-mail" . ($many ? "s" : "") . " (see below) with an important information.<br>" . "Please make sure that " . ($many ? "these e-mails are" : "this e-mail is") . " not considered as spam by the mail filter and that<br>" . ($many ? "they reach" : "it reaches") . " the address you indicated.<br>");
         $t->tro();
         $t->th("", "&nbsp;&nbsp;&nbsp;&nbsp;");
         $t->th("", $t->x("i", "To:"));
         $t->th("", $t->x("i", "Subject:"));
         $t->trc();
         foreach (self::$sentMails as $to => $v) {
             if (!$v || (int) $to) {
                 continue;
             }
             foreach ($v as $k => $subject) {
                 $t->tro();
                 $t->td();
                 $t->td("", $to);
                 $t->td("", $subject);
                 $t->trc();
                 $to = "";
             }
         }
         $t->close();
     }
 }
开发者ID:,项目名称:,代码行数:30,代码来源:

示例9: startPage

     }
     break;
 case NOR_PP_MODE_EDIT:
     nor_pp_require_row_owner($rowId, $AUTH_login);
     startPage("Edit Preprints" . ($authClass->isAdmin() ? " (Admin)" : ""));
     $res = $dbClass->query("SELECT * FROM publications WHERE RowId={$rowId}");
     $row = mysql_fetch_array($res);
     $default_field = nl2html($row["Field"]);
     $t = new table("class='framed'", "<center>" . "<form action='update_preprint.php' enctype='multipart/form-data' method='post'>\n" . "<input type='hidden' name='pp_id' value='" . pp_preprintID($row["Year"], $row["Report"]) . "'>\n" . "<input type='hidden' name='nor_pp_period' value='{$nor_pp_period}'>\n" . "<input type='hidden' name='nor_pp_mode'   value='{$nor_pp_mode}'>\n");
     getEditDialog();
     $t->tro("align='left'");
     $t->th("", "entry owner");
     $t->td("", make_user_selection($row["Id"]));
     $t->trc();
     $t->tr("", "", "<input name='button' type='submit' value='continue'> " . "<input name='button' type='submit' value='cancel'>", "&nbsp;");
     $t->close("</form></center>");
     break;
 case NOR_PP_MODE_REGISTER:
     nor_pp_require_row_owner($rowId, $AUTH_login);
     startPage("Preprint registered in database");
     $dbClass->query("UPDATE publications SET Status='registered',Tm='" . time() . "' WHERE RowId='{$rowId}'");
     $res = $dbClass->query("SELECT * FROM publications WHERE RowId={$rowId}");
     $row = mysql_fetch_array($res);
     mail2secretary("Registered");
     echo "<p>Your preprint has been registered, and is waiting for acceptance</p>\n";
     echo "<p><a href='show_preprints.php'>Return to preprints</a>.</p>";
     show_preprint($rowId, "show_preprints.php");
     break;
 case NOR_PP_MODE_DELETE:
     nor_pp_require_row_owner($rowId, $AUTH_login);
     startPage("Delete Preprint");
开发者ID:,项目名称:,代码行数:31,代码来源:


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