Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
viewdocjs.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * javascript utilities for view document
8  *
9  * @author Anakeen
10  * @version $Id: viewdocjs.php,v 1.4 2008/08/12 12:42:10 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 
18 {
19 
20  setHeaderCache("text/javascript");
21  // set default geo for mini view
22  $mgeo = $action->GetParam("MVIEW_GEO");
23  if (preg_match("/([0-9]+)\+([0-9]+)\+([0-9]+)x([0-9]+)/", $mgeo, $reg)) {
24  $action->lay->set("mgeox", intval($reg[1]));
25  $action->lay->set("mgeoy", intval($reg[2]));
26  $action->lay->set("mgeow", intval($reg[3]));
27  $action->lay->set("mgeoh", intval($reg[4]));
28  } else {
29  $action->lay->set("mgeox", "250");
30  $action->lay->set("mgeoy", "210");
31  $action->lay->set("mgeow", "300");
32  $action->lay->set("mgeoh", "200");
33  }
34 }
35 ?>
global $action
viewdocjs(Action &$action)
Definition: viewdocjs.php:17
setHeaderCache($type)
Definition: pack.php:11
← centre documentaire © anakeen