1 | <?php /* Smarty version 2.6.14, created on 2009-07-11 14:36:08
|
---|
2 | compiled from body.tpl */ ?>
|
---|
3 | <?php $_smarty_tpl_vars = $this->_tpl_vars;
|
---|
4 | $this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
|
---|
5 | $this->_tpl_vars = $_smarty_tpl_vars;
|
---|
6 | unset($_smarty_tpl_vars);
|
---|
7 | ?>
|
---|
8 |
|
---|
9 | <div class="odl_list">
|
---|
10 | <div class="odl_list_top">
|
---|
11 | <div class="odl_search">
|
---|
12 | <form method="get" id="odl_addlink_post" name="odl_addlink_post" action="<?php echo $this->_tpl_vars['odl_search_link']; ?>
|
---|
13 | ">
|
---|
14 | <table><tr><td>
|
---|
15 | <input type="text" name="search_terms" size="30" value="<?php echo $this->_tpl_vars['search_terms']; ?>
|
---|
16 | ">
|
---|
17 | <input type="submit" value="Search"> <?php echo $this->_tpl_vars['odl_advanced']; ?>
|
---|
18 |
|
---|
19 | </td></tr>
|
---|
20 | <tr><td align="left">
|
---|
21 | Links: <input type="radio" value="links" name="type">
|
---|
22 | Description: <input type="radio" value="desc" name="type">
|
---|
23 | All: <input type="radio" value="desc" name="type" checked>
|
---|
24 | </td></tr></table>
|
---|
25 | </form>
|
---|
26 | </div>
|
---|
27 | <?php if ($this->_tpl_vars['cat_id'] > '0'): ?>
|
---|
28 | <P>
|
---|
29 | <p class="odl_head_navi"><b><?php echo $this->_tpl_vars['odl_main_link']; ?>
|
---|
30 | </b>:<?php echo $this->_tpl_vars['navigation_link']; ?>
|
---|
31 | </p>
|
---|
32 | <?php if (( $this->_tpl_vars['odl_navigation_description'] )): ?>
|
---|
33 | <span class ="odl_navigation_description"><?php echo $this->_tpl_vars['odl_navigation_description']; ?>
|
---|
34 | </span>
|
---|
35 | <?php endif; ?>
|
---|
36 | <?php endif; ?>
|
---|
37 | <?php if (( $this->_tpl_vars['addurl_link'] )): ?>
|
---|
38 | <span class="odl_head_addurl"><img src="<?php echo $this->_tpl_vars['odl_images']; ?>
|
---|
39 | /images/addtopic.jpg"><?php echo $this->_tpl_vars['addurl_link']; ?>
|
---|
40 | </span>
|
---|
41 | <?php endif; ?>
|
---|
42 | </div>
|
---|
43 | </div>
|
---|
44 |
|
---|
45 | <P>
|
---|
46 | <div class="odl_container">
|
---|
47 | <div class="odl_editform">
|
---|
48 | <?php if ($this->_tpl_vars['error']): ?>
|
---|
49 | <b><?php echo $this->_tpl_vars['error']; ?>
|
---|
50 | </b><hr>
|
---|
51 | <?php endif; ?>
|
---|
52 | </div>
|
---|
53 | <div class="main-content">
|
---|
54 | <?php if (( $this->_tpl_vars['cat_id'] != 0 ) && ( $this->_tpl_vars['cat_desc'] <> "" )): ?>
|
---|
55 | Description<br /><?php echo $this->_tpl_vars['cat_desc']; ?>
|
---|
56 |
|
---|
57 | <?php endif; ?>
|
---|
58 |
|
---|
59 | <?php if ($this->_tpl_vars['googletop']): ?>
|
---|
60 | <?php echo $this->_tpl_vars['googleAd']; ?>
|
---|
61 |
|
---|
62 | <?php endif; ?>
|
---|
63 |
|
---|
64 | <?php if ($this->_tpl_vars['categories']): ?>
|
---|
65 | <h3>Categories</h3></td>
|
---|
66 | <table border="0" width="100%" class="tbody" cellspacing="1" cellpadding="1">
|
---|
67 | <tr>
|
---|
68 | <td width="100%">
|
---|
69 | <table border="0" width="97%" cellspacing="3" cellpadding="3"><tr>
|
---|
70 | <?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['categories'] = array('total' => count($_from), 'iteration' => 0);
|
---|
71 | if ($this->_foreach['categories']['total'] > 0):
|
---|
72 | foreach ($_from as $this->_tpl_vars['cats'] => $this->_tpl_vars['cat']):
|
---|
73 | $this->_foreach['categories']['iteration']++;
|
---|
74 | ?>
|
---|
75 | <td valign="top" width="50%">
|
---|
76 |
|
---|
77 | <img src="<?php echo $this->_tpl_vars['odl_images']; ?>
|
---|
78 | /images/folder.gif"><b><?php echo $this->_tpl_vars['cat']['cat_link']; ?>
|
---|
79 | </b>(<?php echo $this->_tpl_vars['cat']['c_links']; ?>
|
---|
80 | )<br>
|
---|
81 | <?php if ($this->_tpl_vars['subcategories']): ?>
|
---|
82 | <table border="0"><tr><td>
|
---|
83 | <?php $_from = $this->_tpl_vars['subcategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['subcount'] = array('total' => count($_from), 'iteration' => 0);
|
---|
84 | if ($this->_foreach['subcount']['total'] > 0):
|
---|
85 | foreach ($_from as $this->_tpl_vars['subs'] => $this->_tpl_vars['sub']):
|
---|
86 | $this->_foreach['subcount']['iteration']++;
|
---|
87 | ?>
|
---|
88 | <?php if ($this->_tpl_vars['sub']['c_parent'] == $this->_tpl_vars['cat']['c_id']): ?>
|
---|
89 | <?php if ($this->_tpl_vars['sub']['c_no'] < 4): ?>
|
---|
90 | <?php echo $this->_tpl_vars['sub']['c_path']; ?>
|
---|
91 |
|
---|
92 | <?php else: ?>.<?php endif; ?>
|
---|
93 | <?php endif; ?>
|
---|
94 | <?php endforeach; else: ?>
|
---|
95 | No items were found.
|
---|
96 | <?php endif; unset($_from); ?>
|
---|
97 | </td></tr></table>
|
---|
98 |
|
---|
99 | <?php endif; ?>
|
---|
100 | </td>
|
---|
101 | <?php if (!($this->_foreach['categories']['iteration'] % 2)): ?>
|
---|
102 | </tr><tr>
|
---|
103 | <?php elseif (! ($this->_foreach['categories']['iteration'] == $this->_foreach['categories']['total'])): ?>
|
---|
104 | <td> </td>
|
---|
105 | <?php endif; ?>
|
---|
106 | <?php endforeach; endif; unset($_from); ?>
|
---|
107 | </tr></table>
|
---|
108 | </td>
|
---|
109 | </tr>
|
---|
110 | </table>
|
---|
111 | <?php else: ?>
|
---|
112 | <BR />
|
---|
113 | <?php endif; ?>
|
---|
114 | <?php if ($this->_tpl_vars['links']): ?>
|
---|
115 | <h3>Links</h3>
|
---|
116 | <?php $_from = $this->_tpl_vars['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
---|
117 | foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
|
---|
118 | ?>
|
---|
119 | <div class="viewlink">
|
---|
120 | <table border=0><td valign="top"><a href="<?php echo $this->_tpl_vars['item']['url']; ?>
|
---|
121 | " class="previewlink" target=_blank> </a></td>
|
---|
122 | <td><!--img src="<?php echo $this->_tpl_vars['odl_images']; ?>
|
---|
123 | /images/link.jpg"--><b><a href="<?php echo $this->_tpl_vars['item']['url']; ?>
|
---|
124 | " target=_blank><?php echo $this->_tpl_vars['item']['title']; ?>
|
---|
125 | </a></b> <span class ="smallTxt">Added: <?php echo $this->_tpl_vars['item']['date']; ?>
|
---|
126 | </span><br/>
|
---|
127 | <?php if ($this->_tpl_vars['item']['description'] <> ""): echo $this->_tpl_vars['item']['description']; ?>
|
---|
128 | </td></tr>
|
---|
129 | <tr><td></td><td>
|
---|
130 | <br>
|
---|
131 | <img src="<?php echo $this->_tpl_vars['odl_images']; ?>
|
---|
132 | /images/favourite.gif"><a href="javascript:addbookmark('<?php echo $this->_tpl_vars['item']['url']; ?>
|
---|
133 | ','<?php echo $this->_tpl_vars['item']['title']; ?>
|
---|
134 | ');"><font color="#840000">Add to Favourite</font></a>
|
---|
135 | <img src="<?php echo $this->_tpl_vars['odl_images']; ?>
|
---|
136 | /images/refer.gif"><?php echo $this->_tpl_vars['item']['sendlink']; ?>
|
---|
137 |
|
---|
138 | <?php echo $this->_tpl_vars['item']['rank_txt']; ?>
|
---|
139 | <img src="<?php echo $this->_tpl_vars['odl_images']; ?>
|
---|
140 | /images/<?php echo $this->_tpl_vars['item']['rank_img']; ?>
|
---|
141 | ">
|
---|
142 | </td></tr></table>
|
---|
143 | <?php endif; ?>
|
---|
144 | </div>
|
---|
145 | <?php endforeach; endif; unset($_from); ?>
|
---|
146 | <?php endif; ?>
|
---|
147 | <BR />
|
---|
148 | <BR />
|
---|
149 | <?php if ($this->_tpl_vars['new_links']): ?>
|
---|
150 | <h3>Last <?php echo $this->_tpl_vars['linksNum']; ?>
|
---|
151 | links posted...</h3>
|
---|
152 | <?php $_from = $this->_tpl_vars['new_links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
---|
153 | foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
|
---|
154 | ?>
|
---|
155 | <a href="<?php echo $this->_tpl_vars['item']['url']; ?>
|
---|
156 | " class="previewlink" target=_blank> </a><a href="<?php echo $this->_tpl_vars['item']['url']; ?>
|
---|
157 | " target=_blank><?php echo $this->_tpl_vars['item']['title']; ?>
|
---|
158 | </a>
|
---|
159 | <div class="smallTxt">(<?php echo $this->_tpl_vars['item']['category']; ?>
|
---|
160 | [<?php echo $this->_tpl_vars['item']['date']; ?>
|
---|
161 | ])</div><br />
|
---|
162 | <?php endforeach; endif; unset($_from); ?>
|
---|
163 | <?php endif; ?>
|
---|
164 | <BR />
|
---|
165 | <?php if ($this->_tpl_vars['googlebtn']): ?>
|
---|
166 | <div class="odl_googleAd"><?php echo $this->_tpl_vars['odl_googleAd']; ?>
|
---|
167 | </div>
|
---|
168 | <?php endif; ?>
|
---|
169 | <h3>Legend</h3>
|
---|
170 | <span class ="smallTxt">Categories: <?php echo $this->_tpl_vars['categories_total']; ?>
|
---|
171 | , Links: <?php echo $this->_tpl_vars['links_total']; ?>
|
---|
172 | </span>
|
---|
173 |
|
---|
174 | <?php $_smarty_tpl_vars = $this->_tpl_vars;
|
---|
175 | $this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
|
---|
176 | $this->_tpl_vars = $_smarty_tpl_vars;
|
---|
177 | unset($_smarty_tpl_vars);
|
---|
178 | ?> |
---|