@@ 653-658 (lines=6) @@ | ||
650 | $criteria->setSort('weight ASC, title'); |
|
651 | $criteria->setOrder('ASC'); |
|
652 | $downloads_field = $downloadsfield_Handler->getall($criteria); |
|
653 | foreach (array_keys($downloads_field) as $i) { |
|
654 | if ($downloads_field[$i]->getVar('status_def') == 0) { |
|
655 | $nom_champ = 'champ' . $downloads_field[$i]->getVar('fid'); |
|
656 | $donnee[$nom_champ] = $_POST[$nom_champ]; |
|
657 | } |
|
658 | } |
|
659 | // enregistrement temporaire des tags |
|
660 | if (($xoopsModuleConfig['usetag'] == 1) and (is_dir('../../tag'))) { |
|
661 | $donnee['TAG'] = $_POST['tag']; |
@@ 135-140 (lines=6) @@ | ||
132 | $criteria->setSort('weight ASC, title'); |
|
133 | $criteria->setOrder('ASC'); |
|
134 | $downloads_field = $downloadsfield_Handler->getall($criteria); |
|
135 | foreach (array_keys($downloads_field) as $i) { |
|
136 | if ($downloads_field[$i]->getVar('status_def') == 0) { |
|
137 | $nom_champ = 'champ' . $downloads_field[$i]->getVar('fid'); |
|
138 | $donnee[$nom_champ] = $_POST[$nom_champ]; |
|
139 | } |
|
140 | } |
|
141 | if ($erreur==true) { |
|
142 | $xoopsTpl->assign('message_erreur', $message_erreur); |
|
143 | } else { |
@@ 124-129 (lines=6) @@ | ||
121 | $criteria->setSort('weight ASC, title'); |
|
122 | $criteria->setOrder('ASC'); |
|
123 | $downloads_field = $downloadsfield_Handler->getall($criteria); |
|
124 | foreach (array_keys($downloads_field) as $i) { |
|
125 | if ($downloads_field[$i]->getVar('status_def') == 0) { |
|
126 | $nom_champ = 'champ' . $downloads_field[$i]->getVar('fid'); |
|
127 | $donnee[$nom_champ] = $_POST[$nom_champ]; |
|
128 | } |
|
129 | } |
|
130 | // enregistrement temporaire des tags |
|
131 | if (($xoopsModuleConfig['usetag'] == 1) and (is_dir('../tag'))) { |
|
132 | $donnee['TAG'] = $_POST['tag']; |