Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
popupeditstate.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * States menu in edit mode
8  *
9  * @author Anakeen
10  * @version $Id: popupeditstate.php,v 1.1 2007/06/27 10:04:29 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 
17 include_once ("FDL/popupdocdetail.php");
19 {
20  $docid = GetHttpVars("id");
21  if ($docid == "") $action->exitError(_("No identificator"));
22  $popup = array();
23 
24  $dbaccess = $action->dbaccess;
26 
27  addStatesPopup($popup, $doc);
28 
29  foreach ($popup as $k => $v) {
30  $popup[$k]["submenu"] = "";
31  $popup[$k]["jsfunction"] = "document.getElementById('seltrans').value='$k';askForTransition(event)";
32  }
33 
34  popupdoc($action, $popup);
35 }
global $action
popupeditstate(Action &$action)
popupdoc(Action &$action, $tlink, $tsubmenu=array())
Definition: popupdoc.php:19
exitError($texterr, $exit=true, $code="")
$docid
Definition: cleanFamily.php:13
addStatesPopup(&$tlink, Doc &$doc)
new_Doc($dbaccess, $id= '', $latest=false)
$dbaccess
Definition: checkVault.php:17
← centre documentaire © anakeen