Platform  3.1
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  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * javascript utilities for view document
9  *
10  * @author Anakeen 2005
11  * @version $Id: viewdocjs.php,v 1.4 2008/08/12 12:42:10 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage
15  */
16 /**
17  */
18 
19 function viewdocjs(&$action)
20 {
21 
22  setHeaderCache("text/javascript");
23  // set default geo for mini view
24  $mgeo = $action->GetParam("MVIEW_GEO");
25  if (preg_match("/([0-9]+)\+([0-9]+)\+([0-9]+)x([0-9]+)/", $mgeo, $reg)) {
26  $action->lay->set("mgeox", intval($reg[1]));
27  $action->lay->set("mgeoy", intval($reg[2]));
28  $action->lay->set("mgeow", intval($reg[3]));
29  $action->lay->set("mgeoh", intval($reg[4]));
30  } else {
31  $action->lay->set("mgeox", "250");
32  $action->lay->set("mgeoy", "210");
33  $action->lay->set("mgeow", "300");
34  $action->lay->set("mgeoh", "200");
35  }
36 }
37 ?>
← centre documentaire © anakeen - published under CC License - Dynacase