68 lines
1.9 KiB
PHP
68 lines
1.9 KiB
PHP
<div class="container">
|
|
|
|
<!-- Main hero unit for a primary marketing message or call to action -->
|
|
<div class="hero-unit">
|
|
<h1>Hello, world!</h1>
|
|
|
|
<p> Bla This is a template for a simple marketing or informational website. It includes a large callout called the
|
|
hero unit and three supporting pieces of content. Use it as a starting point to create something more
|
|
unique.</p>
|
|
|
|
<p><a class="btn btn-primary btn-large">Learn more »</a></p>
|
|
</div>
|
|
|
|
<!-- Example row of columns -->
|
|
<div class="row">
|
|
<div class="span4">
|
|
<h2>Heading</h2>
|
|
|
|
<p>
|
|
|
|
<?php
|
|
$connection = Yii::app()->db;
|
|
|
|
$command=$connection->createCommand("SELECT * FROM programme");
|
|
$command->execute(); // a non-query SQL statement execution
|
|
// or execute an SQL query and fetch the result set
|
|
$reader=$command->query();
|
|
|
|
// each $row is an array representing a row of data
|
|
$dbgtxt = "ello";
|
|
foreach($reader as $row)
|
|
{
|
|
$dbgtxt = $dbgtxt . print_r($row, true);
|
|
}
|
|
|
|
echo TbHtml::textArea('dbgtxt', $dbgtxt, array('rows' => 5));
|
|
?>
|
|
|
|
</p>
|
|
|
|
<p><a class="btn" href="#">View details »</a></p>
|
|
</div>
|
|
<div class="span4">
|
|
<h2>Heading</h2>
|
|
|
|
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
|
|
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis
|
|
euismod. Donec sed odio dui. </p>
|
|
|
|
<p><a class="btn" href="#">View details »</a></p>
|
|
</div>
|
|
<div class="span4">
|
|
<h2>Heading</h2>
|
|
|
|
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula
|
|
porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
|
|
fermentum massa justo sit amet risus.</p>
|
|
|
|
<p><a class="btn" href="#">View details »</a></p>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<footer>
|
|
<p>© Company 2012</p>
|
|
</footer>
|
|
</div>
|