ManageSearch.template.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <?php
  2. /**
  3. * Simple Machines Forum (SMF)
  4. *
  5. * @package SMF
  6. * @author Simple Machines
  7. * @copyright 2011 Simple Machines
  8. * @license http://www.simplemachines.org/about/smf/license.php BSD
  9. *
  10. * @version 2.1 Alpha 1
  11. */
  12. function template_modify_weights()
  13. {
  14. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  15. echo '
  16. <div id="admincenter">
  17. <form action="', $scripturl, '?action=admin;area=managesearch;sa=weights" method="post" accept-charset="', $context['character_set'], '">
  18. <div class="cat_bar">
  19. <h3 class="catbg">', $txt['search_weights'], '</h3>
  20. </div>
  21. <div class="windowbg">
  22. <span class="topslice"><span></span></span>
  23. <div class="content">
  24. <dl class="settings">
  25. <dt class="large_caption">
  26. <a href="', $scripturl, '?action=helpadmin;help=search_weight_frequency" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.png" alt="', $txt['help'], '" /></a><label for="weight1_val">
  27. ', $txt['search_weight_frequency'], ':</label>
  28. </dt>
  29. <dd class="large_caption">
  30. <span class="search_weight"><input type="text" name="search_weight_frequency" id="weight1_val" value="', empty($modSettings['search_weight_frequency']) ? '0' : $modSettings['search_weight_frequency'], '" onchange="calculateNewValues()" size="3" class="input_text" /></span>
  31. <span id="weight1" class="search_weight">', $context['relative_weights']['search_weight_frequency'], '%</span>
  32. </dd>
  33. <dt class="large_caption">
  34. <a href="', $scripturl, '?action=helpadmin;help=search_weight_age" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.png" alt="', $txt['help'], '" /></a><label for="weight2_val">
  35. ', $txt['search_weight_age'], ':</label>
  36. </dt>
  37. <dd class="large_caption">
  38. <span class="search_weight"><input type="text" name="search_weight_age" id="weight2_val" value="', empty($modSettings['search_weight_age']) ? '0' : $modSettings['search_weight_age'], '" onchange="calculateNewValues()" size="3" class="input_text" /></span>
  39. <span id="weight2" class="search_weight">', $context['relative_weights']['search_weight_age'], '%</span>
  40. </dd>
  41. <dt class="large_caption">
  42. <a href="', $scripturl, '?action=helpadmin;help=search_weight_length" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.png" alt="', $txt['help'], '" /></a><label for="weight3_val">
  43. ', $txt['search_weight_length'], ':</label>
  44. </dt>
  45. <dd class="large_caption">
  46. <span class="search_weight"><input type="text" name="search_weight_length" id="weight3_val" value="', empty($modSettings['search_weight_length']) ? '0' : $modSettings['search_weight_length'], '" onchange="calculateNewValues()" size="3" class="input_text" /></span>
  47. <span id="weight3" class="search_weight">', $context['relative_weights']['search_weight_length'], '%</span>
  48. </dd>
  49. <dt class="large_caption">
  50. <a href="', $scripturl, '?action=helpadmin;help=search_weight_subject" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.png" alt="', $txt['help'], '" /></a><label for="weight4_val">
  51. ', $txt['search_weight_subject'], ':</label>
  52. </dt>
  53. <dd class="large_caption">
  54. <span class="search_weight"><input type="text" name="search_weight_subject" id="weight4_val" value="', empty($modSettings['search_weight_subject']) ? '0' : $modSettings['search_weight_subject'], '" onchange="calculateNewValues()" size="3" class="input_text" /></span>
  55. <span id="weight4" class="search_weight">', $context['relative_weights']['search_weight_subject'], '%</span>
  56. </dd>
  57. <dt class="large_caption">
  58. <a href="', $scripturl, '?action=helpadmin;help=search_weight_first_message" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.png" alt="', $txt['help'], '" /></a><label for="weight5_val">
  59. ', $txt['search_weight_first_message'], ':</label>
  60. </dt>
  61. <dd class="large_caption">
  62. <span class="search_weight"><input type="text" name="search_weight_first_message" id="weight5_val" value="', empty($modSettings['search_weight_first_message']) ? '0' : $modSettings['search_weight_first_message'], '" onchange="calculateNewValues()" size="3" class="input_text" /></span>
  63. <span id="weight5" class="search_weight">', $context['relative_weights']['search_weight_first_message'], '%</span>
  64. </dd>
  65. <dt class="large_caption">
  66. <a href="', $scripturl, '?action=helpadmin;help=search_weight_frequency" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.png" alt="', $txt['help'], '" align="top" /></a><label for="weight6_val">
  67. ', $txt['search_weight_sticky'], ':</label>
  68. </dt>
  69. <dd class="large_caption">
  70. <span class="search_weight"><input type="text" name="search_weight_sticky" id="weight6_val" value="', empty($modSettings['search_weight_sticky']) ? '0' : $modSettings['search_weight_sticky'], '" onchange="calculateNewValues()" size="3" class="input_text" /></span>
  71. <span id="weight6" class="search_weight">', $context['relative_weights']['search_weight_sticky'], '%</span>
  72. </dd>
  73. <dt class="large_caption">
  74. <strong>', $txt['search_weights_total'], '</strong>
  75. </dt>
  76. <dd class="large_caption">
  77. <span id="weighttotal" class="search_weight"><strong>', $context['relative_weights']['total'], '</strong></span>
  78. <span class="search_weight"><strong>100%</strong></span>
  79. </dd>
  80. </dl>
  81. <hr class="hrcolor" />
  82. <input type="submit" name="save" value="', $txt['search_weights_save'], '" class="button_submit" />
  83. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  84. <input type="hidden" name="', $context['admin-msw_token_var'], '" value="', $context['admin-msw_token'], '" />
  85. <br class="clear_right" />
  86. </div>
  87. <span class="botslice"><span></span></span>
  88. </div>
  89. </form>
  90. </div>
  91. <br class="clear" />';
  92. }
  93. function template_select_search_method()
  94. {
  95. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  96. echo '
  97. <div id="admincenter">
  98. <form action="', $scripturl, '?action=admin;area=managesearch;sa=method" method="post" accept-charset="', $context['character_set'], '">
  99. <div class="cat_bar">
  100. <h3 class="catbg">', $txt['search_method'], '</h3>
  101. </div>
  102. <div class="information">
  103. <div class="smalltext" style="font-weight: normal;"><a href="', $scripturl, '?action=helpadmin;help=search_why_use_index" onclick="return reqWin(this.href);">', $txt['search_create_index_why'], '</a></div>
  104. </div>
  105. <div class="windowbg">
  106. <span class="topslice"><span></span></span>
  107. <div class="content">
  108. <dl class="settings">
  109. ';
  110. if (!empty($context['table_info']))
  111. echo '
  112. <dt>
  113. <strong>', $txt['search_method_messages_table_space'], ':</strong>
  114. </dt>
  115. <dd>
  116. ', $context['table_info']['data_length'], '
  117. </dd>
  118. <dt>
  119. <strong>', $txt['search_method_messages_index_space'], ':</strong>
  120. </dt>
  121. <dd>
  122. ', $context['table_info']['index_length'], '
  123. </dd>';
  124. echo '
  125. </dl>
  126. ', $context['double_index'] ? '<div class="information">
  127. ' . $txt['search_double_index'] . '</div>' : '', '
  128. <fieldset class="search_settings floatleft">
  129. <legend>', $txt['search_index'], '</legend>
  130. <dl>
  131. <dt><input type="radio" name="search_index" value=""', empty($modSettings['search_index']) ? ' checked="checked"' : '', ' class="input_radio" />
  132. ', $txt['search_index_none'], '
  133. </dt>';
  134. if ($context['supports_fulltext'])
  135. {
  136. echo '
  137. <dt>
  138. <input type="radio" name="search_index" value="fulltext"', !empty($modSettings['search_index']) && $modSettings['search_index'] == 'fulltext' ? ' checked="checked"' : '', empty($context['fulltext_index']) ? ' onclick="alert(\'' . $txt['search_method_fulltext_warning'] . '\'); selectRadioByName(this.form.search_index, \'fulltext\');"': '', ' class="input_radio" />
  139. ', $txt['search_method_fulltext_index'], '
  140. </dt>
  141. <dd>
  142. <span class="smalltext">';
  143. if (empty($context['fulltext_index']) && empty($context['cannot_create_fulltext']))
  144. echo '
  145. <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_no_index_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createfulltext;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_method_fulltext_create'], '</a>]';
  146. elseif (empty($context['fulltext_index']) && !empty($context['cannot_create_fulltext']))
  147. echo '
  148. <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_fulltext_cannot_create'];
  149. else
  150. echo '
  151. <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_already_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removefulltext;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_method_fulltext_remove'], '</a>]<br />
  152. <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['fulltext_length'];
  153. echo '
  154. </span>
  155. </dd>';
  156. }
  157. echo '
  158. <dt>
  159. <input type="radio" name="search_index" value="custom"', !empty($modSettings['search_index']) && $modSettings['search_index'] == 'custom' ? ' checked="checked"' : '', $context['custom_index'] ? '' : ' onclick="alert(\'' . $txt['search_index_custom_warning'] . '\'); selectRadioByName(this.form.search_method, \'1\');"', ' class="input_radio" />
  160. ', $txt['search_index_custom'], '
  161. </dt>
  162. <dd>
  163. <span class="smalltext">';
  164. if ($context['custom_index'])
  165. echo '
  166. <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_already_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removecustom;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_remove'], '</a>]<br />
  167. <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['custom_index_length'];
  168. elseif ($context['partial_custom_index'])
  169. echo '
  170. <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_partial'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removecustom;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_remove'], '</a>] [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex;resume;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_resume'], '</a>]<br />
  171. <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['custom_index_length'];
  172. else
  173. echo '
  174. <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_no_index_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex">', $txt['search_index_create_custom'], '</a>]';
  175. echo '
  176. </span>
  177. </dd>';
  178. foreach ($context['search_apis'] as $api)
  179. {
  180. if (empty($api['label']) || $api['has_template'])
  181. continue;
  182. echo '
  183. <dt>
  184. <input type="radio" name="search_index" value="', $api['setting_index'], '"', !empty($modSettings['search_index']) && $modSettings['search_index'] == $api['setting_index'] ? ' checked="checked"' : '', ' class="input_radio" />
  185. ', $api['label'] ,'
  186. </dt>';
  187. if ($api['desc'])
  188. echo '
  189. <dd>
  190. <span class="smalltext">', $api['desc'], '</span>
  191. </dd>';
  192. }
  193. echo '
  194. </dl>
  195. </fieldset>
  196. <fieldset class="search_settings floatright">
  197. <legend>', $txt['search_method'], '</legend>
  198. <input type="checkbox" name="search_force_index" id="search_force_index_check" value="1"', empty($modSettings['search_force_index']) ? '' : ' checked="checked"', ' class="input_check" /><label for="search_force_index_check">', $txt['search_force_index'], '</label><br />
  199. <input type="checkbox" name="search_match_words" id="search_match_words_check" value="1"', empty($modSettings['search_match_words']) ? '' : ' checked="checked"', ' class="input_check" /><label for="search_match_words_check">', $txt['search_match_words'], '</label>
  200. </fieldset>
  201. <hr class="hrcolor clear" />
  202. <input type="submit" name="save" value="', $txt['search_method_save'], '" class="button_submit" />
  203. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  204. <input type="hidden" name="', $context['admin-msmpost_token_var'], '" value="', $context['admin-msmpost_token'], '" />
  205. <br class="clear_right" />
  206. </div>
  207. <span class="botslice clear"><span></span></span>
  208. </div>
  209. </form>
  210. </div>
  211. <br class="clear" />';
  212. }
  213. function template_create_index()
  214. {
  215. global $context, $settings, $options, $scripturl, $txt;
  216. echo '
  217. <div id="admincenter">
  218. <form action="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex;step=1" method="post" accept-charset="', $context['character_set'], '" name="create_index">
  219. <div class="cat_bar">
  220. <h3 class="catbg">', $txt['search_create_index'], '</h3>
  221. </div>
  222. <div class="windowbg">
  223. <span class="topslice"><span></span></span>
  224. <div class="content">
  225. <dl class="settings">
  226. <dt>
  227. <label for="predefine_select">', $txt['search_predefined'], ':</label>
  228. </dt>
  229. <dd>
  230. <select name="bytes_per_word" id="predefine_select">
  231. <option value="2">', $txt['search_predefined_small'], '</option>
  232. <option value="4" selected="selected">', $txt['search_predefined_moderate'], '</option>
  233. <option value="5">', $txt['search_predefined_large'], '</option>
  234. </select>
  235. </dd>
  236. </dl>
  237. <hr class="hrcolor" />
  238. <input type="submit" name="save" value="', $txt['search_create_index_start'], '" class="button_submit" />
  239. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  240. <br class="clear_right" />
  241. </div>
  242. <span class="botslice"><span></span></span>
  243. </div>
  244. </form>
  245. </div>';
  246. }
  247. function template_create_index_progress()
  248. {
  249. global $context, $settings, $options, $scripturl, $txt;
  250. echo '
  251. <div id="admincenter">
  252. <form action="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex;step=1" name="autoSubmit" method="post" accept-charset="', $context['character_set'], '">
  253. <div class="cat_bar">
  254. <h3 class="catbg">', $txt['search_create_index'], '</h3>
  255. </div>
  256. <div class="windowbg">
  257. <span class="topslice"><span></span></span>
  258. <div class="content">
  259. <div><p>',
  260. $txt['search_create_index_not_ready'], '</p>
  261. <div class="progress_bar">
  262. <div class="full_bar">', $context['percentage'], '%</div>
  263. <div class="green_percent" style="width: ', $context['percentage'], '%;">&nbsp;</div>
  264. </div>
  265. </div>
  266. <hr class="hrcolor" />
  267. <input type="submit" name="b" value="', $txt['search_create_index_continue'], '" class="button_submit" />
  268. <br class="clear_right" />
  269. </div>
  270. <span class="botslice"><span></span></span>
  271. </div>
  272. <input type="hidden" name="step" value="', $context['step'], '" />
  273. <input type="hidden" name="start" value="', $context['start'], '" />
  274. <input type="hidden" name="bytes_per_word" value="', $context['index_settings']['bytes_per_word'], '" />
  275. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  276. </form>
  277. </div>
  278. <br class="clear" />
  279. <script type="text/javascript"><!-- // --><![CDATA[
  280. var countdown = 10;
  281. doAutoSubmit();
  282. function doAutoSubmit()
  283. {
  284. if (countdown == 0)
  285. document.forms.autoSubmit.submit();
  286. else if (countdown == -1)
  287. return;
  288. document.forms.autoSubmit.b.value = "', $txt['search_create_index_continue'], ' (" + countdown + ")";
  289. countdown--;
  290. setTimeout("doAutoSubmit();", 1000);
  291. }
  292. // ]]></script>';
  293. }
  294. function template_create_index_done()
  295. {
  296. global $context, $settings, $options, $scripturl, $txt;
  297. echo '
  298. <div id="admincenter">
  299. <div class="cat_bar">
  300. <h3 class="catbg">', $txt['search_create_index'], '</h3>
  301. </div>
  302. <div class="windowbg">
  303. <span class="topslice"><span></span></span>
  304. <div class="content">
  305. <p>', $txt['search_create_index_done'], '</p>
  306. <p>
  307. <strong><a href="', $scripturl, '?action=admin;area=managesearch;sa=method">', $txt['search_create_index_done_link'], '</a></strong>
  308. </p>
  309. </div>
  310. <span class="botslice"><span></span></span>
  311. </div>
  312. </div>
  313. <br class="clear" />';
  314. }
  315. // Add or edit a search engine spider.
  316. function template_spider_edit()
  317. {
  318. global $context, $settings, $options, $scripturl, $txt;
  319. echo '
  320. <div id="admincenter">
  321. <form action="', $scripturl, '?action=admin;area=sengines;sa=editspiders;sid=', $context['spider']['id'], '" method="post" accept-charset="', $context['character_set'], '">
  322. <div class="cat_bar">
  323. <h3 class="catbg">', $context['page_title'], '</h3>
  324. </div>
  325. <div class="information">
  326. ', $txt['add_spider_desc'], '
  327. </div>
  328. <div class="windowbg">
  329. <span class="topslice"><span></span></span>
  330. <div class="content">
  331. <dl class="settings">
  332. <dt>
  333. <strong><label for="spider_name">', $txt['spider_name'], ':</label></strong><br />
  334. <span class="smalltext">', $txt['spider_name_desc'], '</span>
  335. </dt>
  336. <dd>
  337. <input type="text" name="spider_name" id="spider_name" value="', $context['spider']['name'], '" class="input_text" />
  338. </dd>
  339. <dt>
  340. <strong><label for="spider_agent">', $txt['spider_agent'], ':</label></strong><br />
  341. <span class="smalltext">', $txt['spider_agent_desc'], '</span>
  342. </dt>
  343. <dd>
  344. <input type="text" name="spider_agent" id="spider_agent" value="', $context['spider']['agent'], '" class="input_text" />
  345. </dd>
  346. <dt>
  347. <strong><label for="spider_ip">', $txt['spider_ip_info'], ':</label></strong><br />
  348. <span class="smalltext">', $txt['spider_ip_info_desc'], '</span>
  349. </dt>
  350. <dd>
  351. <textarea name="spider_ip" id="spider_ip" rows="4" cols="20">', $context['spider']['ip_info'], '</textarea>
  352. </dd>
  353. </dl>
  354. <hr class="hrcolor" />
  355. <input type="submit" name="save" value="', $context['page_title'], '" class="button_submit" />
  356. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  357. <input type="hidden" name="', $context['admin-ses_token_var'], '" value="', $context['admin-ses_token'], '" />
  358. <br class="clear_right" />
  359. </div>
  360. <span class="botslice"><span></span></span>
  361. </div>
  362. </form>
  363. </div>
  364. <br class="clear" />';
  365. }
  366. // Show... spider... logs...
  367. function template_show_spider_logs()
  368. {
  369. global $context, $txt, $settings, $scripturl;
  370. echo '
  371. <div id="admincenter">';
  372. // Standard fields.
  373. template_show_list('spider_logs');
  374. echo '
  375. <br />
  376. <div class="cat_bar">
  377. <h3 class="catbg">', $txt['spider_logs_delete'], '</h3>
  378. </div>
  379. <form action="', $scripturl, '?action=admin;area=sengines;sa=logs" method="post" accept-charset="', $context['character_set'], '">
  380. <div class="windowbg">
  381. <span class="topslice"><span></span></span>
  382. <div class="content">
  383. <p>
  384. ', $txt['spider_logs_delete_older'], '
  385. <input type="text" name="older" id="older" value="7" size="3" class="input_text" />
  386. ', $txt['spider_logs_delete_day'], '
  387. </p>
  388. <hr class="hrcolor" />
  389. <input type="submit" name="delete_entries" value="', $txt['spider_logs_delete_submit'], '" onclick="if (document.getElementById(\'older\').value &lt; 1 &amp;&amp; !confirm(\'' . addcslashes($txt['spider_logs_delete_confirm'], "'") . '\')) return false; return true;" class="button_submit" />
  390. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  391. <input type="hidden" name="', $context['admin-sl_token_var'], '" value="', $context['admin-sl_token'], '" />
  392. <br class="clear_right" />
  393. </div>
  394. <span class="botslice"><span></span></span>
  395. </div>
  396. </form>
  397. </div>
  398. <br class="clear" />';
  399. }
  400. // Show... spider... stats...
  401. function template_show_spider_stats()
  402. {
  403. global $context, $txt, $settings, $scripturl;
  404. echo '
  405. <div id="admincenter">';
  406. // Standard fields.
  407. template_show_list('spider_stat_list');
  408. echo '
  409. <br />
  410. <div class="cat_bar">
  411. <h3 class="catbg">', $txt['spider_logs_delete'], '</h3>
  412. </div>
  413. <form action="', $scripturl, '?action=admin;area=sengines;sa=stats" method="post" accept-charset="', $context['character_set'], '">
  414. <div class="windowbg">
  415. <span class="topslice"><span></span></span>
  416. <div class="content">
  417. <p>
  418. ', sprintf($txt['spider_stats_delete_older'], '<input type="text" name="older" id="older" value="90" size="3" class="input_text" />'), '
  419. </p>
  420. <hr class="hrcolor" />
  421. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  422. <input type="hidden" name="', $context['admin-ss_token_var'], '" value="', $context['admin-ss_token'], '" />
  423. <input type="submit" name="delete_entries" value="', $txt['spider_logs_delete_submit'], '" onclick="if (document.getElementById(\'older\').value &lt; 1 &amp;&amp; !confirm(\'' . addcslashes($txt['spider_logs_delete_confirm'], "'") . '\')) return false; return true;" class="button_submit" />
  424. <br />
  425. </div>
  426. <span class="botslice"><span></span></span>
  427. </div>
  428. </form>
  429. </div>
  430. <br class="clear" />';
  431. }
  432. ?>