* N/X is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * 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('SHOPADM'); $width = value("width", "NUMERIC", 600); if ($width < 200) { $width = 200; } drawIFOHeader('', true); $configuratorId = value("value", "NUMERIC", LoadFromSession("configuratorId")); br(); if ($configuratorId != 0) { SaveToSession("configuratorId"); $action = value("go", "NOSPACES", 0); $ar = array(); $ar[] = array("Checkbox", 0); $ar[] = array("Dropdown", 1); $ar[] = array("Textinput", 2); if (sameText($action, "create") || sameText($action, "update")) { don(); $form = new stdEDForm("Create configurator item"); $form->width = 700; $cond = $form->setPK("shop_configurator_item", "GUID"); $form->add(new NonDisplayedValueOnInsert("shop_configurator_item", "CONFIGURATOR_ID", $cond, $configuratorId, "NUMBER"));
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * 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("EXPORT"); // must be adapted for later use. $width = value("width", "NUMERIC") - 50; if ($width < 200) { $width = 200; } drawIFOHeader(); $value = value("value", "NUMERIC"); if ($value != "0") { $clnid = $value; $clt = getDBCell("cluster_node", "CLT_ID", "CLNID = {$value}"); } else { $clt = value("clt", "NUMERIC"); $clnid = "-1"; } td($style); echo $lang->get("sel_clt"); tde(); tr(); $clts = array(); createCLTTree($clts); $sb = new Dropdown("clt", $clts, $style, $clt, $width);