configure_homepage.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. <?php // $Id: configure_homepage.php 9246 2006-09-25 13:24:53Z bmol $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004 Dokeos S.A.
  6. Copyright (c) 2003 Ghent University (UGent)
  7. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  8. Copyright (c) Olivier Brouckaert
  9. For a full list of contributors, see "credits.txt".
  10. The full license can be read in "license.txt".
  11. This program is free software; you can redistribute it and/or
  12. modify it under the terms of the GNU General Public License
  13. as published by the Free Software Foundation; either version 2
  14. of the License, or (at your option) any later version.
  15. See the GNU General Public License for more details.
  16. Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
  17. ==============================================================================
  18. */
  19. $langFile='admin';
  20. $cidReset=true;
  21. include('../inc/global.inc.php');
  22. $this_section=SECTION_PLATFORM_ADMIN;
  23. api_protect_admin_script();
  24. include_once(api_get_path(LIBRARY_PATH).'fileUpload.lib.php');
  25. $action=$_GET['action'];
  26. $tbl_category=Database::get_main_table(MAIN_CATEGORY_TABLE);
  27. $tool_name=get_lang('ConfigureHomePage');
  28. //$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('PlatformAdmin'));
  29. $menu_language=$_SESSION['user_language_choice'];
  30. if(!isset($menu_language))
  31. {
  32. $menu_language=$platformLanguage;
  33. }
  34. if(!file_exists('../../home/home_menu_'.$menu_language.'.html'))
  35. {
  36. copy('../../home/home_menu.html','../../home/home_menu_'.$menu_language.'.html');
  37. }
  38. $errorMsg='';
  39. if(!empty($action))
  40. {
  41. if($_POST['formSent'])
  42. {
  43. if($action == 'edit_top')
  44. {
  45. $home_top=trim(stripslashes($_POST['home_top']));
  46. if(!is_writable('../../home/home_top.html'))
  47. {
  48. $errorMsg=get_lang('HomePageFilesNotWritable');
  49. }
  50. elseif(!empty($home_top))
  51. {
  52. $fp=fopen('../../home/home_top.html','w');
  53. fputs($fp,$home_top);
  54. fclose($fp);
  55. }
  56. }
  57. elseif($action == 'edit_notice')
  58. {
  59. $notice_title=trim(strip_tags(stripslashes($_POST['notice_title'])));
  60. $notice_text=trim(str_replace(array("\r","\n"),array("","<br />"),strip_tags(stripslashes($_POST['notice_text']),'<a>')));
  61. if(empty($notice_title))
  62. {
  63. $errorMsg=get_lang('PleaseEnterNoticeTitle');
  64. }
  65. elseif(empty($notice_text))
  66. {
  67. $errorMsg=get_lang('PleaseEnterNoticeText');
  68. }
  69. elseif(!is_writable('../../home/home_notice.html'))
  70. {
  71. $errorMsg=get_lang('HomePageFilesNotWritable');
  72. }
  73. else
  74. {
  75. $fp=fopen('../../home/home_notice.html','w');
  76. fputs($fp,"<b>$notice_title</b><br />\n$notice_text");
  77. fclose($fp);
  78. }
  79. }
  80. elseif($action == 'edit_news')
  81. {
  82. $home_news=trim(stripslashes($_POST['home_news']));
  83. if(!is_writable('../../home/home_news.html'))
  84. {
  85. $errorMsg=get_lang('HomePageFilesNotWritable');
  86. }
  87. elseif(!empty($home_news))
  88. {
  89. $fp=fopen('../../home/home_news.html','w');
  90. fputs($fp,$home_news);
  91. fclose($fp);
  92. }
  93. }
  94. elseif($action == 'insert_link' || $action == 'edit_link')
  95. {
  96. $link_index=intval($_POST['link_index']);
  97. $insert_where=intval($_POST['insert_where']);
  98. $link_name=trim(stripslashes($_POST['link_name']));
  99. $link_url=trim(stripslashes($_POST['link_url']));
  100. $link_html=trim(stripslashes($_POST['link_html']));
  101. $filename=trim(stripslashes($_POST['filename']));
  102. $target_blank=$_POST['target_blank']?true:false;
  103. if($link_url == 'http://')
  104. {
  105. $link_url='';
  106. }
  107. elseif(!empty($link_url) && !strstr($link_url,'://'))
  108. {
  109. $link_url='http://'.$link_url;
  110. }
  111. if(!is_writable('../../home/home_menu_'.$menu_language.'.html'))
  112. {
  113. $errorMsg=get_lang('HomePageFilesNotWritable');
  114. }
  115. elseif(empty($link_name))
  116. {
  117. $errorMsg=get_lang('PleaseEnterLinkName');
  118. }
  119. else
  120. {
  121. if($action == 'insert_link' || empty($filename) || strstr($filename,'/') || !strstr($filename,'.html'))
  122. {
  123. $filename=replace_dangerous_char($link_name,'strict').'.html';
  124. }
  125. if(!empty($filename))
  126. {
  127. $filename=str_replace('home_','user_',$filename);
  128. }
  129. if(!strstr($filename,'_'.$menu_language.'.html'))
  130. {
  131. $filename=str_replace('.html','_'.$menu_language.'.html',$filename);
  132. }
  133. $home_menu=file('../../home/home_menu_'.$menu_language.'.html');
  134. if($insert_where < -1 || $insert_where > (sizeof($home_menu) - 1))
  135. {
  136. $insert_where=sizeof($home_menu) - 1;
  137. }
  138. foreach($home_menu as $key=>$enreg)
  139. {
  140. $home_menu[$key]=trim($enreg);
  141. }
  142. if(empty($link_url))
  143. {
  144. $link_url=$rootWeb.'index.php?include='.urlencode($filename);
  145. if(!file_exists($rootSys.'home/'.$filename))
  146. {
  147. $fp=@fopen($rootSys.'home/'.$filename,'w');
  148. if($fp)
  149. {
  150. fputs($fp,get_lang('MyTextHere'));
  151. fclose($fp);
  152. }
  153. }
  154. }
  155. if($action == 'edit_link' && !empty($link_html))
  156. {
  157. $fp=@fopen($rootSys.'home/'.$filename,'w');
  158. if($fp)
  159. {
  160. fputs($fp,$link_html);
  161. fclose($fp);
  162. }
  163. }
  164. if($action == 'insert_link')
  165. {
  166. for($i=sizeof($home_menu);$i;$i--)
  167. {
  168. if($i > $insert_where)
  169. {
  170. $home_menu[$i]=$home_menu[$i-1];
  171. }
  172. else
  173. {
  174. break;
  175. }
  176. }
  177. $home_menu[$insert_where+1]='<li><a href="'.$link_url.'" target="'.($target_blank?'_blank':'_self').'">'.$link_name.'</a></li>';
  178. }
  179. else
  180. {
  181. $home_menu[$link_index]='<li><a href="'.$link_url.'" target="'.($target_blank?'_blank':'_self').'">'.$link_name.'</a></li>';
  182. }
  183. $home_menu=implode("\n",$home_menu);
  184. $fp=fopen('../../home/home_menu_'.$menu_language.'.html','w');
  185. fputs($fp,$home_menu);
  186. fclose($fp);
  187. }
  188. }
  189. if(empty($errorMsg))
  190. {
  191. header('Location: '.$_SERVER['PHP_SELF']);
  192. exit();
  193. }
  194. }
  195. elseif($action == 'open_link')
  196. {
  197. $link=$_GET['link'];
  198. if(strstr($link,'/') || !strstr($link,'.html'))
  199. {
  200. $link='';
  201. $action='';
  202. }
  203. }
  204. elseif($action == 'delete_link')
  205. {
  206. $link_index=intval($_GET['link_index']);
  207. $home_menu=file('../../home/home_menu_'.$menu_language.'.html');
  208. foreach($home_menu as $key=>$enreg)
  209. {
  210. if($key == $link_index)
  211. {
  212. unset($home_menu[$key]);
  213. }
  214. else
  215. {
  216. $home_menu[$key]=trim($enreg);
  217. }
  218. }
  219. $home_menu=implode("\n",$home_menu);
  220. $fp=fopen('../../home/home_menu_'.$menu_language.'.html','w');
  221. fputs($fp,$home_menu);
  222. fclose($fp);
  223. header('Location: '.$_SERVER['PHP_SELF']);
  224. exit();
  225. }
  226. elseif($action == 'edit_top')
  227. {
  228. $home_top=file('../../home/home_top.html');
  229. $home_top=implode('',$home_top);
  230. }
  231. elseif($action == 'edit_notice')
  232. {
  233. $home_notice=file('../../home/home_notice.html');
  234. $notice_title=strip_tags($home_notice[0]);
  235. $notice_text=strip_tags(str_replace('<br />',"\n",$home_notice[1]),'<a>');
  236. }
  237. elseif($action == 'edit_news')
  238. {
  239. $home_news=file('../../home/home_news.html');
  240. $home_news=implode('',$home_news);
  241. }
  242. elseif($action == 'insert_link')
  243. {
  244. $home_menu=file('../../home/home_menu_'.$menu_language.'.html');
  245. }
  246. elseif($action == 'edit_link')
  247. {
  248. $link_index=intval($_GET['link_index']);
  249. $home_menu=file('../../home/home_menu_'.$menu_language.'.html');
  250. $target_blank=false;
  251. $link_name='';
  252. $link_url='';
  253. foreach($home_menu as $key=>$enreg)
  254. {
  255. if($key == $link_index)
  256. {
  257. if(strstr($enreg,'target="_blank"'))
  258. {
  259. $target_blank=true;
  260. }
  261. $link_name=strip_tags($enreg);
  262. $enreg=explode('href="',$enreg);
  263. list($link_url)=explode('"',$enreg[sizeof($enreg)-1]);
  264. if(strstr($link_url,$rootWeb) && strstr($link_url,'?include='))
  265. {
  266. $link_url=explode('?include=',$link_url);
  267. $filename=$link_url[sizeof($link_url)-1];
  268. if(!strstr($filename,'/') && strstr($filename,'.html'))
  269. {
  270. $link_html=file($rootWeb.'home/'.$filename);
  271. $link_html=implode('',$link_html);
  272. $link_url='';
  273. }
  274. else
  275. {
  276. $filename='';
  277. }
  278. }
  279. break;
  280. }
  281. }
  282. }
  283. }
  284. else
  285. {
  286. $result=api_sql_query("SELECT name FROM $tbl_category WHERE parent_id IS NULL ORDER BY tree_pos",__FILE__,__LINE__);
  287. $Categories=api_store_result($result);
  288. }
  289. Display::display_header($tool_name);
  290. //api_display_tool_title($tool_name);
  291. if($action == 'open_link')
  292. {
  293. ?>
  294. <div style="margin-bottom: 10px;">
  295. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">&lt;&lt; <?php echo get_lang('Back'); ?></a>
  296. </div>
  297. <?php
  298. include('../../home/'.$link);
  299. }
  300. elseif($action == 'edit_notice')
  301. {
  302. ?>
  303. <div style="margin-bottom: 10px;">
  304. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">&lt;&lt; <?php echo get_lang('Back'); ?></a>
  305. </div>
  306. <form action="<?php echo $_SERVER['PHP_SELF']; ?>?action=<?php echo $action; ?>" method="post" style="margin:0px;">
  307. <input type="hidden" name="formSent" value="1"/>
  308. <table border="0" cellpadding="5" cellspacing="0">
  309. <?php
  310. if(!empty($errorMsg))
  311. {
  312. ?>
  313. <tr>
  314. <td colspan="2">
  315. <?php
  316. Display::display_normal_message($errorMsg); //main API
  317. ?>
  318. </td>
  319. </tr>
  320. <?php
  321. }
  322. ?>
  323. <tr>
  324. <td nowrap="nowrap"><?php echo get_lang('NoticeTitle'); ?> :</td>
  325. <td><input type="text" name="notice_title" size="30" maxlength="50" value="<?php echo htmlentities($notice_title); ?>" style="width: 350px;"/></td>
  326. </tr>
  327. <tr>
  328. <td nowrap="nowrap" valign="top"><?php echo get_lang('NoticeText'); ?> :</td>
  329. <td><textarea name="notice_text" cols="30" rows="5" wrap="virtual" style="width: 350px;"><?php echo htmlentities($notice_text); ?></textarea></td>
  330. </tr>
  331. <tr>
  332. <td>&nbsp;</td>
  333. <td><input type="submit" value="<?php echo get_lang('Ok'); ?>"/></td>
  334. </tr>
  335. </table>
  336. </form>
  337. <?php
  338. }
  339. elseif($action == 'insert_link' || $action == 'edit_link')
  340. {
  341. ?>
  342. <div style="margin-bottom: 10px;">
  343. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">&lt;&lt; <?php echo get_lang('Back'); ?></a>
  344. </div>
  345. <form action="<?php echo $_SERVER['PHP_SELF']; ?>?action=<?php echo $action; ?>" method="post" style="margin:0px;">
  346. <input type="hidden" name="formSent" value="1"/>
  347. <input type="hidden" name="link_index" value="<?php if($action == 'edit_link') echo $link_index; else echo '0'; ?>"/>
  348. <input type="hidden" name="filename" value="<?php if($action == 'edit_link') echo $filename; else echo ''; ?>"/>
  349. <table border="0" cellpadding="5" cellspacing="0">
  350. <?php
  351. if(!empty($errorMsg))
  352. {
  353. ?>
  354. <tr>
  355. <td colspan="2">
  356. <?php
  357. Display::display_normal_message($errorMsg); //main API
  358. ?>
  359. </td>
  360. </tr>
  361. <?php
  362. }
  363. ?>
  364. <tr>
  365. <td nowrap="nowrap"><?php echo get_lang('LinkName'); ?> :</td>
  366. <td><input type="text" name="link_name" size="30" maxlength="50" value="<?php echo htmlentities($link_name); ?>" style="width: 350px;"/></td>
  367. </tr>
  368. <tr>
  369. <td nowrap="nowrap"><?php echo get_lang('LinkURL'); ?> (<?php echo get_lang('Optional'); ?>) :</td>
  370. <td><input type="text" name="link_url" size="30" maxlength="100" value="<?php if(empty($link_url)) echo 'http://'; else echo htmlentities($link_url); ?>" style="width: 350px;"/></td>
  371. </tr>
  372. <?php if($action == 'insert_link'): ?>
  373. <tr>
  374. <td nowrap="nowrap"><?php echo get_lang('InsertThisLink'); ?> :</td>
  375. <td><select name="insert_where">
  376. <option value="-1"><?php echo get_lang('FirstPlace'); ?></option>
  377. <?php
  378. foreach($home_menu as $key=>$enreg)
  379. {
  380. ?>
  381. <option value="<?php echo $key; ?>" <?php if($formSent && $insert_where == $key) echo 'selected="selected"'; ?> ><?php echo get_lang('After'); ?> &quot;<?php echo trim(strip_tags($enreg)); ?>&quot;</option>
  382. <?php
  383. }
  384. ?>
  385. </select></td>
  386. </tr>
  387. <?php endif; ?>
  388. <tr>
  389. <td nowrap="nowrap"><?php echo get_lang('OpenInNewWindow'); ?> ?</td>
  390. <td><input class="checkbox" type="checkbox" name="target_blank" value="1" <?php if($target_blank) echo 'checked="checked"'; ?> /> <?php echo get_lang('Yes'); ?></td>
  391. </tr>
  392. <?php if($action == 'edit_link' && empty($link_url)): ?>
  393. </table>
  394. <table border="0" cellpadding="5" cellspacing="0" width="100%">
  395. <tr>
  396. <td>
  397. <?php
  398. api_disp_html_area('link_html',isset($_POST['link_html'])?$_POST['link_html']:$link_html,'400px');
  399. ?>
  400. </td>
  401. </tr>
  402. <tr>
  403. <td><input type="submit" value="<?php echo get_lang('Ok'); ?>"/></td>
  404. </tr>
  405. <?php else: ?>
  406. <tr>
  407. <td>&nbsp;</td>
  408. <td><input type="submit" value="<?php echo get_lang('Ok'); ?>"/></td>
  409. </tr>
  410. <?php endif; ?>
  411. </table>
  412. </form>
  413. <?php
  414. }
  415. elseif($action == 'edit_top' || $action == 'edit_news')
  416. {
  417. if($action == 'edit_top')
  418. {
  419. $open='home_top';
  420. }
  421. else
  422. {
  423. $open='home_news';
  424. }
  425. ?>
  426. <div style="margin-bottom: 10px;">
  427. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">&lt;&lt; <?php echo get_lang('Back'); ?></a>
  428. </div>
  429. <form action="<?php echo $_SERVER['PHP_SELF']; ?>?action=<?php echo $action; ?>" method="post" style="margin:0px;">
  430. <input type="hidden" name="formSent" value="1"/>
  431. <?php
  432. if(!empty($errorMsg))
  433. {
  434. Display::display_normal_message($errorMsg); //main API
  435. }
  436. ?>
  437. <table border="0" cellpadding="5" cellspacing="0" width="100%">
  438. <tr>
  439. <td>
  440. <?php
  441. api_disp_html_area($open,isset($_POST[$open])?trim(stripslashes($_POST[$open])):${$open},'400px');
  442. ?>
  443. </td>
  444. </tr>
  445. <tr>
  446. <td><input type="submit" value="<?php echo get_lang('Ok'); ?>"/></td>
  447. </tr>
  448. </table>
  449. </form>
  450. <?php
  451. }
  452. else
  453. {
  454. ?>
  455. <table border="0" cellpadding="5" cellspacing="0" width="100%">
  456. <tr>
  457. <td width="80%" colspan="2">
  458. <a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=edit_top"><img src="../img/edit.gif" border="0" title="<?php echo htmlentities(get_lang('Modify')); ?>"/></a> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=edit_top"><?php echo get_lang('EditHomePage'); ?></a>
  459. </td>
  460. <td width="20%">
  461. <a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=insert_link"><img src="../img/insert_row.png" border="0"/></a> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=insert_link"/><?php echo get_lang('InsertLink'); ?></a>
  462. </td>
  463. </tr>
  464. <tr>
  465. <td width="80%" colspan="2" valign="top">
  466. <table border="0" cellpadding="5" cellspacing="0" width="100%">
  467. <tr>
  468. <td colspan="2">
  469. <?php
  470. include('../../home/home_top.html');
  471. ?>
  472. </td>
  473. </tr>
  474. <tr>
  475. <td width="50%">
  476. <br />
  477. <a href="course_category.php"><img src="../img/edit.gif" border="0" title="<?php echo htmlentities(get_lang('Modify')); ?>"/></a> <a href="course_category.php"><?php echo get_lang('EditCategories'); ?></a>
  478. </td>
  479. <td width="50%">
  480. <br />
  481. <a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=edit_news"><img src="../img/edit.gif" border="0" title="<?php echo htmlentities(get_lang('Modify')); ?>"/></a> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=edit_news"><?php echo get_lang('EditNews'); ?></a>
  482. </td>
  483. </tr>
  484. <tr>
  485. <td width="50%" valign="top">
  486. <table border="0" cellpadding="5" cellspacing="0" width="100%">
  487. <?php
  488. if(sizeof($Categories))
  489. {
  490. foreach($Categories as $enreg)
  491. {
  492. ?>
  493. <tr>
  494. <td><img src="../img/opendir.gif" border="0" alt=""/>&nbsp;<?php echo $enreg['name']; ?></td>
  495. </tr>
  496. <?php
  497. }
  498. unset($Categories);
  499. }
  500. else
  501. {
  502. echo get_lang('NoCategories');
  503. }
  504. ?>
  505. </table>
  506. </td>
  507. <td width="50%" valign="top">
  508. <?php
  509. include('../../home/home_news.html');
  510. ?>
  511. </td>
  512. </tr>
  513. </table>
  514. </td>
  515. <td width="20%" rowspan="3" valign="top">
  516. <div class="menu" style="width: 100%;">
  517. <?php
  518. api_display_language_form();
  519. ?>
  520. <form id="loginform">
  521. <label><?php echo get_lang('LoginName'); ?></label>
  522. <input type="text" id="login" size="15" value="" disabled="disabled" />
  523. <label><?php echo get_lang('UserPassword'); ?></label>
  524. <input type="password" id="password" size="15" disabled="disabled" />
  525. <input type="button" value="<?php echo get_lang('Ok'); ?>" disabled="disabled" />
  526. </form>
  527. <div class="menusection">
  528. <span class="menusectioncaption"><?php echo get_lang('User'); ?></span>
  529. <ul class="menulist">
  530. <li><span style="color: #9D9DA1; font-weight: bold;"><?php echo ucfirst(get_lang('Registration')); ?></span></li>
  531. <li><span style="color: #9D9DA1; font-weight: bold;"><?php echo ucfirst(get_lang('LostPassword')); ?></span></li>
  532. </ul>
  533. </div>
  534. <div class="menusection">
  535. <span class="menusectioncaption"><?php echo ucfirst(get_lang('General')); ?></span>
  536. <ul class="menulist">
  537. <?php
  538. $home_menu=file('../../home/home_menu_'.$menu_language.'.html');
  539. foreach($home_menu as $key=>$enreg)
  540. {
  541. $enreg=trim($enreg);
  542. if(!empty($enreg))
  543. {
  544. $edit_link='<a href="'.$_SERVER['PHP_SELF'].'?action=edit_link&amp;link_index='.$key.'"><img src="../img/edit.gif" border="0" style="margin-top: 2px;" title="'.htmlentities(get_lang('Modify')).'"/></a>';
  545. $delete_link='<a href="'.$_SERVER['PHP_SELF'].'?action=delete_link&amp;link_index='.$key.'" onclick="javascript:if(!confirm(\''.addslashes(htmlentities(get_lang('ConfirmYourChoice'))).'\')) return false;"><img src="../img/delete.gif" border="0" style="margin-top: 2px;" title="'.htmlentities(get_lang('Delete')).'"/></a>';
  546. echo str_replace(array('href="'.$rootWeb.'index.php?include=','</li>'),array('href="'.api_get_path(WEB_CODE_PATH).'admin/'.basename($_SERVER['PHP_SELF']).'?action=open_link&link=','<br />'.$edit_link.' '.$delete_link.'</li>'),$enreg);
  547. }
  548. }
  549. ?>
  550. </ul>
  551. </div>
  552. <br />
  553. &nbsp;&nbsp;<a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=edit_notice"><img src="../img/edit.gif" border="0" title="<?php echo htmlentities(get_lang('Modify')); ?>"/></a> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=edit_notice"><?php echo get_lang('EditNotice'); ?></a>
  554. <div class="note">
  555. <?php
  556. include('../../home/home_notice.html');
  557. ?>
  558. </div>
  559. </div>
  560. </td>
  561. </tr>
  562. </table>
  563. <?php
  564. }
  565. /*
  566. ==============================================================================
  567. FOOTER
  568. ==============================================================================
  569. */
  570. Display::display_footer();
  571. ?>