Skip to content

Commit

Permalink
updated to use css
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@413 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
prescience committed Oct 2, 2001
1 parent 0594648 commit 2585ea9
Show file tree
Hide file tree
Showing 35 changed files with 924 additions and 1,345 deletions.
38 changes: 9 additions & 29 deletions api.php3
@@ -1,7 +1,6 @@
<?
function print_core_links() {
#$path = "/home/www/mantis/";
$path = "./../";
$path = "mantis/";

$files = 0;
$xfile = array();
Expand All @@ -22,34 +21,15 @@
}
}
?>
<html>
<head>
<? include( "css.php3" ) ?>
<title>Mantis</title>
</head>
<body>
<? include( "top.php3" ); ?>

<span class="page_title">API</span>
<hr size=1 noshade width="100%">
<p>
<div align=center>
<h2>Mantis</h2>
Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?>
</div>

Click on the links to see a list of the functions in each file.
<p>
<div align=center>

<table width=100%>
<tr valign=top>
<? include("side_menu.php3") ?>
<td width=100%>
<b><font size=+1>API</font></b>
<p>
Click on the links to see a list of the functions in each file.
<p>
<? print_core_links() ?>
</td>
</tr>
</table>
<ul>
<? print_core_links() ?>
</ul>

</body>
</html>
<? include( "bot.php3" ); ?>
37 changes: 10 additions & 27 deletions credits.php3
@@ -1,31 +1,18 @@
<html>
<head>
<? include( "css.php3" ) ?>
<title>Mantis</title>
</head>
<body bgcolor=#ffffff>
<? include( "top.php3" ); ?>

<span class="page_title">Credits</span>
<hr size=1 noshade width="100%">
<p>
<div align=center>
<h2>Mantis</h2>
Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?>
</div>

<p>
<div align=center>

<table width=100%>
<tr valign=top>
<? include("side_menu.php3") ?>
<td width=100%>
<b><font size=+1>Credits</font></b>
<p>
<b>Main</b><p>
<ul>
<b>Main</b><p>
<?
$file = file("mantis/CREDITS");
$count = count($file);
for ($i=7;$i<$count;$i++) {
$file[$i] = trim( $file[$i] );
if ( $file[$i] == "CREDITS" ) {
continue;
}
if ( strpos( $file[$i], ":" ) > 0 ) {
echo "<p><b>".$file[$i]."</b><p>";
} else if ( !empty( $file[$i] ) ) {
Expand All @@ -35,9 +22,5 @@
}
}
?>
</td>
</tr>
</table>

</body>
</html>
</ul>
<? include( "bot.php3" ); ?>
81 changes: 69 additions & 12 deletions css.php3
@@ -1,14 +1,71 @@
<style type="text/css">
body { background-color: #ffffff; font-family:Verdana, Arial; font-size: 10pt }
td { font-family:Verdana, Arial; font-size: 10pt }
p { font-family:Verdana, Arial; font-size: 10pt }
h3 { font-family:Verdana, Arial; font-size: 13pt; font-weight: bold; text-align: center }
address { font-family:Verdana, Arial; font-size: 8pt }
span.required { font-family:Verdana, Arial; font-size: 10pt; color: #aa0000 }
span.bugnotedelete { font-family:Verdana, Arial; font-size: 8pt }
span.small { font-family:Verdana, Arial; font-size: 8pt }
span.smallcaption { font-family:Verdana, Arial; font-size: 8pt }
td.serif { font-family: Verdana, Times, serif; font-size: 10pt; line-height: 1.2 }
span.big { font-family: Verdana, serif; font-weight: bold; font-size: 10pt; }
a.big { font-family: Verdana, serif; font-size: 10pt; }
body { background-color: #ffffff; font-family:Verdana, Arial; font-size: 10pt; margin: 0 }
address { font-family:Verdana, Arial, Times, sans-serif; font-size: 8pt }

p { font-family:Verdana, Arial, Times, sans-serif; font-size: 10pt }
p.center { text-align: center }

span { font-family:Verdana, Arial, Times, sans-serif }
span.required { font-size: 10pt; color: #aa0000 }
span.bugnotedelete { font-size: 8pt }
span.small { font-size: 8pt }
span.smallcaption { font-size: 8pt }
span.big { font-weight: bold; font-size: 10pt; }
span.section { font-weight: bold; font-size: 10pt; }
span.page_title { font-weight: bold; font-size: 13pt; }
span.center_link { font-weight: bold; font-size: 10pt; text-align: center }
span.news_date { font-size: 8pt; font-style: italic }

table.outside { width: 100% }
table.menu { width: 150px; background-color: #ffffff }
tr.top { vertical-align: top; padding: 0 }

td { font-family: Verdana, Arial, Times, sans-serif; font-size: 10pt }

td.top_left { background-color: #b8b8ff; height: 50px; font-size: 2pt; line-height: 1.2; text-align: center; vertical-align: middle; font-weight: bold; border-left: 1px solid #000000; border-right: 0px solid #000000 }
td.top_right { background-color: #b8b8ff; height: 50px; font-size: 2pt; line-height: 1.2; text-align: left; vertical-align: middle; font-weight: bold }
td.right { background-color: #b8b8ff; height: 1px; font-size: 2pt; line-height: 1.2; text-align: right; vertical-align: bottom; font-weight: bold; padding: 4px }

td.middle { background-color: #8888e8; height: 5px; font-size: 2pt; border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 0px solid #000000; text-align: right }

td.menu_top { background-color: #d8d8ff; font-size: 10pt; line-height: 1.0; text-align: left; border-top: 0px solid #000000; border-bottom: 1px solid #000000; padding: 2; padding-top: 4 }
td.menu_head { background-color: #d8d8ff; font-size: 10pt; line-height: 1.0; text-align: left; border-top: 0px solid #000000; border-bottom: 1px solid #000000; padding: 2; padding-top: 4 }
td.menu_sf { background-color: #d8d8ff; font-size: 10pt; line-height: 1.0; text-align: center; border-top: 1px solid #000000; border-bottom: 1px solid #000000; padding: 6 }
td.menu_items { background-color: #ffffff; font-size: 10pt; line-height: 1.2; text-align: left; padding: 2; padding-bottom: 6; width: 99% }

td.menu_left { background-color: #ffffff; border-left: 1px solid #000000; border-right: 1px dotted #000000 }
td.menu_bot_left{ background-color: #ffffff; border-left: 1px solid #000000; border-bottom: 1px solid #000000; padding: 2; padding-bottom: 12px; text-align: left }

td.main { background-color: #ffffff; font-size: 10pt; line-height: 1.1; text-align: left; padding: 12px; width: 100% }

td.indicator { font-family: courier new; background-color: #ffffff; font-size: 10pt; line-height: 1.1; text-align: right; width: 1% }
td.bar { background-color: #a8a8ff; font-size: 1pt; text-align: left; width: 100%; border-top: 1px solid #999999 }
td.caption { background-color: #ddddff; font-size: 10pt; text-align: center; width: 100%; border-top: 1px solid #000000; border-bottom: 0px solid #000000 }
td.screenshot { background-color: #ffffff; font-size: 1pt; text-align: center; width: 100% }

td.poll_date { background-color: #ffffff; font-size: 8pt; text-align: center; width: 20%; border-right: 1px solid #000000 }
td.poll_question{ background-color: #ffffff; font-size: 10pt; text-align: left; width: 60%; border-right: 1px solid #000000 }
td.poll_results { background-color: #ffffff; font-size: 10pt; text-align: center; width: 20% }

td.poll_header { background-color: #e0e0ff; font-size: 8pt; text-align: center; width: 100% }
td.poll { background-color: #ffffff; font-size: 10pt; text-align: left; width: 100% }
td.survey { background-color: #e0e0ff; font-size: 8pt; text-align: center; width: 100% }

td.welcome { background-color: #ffffff; font-size: 10pt; text-align: left; width: 100%; padding: 6px }

td.headline { background-color: #c8c8e8; font-size: 10pt; text-align: left; width: 100%; border-left: 0px solid #444444; border-right: 1px solid #7878e8; border-top: 0px solid #000000; border-bottom: 2px solid #7878e8 }
td.body { background-color: #ffffff; font-size: 10pt; text-align: left; width: 100%; border-left: 0px solid #000000; border-right: 0px solid #000000; border-bottom: 0px solid #000000; padding: 12px; padding-bottom: 20px }

a { font-family: Verdana, Arial, Times, sans-serif; font-size: 10pt }
a.bold { font-weight: bold }
a.small { font-size: 8pt }
a.small_bold { font-weight: bold; font-size: 8pt }
a.center { text-align: center }

li { list-style-type: disc; list-style-position: outside }

pre { font-family: courier new; background-color: #e6e6e6; font-size: 10pt; line-height: 1.1; text-align: left; padding: 8 }

input.small { font-size: 8pt; font-family: verdana,arial,helvetica,sans-serif; vertical-align: middle }

</style>
37 changes: 6 additions & 31 deletions cvs.php3
@@ -1,38 +1,13 @@
<html>
<head>
<? include( "css.php3" ) ?>
<title>Mantis</title>
</head>
<body bgcolor=#ffffff>
<? include( "top.php3" ); ?>

<p>
<div align=center>
<h2>Mantis</h2>
Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?>
</div>

<p>
<div align=center>

<table width=100%>
<tr valign=top>
<? include("side_menu.php3") ?>
<td width=100%>
<b><font size=+1>CVS</font></b>
<span class="page_title">CVS</span>
<p>
Mantis uses <a href="http://www.cyclic.com/">CVS</a> to store and control its source code. Anonymous cvs access allows anyone to download the most current snapshot of the code. Warning: the latest build may not always function correctly. I will <b>*not*</b> support CVS snapshots. Only use this is you feel confident in being able to deal with any problems that will arise.
<p>
Follow the link and follow the commands there. The module name you want to use is <i>mantisbt</i>.
<p>
<div align=center>
<b><a href="http://sourceforge.net/cvs/?group_id=14963">Mantis CVS</a></b><p>
<b><a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mantisbt">Browse Mantis CVS</a></b><p>
<b><a href="http://cvs.sourceforge.net/cvstarballs/mantisbt-cvsroot.tar.gz">Download Nightly Tarball</a></b>
</div>

</td>
</tr>
</table>
<p class="center"><a class="bold" href="http://sourceforge.net/cvs/?group_id=14963">Mantis CVS</a>
<p class="center"><a class="bold" href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mantisbt">Browse Mantis CVS</a>
<p class="center"><a class="bold" href="http://cvs.sourceforge.net/cvstarballs/mantisbt-cvsroot.tar.gz">Download Nightly Tarball</a>

</body>
</html>
<? include( "bot.php3" ); ?>
80 changes: 31 additions & 49 deletions database.php3
@@ -1,66 +1,48 @@
<html>
<head>
<? include( "css.php3" ) ?>
<title>Mantis</title>
</head>
<body>
<? include( "top.php3" ); ?>

<span class="page_title">Database</span>
<hr size=1 noshade width="100%">
<p>
<div align=center>
<h2>Mantis</h2>
Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?>
</div>

<p>
<div align=center>

<table width=100%>
<tr valign=top>
<? include("side_menu.php3") ?>
<td width=100%>
<p>
<b><font size=+1>Database Schema</font></b>
Mantis uses <a href="http://www.mysql.com/">MySQL</a> for it's database needs. Other database support will follow.
<p>
This is a basic view of the database schema used in Mantis. In my defense it was my first try at a decently sized project and the project has grown out of its original design. It should and will be re-normalized 'soon'. The schemas are a bit rough right now. I should add indicators for index, primary keys, 'foreign keys' (mysql doesn't support these, you have to fake them), unique fields, and relationships (1 to 1, 1 to many, etc).
This is a basic view of the database schema used in Mantis. Note that MySQL doesn't have real foreign keys.
<p>
<ul>
<li><a href="images/mantis-0.15.0.gif">version 0.15.x</a> <? echo round(filesize("images/mantis-0.15.0.gif") / 1024) ?>KB
<li><a href="images/mantis-0.14.0.gif">version 0.14.1</a> <? echo round(filesize("images/mantis-0.14.0.gif") / 1024) ?>KB
<li><a href="images/mantis-0.13.0.gif">version 0.9.0 to 0.13.1</a> <? echo round(filesize("images/mantis-0.13.0.gif") / 1024) ?>KB
<li><a href="images/mantis-0.15.0.gif">version 0.15.x</a> <? echo round(filesize("images/mantis-0.15.0.gif") / 1024) ?>KB
<li><a href="images/mantis-0.14.0.gif">version 0.14.1</a> <? echo round(filesize("images/mantis-0.14.0.gif") / 1024) ?>KB
<li><a href="images/mantis-0.13.0.gif">version 0.9.0 to 0.13.1</a> <? echo round(filesize("images/mantis-0.13.0.gif") / 1024) ?>KB
</ul>
<p>
Any database experts who'd like to offer their insights can email me.
I made these graphs using <a href="http://www.smartdraw.com/">SmartDraw</a>. I may be using <a href="http://www.microsoft.com/visio/">Visio</a> in the future. They are both commercial programs.
<p>
<b><font size=+1>Porting</font></b>
Any database experts who'd like to offer their insights can <a href="mailto:kenito@300baud.org">email me</a>. These changes will likely take place after version 1.0.0
<p>
This project has a stated goal of database independence. The following provide some information to aid in this goal.
<span class="section">Porting</span>
<p>
The core package has been developed with mysql. As a true database mysql is severly lacking in core features, however, in our case it is sufficient. Just remember to backup your database every few days.
This project has a stated goal of database independence. Unfortunately, even with a database abstraction packages, this is a rather large task. More than just the access mechanisms need to be available. The table data and query behaviors also need to be emulated correctly. Work will be devoted to this task after the 1.0.0 release.
<p>
One of the unforseen 'benefits' of using mysql is that most of the SQL is very simple. There are no SUB-SELECTS, no foreign keys, no stored procedures. Porting efforts should be relatively simple. Here are some of the key points that require attention in porting efforts.
As a true database, MySQL is severly lacking in core features, however, in our case it is sufficient. Just remember to backup your database every few days.
<p>

<b>Basic database functions:</b>
One of the unforseen benefits of using MySQL is that most of the SQL is very simple. There are no SUB-SELECTS, no foreign keys, no stored procedures. Porting efforts should be relatively simple. Here are some of the key points that require attention in porting efforts.
<p>
<span class="section">Basic database functions:</span>
<ul>
<li>db_connect()
<li>db_select_db()
<li>db_query()
<li>db_result()
<li>db_num_rows()
<li>db_fetch_array()
<li>db_insert_id()
<li>db_close()
<li>db_connect()
<li>db_select_db()
<li>db_query()
<li>db_result()
<li>db_num_rows()
<li>db_fetch_array()
<li>db_insert_id()
<li>db_close()
</ul>

<b>Some notes:</b>
<span class="section">Some notes:</span>
<ul>
<li>AUTO_INCREMENT - There must be a method for generating a unique id for every entry in a table. I believe Oracle uses SEQUENCES.
<li>LAST_INSERT_ID() - There needs to be a database mechanism to retrieve the ID of the record that was just inserted. There are several places in Mantis where multiple inserts take place in one script and each script needs the ID of the previously inserted record. I had some feedback that MSSQL uses something like "SELECT @@IDENTITY AS 'id'" to accomplish this.
<li>count returned rows - There should be a way to count the number of returned rows. Mantis uses mysql_num_rows() to get this number. An alternative is to return a COUNT() in a SQL query.
<li>AUTO_INCREMENT - There must be a method for generating a unique id for every entry in a table. Oracle uses SEQUENCES and TRIGGERS.
<li>LAST_INSERT_ID() - There needs to be a database mechanism to retrieve the ID of the record that was just inserted. There are several places in Mantis where multiple inserts take place in one script and each script needs the ID of the previously inserted record. MSSQL uses something like "SELECT @@IDENTITY AS 'id'" to accomplish this. Oracle uses the SEQUENCE's currval field.
<li>count selected rows - Mantis uses mysql_num_rows() to get this number. An alternative is to return a COUNT(*) in a SQL query. The COUNT(*) method should work on most databases.
<li>Transactions - Most databases support transactions except for MySQL. A support mechanism needs to be built.
</ul>
</td>
</tr>
</table>

</body>
</html>
A good candidate for the database abstraction class is <a href=http://adodb.sourceforge.net/">ADODB</a>
<? include( "bot.php3" ); ?>

0 comments on commit 2585ea9

Please sign in to comment.