$auth = new auth("EXPORT"); $page = new page("Export"); $wizard = new Wizard($lang->get("export_data", "Export Content and Templates Wizard")); $wizard->setTitleText($lang->get("wz_export_title", "This wizard is used to exchange clusters, cluster-templates and page-templates between your N/X installation and others. The wizard generates a XML File, which you can store on your local hard drive and exchange with other N/X-Users.")); ////// STEP 1 ////// $step = new Step(); $step->setTitle($lang->get("wzt_export_type", "Select type to export")); $step->setExplanation($lang->get("wze_export_type", "On the right you need to select the type of data you want to export. Clusters are storing content. When you export clusters, the templates are automatically exported too. Cluster-Templates are schemes for creating clusters. Page-Templates are used for creating pages in the website. Cluster-Templates, Meta-Templates and layout are automatically exported when you export a Page-Template.")); $resources[0][0] = $lang->get("cluster", "Cluster"); $resources[0][1] = "CLUSTER"; $resources[1][0] = $lang->get("cluster_template", "Cluster Template"); $resources[1][1] = "CLUSTERTEMPLATE"; $resources[2][0] = $lang->get("page_template", "Page Template"); $resources[2][1] = "PAGETEMPLATE"; $step->add(new WZRadio("resource_type", $resources)); ////// STEP 2 ////// $step2 = new STSelectResource(); $step2->setTitle($lang->get("wzt_sel_exp_res", "Select Resource for export")); ////// STEP 3 ////// $step3 = new Step(); $step3->setTitle($lang->get("wzt_descr", "Add description")); $step3->setExplanation($lang->get("wzt_descr_expl", "You should add a short description to the exported data.<br/><br/> Anyone who will import the data will easier understand, what he exports.")); $step3->add(new WZText("exp_description", $lang->get("description", "Description"), "TEXTAREA")); ////// Step 4 ////// $step4 = new STExportResource(); $wizard->add($step); $wizard->add($step2); $wizard->add($step3); $wizard->add($step4); $page->add($wizard); $page->draw();
require_once $c["path"] . "api/userinterface/wizard/stcheckarchive.php"; require_once $c["path"] . "api/userinterface/wizard/stimportimages.php"; $wizard = new Wizard($lang->get("imp_impages", "Import Images")); $wizard->setTitleText($lang->get("wz_import_im_title", "This wizard is used for importing importing images to N/X. Pack the images into a zip archive. The wizard will then create the data.")); if ($wizard->firstRun) { $_SESSION["archivefolder"] = ""; } ////// STEP 1 ////// $step1 = new Step(); $step1->setTitle($lang->get("wzt_archive_file", "Select Archive")); $step1->setExplanation($lang->get("wze_archive_file", "Please select the zip-archive you want to import. The images must be into that archive in a flat structure, having no folders.")); $step1->add(new WZUploadArchive("upload")); $step2 = new STCheckArchive(); $step2->setTitle($lang->get("wzt_ach_check", "Check Archive")); $step2->setExplanation($lang->get("wze_arch_check", "Please control the result of the archive checks and press next if you want to resume.")); $step3 = new Step(); $step3->setTitle($lang->get("wzt_dest_folder", "Select destination folder")); $step3->setExplanation($lang->get("wze_dest_folder", "Please select the folder, where all the new pictures will be copied to.")); $folders = array(); createFolders($folders, ' / ', 0); $step3->add(new WZSelect('folder', $lang->get("dest_folder", "Destination folder"), $folders)); $step4 = new STImportImages(); $step4->setTitle($lang->get("wzt_imp_imag", "Importing images...")); $wizard->add($step1); $wizard->add($step2); $wizard->add($step3); $wizard->add($step4); $page->add($wizard); $page->draw(); $db->close(); echo $errors;
$step->setExplanation($lang->get("wze_articleimport_target", "On the right you need to select the target channel. All imported articles will be stored within this channel.")); ////// STEP 2 ////// $step2 = new Step(); $step2->setTitle($lang->get("wzt_articleimport_srctype", "Select source type")); $step2->setExplanation($lang->get("wze_articleimport_srctype", "Please select the type of source you want to import the articles from.")); $source_types[0][0] = $lang->get("multipage", "Multipage"); $source_types[0][1] = "PAGE"; //$source_types[1][0] = $lang->get("channel"); //$source_types[1][1] = "CHANNEL"; //$source_types[2][0] = $lang->get("cluster"); //$source_types[2][1] = "CLUSTER"; $step2->add(new WZRadio("source_type", $source_types)); ////// Step 3 ////// // determine singlepages $sql = "Select distinct sm.MENU_ID FROM sitemap sm, sitepage_master spm WHERE sm.SPM_ID = spm.SPM_ID and sm.VERSION=0"; $query = new query($db, $sql); $sourcePages = array(); while ($query->getrow()) { $sourcePages[] = array(backTrail($query->field("MENU_ID")), $query->field("MENU_ID")); } sort($sourcePages); $step3 = new Step(); $step3->add(new WZSelect("menuid", $lang->get("wz_imp_selcl", "Zu importierenden Knoten wählen"), $sourcePages)); $stepx = new STImportToChannel(); $wizard->add($step); $wizard->add($step2); $wizard->add($step3); $wizard->add($stepx); $page->add($wizard); $page->draw(); echo $errors;
* * 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"; require_once $c["path"] . "modules/syndication/stcheckresource.php"; require_once $c["path"] . "modules/syndication/stimportresource.php"; $auth = new auth("IMPORT"); $page = new page("IMPORT"); $wizard = new Wizard($lang->get("import_data", "Import N/X-XML Data")); $wizard->setTitleText($lang->get("wz_import_title", "This wizard is used for importing data to N/X, which has formerly been exported with another N/X installation. You must delete a resource before you can import it for a second time.")); ////// STEP 1 ////// $step = new Step(); $step->setTitle($lang->get("wzt_import_file", "Select N/X-XML File")); $step->setExplanation($lang->get("wze_import_file", "Please choose a N/X-XML file from your harddisk for upload into the system.<br/><br/>The system will perform a check and will display status information on the next page.")); $step->add(new WZUpload("upload")); ////// STEP 2 ////// $step2 = new STCheckResource(); $step2->setTitle($lang->get("wzt_import_val", "Summary of uploaded xml")); $step2->setExplanation($lang->get("wze_import_val", "The system has checked the correctness of the uploaded XML file. Read the report on the left for details.")); ////// STEP 3 ////// $step3 = new STImportResource(); $step3->setTitle($lang->get("wzt_importing", "Importing data")); $step3->setExplanation($lang->get("wze_importing", "The system has tried to import the data. Check the status on the right.")); $wizard->add($step); $wizard->add($step2); $wizard->add($step3); $page->add($wizard); $page->draw(); $db->close();