} if ($modelType == 'V') { smarty_assign('adjModels', FlexModel::loadByType('A')); } $inputValues = array(); foreach ($inflections as $infl) { $inputValues[$infl->id] = array(); foreach ($newForms[$infl->id] as $form) { $inputValues[$infl->id][] = array('form' => $form, 'isLoc' => 1, 'recommended' => 1); } } if (!$previewButton && !$confirmButton) { RecentLink::createOrUpdate("Editare model: {$model}"); } smarty_assign('inflections', $inflections); smarty_assign('inflectionMap', Inflection::mapById($inflections)); smarty_assign('modelType', $modelType); smarty_assign('modelNumber', $modelNumber); smarty_assign('newModelNumber', $newModelNumber); smarty_assign('exponent', $exponent); smarty_assign('newExponent', $newExponent); smarty_assign('description', $model->description); smarty_assign('newDescription', $newDescription); smarty_assign('participleNumber', $participleNumber); smarty_assign('newParticipleNumber', $newParticipleNumber); smarty_assign('newForms', $newForms); smarty_assign('inputValues', $inputValues); smarty_assign('recentLinks', RecentLink::loadForUser()); smarty_assign('wasPreviewed', $previewButton); smarty_assign('errorMessage', $errorMessage); smarty_displayWithoutSkin('flex/editModel.ihtml');
} if ($modelType == 'V') { SmartyWrap::assign('adjModels', FlexModel::loadByType('A')); } $inputValues = array(); foreach ($inflections as $infl) { $inputValues[$infl->id] = array(); foreach ($newForms[$infl->id] as $form) { $inputValues[$infl->id][] = array('form' => $form, 'isLoc' => 1, 'recommended' => 1); } } if (!$previewButton && !$confirmButton) { RecentLink::createOrUpdate("Editare model: {$model}"); } SmartyWrap::assign('inflections', $inflections); SmartyWrap::assign('inflectionMap', Inflection::mapById($inflections)); SmartyWrap::assign('modelType', $modelType); SmartyWrap::assign('adjModelType', ModelType::get_by_code('A')); SmartyWrap::assign('modelNumber', $modelNumber); SmartyWrap::assign('newModelNumber', $newModelNumber); SmartyWrap::assign('exponent', $exponent); SmartyWrap::assign('newExponent', $newExponent); SmartyWrap::assign('description', $model->description); SmartyWrap::assign('newDescription', $newDescription); SmartyWrap::assign('participleNumber', $participleNumber); SmartyWrap::assign('newParticipleNumber', $newParticipleNumber); SmartyWrap::assign('newForms', $newForms); SmartyWrap::assign('inputValues', $inputValues); SmartyWrap::assign('recentLinks', RecentLink::loadForUser()); SmartyWrap::assign('wasPreviewed', $previewButton); SmartyWrap::assign('errorMessage', $errorMessage);