<?php
if (!defined('WEB_ROOT')) {
	exit;
}
$rowsPerPage = 10;
$sql = "SELECT * FROM tbl_testimonials order by Id ASC ";
$result     = dbQuery(getPagingQuery($sql, $rowsPerPage));
$pagingLink = getPagingLink($sql, $rowsPerPage);

?>
<link href="admin/include/admin.css" rel="stylesheet" type="text/css" />

<form action="processClient.php?action=addClient" method="post"  name="frmListClient" id="frmListClient">
 <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
     <td>
     <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="#1B98CD" class="text dataTable" id="myTable">
       <tr align="center" id="listTableHeader">
         <td width="151">testimonials Title</td>
         <td width="169">testimonials Detail</td>
         <td width="145">Action</td>
       </tr>
     <?php
		$cms_id = 0;
		if (dbNumRows($result) > 0) {
		$i = 0;
	
		while($row = dbFetchAssoc($result)) {
		extract($row);
		//$detail = $row["server_requirements"];
		if ($i%2) {
			$class = 'row1';
		} else {
			$class = 'row2';
		}
		
		$i += 1;

	
?>
       <tr class="<?php echo $class; ?>">
         <td height="25" align="center" ><?php echo $Title; ?></td>
         <td width="117" align="center"><?php echo substr($detail,0,100); ?></td>
         <td width="145" height="25" align="center"><a href="index.php?view=modify&amp;fileId=<?php echo $Id; ?>" class="viewedit"><img src="../images/modify.png" border="0"/>&nbsp;</a></td>
       </tr>
         <?php
} // end while

?><tr>
     <td colspan="12" align="center"><?php  echo $pagingLink; ?></td>
   </tr>
   <?php	
} else {
?>
   <tr>
     <td colspan="12" align="center">No Products Yet</td>
   </tr>
   <?php
}
?>
     </table></td>
   </tr>
   <tr>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <td align="right">
     	<input name="btnAddFile" type="button" id="btnAddFile" value="Add testimonials" class="button" onClick="addFile()">
     </td>
   </tr>
 </table>
 <script type="text/javascript">
      addTableRolloverEffect('myTable','tableRollOverEffect1','tableRowClickEffect1');
      //addTableRolloverEffect('myTable2','tableRollOverEffect2','tableRowClickEffect2');
 </script>
</form>