<?
/**
*
* @Script Random Text
* @version 1.0.0
* @copyright (c) Agrizlive.com
* @license You are allowed to modify this script. But you must provide a link of agrizlive.com in your footer (bottom of the page)
*
* Tested : PHP 5.2.11
*/
/**
*/
include_once("login_verify.php");
include_once("header.php");
include_once("text_config.php");
include_once("functions.php");
//Get the total banner list
$result_text = getTotalTexts();
?>
<div id="content" class="container_16 clearfix">
<div class="grid_16">
<table>
<thead>
<tr>
<th>ID</th>
<th>Image</th>
<th>Link</th>
<th colspan="2" width="10%">Actions</th>
</tr>
</thead>
<tbody>
<?
$i = 0;
while($value_text = mysql_fetch_array($result_text))
{
$i++;
?>
<tr <?if($i%2 == 0){?>class='alt'<?}?>>
<td><?=$i?></td>
<td><?=stripslashes($value_text['rtext'])?></td>
<td><?=$value_text['url']?></td>
<td><a href="add.php?id=<?=$value_text['id']?>" class="edit">Edit</a></td>
<td><a href="delete.php?id=<?=$value_text['id']?>" class="delete" onclick="return confirm('are you sure?')">Delete</a></td>
</tr>
<?
}
?>
</tbody>
</table>
</div>
</div>
<?
include_once("footer.php");
?>