Beispiel #1
0
$EnableUAC = new SelectItemtitle("EnableUAC", $InfoBule_EnableUAC);
$EnableUAC->setElements($EnableDisabled);
$EnableUAC->setElementsVal($truefalse);
$f->add(new TrFormElement(_T('UAC', 'imaging') . ":", $EnableUAC), array("value" => "false", "required" => True));
//_____________
$EnableFirewall = new SelectItemtitle("EnableFirewall", $InfoBule_EnableFirewall);
$EnableFirewall->setElements($EnableDisabled);
$EnableFirewall->setElementsVal($truefalse);
$f->add(new TrFormElement(_T('Enable Firewall', 'imaging') . ":", $EnableFirewall), array("value" => "true", "required" => True));
//_____________
$CEIPEnabled = new SelectItemtitle("CEIPEnabled", $InfoBule_CEIPEnabled);
$CEIPEnabled->setElements($EnableDisabled);
$CEIPEnabled->setElementsVal(array('1', '0'));
$f->add(new TrFormElement(_T('Customer Experience Improvement Program (CEIP)', 'imaging') . ":", $CEIPEnabled), array("value" => "0", "required" => True));
//_____________
$BGC = new SelectItemtitle("BGC", $InfoBule_SystemDefaultBackgroundColor);
$BGC->setElements($suite0_24);
$BGC->setElementsVal($suite0_24);
$f->add(new TrFormElement(_T('System Background Colour', 'imaging') . ":", $BGC), array("value" => "2", "required" => True));
//_____________
$img_background = new IconeElement("System_Background_Colour", "modules/imaging/img/bcgwindows81.png", "", $InfoBule_backgroundWin81);
$rr = new TrFormElementcollapse($img_background);
$rr->setstyle("text-align: center;");
$f->add($rr);
$bo = new buttonTpl('bvalid', _T("Validate", 'imaging'), 'btnPrimary', _T("Create Xml Windows Answer File Generator", "imaging"));
$rr = new TrFormElementcollapse($bo);
$rr->setstyle("text-align: center;");
$f->add($rr);
$f->add(new TrFormElement("", new multifieldTpl(array(new SpanElementtitle(_T("Xml Windows Answer File Generator", "imaging"), Null, $InfoBule_showxml), new Iconereply('awfg_show', $InfoBule_showxml)))));
$f->display();
//     //_____________
Beispiel #2
0
$MachineOOBE = new SelectItemtitle("MachineOOBE", $InfoBule_MachineOOBE);
$MachineOOBE->setElements($yes_no);
$MachineOOBE->setElementsVal($truefalse);
$f->add(new TrFormElement(_T('Skip machine OOBE', 'imaging') . ":", $MachineOOBE), array("value" => isset($parameters) ? $parameters['MachineOOBE'] : "true", "required" => True));
//_____________
$UserOOBE = new SelectItemtitle("UserOOBE", $InfoBule_UserOOBE);
$UserOOBE->setElements($yes_no);
$UserOOBE->setElementsVal($truefalse);
$f->add(new TrFormElement(_T('Skip user OOBE', 'imaging') . ":", $UserOOBE), array("value" => isset($parameters) ? $parameters['UserOOBE'] : "true", "required" => True));
//_____________
$ControlPanelView = new SelectItemtitle("ControlPanelView", $InfoBule_ControlPanelView);
$ControlPanelView->setElements(array(_T('Category View', "imaging"), _T('Classic View', "imaging")));
$ControlPanelView->setElementsVal(array('0', '1'));
$f->add(new TrFormElement(_T('Control Panel View', 'imaging') . ":", $ControlPanelView), array("value" => isset($parameters) ? $parameters['ControlPanelView'] : "1", "required" => True));
//_____________
$ControlPanelIconSize = new SelectItemtitle("ControlPanelIconSize", $InfoBule_ControlPanelIconSize);
$ControlPanelIconSize->setElements(array(_T('Large', "imaging"), _T('Small', "imaging")));
$ControlPanelIconSize->setElementsVal(array('0', '1'));
$f->add(new TrFormElement(_T('Control Panel Icon Size', 'imaging') . ":", $ControlPanelIconSize), array("value" => isset($parameters) ? $parameters['ControlPanelIconSize'] : "0", "required" => True));
$f->pop();
$f->add(new SepTpl());
//==== NEW SECTION ====
// Administrators Accounts
//=====================
$f->add(new TitleElement(_T("Administrators Account", "imaging")));
$f->add(new TrFormElement("", new Iconereply('Administrators_Account', $InfoBule_Administrators_Account)));
$f->push(new Table());
//_____________
$f->add(new TrFormElement(_T('Password', 'imaging'), new InputTplTitle('PasswordAdmin', $InfoBule_PasswordAdmin)), array("required" => True, "value" => isset($parameters) ? $parameters['PasswordAdmin'] : "bQBhAG4AZAByAGkAdgBhAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA=="));
//AdministratorPassword
$bo = new buttonTpl('bvalid', _T("Validate", 'imaging'), 'btnPrimary', _T("Create Xml Windows Answer File Generator", "imaging"));
Beispiel #3
0
$f->push(new Table());
$f->add(new TrFormElement(_T("Active", "inventory"), new CheckboxTpl('active')), array("value" => $rule[0]['actif'] == 1 ? 'checked' : ''));
$selectOperatorType = new SelectItemtitle("operator[]", _T('selection from this item', 'inventory') . "\n");
$selectOperatorType->setElements($operatorType);
$selectOperatorType->setElementsVal($operatorType);
$aggregator_select = new SelectItemtitle("aggregator", _T('aggregator a rule', 'inventory') . "\n" . _T('AND all rules TRUE select entitie', 'inventory') . "\n" . _T('OR one rule TRUE select entitie', 'inventory') . "\n" . _T('NONE rule TRUE select entitie', 'inventory'));
$aggregator_select->setElements(array('AND', 'OR', 'NONE'));
$aggregator_select->setElementsVal(array('AND', 'OR', ''));
$f->add(new TrFormElement(_T('Aggregator', 'inventory'), $aggregator_select), array("value" => $rule[0]['aggregator']));
// or sans aggregator
//$f->add(new HiddenTpl("aggregator"), array("value" => "", "hide" => True));
$operator_select = new SelectItemtitle("operators[]", _T('Match', 'inventory') . ":\n" . _T(' regular expression', 'inventory') . "\n" . _T(' special characters must be escaped in regular expressions', 'inventory') . "\n" . _T(' .^$*+?()[{\\|') . "\n" . _T(' not start with word   /^(?!my string).*$/', 'inventory') . "\n" . _T(' start with my string /^my string.*$/', 'inventory') . "\n" . _T(' does not contain /^((?!my string).)*$/', 'inventory') . "\n" . _T(' egal to or contains', 'inventory') . "/my string/" . "\n" . _T(' finishes by  /.*(my string)$/', 'inventory') . "\n\n" . _T('Equal or noequal', 'inventory') . ":\n" . _T(' strictly equal or inequality', 'inventory') . "\n\n" . _T('Contains or NoContains', 'inventory') . ":\n" . _T(' has value or not', 'inventory') . "\n\n" . _T('Starts by or Finishes', 'inventory') . ":\n" . _T(' begins or ends with value', 'inventory'));
$operators = array("match" => _T('matches (regex)', 'inventory'), "equal" => _T('equal', 'inventory'), "noequal" => _T('not equal', 'inventory'), "contains" => _T('contains', 'inventory'), "nocontains" => _T('not contains', 'inventory'), "starts" => _T('starts by', 'inventory'), "finishes" => _T('finishes by', 'inventory'));
$operator_select->setElements(array_values($operators));
$operator_select->setElementsVal(array_keys($operators));
$locations_select = new SelectItemtitle("target_location[]", _T('entities list', 'inventory'));
$location_list = array();
foreach ($entity['data'] as $location) {
    $location_list[$location['id']] = $location['Label'];
}
$locations_select->setElements(array_values($location_list));
$locations_select->setElementsVal(array_keys($location_list));
$pattern_input = new InputTplTitle('patterns[]', _T('regular expression or value', 'inventory') . "\n" . _T('must not contain space character', 'inventory') . "\n");
for ($i = 0; $i < count($rule); $i++) {
    // Fields//$criteria_select,
    $fields = array(new SpanElement("<br>"), $locations_select, new SpanElement("<br>"), $selectOperatorType, new SpanElement("<br>"), $operator_select, new SpanElement("<br>"), $pattern_input, new SpanElement("<br>"), new buttonTpl2('removeLine', _T('Remove', 'inventory'), 'removeLine'));
    $values = array("", locationtoid($entity, $rule[$i]['entitie']), "", $rule[$i]['operand1'], "", $rule[$i]['operator'], "", $rule[$i]['operand2'], "");
    $f->add(new TrFormElement(_T('Criterion', 'inventory'), new multifieldTpl($fields)), array("value" => $values, "required" => True));
}
// Add line button
$addEntityRightBtn = new buttonTpl2('addLine', _T('Add criterion', 'inventory'));
Beispiel #4
0
$f->add(new TrFormElement(_T('Group', 'imaging') . ":", $Group), array("value" => isset($parameters) ? $parameters['Group'] : "Users", "required" => True));
//_____________
$f->add(new TrFormElement(_T('Description', 'imaging'), new InputTplTitle('Description', $InfoBule_Description)), array("value" => isset($parameters) ? $parameters['Description'] : "Temp", "required" => True));
//_____________
$f->add(new TrFormElement(_T('Password: (Optional)', 'imaging'), new InputTplTitle('Password', $InfoBule_Password)), array("value" => isset($parameters) ? $parameters['Password'] : ""));
//_____________
$Autologon = new SelectItemtitle("Autologon", $InfoBule_Autologon);
$Autologon->setElements($yes_no);
$Autologon->setElementsVal($truefalse);
$f->add(new TrFormElement(_T('Auto Logon', 'imaging') . ":", $Autologon), array("value" => isset($parameters) ? $parameters['Autologon'] : "true", "required" => True));
//_____________
$EnableUAC = new SelectItemtitle("EnableUAC", $InfoBule_EnableUAC);
$EnableUAC->setElements($EnableDisabled);
$EnableUAC->setElementsVal($truefalse);
$f->add(new TrFormElement(_T('UAC', 'imaging') . ":", $EnableUAC), array("value" => isset($parameters) ? $parameters['EnableUAC'] : "false", "required" => True));
//_____________
$EnableFirewall = new SelectItemtitle("EnableFirewall", $InfoBule_EnableFirewall);
$EnableFirewall->setElements($EnableDisabled);
$EnableFirewall->setElementsVal($truefalse);
$f->add(new TrFormElement(_T('Enable Firewall', 'imaging') . ":", $EnableFirewall), array("value" => isset($parameters) ? $parameters['EnableFirewall'] : "true", "required" => True));
$bo = new buttonTpl('bvalid', _T("Validate", 'imaging'), 'btnPrimary', _T("Create Xml Windows Answer File Generator", "imaging"));
$rr = new TrFormElementcollapse($bo);
$rr->setstyle("text-align: center;");
$f->add($rr);
//------------------
//------------------
$f->add(new TrFormElement("", new multifieldTpl(array(new SpanElementtitle(_T("Xml Windows Answer File Generator", "imaging"), Null, 'To have the file on smb://ipPulse/postinst/sysprep/' . "\n" . 'click on Validation', "spanxml"), new Iconereply('awfg_show', $InfoBule_showxml)))));
$f->display();
echo "<div title= 'jffffffffffffffffffffffffffffffffffffffffffffjjj'>";
echo "<pre  id='codeTocopy2' style='width:100%;'></pre>";
echo "</div>";