Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
alleditjs.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Edition to affect document
9  *
10  * @author Anakeen 2011
11  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
12  */
13 
14 include_once ("FDL/viewdocjs.php");
15 /**
16  * All edit js scripts in one single file
17  * @param Action &$action current action
18  */
20 {
21  $jurl = "WHAT/Layout";
22  $statics = array(
23  "fckeditor/fckeditor.js",
24  "$jurl/subwindow.js",
25  "$jurl/geometry.js",
26  "$jurl/AnchorPosition.js",
27  "$jurl/PopupWindow.js",
28  "$jurl/DHTMLapi.js",
29  "jscalendar/Layout/calendar.js",
30  "jscalendar/Layout/calendar-setup.js",
31  "FDL/Layout/common.js",
32  "FDL/Layout/viewicard.js",
33  "FDL/Layout/iframe.js",
34  "FDL/Layout/autocompletion.js",
35  "FDC/Layout/inserthtml.js",
36  "FDL/Layout/popupdoc.js",
37  "FDL/Layout/popupdocmenu.js",
38  "$jurl/resizeimg.js",
39  "lib/jscolor/jscolor.js"
40  );
41  if ($action->Read("navigator") == "EXPLORER") {
42  //$statics[]="$jurl/iehover.js";
43 
44  }
45  $lang = substr($action->GetParam("CORE_LANG") , 0, 2);
46  if (preg_match('#^[a-z0-9_\.-]+$#i', $lang) && file_exists("jscalendar/Layout/calendar-" . $lang . ".js")) {
47  $statics[] = "jscalendar/Layout/calendar-" . $lang . ".js";
48  } else {
49  $statics[] = "jscalendar/Layout/calendar-fr.js";
50  }
51 
52  $dynamics = array(
53  "FDL/Layout/editcommon.js",
54  "FDL/Layout/editidoc.js",
55  "FDL/Layout/enum_choice.js",
56  "FDL/Layout/viewdoc.js",
57  );
58 
59  viewdocjs($action);
60  $action->lay->template = "";
61 
62  RessourcePacker::pack_js($action, $statics, $dynamics);
63 }
64 ?>
← centre documentaire © anakeen - published under CC License - Dynacase