php this- load- view header table width 95 border cellspacing cellpadd

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
$this->load->view('header');
?>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="3" height="30">&nbsp;</td>
</tr>
<tr>
<td colspan="3" align="center" class="t4" height="20" bgcolor="#F4F4F4"><b>Статьи</b></td>
</tr>
<tr>
<td colspan="3" align="center" height="30" ></td>
</tr>
<tr>
<td colspan="3" height="150">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
if ($articles_array!='')
foreach ($articles_array as $Article)
{
?>
<tr>
<td height="4px" background="<?php echo $config['images']?>tchk.jpg"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center"><a href="<?php echo base_url(); ?>articles/full/<?php echo $Article['id']?>/"><strong><?php echo $Article['title']?></strong></a></td>
</tr>
<tr>
<td>
<?php
if (strlen($Article['text'])>70)
{
$Article['text']=substr($Article['text'],0,400);
$Article['text']=$Article['text'] .'...';
}
echo $Article['text'];
?>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td height="4px" background="<?php echo $config['images']?>tchk.jpg"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
</table>
<?php
$this->load->view('footer');
?>