1
0
mirror of synced 2024-12-13 22:56:04 +03:00

docs formatting updated

This commit is contained in:
zYne 2006-10-21 09:13:32 +00:00
parent dd4aff4a3b
commit 6aad5f8e73
3 changed files with 21 additions and 8 deletions

View File

@ -442,21 +442,25 @@ $menu = array("Getting started" =>
</tr> </tr>
<tr> <tr>
<td bgcolor="white" valign="top"> <td bgcolor="white" valign="top">
<?php <?php
if( ! isset($_REQUEST["index"])) { if( ! isset($_REQUEST["index"])) {
$i = 1; $i = 1;
$missing = array(); $missing = array();
$missing[0] = 0; $missing[0] = 0;
$missing[1] = 0; $missing[1] = 0;
print "<dl>\n";
foreach($menu as $title => $titles) { foreach($menu as $title => $titles) {
print $i.". <a href=\"".$_SERVER['PHP_SELF']."?index=$i#$i\">".$title."</a><br>\n"; print "<dt>" . $i . ". <a href=\"".$_SERVER['PHP_SELF']."?index=$i#$i\">".$title."</a></dt>\n";
print "<dd><dl>";
$i2 = 1; $i2 = 1;
foreach($titles as $k => $t) { foreach($titles as $k => $t) {
$e = "$i.".$i2.""; $e = "$i.".$i2."";
if(is_array($t)) { if(is_array($t)) {
print "<dd>".$e." <a href=\"".$_SERVER['PHP_SELF']."?index=$i.$i2#$e\">".$k."</a><br>\n"; print "<dt>".$e." <a href=\"".$_SERVER['PHP_SELF']."?index=$i.$i2#$e\">".$k."</a><dt>\n";
$i3 = 1; $i3 = 1;
print "<dd><dl>";
foreach($t as $k2 => $v2) { foreach($t as $k2 => $v2) {
$str = ""; $str = "";
if( ! file_exists("docs/$title - $k - $v2.php")) { if( ! file_exists("docs/$title - $k - $v2.php")) {
@ -472,9 +476,11 @@ $menu = array("Getting started" =>
} }
$e = implode(".",array($i,$i2,$i3)); $e = implode(".",array($i,$i2,$i3));
print "<dd><dd>".$e." <a href=\"".$_SERVER['PHP_SELF']."?index=$i.$i2#$e\">".$v2."</a>$str<br>\n"; print "<dt>".$e." <a href=\"".$_SERVER['PHP_SELF']."?index=$i.$i2#$e\">".$v2."</a>$str</dt>\n";
$i3++; $i3++;
} }
print "</dl></dd>";
} else { } else {
$str = ""; $str = "";
if( ! file_exists("docs/$title - $t.php")) { if( ! file_exists("docs/$title - $t.php")) {
@ -487,12 +493,16 @@ $menu = array("Getting started" =>
$str .= " [ <font color='red'>code</font> ] "; $str .= " [ <font color='red'>code</font> ] ";
touch("codes/$title - $t.php"); touch("codes/$title - $t.php");
} }
print "<dd>".$e." <a href=\"".$_SERVER['PHP_SELF']."?index=$i#$e\">".$t."</a>$str<br>\n"; print "<dt>".$e." <a href=\"".$_SERVER['PHP_SELF']."?index=$i#$e\">".$t."</a>$str</dt>\n";
} }
$i2++; $i2++;
} }
$i++; $i++;
print "</dl></dd>";
} }
print "</dl>\n";
} else { } else {
$i = 1; $i = 1;
$ex = explode(".",$_REQUEST["index"]); $ex = explode(".",$_REQUEST["index"]);

View File

@ -1,5 +1,5 @@
body { body {
margin: 10,0,0,0; margin:10px auto 0px auto;
font-family: Verdana, Arial, Helvetica; font-family: Verdana, Arial, Helvetica;
text-decoration: none; text-decoration: none;
} }

View File

@ -1,7 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Doctrine ORM Framework</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="styles/basic.css"> <link rel="stylesheet" type="text/css" href="styles/basic.css">
<style type="text/css"> </HEAD>
</style>
<table width="100%" cellspacing=0 cellpadding=0> <table width="100%" cellspacing=0 cellpadding=0>
<tr> <tr>