本文整理汇总了PHP中Sequence::getDatas方法的典型用法代码示例。如果您正苦于以下问题:PHP Sequence::getDatas方法的具体用法?PHP Sequence::getDatas怎么用?PHP Sequence::getDatas使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sequence
的用法示例。
在下文中一共展示了Sequence::getDatas方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getData
copyright : (C) 2000 by Thomas Fromm
email : tf@tfromm.com
***************************************************************************/
/***************************************************************************
* *
* 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 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
include "prepend.inc.php";
$Server = getData("Server", "integer");
$User = getData("User");
$seq = new Sequence($Server);
$seq->getDatas($User);
$html = "<H1> Database " . $DB->Name($Server) . " - Sequence overview of User {$User}</H1>";
$html .= "<TABLE BORDER=0>\n<TR><TH>Sequence</TH><TH>Last Number</TH>";
$html .= "<TH COLSPAN=4>Actions</TH><TH>Min Value</TH><TH>Max Value</TH>" . "<TH>Increment by</TH><TH>Cache</TH><TH>Order</TH><TH>Cycle</TH></TR>\n";
$x = 0;
if (is_array($seq->datas[$User])) {
foreach ($seq->datas[$User] as $sequence) {
$html .= $x % 2 ? "<tr bgcolor=\"#EEEEEE\" valign=top>" : "<tr bgcolor=\"#CCCCCC\" valign=top>";
$html .= "<td class=data><b>" . $sequence["SEQUENCE_NAME"] . "</b></td>";
$html .= "<td>" . $sequence["LAST_NUMBER"] . "</td>";
$html .= "<td>Modify</td>";
$html .= "<td><a href=\"seq_detail.php?Server={$Server}&Sequencename=" . $sequence["SEQUENCE_NAME"] . "&User={$User}\">Properties</a></td>";
$html .= "<td>Drop</td>";
$html .= "<td>Reset</td>";
$html .= "<td align=left>" . $sequence["MIN_VALUE"] . "</td>";
$html .= "<td align=left>" . $sequence["MAX_VALUE"] . "</td>";