Ignore:
Timestamp:
03/29/10 15:37:29 (2 years ago)
Author:
bogdan2412
Message:

Updated with changes from live.

  • Updated SMF to 1.1.11
  • Added Summify to site and forum
  • Small change to job detail view
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/smf/Themes/default/Search.template.php

    r1017 r1121  
    5555                                <td class="windowbg">'; 
    5656 
    57         if ($context['visual_verification']) 
    58         { 
    59                 echo ' 
    60                                         <script language="JavaScript" type="text/javascript"><!-- // --> 
    61                                         function refreshImages() 
    62                                         { 
    63                                                 // Make sure we are using a new rand code. 
    64                                                 var new_url = new String("', $context['verificiation_image_href'], '"); 
    65                                                 new_url = new_url.substr(0, new_url.indexOf("rand=") + 5); 
    66  
    67                                                 // Quick and dirty way of converting decimal to hex 
    68                                                 var hexstr = "0123456789abcdef"; 
    69                                                 for(var i=0; i < 32; i++) 
    70                                                         new_url = new_url + hexstr.substr(Math.floor(Math.random() * 16), 1);'; 
    71  
    72                                                 if ($context['use_graphic_library']) 
    73                                                         echo ' 
    74                                                 document.getElementById("verificiation_image").src = new_url;'; 
    75                                                 else 
    76                                                         echo ' 
    77                                                 document.getElementById("verificiation_image_1").src = new_url + ";letter=1"; 
    78                                                 document.getElementById("verificiation_image_2").src = new_url + ";letter=2"; 
    79                                                 document.getElementById("verificiation_image_3").src = new_url + ";letter=3"; 
    80                                                 document.getElementById("verificiation_image_4").src = new_url + ";letter=4"; 
    81                                                 document.getElementById("verificiation_image_5").src = new_url + ";letter=5";'; 
    82                                                 echo ' 
    83                                         } 
    84                                                 // ]]&gt;</script>'; 
    85         } 
    86  
    87  
    8857        if ($context['simple_search']) 
    8958        { 
     
    10069                                                <td></td> 
    10170                                        </tr>'; 
    102  
    103                         if ($context['visual_verification']) 
    104                         { 
    105                                 echo ' 
    106                                         <tr> 
    107                                                 <td> 
    108                                                         <div style="font-weight: bold;"> 
    109                                                                 ', $txt['visual_verification_label'], ': 
    110                                                                 <div class="smalltext">', $txt['visual_verification_description'], '</div> 
    111                                                         </div> 
    112                                                         <div>'; 
    113                         if ($context['use_graphic_library']) 
    114                                 echo ' 
    115                                                                 <img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />'; 
    116                         else 
    117                                 echo ' 
    118                                                                 <img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" /> 
    119                                                                 <img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" /> 
    120                                                                 <img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" /> 
    121                                                                 <img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" /> 
    122                                                                 <img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" />'; 
    123                         echo ' 
    124                                                                 <input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" /> 
    125                                                                 <div class="smalltext"> 
    126                                                                         <a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a> 
    127                                                                 </div> 
    128                                                         </div> 
    129                                                 </td> 
    130                                         </tr>'; 
    131                         } 
    132  
    133  
    13471                echo ' 
    13572                                        </table><br /><br /> 
     
    220157                                                        <td></td> 
    221158                                                </tr> 
    222 '; 
    223  
    224                         if ($context['visual_verification']) 
    225                         { 
    226                                 echo ' 
    227                                                 <tr> 
    228                                                         <td style="padding-top: 2ex;"> 
    229                                                                 <div style="font-weight: bold;"> 
    230                                                                         ', $txt['visual_verification_label'], ': 
    231                                                                         <div class="smalltext">', $txt['visual_verification_description'], '</div> 
    232                                                                 </div> 
    233                                                                 <div>'; 
    234                                 if ($context['use_graphic_library']) 
    235                                         echo ' 
    236                                                                         <img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />'; 
    237                                 else 
    238                                         echo ' 
    239                                                                         <img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" /> 
    240                                                                         <img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" /> 
    241                                                                         <img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" /> 
    242                                                                         <img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" /> 
    243                                                                         <img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" />'; 
    244                                 echo ' 
    245                                                                         <input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" /> 
    246                                                                         <div class="smalltext"> 
    247                                                                                 <a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a> 
    248                                                                         </div> 
    249                                                                 </div> 
    250                                                         </td> 
    251                                                 </tr>'; 
    252                         } 
    253  
    254 echo ' 
    255  
    256159                                        </table><br />'; 
    257160 
     
    318221        if (isset($context['did_you_mean']) || empty($context['topics'])) 
    319222        { 
    320  
    321                 if ($context['visual_verification']) 
    322                 { 
    323                         echo ' 
    324                                                 <script language="JavaScript" type="text/javascript"><!-- // --> 
    325                                                 function refreshImages() 
    326                                                 { 
    327                                                         // Make sure we are using a new rand code. 
    328                                                         var new_url = new String("', $context['verificiation_image_href'], '"); 
    329                                                         new_url = new_url.substr(0, new_url.indexOf("rand=") + 5); 
    330  
    331                                                         // Quick and dirty way of converting decimal to hex 
    332                                                         var hexstr = "0123456789abcdef"; 
    333                                                         for(var i=0; i < 32; i++) 
    334                                                                 new_url = new_url + hexstr.substr(Math.floor(Math.random() * 16), 1);'; 
    335  
    336                                                         if ($context['use_graphic_library']) 
    337                                                                 echo ' 
    338                                                         document.getElementById("verificiation_image").src = new_url;'; 
    339                                                         else 
    340                                                                 echo ' 
    341                                                         document.getElementById("verificiation_image_1").src = new_url + ";letter=1"; 
    342                                                         document.getElementById("verificiation_image_2").src = new_url + ";letter=2"; 
    343                                                         document.getElementById("verificiation_image_3").src = new_url + ";letter=3"; 
    344                                                         document.getElementById("verificiation_image_4").src = new_url + ";letter=4"; 
    345                                                         document.getElementById("verificiation_image_5").src = new_url + ";letter=5";'; 
    346                                                         echo ' 
    347                                                 } 
    348                                                         // ]]&gt;</script>'; 
    349                 } 
    350223                echo ' 
    351224        <div class="tborder"> 
     
    367240                                                <input type="text" name="search"', !empty($context['search_params']['search']) ? ' value="' . $context['search_params']['search'] . '"' : '', ' size="40" /> 
    368241                                                <input type="submit" name="submit" value="', $txt['search_adjust_submit'], '" /> 
    369  
    370                                                 '; 
    371  
    372                                                 if ($context['visual_verification']) 
    373                                                 { 
    374                                                         echo '<br /><br /> 
    375                                                         <b>', $txt['visual_verification_label'], ':</b><br /> 
    376                                                         <div class="smalltext">', $txt['visual_verification_description'], '</div>'; 
    377  
    378                                                         if ($context['use_graphic_library']) 
    379                                                                 echo ' 
    380                                                                                                 <img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />'; 
    381                                                         else 
    382                                                                 echo ' 
    383                                                                                                 <img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" /> 
    384                                                                                                 <img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" /> 
    385                                                                                                 <img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" /> 
    386                                                                                                 <img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" /> 
    387                                                                                                 <img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" />'; 
    388                                                         echo ' 
    389                                                                                                 <input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" /> 
    390                                                                                                 <div class="smalltext"> 
    391                                                                                                         <a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a> 
    392                                                                                                 </div><br />'; 
    393                                                 } 
    394  
    395                 echo ' 
    396242 
    397243                                                <input type="hidden" name="searchtype" value="', !empty($context['search_params']['searchtype']) ? $context['search_params']['searchtype'] : 0, '" /> 
Note: See TracChangeset for help on using the changeset viewer.