// Fetch variables $view = value("view", "NUMERIC"); if ($view == "0") $view = 1; $clnid = value("oid", "NUMERIC"); $clt = getDBCell("cluster_node", "CLT_ID", "CLNID = $clnid"); if ($view == 1) $variations = populateVariations($clnid, variation()); $clid = getDBCell("cluster_variations", "CLID", "CLNID = $clnid AND VARIATION_ID = $variation"); $name = getDBCell("cluster_node", "NAME", "CLNID = $clnid"); $form = new PanelForm($name, "i_editc.gif", 'cl'); // Order of Panels $pos_clusterPanel = 1; $pos_metaPanel = 2; $pos_objectProp = 3; if (! $aclf->checkAccessToFunction("ED_CL_META_DATA")) $pos_objectProp = 2; // Process actions: if ($action == $lang->get("save") && $errors == "" && $search == "") { processSaveSets(); if ($errors != "") { $form->addToTopText($lang->get("saveerror"));
$form->forbidDelete(true); $handler = new ActionHandler("INSERT"); $handler->addFncAction("createClusterNodeForArticle"); $form->registerActionHandler($handler); $page->add($form); $page->drawAndForward("modules/channels/edit.php?sid={$sid}&oid=<oid>&go=update"); } else { // Flag for configuration of cluster-panel... $clt = getDBCell("channel_articles", "CLT_ID", "ARTICLE_ID = {$oid}"); $isArticle = true; $page_action = "UPDATE"; $clid = syncArticleVariation($oid, $variation); syncCluster($clid); $view = initValue("view", doc() . "view", 1); $title = getDBCell("channel_articles", "TITLE", "ARTICLE_ID = {$clnid}"); $form = new PanelForm($lang->get("edit_article", "Edit Article") . " " . $title, "", 'articlesform'); $form->quickpanel = true; $form->backto = $c["docroot"] . "modules/channels/overview.php?sid={$sid}"; if ($auth->checkAccessToFunction("CHANNEL_EDIT")) { $clusterPanel = new Panel($lang->get("ed_content")); require_once $c["path"] . "modules/common/panel_cluster.inc.php"; $metaPanel = new Panel($lang->get("ed_meta")); require_once $c["path"] . "modules/common/panel_meta.inc.php"; $propPanel = new Panel($lang->get("properties", "Properties")); require_once $c["path"] . "modules/channels/panel_properties.inc.php"; $form->addPanel($clusterPanel); $form->addPanel($metaPanel); $form->addPanel($propPanel); } $page->add($form); $page->draw();
* You should have received a copy of the GNU General Public License * along with N/X; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA **********************************************************************/ require_once "../../config.inc.php"; $auth = new auth("TRANSLATION"); $page = new page("Translation"); $filter = new Filter("internal_resources_languages", "LANGID"); $filter->prevent_sysvar_disp = false; $filter->addRule($lang->get("name"), "NAME", "NAME"); $filter->type_name = "Languages"; $filtermenu = new Filtermenu("Languages", $filter); $filtermenu->tipp = "1. Save often. Even if saving the page takes up to 60 seconds.<br>2. Avoid any special chars if possible.<br>3. Please come back regularly to check if new texts need to be translated.<br>4. If there are any problems email to sven@nx.weih.de !"; $form = new PanelForm($lang->get("translation", "N/X Translation System"), '', 'trans'); $oid = value("oid", "NOSPACES"); $vs = value("sync"); $items = createDBCArray("internal_resources", "RESID", "LANGID='EN'", "ORDER BY RESID"); if ($oid != "0") { $mylang = getDBCell("internal_resources_languages", "NAME", "LANGID = '$oid'"); $editPanel = new Panel("Edit Language: $mylang"); $go = "update"; $page_action = "UPDATE"; if ($page_state == "start") syncronizeLanguage ($oid);
$page_state = "start"; } else if (value("action") == "cr_content" && value("decision") == $lang->get("no")) { header("Location: ".$c["docroot"]."modules/content/objectbrowser.php?sid=$sid"); exit; } else { $form = new YesNoForm($lang->get("cr_vr", "Create variation"), $lang->get("crlib_mes", "The content element does not exists in the selected variation. Do you want to create it?")); $form->add(new Hidden("action", "cr_content")); $form->add(new Hidden("oid", $oid)); $form->add(new Hidden("crvar", $variation)); $handled = true; } } if (! $handled) { $form = new PanelForm($lang->get("edit_content", "Edit Content"). ": " . $name, '', 'con'); if ($aclf->checkAccessToFunction("EDIT_OBJECT")) { $editpanel = new Panel($lang->get("edit_content")); $buttonbar = new ButtonBar("variations"); $buttonbar->selectBoxDescr = true; $buttonbar->setVariationSelector(createNameValueArrayEx("variations", "NAME", "VARIATION_ID", "1"), $variation); $editpanel->add($buttonbar); $editpanel->add(new Subtitle("st", $lang->get("title"))); $oname = new TextInput($lang->get("o_name"), "content", "NAME", $cond, "type:text,width:200,size:32", "MANDATORY&UNIQUE"); $oname->setFilter("CATEGORY_ID = $category_id"); $editpanel->add($oname); $editpanel->add(new TextInput($lang->get('access_key', 'Access Key', 'Key-Value with which you can access this content from the editor by typing [key].'), 'content', 'ACCESSKEY', $cond, "type:text,width:100,size:16",'UNIQUE')); $editpanel->backto = $c["docroot"] . "modules/content/objectbrowser.php?sid=$sid&resetfilter=1&pnode=$category_id"; // Edit