76 include_once (
"Class.Action.php");
83 $actname = $_GET[
"action"];
88 $actcalled->Set($actname, $appcalled,
$action->session);
91 $query->order_by =
"toc_order";
92 $query->basic_elem->sup_where = array(
95 "id_application=" . $appcalled->id
100 while (list($k, $v) = each(
$query->list)) {
101 $v->Set($v->name, $actcalled->parent, $actcalled->session);
102 if ($v->HasPermission($v->acl)) {
103 $toc[$itoc][
"classlabel"] = ($v->name == $actcalled->name ?
"TABLabelSelected" :
"TABLabel");
104 $toc[$itoc][
"classcell"] = ($v->name == $actcalled->name ?
"TABBackgroundSelected" :
"TABBackground");
105 $toc[$itoc][
"base"] =
$action->parent->GetParam(
"CORE_BASEURL");
106 $toc[$itoc][
"app"] = $actcalled->parent->name;
107 $toc[$itoc][
"action"] = $v->name;
108 $limg = ($v->name == $actcalled->name ?
"tabselected.png" :
"tab.png");
109 $toc[$itoc][
"img"] =
$action->parent->GetImageUrl($limg);;
110 if (substr($v->short_name, 0, 1) ==
'&') {
111 $sn = substr($v->short_name, 1, strlen($v->short_name));
112 $toc[$itoc][
"label"] = $actcalled->text($sn);
114 $toc[$itoc][
"label"] = _($v->short_name);
121 $action->lay->SetBlockCorresp(
"TAG",
"TAG_LABELCLASS",
"classlabel");
122 $action->lay->SetBlockCorresp(
"TAG",
"TAG_CELLBGCLASS",
"classcell");
123 $action->lay->SetBlockCorresp(
"TAG",
"TAG_ENTRYURLROOT",
"base");
124 $action->lay->SetBlockCorresp(
"TAG",
"TAG_ENTRYAPP",
"app");
125 $action->lay->SetBlockCorresp(
"TAG",
"TAG_ENTRYPAGE",
"action");
126 $action->lay->SetBlockCorresp(
"TAG",
"TAG_ENTRYIMG",
"img");
127 $action->lay->SetBlockCorresp(
"TAG",
"TAG_ENTRYLABEL",
"label");
128 $action->lay->SetBlockData(
"TAG", $toc);
129 $action->lay->SetBlockCorresp(
"COMPLETE",
"TAG_CELLBGCLASS",
"classcell");
130 $action->lay->SetBlockData(
"COMPLETE", $toc);
131 if ($appcalled->with_frame ==
"Y") {
132 $action->lay->set(
"TARGET",
"main");
134 $action->lay->set(
"TARGET",
"_self");
136 $action->lay->SetBlockData(
"NOTAG", NULL);
138 $action->lay->SetBlockData(
"TAG", NULL);
139 $action->lay->SetBlockCorresp(
"NOTAG",
"TAG_NONE",
"notag");
140 $action->lay->SetBlockData(
"NOTAG", array(