]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blob - phpBB2/cache/tpl_subSilver.posting_smilies.php
Baseline
[www.vanrenterghem.biz.git] / phpBB2 / cache / tpl_subSilver.posting_smilies.php
1 <?php
3 // eXtreme Styles mod cache. Generated on Tue, 14 Jun 2005 11:44:36 -0400 (time=1118763876)
5 ?>
6 <script language="javascript" type="text/javascript">
7 <!--
8 function emoticon(text) {
9         text = ' ' + text + ' ';
10         if (opener.document.forms['post'].message.createTextRange && opener.document.forms['post'].message.caretPos) {
11                 var caretPos = opener.document.forms['post'].message.caretPos;
12                 caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
13                 opener.document.forms['post'].message.focus();
14         } else {
15         opener.document.forms['post'].message.value  += text;
16         opener.document.forms['post'].message.focus();
17         }
18 }
19 //-->
20 </script>
22 <table width="100%" border="0" cellspacing="0" cellpadding="10">
23         <tr>
24                 <td><table width="100%" border="0" cellspacing="1" cellpadding="4" class="forumline">
25                         <tr>
26                                 <th class="thHead" height="25"><?php echo isset($this->vars['L_EMOTICONS']) ? $this->vars['L_EMOTICONS'] : $this->lang('L_EMOTICONS'); ?></th>
27                         </tr>
28                         <tr>
29                                 <td><table width="100" border="0" cellspacing="0" cellpadding="5">
30                                         <?php
32 $smilies_row_count = ( isset($this->_tpldata['smilies_row.']) ) ?  sizeof($this->_tpldata['smilies_row.']) : 0;
33 for ($smilies_row_i = 0; $smilies_row_i < $smilies_row_count; $smilies_row_i++)
34 {
35  $smilies_row_item = &$this->_tpldata['smilies_row.'][$smilies_row_i];
36  $smilies_row_item['S_ROW_COUNT'] = $smilies_row_i;
37  $smilies_row_item['S_NUM_ROWS'] = $smilies_row_count;
39 ?>
40                                         <tr align="center" valign="middle"> 
41                                                 <?php
43 $smilies_col_count = ( isset($smilies_row_item['smilies_col.']) ) ? sizeof($smilies_row_item['smilies_col.']) : 0;
44 for ($smilies_col_i = 0; $smilies_col_i < $smilies_col_count; $smilies_col_i++)
45 {
46  $smilies_col_item = &$smilies_row_item['smilies_col.'][$smilies_col_i];
47  $smilies_col_item['S_ROW_COUNT'] = $smilies_col_i;
48  $smilies_col_item['S_NUM_ROWS'] = $smilies_col_count;
50 ?>
51                                                 <td><a href="javascript:emoticon('<?php echo isset($smilies_col_item['SMILEY_CODE']) ? $smilies_col_item['SMILEY_CODE'] : ''; ?>')"><img src="<?php echo isset($smilies_col_item['SMILEY_IMG']) ? $smilies_col_item['SMILEY_IMG'] : ''; ?>" border="0" alt="<?php echo isset($smilies_col_item['SMILEY_DESC']) ? $smilies_col_item['SMILEY_DESC'] : ''; ?>" title="<?php echo isset($smilies_col_item['SMILEY_DESC']) ? $smilies_col_item['SMILEY_DESC'] : ''; ?>" /></a></td>
52                                                 <?php
54 } // END smilies_col
56 if(isset($smilies_col_item)) { unset($smilies_col_item); } 
58 ?>
59                                         </tr>
60                                         <?php
62 } // END smilies_row
64 if(isset($smilies_row_item)) { unset($smilies_row_item); } 
66 ?>
67                                         <?php
69 $switch_smilies_extra_count = ( isset($this->_tpldata['switch_smilies_extra.']) ) ?  sizeof($this->_tpldata['switch_smilies_extra.']) : 0;
70 for ($switch_smilies_extra_i = 0; $switch_smilies_extra_i < $switch_smilies_extra_count; $switch_smilies_extra_i++)
71 {
72  $switch_smilies_extra_item = &$this->_tpldata['switch_smilies_extra.'][$switch_smilies_extra_i];
73  $switch_smilies_extra_item['S_ROW_COUNT'] = $switch_smilies_extra_i;
74  $switch_smilies_extra_item['S_NUM_ROWS'] = $switch_smilies_extra_count;
76 ?>
77                                         <tr align="center"> 
78                                                 <td colspan="<?php echo isset($this->vars['S_SMILIES_COLSPAN']) ? $this->vars['S_SMILIES_COLSPAN'] : $this->lang('S_SMILIES_COLSPAN'); ?>"><span  class="nav"><a href="<?php echo isset($this->vars['U_MORE_SMILIES']) ? $this->vars['U_MORE_SMILIES'] : $this->lang('U_MORE_SMILIES'); ?>" onclick="open_window('<?php echo isset($this->vars['U_MORE_SMILIES']) ? $this->vars['U_MORE_SMILIES'] : $this->lang('U_MORE_SMILIES'); ?>', 250, 300);return false" target="_smilies" class="nav"><?php echo isset($this->vars['L_MORE_SMILIES']) ? $this->vars['L_MORE_SMILIES'] : $this->lang('L_MORE_SMILIES'); ?></a></td>
79                                         </tr>
80                                         <?php
82 } // END switch_smilies_extra
84 if(isset($switch_smilies_extra_item)) { unset($switch_smilies_extra_item); } 
86 ?>
87                                 </table></td>
88                         </tr>
89                         <tr>
90                                 <td align="center"><br /><span class="genmed"><a href="javascript:window.close();" class="genmed"><?php echo isset($this->vars['L_CLOSE_WINDOW']) ? $this->vars['L_CLOSE_WINDOW'] : $this->lang('L_CLOSE_WINDOW'); ?></a></span></td>
91                         </tr>
92                 </table></td>
93         </tr>
94 </table>