示例#1
0
function success($tag)
{
    $link = genLinks($tag);
    $respone = array('success' => True, 'data' => $link);
    $respone = json_encode($respone);
    echo $respone;
    exit;
}
<h3 id="org.eclipse.releng"> org.eclipse.releng.tools plug-in&nbsp;<a href="details.html#org.eclipse.releng"><img
    src="images/more.gif" title="More..." alt="[More]" /></a>
</h3>
<?php 
    startTable();
    ?>
<tr>
  <?php 
    columnHeads();
    ?>
</tr>
<tr>
<td><img src = "repo.gif" alt="Releng Tools Repo" /> Releng Tools Repo</td>
<?php 
    genLinks("org.eclipse.releng.tools-{$BUILD_ID}.zip");
    ?>
</tr>

<?php 
    endTable();
    ?>

<?php 
}
?>
</div> <!-- end dropsection -->
</div> <!-- close div classs=container -->
</main> <!-- close main role="main" element -->
</body>
</html>
示例#3
0
                     $links .= "\"{$key}\":rtcol{$j} -> \"{$col['3']}\":ltcol0 [\nid = {$i}\n];\n";
                     $i++;
                 }
                 $j++;
             }
             $output .= '</TABLE> >';
             $output .= "\nshape = \"plaintext\"\n];\n";
         }
         $output .= $links;
         $output .= "}\n";
         break;
     case 'erd':
         $output = "\ndigraph g {\ngraph [\nrankdir = \"LR\"\n];\nnode [\nfontsize = \"16\"\nshape = \"ellipse\"\n];\nedge [\n];\n";
         foreach ($tables as $key) {
             $output .= "\"{$key}\" [\nlabel = \"<f0> {$key}| <f1>\"\nshape = \"record\"\n];\n";
             $dd = genLinks($key);
             $i = 0;
             foreach ($dd as $link) {
                 $output .= "\"{$key}\":f0 -> \"{$link}\":f0 [\nid = {$i}\n];\n";
                 $i++;
             }
         }
         $output .= "}\n";
         break;
     case 'test':
         performTests();
         break;
 }
 switch ($action) {
     case 'failed':
     case 'test':
示例#4
0
文件: index.php 项目: phrog/portimg
<?php

include_once "../lib/htmlHelper.php";
include_once "../lib/db.php";
echo htmlStart("Clockwork design -- Michael Telford");
# This is the array of links that will be on this page
$links = array("Home" => "index.php", "Galleries" => "galleries.php", "About me" => "about.php", "Contact Information" => "info.php");
heading("Home page");
#echo out the links
echo genLinks($links);
echo "<div id='main'>\n";
$db = new db("site", "localhost", "mike", "default");
#get the 4 most recient posts
$db->query("SELECT title, description, image, created  FROM post ORDER BY created LIMIT 4");
while ($line = $db->fetchNextObject()) {
    # we now have the results in the form $line->field
    $img = $line->image;
    $title = $line->title;
    $desc = $line->description;
    $time = $line->created;
    # echo time
    echo <<<SINGLEPOST

<div class='post'>
  <img src='{$img}' />
  <h3>{$title}</h3>
  <p>{$desc}</p>
  <p>{$time}</p>
</div>

SINGLEPOST;
    ?>
</tr>
<tr>
<td>Test Framework and Unit Tests</td>
<?php 
    genLinks("eclipse-Automated-Tests-{$BUILD_ID}.zip");
    ?>
</tr>
<?php 
    endTable();
    ?>
<!--
<tr>
<td>All</td>
<?php 
    genLinks("eclipse-{$BUILD_ID}-delta-pack.zip");
    ?>
</tr>
-->

<?php 
    endTable();
    ?>

<?php 
}
?>
</div> <!-- end dropsection -->
</div> <!-- close div classs=container -->
</main> <!-- close main role="main" element -->
</body>