function loadForm($formPass)
{
    $form = new HtmlForm();
    $form->renderStart("resetFRM", "Enter your Email Address To Recover Password");
    echo "<div>";
    $form->renderTextbox("email", "Email", true, 50, "", "pattern='^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}\$'");
    echo "<span id = 'sMail'></span>";
    echo "</div >";
    $form->renderSubmitEnd("resetForm", "Reset Password");
}
 function outputAcceptedCurrenciesRule($options_values, $selected_value)
 {
     $options = array();
     foreach ($options_values as $rule) {
         $options[] = array("value" => $rule['rule_name'], "contents" => getMsg('SYS', $rule['rule_name']));
     }
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $value = $HtmlForm1->genDropdownSingleChoice(array("onChange" => "try{accepted_currencies_rule_onchange();} catch(ex) {};", "select_name" => "pm_sm_accepted_currencies_rule", "class" => "input-large", "values" => $options, "selected_value" => $selected_value, "id" => "pm_sm_accepted_currencies_rule"));
     return $value;
 }
function loadForm($formPass)
{
    echo "<h1>Reset your Password</h1>";
    $form = new HtmlForm();
    $form->renderStart("resetPasswordForm", "");
    $form->renderPassword("newPassword1", "New Password ", true, 255);
    $form->renderPassword("newPassword2", "Confirm New Password ", true, 255);
    if (!$formPass && !checkPasswordMatch()) {
        echo "<span class='pswdMtchFail'>does not match new password entered</span>";
    }
    $form->renderSubmitEnd("submitReset", "Change Password");
}
 /**
  *
  */
 function output()
 {
     global $application;
     loadCoreFile('html_form.php');
     $HtmlForm = new HtmlForm();
     $request = new Request();
     $request->setView('DateTimeFormat');
     $request->setAction('UpdateDateTimeFormat');
     $formAction = $request->getURL();
     $template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "DateTimeForm"), "DateFormats" => $this->outputDateTimeFormats("date"), "TimeFormats" => $this->outputDateTimeFormats("time"), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     return modApiFunc('TmplFiller', 'fill', "localization/date_settings/", "container.tpl.html", array());
 }
 /**
  *
  */
 function output()
 {
     global $application;
     loadCoreFile('html_form.php');
     $HtmlForm = new HtmlForm();
     $request = new Request();
     $request->setView('WeightUnit');
     $request->setAction('UpdateWeightUnit');
     $formAction = $request->getURL();
     $template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "WeightForm"), "WeightUnit" => modApiFunc("Localization", "getValue", "WEIGHT_UNIT"), "WeightCoeff" => modApiFunc("Localization", "FloatToFormatStr", modApiFunc("Localization", "getValue", "WEIGHT_COEFF"), "weight_coeff"), "CoeffFormat" => modApiFunc("Localization", "format_settings_for_js", "weight_coeff"), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     return modApiFunc('TmplFiller', 'fill', "localization/weight_settings/", "container.tpl.html", array());
 }
 /**
  * @param array $formData
  * @param HtmlForm $form
  *
  * @return bool|string
  * @throws DBUnexpectedError
  * @throws Exception
  * @throws MWException
  */
 public static function processInput(array $formData, HtmlForm $form)
 {
     error_reporting(0);
     global $wgCreateWikiSQLfiles, $IP;
     $DBname = $formData['dbname'];
     $founderName = $formData['founder'];
     wfDebugLog('CreateWiki', 'Creating wiki ' . $DBname . ' with a founder of ' . $founderName);
     $dbw = wfGetDB(DB_MASTER);
     $dbTest = $dbw->query('SHOW DATABASES LIKE ' . $dbw->addQuotes($DBname) . ';');
     $rows = $dbTest->numRows();
     $dbTest->free();
     if ($rows !== 0) {
         return wfMessage('createwiki-error-dbexists')->plain();
     }
     $farmerLogEntry = new ManualLogEntry('farmer', 'createandpromote');
     $farmerLogEntry->setPerformer($form->getUser());
     $farmerLogEntry->setTarget($form->getTitle());
     $farmerLogEntry->setComment($formData['comment']);
     $farmerLogEntry->setParameters(array('4::wiki' => $DBname, '5::founder' => $founderName));
     $farmerLogID = $farmerLogEntry->insert();
     $farmerLogEntry->publish($farmerLogID);
     $dbw->query('SET storage_engine=InnoDB;');
     $dbw->query('CREATE DATABASE ' . $dbw->addIdentifierQuotes($DBname) . ';');
     $dbw->selectDB($DBname);
     foreach ($wgCreateWikiSQLfiles as $file) {
         $dbw->sourceFile($file);
     }
     $dbw->insert('site_stats', array('ss_row_id' => 1));
     $dbw->close();
     // Add DNS record to cloudflare
     global $wgCreateWikiUseCloudFlare, $wgCloudFlareUser, $wgCloudFlareKey;
     if ($wgCreateWikiUseCloudFlare) {
         $domainPrefix = substr($DBname, 0, -4);
         $cloudFlare = new cloudflare_api($wgCloudFlareUser, $wgCloudFlareKey);
         $cloudFlareResult = $cloudFlare->rec_new('orain.org', 'CNAME', $domainPrefix, 'lb.orain.org');
         if (!is_object($cloudFlareResult) || $cloudFlareResult->result !== 'success') {
             wfDebugLog('CreateWiki', 'CloudFlare FAILED to add CNAME for ' . $domainPrefix . '.orain.org');
         } else {
             wfDebugLog('CreateWiki', 'CloudFlare CNAME added for ' . $domainPrefix . '.orain.org');
         }
     } else {
         wfDebugLog('CreateWiki', 'CloudFlare is not enabled.');
     }
     // Create local account for founder (hack)
     $out = exec("php5 {$IP}/extensions/CentralAuth/maintenance/createLocalAccount.php " . escapeshellarg($founderName) . ' --wiki ' . escapeshellarg($DBname));
     if (!strpos($out, 'created')) {
         wfDebugLog('CreateWiki', 'Failed to create local account for founder.');
         return wfMessage('createwiki-error-usernotcreated')->plain();
     }
     require_once "{$IP}/includes/UserRightsProxy.php";
     // Grant founder sysop and bureaucrat rights
     $founderUser = UserRightsProxy::newFromName($DBname, $founderName);
     $newGroups = array('sysop', 'bureaucrat');
     array_map(array($founderUser, 'addGroup'), $newGroups);
     $founderUser->invalidateCache();
     $form->getOutput()->addWikiMsg('createwiki-success', $DBname);
     wfDebugLog('CreateWiki', 'Successfully created ' . $DBname . ' with a founder of ' . $founderName);
     return true;
 }
 function output()
 {
     global $application;
     $settings = modApiFunc('Product_Files', 'getSettings');
     $template_contents = array('HLTLField' => HtmlForm::genInputTextField('25', 'pf_sets[HL_TL]', '5', $settings['HL_TL']), 'HLMaxTryField' => HtmlForm::genInputTextField('25', 'pf_sets[HL_MAX_TRY]', '5', $settings['HL_MAX_TRY']), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("product_files/settings/", "container.tpl.html", array());
 }
 function output()
 {
     global $application;
     $settings = modApiFunc('Quick_Books', 'getSettings');
     $op_as_inv_select = array("select_name" => "qbs[OP_AS_INV]", "selected_value" => $settings['OP_AS_INV'], 'class' => 'form-control input-sm input-xsmall', "values" => array(array('value' => 'Y', 'contents' => getMsg('QB', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('QB', 'LBL_NO'))));
     $template_contents = array("TrnsClassField" => HtmlForm::genInputTextField('255', 'qbs[TRNS_CLASS]', '70', $settings['TRNS_CLASS']), "AccTaxField" => HtmlForm::genInputTextField('255', 'qbs[ACC_TAX]', '70', $settings['ACC_TAX']), "AccProductField" => HtmlForm::genInputTextField('255', 'qbs[ACC_PRODUCT]', '70', $settings['ACC_PRODUCT']), "AccShippingField" => HtmlForm::genInputTextField('255', 'qbs[ACC_SHIPPING]', '70', $settings['ACC_SHIPPING']), "AccInventoryField" => HtmlForm::genInputTextField('255', 'qbs[ACC_INVENTORY]', '70', $settings['ACC_INVENTORY']), "AccGlobalDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_GLOBAL_DISCOUNT]', '70', $settings['ACC_GLOBAL_DISCOUNT']), "AccPromoCodeDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_PROMOCODE_DISCOUNT]', '70', $settings['ACC_PROMOCODE_DISCOUNT']), "AccQuantityDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_QUANTITY_DISCOUNT]', '70', $settings['ACC_QUANTITY_DISCOUNT']), "OpAsInvField" => HtmlForm::genDropdownSingleChoice($op_as_inv_select), "MinQISField" => HtmlForm::genInputTextField('255', 'qbs[MIN_QIS]', '70', $settings['MIN_QIS']), "AccCOGSField" => HtmlForm::genInputTextField('255', 'qbs[ACC_COGS]', '70', $settings['ACC_COGS']), "OrdersPrefixField" => HtmlForm::genInputTextField('255', 'qbs[QB_ORDERS_PREFIX]', '70', $settings['QB_ORDERS_PREFIX']), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("quick_books/settings/", "container.tpl.html", array());
 }
 function output()
 {
     global $application;
     $cats_select = array('select_name' => 'ProductCategory', 'id' => 'ProductCategory', 'selected_value' => 1, 'values' => array());
     $cats = modApiFunc("Catalog", "getSubcategoriesFullListWithParent", 1, false);
     foreach ($cats as $cat) {
         $cats_select['values'][] = array('value' => $cat['id'], 'contents' => str_repeat('&nbsp;&nbsp;', $cat['level']) . $cat['name']);
     }
     $template_contents = array('ProductListSubcategories' => HtmlForm::genDropdownSingleChoice($cats_select, ' style="width: 290px; font-family: courier new; font-size: 11px;"'), 'CategoriesPaths' => $this->outputCategoriesPaths($cats));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("catalog/export_products/", "container-2.tpl.html", array());
 }
 function output()
 {
     global $application;
     $settings = modApiFunc('Manufacturers', 'getSettings');
     $ag_select = array("select_name" => "pi_sets[AUTO_GEN_MAIN_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_MAIN_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('MNF', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('MNF', 'LBL_NO'))));
     $ag_param = '';
     if (!function_exists('gd_info')) {
         $ag_select["selected_value"] = "N";
         $ag_param = 'disabled';
     }
     $template_contents = array('TSField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMB_SIDE]', '5', $settings['THUMB_SIDE']), 'TPLField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMBS_PER_LINE]', '5', $settings['THUMBS_PER_LINE']), 'AGField' => HtmlForm::genDropdownSingleChoice($ag_select, $ag_param), 'MISField' => HtmlForm::genInputTextField('25', 'pi_sets[MAIN_IMAGE_SIDE]', '5', $settings['MAIN_IMAGE_SIDE'], $ag_param), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("manufacturers/settings/", "container.tpl.html", array());
 }
Beispiel #11
0
function afficher_formulaire_identification($profil,$mode='normal',$nom='')
{
  $affichage = '';
  if($profil=='webmestre')
  {
    $affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="1" autocomplete="off" /><br />'.NL;
    $affichage .= '<span class="tab"></span><input id="f_login" name="f_login" type="hidden" value="'.$profil.'" /><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="'.$profil.'" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="2" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg">&nbsp;</label><br />'.NL;
    $affichage .= '<span class="tab"></span><a id="lien_lost" href="#webmestre">[ Identifiants perdus ]</a>'.NL;
  }
  elseif($profil=='partenaire')
  {
    // Lecture d'un cookie sur le poste client servant à retenir le dernier partenariat sélectionné si identification avec succès
    $selection = (isset($_COOKIE[COOKIE_PARTENAIRE])) ? Clean::entier($_COOKIE[COOKIE_PARTENAIRE]) : FALSE ;
    $options_partenaires = HtmlForm::afficher_select(DB_WEBMESTRE_SELECT::DB_OPT_partenaires_conventionnes() , FALSE /*select_nom*/ , '' /*option_first*/ , $selection , '' /*optgroup*/ );
    $affichage .= '<label class="tab" for="f_partenaire">Partenariat :</label><select id="f_partenaire" name="f_partenaire" tabindex="1" class="t9">'.$options_partenaires.'</select><br />'.NL;
    $affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="2" autocomplete="off" /><br />'.NL;
    $affichage .= '<span class="tab"></span><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="'.$profil.'" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="3" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg">&nbsp;</label><br />'.NL;
    $affichage .= '<span class="tab"></span><a id="lien_lost" href="#partenaire">[ Identifiants perdus ]</a>'.NL;
  }
  elseif($profil=='developpeur')
  {
    $affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="1" autocomplete="off" /><br />'.NL;
    $affichage .= '<span class="tab"></span><input id="f_login" name="f_login" type="hidden" value="'.$profil.'" /><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="'.$profil.'" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="2" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg">&nbsp;</label><br />'.NL;
  }
  elseif($mode=='normal')
  {
    $affichage .= '<label class="tab" for="f_login">Nom d\'utilisateur :</label><input id="f_login" name="f_login" size="'.(LOGIN_LONGUEUR_MAX-5).'" maxlength="'.LOGIN_LONGUEUR_MAX.'" type="text" value="" tabindex="2" autocomplete="off" /><br />'.NL;
    $affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="3" autocomplete="off" /><br />'.NL;
    $affichage .= '<span class="tab"></span><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="structure" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="4" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg">&nbsp;</label><br />'.NL;
    $affichage .= '<span class="tab"></span><a id="lien_lost" href="#structure">[ Identifiants perdus ]</a> <a id="contact_admin" href="#contact_admin">[ Contact établissement ]</a>'.NL;
  }
  else
  {
    $affichage .= '<label class="tab">Mode de connexion :</label>';
    $affichage .=   '<label for="f_mode_normal"><input type="radio" id="f_mode_normal" name="f_mode" value="normal" /> formulaire <em>SACoche</em></label>&nbsp;&nbsp;&nbsp;';
    $affichage .=   '<label for="f_mode_'.$mode.'"><input type="radio" id="f_mode_'.$mode.'" name="f_mode" value="'.$mode.'" checked /> authentification extérieure <em>'.html($mode.'-'.$nom).'</em></label><br />'.NL;
    $affichage .= '<fieldset id="fieldset_normal" class="hide">'.NL;
    $affichage .= '<label class="tab" for="f_login">Nom d\'utilisateur :</label><input id="f_login" name="f_login" size="'.(LOGIN_LONGUEUR_MAX-5).'" maxlength="'.LOGIN_LONGUEUR_MAX.'" type="text" value="" tabindex="2" autocomplete="off" /><br />'.NL;
    $affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="3" autocomplete="off" /><br />'.NL;
    $affichage .= '</fieldset>'.NL;
    $affichage .= '<span class="tab"></span><input id="f_profil" name="f_profil" type="hidden" value="structure" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="4" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg">&nbsp;</label><br />'.NL;
    $affichage .= '<span class="tab"></span><a id="lien_lost" class="hide" href="#structure">[ Identifiants perdus ]</a> <a id="contact_admin" href="#contact_admin">[ Contact établissement ]</a>'.NL;
  }
  return $affichage;
}
 /**
  * Outputs the form field for the given params
  */
 function outputField($field_type, $field_name, $def_value, $onchange = '', $id = '')
 {
     $return_value = '';
     switch ($field_type) {
         case 'hidden':
             $return_value = '<input type="hidden"' . HtmlForm::genHiddenField($field_name, $def_value) . ' id="' . $field_name . '" />';
             break;
         case 'rate':
             $return_value = '<input type="text"' . HtmlForm::genInputTextField('255', $field_name, '70', $def_value, $onchange . 'style="width: 98%;" class="form-control input-sm input-large"') . ' />';
             break;
         case 'visible':
             $return_value = HtmlForm::genDropdownSingleChoice(array("select_name" => $field_name, "selected_value" => $def_value, "onChange" => $onchange, "values" => array(array('value' => 'Y', 'contents' => getMsg('CR', 'CR_SHOW')), array('value' => 'N', 'contents' => getMsg('CR', 'CR_HIDE')))));
             break;
         case 'checkbox':
             $return_value = HtmlForm::genCheckbox(array("value" => $def_value, "name" => $field_name, "onclick" => $onchange, "id" => $id, "is_checked" => ''));
             break;
     }
     return $return_value;
 }
function loadForm($formPass)
{
    echo "<h1>Change your Password</h1>";
    $form = new HtmlForm();
    $form->renderStart("changePasswordForm", "");
    $form->renderPassword("currentPassword", "Current Password: "******"<span class='pswdMtchFail'>This is not your password. Forgot your password? <a href='ResetPassword.php'>Reset it here</a></span>";
    }
    $form->renderPassword("newPassword1", "New Password: "******"newPassword2", "Again: ", true, 255);
    if (!$formPass && !checkPasswordMatch()) {
        echo "<span class='pswdMtchFail'>does not match new password entered</span>";
    }
    $form->renderSubmitEnd("submitPasswordChange", "Change Password");
}
 function output()
 {
     global $application;
     $request = new Request();
     $request->setView(CURRENT_REQUEST_URL);
     $request->setKey("page_view", "TaxRateByZip_AddNewSet");
     $request->setAction('TaxRatesRedirectToImportAction');
     $formAction = $request->getURL();
     $title = getMsg('TAX_ZIP', 'ADD_NEW_SET_PAGE_TITLE');
     $descr_value = '';
     $updateSid = $request->getValueByKey("updateSid", 0);
     if ($updateSid) {
         $set_to_update = modApiFunc("TaxRateByZip", "getSet", $updateSid);
         if (isset($set_to_update[0]["name"])) {
             $descr_value = $set_to_update[0]["name"];
             $title = getMsg('TAX_ZIP', 'UPDATE_SET_PAGE_TITLE');
             $title = str_replace("%1%", $descr_value, $title);
             $request->setKey("updateSid", $updateSid);
             $formAction = $request->getURL();
         }
     }
     $ptypes_select = array('select_name' => 'TargetPType', 'id' => 'TargetPType', 'selected_value' => '0', 'values' => array());
     $ptypes = modApiFunc('Catalog', 'getProductTypes');
     foreach ($ptypes as $ptype) {
         $ptypes_select['values'][] = array('value' => $ptype['id'], 'contents' => $ptype['name']);
     }
     $cats_select = array('select_name' => 'TargetCategory', 'id' => 'TargetCategory', 'selected_value' => 1, 'values' => array());
     $cats = modApiFunc("Catalog", "getSubcategoriesFullListWithParent", 1, false);
     foreach ($cats as $cat) {
         $cats_select['values'][] = array('value' => $cat['id'], 'contents' => str_repeat('&nbsp;&nbsp;', $cat['level']) . $cat['name']);
     }
     $template_contents = array("FormAction" => $formAction, "DescriptionValue" => $descr_value, "Title" => $title, "Errors" => $this->outputResultMessage(), 'PTypesList' => HtmlForm::genDropdownSingleChoice($ptypes_select, ' style="width: 290px;"'), 'CategoriesList' => HtmlForm::genDropdownSingleChoice($cats_select, ' style="width: 290px;"'));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     return $this->mTmplFiller->fill("", "container.tpl.html", array());
 }
 function output()
 {
     global $application;
     $settings = modApiFunc('Product_Images', 'getSettings');
     $detailedFullImageResizeSelect = array("select_name" => "pi_sets[RESIZE_DETAILED_LARGE_IMAGE]", "selected_value" => $settings['RESIZE_DETAILED_LARGE_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $fullImageResizeSelect = array("select_name" => "pi_sets[RESIZE_LARGE_IMAGE]", "selected_value" => $settings['RESIZE_LARGE_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $ag_select = array("select_name" => "pi_sets[AUTO_GEN_MAIN_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_MAIN_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $ag_param = '';
     if (!function_exists('gd_info')) {
         $ag_select["selected_value"] = "N";
         $ag_param = 'disabled';
     }
     $cat_ag_select = array("select_name" => "pi_sets[AUTO_GEN_CAT_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_CAT_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $cat_ag_param = '';
     if (!function_exists('gd_info')) {
         $cat_ag_select["selected_value"] = "N";
         $cat_ag_param = 'disabled';
     }
     $template_contents = array('TSField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMB_SIDE]', '5', $settings['THUMB_SIDE']), 'TPLField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMBS_PER_LINE]', '5', $settings['THUMBS_PER_LINE']), 'TPLSetting' => $application->getAppIni('PRODUCT_LIST_DISABLE_TR_TD'), 'AGField' => HtmlForm::genDropdownSingleChoice($ag_select, $ag_param), 'CatAGField' => HtmlForm::genDropdownSingleChoice($cat_ag_select, $cat_ag_param), 'fullImageResizeField' => HtmlForm::genDropdownSingleChoice($fullImageResizeSelect, $ag_param), 'detailedFullImageResizeField' => HtmlForm::genDropdownSingleChoice($detailedFullImageResizeSelect, $ag_param), 'MISField' => HtmlForm::genInputTextField('25', 'pi_sets[MAIN_IMAGE_SIDE]', '5', $settings['MAIN_IMAGE_SIDE'], $ag_param), 'CatMISField' => HtmlForm::genInputTextField('25', 'pi_sets[CAT_IMAGE_SIDE]', '5', $settings['CAT_IMAGE_SIDE'], $cat_ag_param), 'firField' => HtmlForm::genInputTextField('25', 'pi_sets[LARGE_IMAGE_SIZE]', '5', $settings['LARGE_IMAGE_SIZE'], $ag_param), 'dfirField' => HtmlForm::genInputTextField('25', 'pi_sets[DETAILED_LARGE_IMAGE_SIZE]', '5', $settings['DETAILED_LARGE_IMAGE_SIZE'], $ag_param), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("product_images/settings/", "container.tpl.html", array());
 }
    /** This method will create the whole html installation/update code. It will show the headline,
     *  text and the configured form. If no modus is set the installation modus will be set here.
     *  @param $directOutput If set to @b true (default) the form html will be directly send
     *                       to the browser. If set to @b false the html will be returned.
     *  @return If $directOutput is set to @b false this method will return the html code of the form.
     */
    public function show($directOutput = true)
    {
        global $gL10n;
        // if no modus set then set installation modus
        if (strlen($this->title) === 0) {
            $this->setInstallationModus();
        }
        header('Content-type: text/html; charset=utf-8');
        $html = '
        <!DOCTYPE html>
        <html>
        <head>
            <!-- (c) 2004 - 2015 The Admidio Team - http://www.admidio.org -->

            <meta http-equiv="content-type" content="text/html; charset=utf-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <meta name="author"   content="Admidio Team" />
            <meta name="robots"   content="noindex" />

            <title>Admidio - ' . $this->title . '</title>

            <link rel="shortcut icon" type="image/x-icon" href="layout/favicon.png" />

            <link rel="stylesheet" type="text/css" href="../libs/bootstrap/css/bootstrap.min.css" />
            <link rel="stylesheet" type="text/css" href="layout/admidio.css" />

            <script type="text/javascript" src="../libs/jquery/jquery.min.js"></script>
            <script type="text/javascript" src="../libs/bootstrap/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="../system/js/common_functions.js"></script>
        </head>
        <body>
            <div class="admidio-container" id="adm_content">&nbsp;
                <img id="admidio-logo" src="layout/logo.png" alt="Logo" />
                <h1>' . $this->headline . '</h1>';
        // if set then show description
        if (strlen($this->descriptionText) > 0) {
            if (strlen($this->descriptionTitle) > 0) {
                $html .= '<h3>' . $this->descriptionTitle . '</h3>';
            }
            $html .= '<p>' . $this->descriptionText . '</p>';
        }
        // now show the configured form
        $html .= parent::show(false);
        $html .= '</div>
        </body>
        </html>';
        if ($directOutput) {
            echo $html;
        } else {
            return $html;
        }
    }
 /**
  * Outputs a label for the search result form
  */
 function outputResultRecords()
 {
     global $application;
     $output = '';
     foreach ($this->_labels as $record) {
         $record = modApiFunc('MultiLang', 'getLabelInformation', $record, $this->_modules, $this->_search_filter['lng']);
         $template_contents = array('LabelID' => $record['id'], 'LabelName' => $record['sh_label'], 'LabelZone' => $record['zone'], 'LabelType' => $record['module_name'], 'LabelUsage' => htmlspecialchars($record['usage']), 'LabelStatus' => $record['status'], 'LabelValue' => $this->outputLabelValue($record), 'LabelDefValue' => $this->outputLabelDefValue($record), 'CurLang' => $this->_search_filter['lng'], 'DeleteCheckBox' => HtmlForm::genCheckbox(array('value' => $record['id'], 'name' => 'label_id[]', 'id' => 'select_' . $record['id'], 'is_checked' => false, 'onclick' => 'javascript: selectRow(this);'), "class='form-control input-sm'"));
         $this->_Template_Contents = $template_contents;
         $application->registerAttributes($this->_Template_Contents);
         $output .= $this->mTmplFiller->fill('multilang/label_editor/', 'search-results-form-record.tpl.html', array());
     }
     return $output;
 }
 */
if (!defined('SACoche')) {
    exit('Ce fichier ne peut être appelé directement !');
}
$TITRE = "Transfert d'établissements";
// Pas de traduction car pas de choix de langue pour ce profil.
// Page réservée aux installations multi-structures ; le menu webmestre d'une installation mono-structure ne permet normalement pas d'arriver ici
if (HEBERGEUR_INSTALLATION == 'mono-structure') {
    echo '<p class="astuce">L\'installation étant de type mono-structure, cette fonctionnalité de <em>SACoche</em> est sans objet vous concernant.</p>' . NL;
    return;
    // Ne pas exécuter la suite de ce fichier inclus.
}
// Pas de passage par la page ajax.php, mais pas besoin ici de protection contre attaques type CSRF
$selection = isset($_POST['listing_ids']) ? explode(',', $_POST['listing_ids']) : FALSE;
// demande d'exports depuis structure_multi.php
$select_structure = HtmlForm::afficher_select(DB_WEBMESTRE_SELECT::DB_OPT_structures_sacoche(), 'f_base', FALSE, $selection, 'zones_geo', TRUE);
?>

<p><span class="manuel"><a class="pop_up" href="<?php 
echo SERVEUR_DOCUMENTAIRE;
?>
?fichier=support_webmestre__structure_transfert">DOC : Transfert d'établissements (multi-structures).</a></span></p>

<hr />

<h2>Exporter des établissements (données &amp; bases)</h2>

<form action="#" method="post" id="form_exporter">
  <p>
    <label class="tab" for="f_base">Structure(s) :</label><span id="f_base" class="select_multiple"><?php 
echo $select_structure;
      <span id="span_socle_appreciation_rubrique_modele" class="<?php echo $class_span_socle_appreciation_rubrique_modele ?>">
        <textarea id="f_socle_appreciation_rubrique_modele" name="f_socle_appreciation_rubrique_modele" rows="3" cols="50" maxlength="255"><?php echo html($_SESSION['OFFICIEL']['SOCLE_APPRECIATION_RUBRIQUE_MODELE']); ?></textarea>
      </span>
    </span><br />
    <label class="tab">Appr. générale :</label><?php echo $select_socle_appreciation_generale_longueur ?>
    <span id="span_socle_appreciation_generale_report" class="<?php echo $class_span_socle_appreciation_generale_report ?>">
      <label for="f_socle_appreciation_generale_report"><input type="checkbox" id="f_socle_appreciation_generale_report" name="f_socle_appreciation_generale_report" value="1"<?php echo $check_socle_appreciation_generale_report ?> /> à préremplir avec &hellip;</label>
      <span id="span_socle_appreciation_generale_modele" class="<?php echo $class_span_socle_appreciation_generale_modele ?>">
        <textarea id="f_socle_appreciation_generale_modele" name="f_socle_appreciation_generale_modele" rows="3" cols="50" maxlength="255"><?php echo html($_SESSION['OFFICIEL']['SOCLE_APPRECIATION_GENERALE_MODELE']); ?></textarea>
      </span>
    </span><br />
    <label class="tab">Ligne additionnelle :</label><input type="checkbox" id="f_socle_check_supplementaire" name="f_socle_check_supplementaire" value="1"<?php echo $check_socle_ligne_supplementaire ?> /> <input id="f_socle_ligne_factice" name="f_socle_ligne_factice" type="text" size="10" value="Sans objet." class="<?php echo $class_input_socle_ligne_factice ?>" disabled /><input id="f_socle_ligne_supplementaire" name="f_socle_ligne_supplementaire" type="text" size="120" maxlength="255" value="<?php echo html($_SESSION['OFFICIEL']['SOCLE_LIGNE_SUPPLEMENTAIRE']) ?>" class="<?php echo $class_input_socle_ligne_supplementaire ?>" /><br />
    <label class="tab">Assiduité :</label><label for="f_socle_assiduite"><input type="checkbox" id="f_socle_assiduite" name="f_socle_assiduite" value="1"<?php echo $check_socle_assiduite ?> /> Reporter le nombre d'absences et de retards</label><br />
    <label class="tab">Prof. Principal :</label><label for="f_socle_prof_principal"><input type="checkbox" id="f_socle_prof_principal" name="f_socle_prof_principal" value="1"<?php echo $check_socle_prof_principal ?> /> Indiquer le ou les professeurs principaux de la classe</label><br />
    <label class="tab">Restriction :</label><label for="f_socle_only_presence"><input type="checkbox" id="f_socle_only_presence" name="f_socle_only_presence" value="1"<?php echo $check_socle_only_presence ?> /> Uniquement les éléments ayant fait l'objet d'une évaluation ou d'une validation</label><br />
    <label class="tab">Indications :</label><label for="f_socle_pourcentage_acquis"><input type="checkbox" id="f_socle_pourcentage_acquis" name="f_socle_pourcentage_acquis" value="1"<?php echo $check_socle_pourcentage_acquis ?> /> Pourcentage d'items acquis</label>&nbsp;&nbsp;&nbsp;<label for="f_socle_etat_validation"><input type="checkbox" id="f_socle_etat_validation" name="f_socle_etat_validation" value="1"<?php echo $check_socle_etat_validation ?> /> État de validation</label><br />
    <label class="tab">Impression :</label><?php echo $select_socle_couleur ?> <?php echo $select_socle_fond ?> <?php echo $select_socle_legende ?>
  </p>
  <p>
    <span class="tab"></span><button id="bouton_valider_socle" type="button" class="parametre">Enregistrer.</button><label id="ajax_msg_socle">&nbsp;</label>
  </p>
</form>

<hr />

<form action="#" method="post" id="zone_matieres" class="hide">
  <h3>Matieres sans moyennes</h3>
  <?php echo HtmlForm::afficher_checkbox_matieres() ?>
  <div style="clear:both"><button id="valider_matieres" type="button" class="valider">Valider la sélection</button>&nbsp;&nbsp;&nbsp;<button id="annuler_matieres" type="button" class="annuler">Annuler / Retour</button></div>
</form>
 /**
  *                     ViewState
  */
 function outputViewStateConstants()
 {
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $retval = "<input type=\"hidden\"" . $HtmlForm1->genHiddenField("asc_action", "UpdateFsRuleInfo") . ">";
     $retval .= "<input type=\"hidden\"" . $HtmlForm1->genHiddenField("FsRule_id", $this->POST["FsRule_id"]) . ">";
     return $retval;
 }
        require_once '../../installation/db_scripts/preferences.php';
        // set some specific preferences whose values came from user input of the installation wizard
        $orga_preferences['email_administrator'] = $_POST['orgaEmail'];
        $orga_preferences['system_language'] = $gPreferences['system_language'];
        // create all necessary data for this organization
        $newOrganization->setPreferences($orga_preferences, false);
        $newOrganization->createBasicData($gCurrentUser->getValue('usr_id'));
        // if installation of second organization than show organization select at login
        if ($gCurrentOrganization->countAllRecords() === 2) {
            $sql = 'UPDATE ' . TBL_PREFERENCES . ' SET prf_value = 1
                 WHERE prf_name = \'system_organization_select\' ';
            $gDb->query($sql);
        }
        $gDb->endTransaction();
        // create html page object
        $page = new HtmlPage($gL10n->get('INS_SETUP_WAS_SUCCESSFUL'));
        $page->addHtml('<p class="lead">' . $gL10n->get('ORG_ORGANIZATION_SUCCESSFULL_ADDED', $_POST['orgaLongName']) . '</p>');
        // show form
        $form = new HtmlForm('add_new_organization_form', $g_root_path . '/adm_program/modules/preferences/preferences.php', $page);
        $form->addSubmitButton('btn_foward', $gL10n->get('SYS_NEXT'), array('icon' => THEME_PATH . '/icons/forward.png'));
        // add form to html page and show page
        $page->addHtml($form->show(false));
        $page->show();
        // clean up
        unset($_SESSION['add_organization_request']);
        break;
    case 4:
        // show php info page
        echo phpinfo();
        break;
}
 function getFormAction()
 {
     $request = new Request();
     $request->setView('banner_manage_az');
     $request->setAction("add_banner_info");
     $request->setKey('type', $this->bType);
     $form_action = $request->getURL();
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $action = $HtmlForm1->genForm($form_action, "POST", "BannerManagementForm");
     return $action;
 }
 * Logiciel placé sous la licence libre Affero GPL 3 <https://www.gnu.org/licenses/agpl-3.0.html>.
 * ****************************************************************************************************
 * 
 * Ce fichier est une partie de SACoche.
 * 
 * SACoche est un logiciel libre ; vous pouvez le redistribuer ou le modifier suivant les termes 
 * de la “GNU Affero General Public License” telle que publiée par la Free Software Foundation :
 * soit la version 3 de cette licence, soit (à votre gré) toute version ultérieure.
 * 
 * SACoche est distribué dans l’espoir qu’il vous sera utile, mais SANS AUCUNE GARANTIE :
 * sans même la garantie implicite de COMMERCIALISABILITÉ ni d’ADÉQUATION À UN OBJECTIF PARTICULIER.
 * Consultez la Licence Publique Générale GNU Affero pour plus de détails.
 * 
 * Vous devriez avoir reçu une copie de la Licence Publique Générale GNU Affero avec SACoche ;
 * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>.
 * 
 */
// Mettre à jour l'élément de formulaire "select_eleves" et le renvoyer en HTML
if (!defined('SACoche')) {
    exit('Ce fichier ne peut être appelé directement !');
}
if ($_SESSION['SESAMATH_ID'] == ID_DEMO) {
}
$matiere_id = isset($_POST['f_matiere']) ? Clean::entier($_POST['f_matiere']) : 0;
$niveau_id = isset($_POST['f_niveau']) ? Clean::entier($_POST['f_niveau']) : 0;
if (!$matiere_id || !$niveau_id) {
    exit('Erreur avec les données transmises !');
}
// Affichage du retour.
exit(HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_arborescence($matiere_id, $niveau_id), FALSE, '', FALSE, 'referentiel', FALSE));
Beispiel #24
0
}
// Html-Kopf ausgeben
if ($getLinkId > 0) {
    $headline = $gL10n->get('SYS_EDIT_VAR', $getHeadline);
} else {
    $headline = $gL10n->get('SYS_CREATE_VAR', $getHeadline);
}
// add current url to navigation stack
$gNavigation->addUrl(CURRENT_URL, $headline);
// create html page object
$page = new HtmlPage($headline);
// add back link to module menu
$linksCreateMenu = $page->getMenu();
$linksCreateMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png');
// Html des Modules ausgeben
if ($getLinkId > 0) {
    $modeEditOrCreate = '3';
} else {
    $modeEditOrCreate = '1';
}
// show form
$form = new HtmlForm('weblinks_edit_form', $g_root_path . '/adm_program/modules/links/links_function.php?lnk_id=' . $getLinkId . '&amp;headline=' . $getHeadline . '&amp;mode=' . $modeEditOrCreate, $page);
$form->addInput('lnk_name', $gL10n->get('LNK_LINK_NAME'), $link->getValue('lnk_name'), array('maxLength' => 250, 'property' => FIELD_REQUIRED));
$form->addInput('lnk_url', $gL10n->get('LNK_LINK_ADDRESS'), $link->getValue('lnk_url'), array('maxLength' => 2000, 'property' => FIELD_REQUIRED));
$form->addSelectBoxForCategories('lnk_cat_id', $gL10n->get('SYS_CATEGORY'), $gDb, 'LNK', 'EDIT_CATEGORIES', array('property' => FIELD_REQUIRED, 'defaultValue' => $link->getValue('lnk_cat_id')));
$form->addEditor('lnk_description', $gL10n->get('SYS_DESCRIPTION'), $link->getValue('lnk_description'), array('height' => '150px'));
$form->addSubmitButton('btn_save', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png'));
$form->addHtml(admFuncShowCreateChangeInfoById($link->getValue('lnk_usr_id_create'), $link->getValue('lnk_timestamp_create'), $link->getValue('lnk_usr_id_change'), $link->getValue('lnk_timestamp_change')));
// add form to html page and show page
$page->addHtml($form->show(false));
$page->show();
 * Consultez la Licence Publique Générale GNU Affero pour plus de détails.
 * 
 * Vous devriez avoir reçu une copie de la Licence Publique Générale GNU Affero avec SACoche ;
 * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>.
 * 
 */
if (!defined('SACoche')) {
    exit('Ce fichier ne peut être appelé directement !');
}
$TITRE = html(Lang::_("Affecter les périodes aux classes & groupes"));
?>

<?php 
// Fabrication des éléments select du formulaire
$select_periodes = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_periodes_etabl(TRUE), 'select_periodes', FALSE, FALSE, '', $multiple = TRUE);
$select_classes_groupes = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_classes_groupes_etabl(), 'select_classes_groupes', FALSE, FALSE, 'regroupements', $multiple = TRUE);
?>

<p><span class="manuel"><a class="pop_up" href="<?php 
echo SERVEUR_DOCUMENTAIRE;
?>
?fichier=support_administrateur__gestion_periodes">DOC : Gestion des périodes</a></span></p>

<hr />

<form action="#" method="post" id="form_select">
  <table><tr>
    <td class="nu" style="width:25em">
      <b>Périodes :</b><span class="check_multiple"><q class="cocher_tout" title="Tout cocher."></q><q class="cocher_rien" title="Tout décocher."></q></span><br />
      <span id="select_periodes" class="select_multiple"><?php 
echo $select_periodes;
Beispiel #26
0
        // Foto aus PHP-Temp-Ordner einlesen
        $user_image_data = fread(fopen($_FILES['userfile']['tmp_name'][0], 'r'), $_FILES['userfile']['size'][0]);
        // Zwischenspeichern des neuen Fotos in der Session
        $gCurrentSession->setValue('ses_binary', $user_image_data);
        $gCurrentSession->save();
    }
    //Image-Objekt löschen
    $user_image->delete();
    if ($getItemId == $gCurrentUser->getValue('inv_id')) {
        $headline = $gL10n->get('PRO_EDIT_MY_PROFILE_PICTURE');
    } else {
        $headline = $gL10n->get('PRO_EDIT_PROFILE_PIC_FROM', $inventory->getValue('FIRST_NAME'), $inventory->getValue('LAST_NAME'));
    }
    // create html page object
    $page = new HtmlPage($headline);
    $page->addJavascript('$("#btn_cancel").click(function() {
        self.location.href=\'' . $g_root_path . '/adm_program/modules/inventory/item_photo_edit.php?mode=dont_save&inv_id=' . $getItemId . '\';
    });', true);
    // show form
    $form = new HtmlForm('show_new_profile_picture_form', $g_root_path . '/adm_program/modules/inventory/item_photo_edit.php?mode=save&amp;inv_id=' . $getItemId, $page);
    $form->addCustomContent($gL10n->get('PRO_CURRENT_PICTURE'), '<img class="imageFrame" src="item_photo_show.php?inv_id=' . $getItemId . '" alt="' . $gL10n->get('PRO_CURRENT_PICTURE') . '" />');
    $form->addCustomContent($gL10n->get('PRO_NEW_PICTURE'), '<img class="imageFrame" src="item_photo_show.php?inv_id=' . $getItemId . '&new_photo=1" alt="' . $gL10n->get('PRO_NEW_PICTURE') . '" />');
    $form->addLine();
    $form->openButtonGroup();
    $form->addButton('btn_cancel', $gL10n->get('SYS_ABORT'), array('icon' => THEME_PATH . '/icons/error.png'));
    $form->addSubmitButton('btn_update', $gL10n->get('SYS_APPLY'), array('icon' => THEME_PATH . '/icons/database_in.png'));
    $form->closeButtonGroup();
    // add form to html page and show page
    $page->addHtml($form->show(false));
    $page->show();
}
Beispiel #27
0
</ul>
<hr />
<p id="expli">
  <span class="astuce">Les anciens utilisateurs encore dans la base ne sont pas comptés parmi les <b>utilisateurs enregistrés</b>.</span><br />
  <span class="astuce">Les <b>utilisateurs connectés</b> sont ceux s'étant identifiés au cours du dernier semestre.</span><br />
  <span class="astuce">Les évaluations ou validations <b>récentes</b> sont celles effectuées au cours du dernier semestre.</span>
</p>

<?php endif /* * * * * * MONO-STRUCTURE FIN * * * * * */ ?>

<?php if(HEBERGEUR_INSTALLATION=='multi-structures'): /* * * * * * MULTI-STRUCTURES DEBUT * * * * * */ ?>

<?php
// Pas de passage par la page ajax.php, mais pas besoin ici de protection contre attaques type CSRF
$selection = (isset($_POST['listing_ids'])) ? explode(',',$_POST['listing_ids']) : FALSE ; // demande de stats depuis structure_multi.php
$select_structure = HtmlForm::afficher_select( DB_WEBMESTRE_SELECT::DB_OPT_structures_sacoche() , 'f_base' /*select_nom*/ , FALSE /*option_first*/ , $selection , 'zones_geo' /*optgroup*/ , TRUE /*multiple*/ );
?>

<form action="#" method="post" id="form_stats"><fieldset>
  <label class="tab" for="f_base">Structure(s) :</label><span id="f_base" class="select_multiple"><?php echo $select_structure ?></span><span class="check_multiple"><q class="cocher_tout" title="Tout cocher."></q><br /><q class="cocher_rien" title="Tout décocher."></q></span><br />
  <span class="tab"></span><input type="hidden" id="f_action" name="f_action" value="calculer" /><input type="hidden" id="f_listing_id" name="f_listing_id" value="" /><button id="bouton_valider" type="button" class="stats">Calculer les statistiques.</button><label id="ajax_msg">&nbsp;</label>
</fieldset></form>

<div id="ajax_info" class="hide">
  <h2>Calcul des statistiques en cours</h2>
  <label id="ajax_msg1"></label>
  <ul class="puce"><li id="ajax_msg2"></li></ul>
  <span id="ajax_num" class="hide"></span>
  <span id="ajax_max" class="hide"></span>
</div>
 * Vous devriez avoir reçu une copie de la Licence Publique Générale GNU Affero avec SACoche ;
 * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>.
 * 
 */

if(!defined('SACoche')) {exit('Ce fichier ne peut être appelé directement !');}
$TITRE = html(Lang::_("Gérer les parents"));

// Récupérer d'éventuels paramètres pour restreindre l'affichage
// Pas de passage par la page ajax.php, mais pas besoin ici de protection contre attaques type CSRF
$statut       = (isset($_POST['f_statut']))       ? Clean::entier($_POST['f_statut'])       : 1  ;
$debut_nom    = (isset($_POST['f_debut_nom']))    ? Clean::nom($_POST['f_debut_nom'])       : '' ;
$debut_prenom = (isset($_POST['f_debut_prenom'])) ? Clean::prenom($_POST['f_debut_prenom']) : '' ;
$find_doublon = (isset($_POST['f_doublon']))      ? TRUE                                    : FALSE ;
// Construire et personnaliser le formulaire pour restreindre l'affichage
$select_f_statuts = HtmlForm::afficher_select(Form::$tab_select_statut , 'f_statut' /*select_nom*/ , FALSE /*option_first*/ , $statut /*selection*/ , '' /*optgroup*/);

// Javascript
Layout::add( 'js_inline_before' , 'var input_date      = "'.TODAY_FR.'";' );
Layout::add( 'js_inline_before' , 'var date_mysql      = "'.TODAY_MYSQL.'";' );
Layout::add( 'js_inline_before' , 'var    LOGIN_LONGUEUR_MAX = '.   LOGIN_LONGUEUR_MAX.';' );
Layout::add( 'js_inline_before' , 'var PASSWORD_LONGUEUR_MAX = '.PASSWORD_LONGUEUR_MAX.';' );
Layout::add( 'js_inline_before' , 'var tab_login_modele      = new Array();' );
Layout::add( 'js_inline_before' , 'var tab_mdp_longueur_mini = new Array();' );
foreach($_SESSION['TAB_PROFILS_ADMIN']['LOGIN_MODELE'] as $profil_sigle => $login_modele)
{
  Layout::add( 'js_inline_before' , 'tab_login_modele["'.$profil_sigle.'"] = "'.$login_modele.'";' );
}
foreach($_SESSION['TAB_PROFILS_ADMIN']['MDP_LONGUEUR_MINI'] as $profil_sigle => $mdp_longueur_mini)
{
  Layout::add( 'js_inline_before' , 'tab_mdp_longueur_mini["'.$profil_sigle.'"] = '.$mdp_longueur_mini.';' );
$select_periode           = HtmlForm::afficher_select($tab_periodes                       , 'f_periode'           /*select_nom*/ , 'periode_personnalisee' /*option_first*/ , FALSE                                        /*selection*/ ,              '' /*optgroup*/);
$select_orientation       = HtmlForm::afficher_select(Form::$tab_select_orientation       , 'f_orientation'       /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['orientation']              /*selection*/ ,              '' /*optgroup*/);
$select_marge_min         = HtmlForm::afficher_select(Form::$tab_select_marge_min         , 'f_marge_min'         /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['marge_min']                /*selection*/ ,              '' /*optgroup*/);
$select_pages_nb          = HtmlForm::afficher_select(Form::$tab_select_pages_nb          , 'f_pages_nb'          /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['pages_nb']                 /*selection*/ ,              '' /*optgroup*/);
$select_couleur           = HtmlForm::afficher_select(Form::$tab_select_couleur           , 'f_couleur'           /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['couleur']                  /*selection*/ ,              '' /*optgroup*/);
$select_fond              = HtmlForm::afficher_select(Form::$tab_select_fond              , 'f_fond'              /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['fond']                     /*selection*/ ,              '' /*optgroup*/);
$select_legende           = HtmlForm::afficher_select(Form::$tab_select_legende           , 'f_legende'           /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['legende']                  /*selection*/ ,              '' /*optgroup*/);
$select_cases_nb          = HtmlForm::afficher_select(Form::$tab_select_cases_nb          , 'f_cases_nb'          /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['cases_nb']                 /*selection*/ ,              '' /*optgroup*/);
$select_cases_larg        = HtmlForm::afficher_select(Form::$tab_select_cases_size        , 'f_cases_larg'        /*select_nom*/ ,                   FALSE /*option_first*/ , Form::$tab_choix['cases_largeur']            /*selection*/ ,              '' /*optgroup*/);

// Javascript
Layout::add( 'js_inline_before' , 'var date_mysql  = "'.TODAY_MYSQL.'";' );
Layout::add( 'js_inline_before' , 'var is_multiple = '.$is_select_multiple.';' );

// Fabrication du tableau javascript "tab_groupe_periode" pour les jointures groupes/périodes
HtmlForm::fabriquer_tab_js_jointure_groupe( $tab_groupes , TRUE /*tab_groupe_periode*/ , FALSE /*tab_groupe_niveau*/ );
?>

<div><span class="manuel"><a class="pop_up" href="<?php echo SERVEUR_DOCUMENTAIRE ?>?fichier=releves_bilans__releve_items_multimatiere">DOC : Relevé d'items pluridisciplinaire.</a></span></div>
<div class="astuce">Un administrateur ou un directeur doit régler l'ordre d'affichage des matières (<span class="manuel"><a class="pop_up" href="<?php echo SERVEUR_DOCUMENTAIRE ?>?fichier=releves_bilans__reglages_syntheses_bilans#toggle_ordre_matieres">DOC</a></span>).</div>

<hr />

<form action="#" method="post" id="form_select"><fieldset>
  <p class="<?php echo $class_form_option ?>">
    <label class="tab"><img alt="" src="./_img/bulle_aide.png" width="16" height="16" title="Une colonne et deux lignes de synthèse peuvent être ajoutées.<br />Dans ce cas, une note sur 20 peut aussi être affichée." /> Opt. relevé :</label><?php if(!in_array($_SESSION['USER_PROFIL_TYPE'],array('parent','eleve'))) { echo $select_individuel_format.' avec '.$select_cases_nb.' d\'évaluation<br /><span class="tab"></span>'; } else { echo'<input type="hidden" id="f_individuel_format" name="f_individuel_format" value="'.Form::$tab_choix['releve_individuel_format'].'" />'; } ?><label for="f_etat_acquisition"><input type="checkbox" id="f_etat_acquisition" name="f_etat_acquisition" value="1"<?php echo $check_etat_acquisition ?> /> Colonne état d'acquisition</label><span id="span_etat_acquisition" class="<?php echo $class_etat_acquisition ?>">&nbsp;&nbsp;&nbsp;<label for="f_moyenne_scores"><input type="checkbox" id="f_moyenne_scores" name="f_moyenne_scores" value="1"<?php echo $check_moyenne_score ?> /> Ligne moyenne des scores</label>&nbsp;&nbsp;&nbsp;<label for="f_pourcentage_acquis"><input type="checkbox" id="f_pourcentage_acquis" name="f_pourcentage_acquis" value="1"<?php echo $check_pourcentage_acquis ?> /> Ligne pourcentage d'items acquis</label>&nbsp;&nbsp;&nbsp;<label for="f_conversion_sur_20" class="<?php echo $class_conversion_sur_20 ?>"><input type="checkbox" id="f_conversion_sur_20" name="f_conversion_sur_20" value="1"<?php echo $check_conversion_sur_20 ?> /> Conversion en note sur 20</label></span>
  </p>
  <p class="<?php echo $class_form_eleve ?>">
    <label class="tab" for="f_groupe">Classe / groupe :</label><?php echo $select_groupe ?><input type="hidden" id="f_groupe_type" name="f_groupe_type" value="" /><input type="hidden" id="f_groupe_nom" name="f_groupe_nom" value="" /> <span id="bloc_ordre" class="hide"><?php echo $select_eleves_ordre ?></span><label id="ajax_maj">&nbsp;</label><br />
    <span id="bloc_eleve" class="hide"><label class="tab" for="f_eleve">Élève(s) :</label><?php echo $select_eleves ?></span>
  </p>
 /**
  * Outputs form contents.
  */
 function output()
 {
     global $application;
     $retval = '';
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $request = new Request();
     $request->setView("AdminSignIn");
     $request->setAction("SignIn");
     $form_action = $request->getURL();
     $request = new Request();
     $request->setView("AdminPasswordRecovery");
     $PasswordForgottenLink = $request->getURL();
     $this->_Template_Content = array("HiddenArrayViewState" => $this->outputViewState(), "FORM" => $HtmlForm1->genForm($form_action, "POST", ""), "Email" => $HtmlForm1->genInputTextField("255", "AdminEmail", "40", $this->POST["AdminEmail"]), "Password" => $HtmlForm1->genInputTextField("255", "Password", "40", ""), "RememberChecked" => $this->POST["RememberEmail"] != '' ? 'CHECKED' : '', "PasswordForgottenLink" => $PasswordForgottenLink, "Errors" => $this->outputErrors(), "Version" => PRODUCT_VERSION_NUMBER . " " . PRODUCT_VERSION_TYPE . ', build ' . PRODUCT_VERSION_BUILD);
     $application->registerAttributes($this->_Template_Content);
     $retval = modApiFunc('TmplFiller', 'fill', "users/", "signin.tpl.html", array());
     return $retval;
 }