Редакция 17 | Редакция 30 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 17 | Редакция 29 | ||
---|---|---|---|
Строка 234... | Строка 234... | ||
234 | if ($req->numRows()>0) { |
234 | if ($req->numRows()>0) { |
235 | while ($req->fetchInto($sect, DB_FETCHMODE_ASSOC)) { |
235 | while ($req->fetchInto($sect, DB_FETCHMODE_ASSOC)) { |
236 | $list .= "<input type='checkbox' name='sect[]' value='".$sect["sect_id"]."'><span title='".stripslashes($sect["sectinfo"])."'>".stripslashes($sect["sectname"])."</span> "; |
236 | $list .= "<input type='checkbox' name='sect[]' value='".$sect["sect_id"]."'><span title='".stripslashes($sect["sectinfo"])."'>".stripslashes($sect["sectname"])."</span> "; |
237 | }
|
237 | }
|
238 | }
|
238 | }
|
239 | $display = "<h3>Правка репозитория ".$info["repname"]." для <em>".$dist_name."</em></h3>"; |
239 | $display = "<h3>Правка репозитория ".$info["repname"]." для <em>".$dist_vname."</em></h3>"; |
240 | $display .= "<form action='./process.php' method='POST'>\n"; |
240 | $display .= "<form action='./process.php' method='POST'>\n"; |
241 | $display .= "<input type='hidden' name='mode' value='8'>\n"; |
241 | $display .= "<input type='hidden' name='mode' value='8'>\n"; |
242 | $display .= "<input type='hidden' name='rep' value='$uid'>\n"; |
242 | $display .= "<input type='hidden' name='rep' value='$uid'>\n"; |
243 | $display .= "Название репозитория (codename): <input type='text' name='repName' value='".stripslashes($info["repname"])."'><br>\n"; |
243 | $display .= "Название репозитория (codename): <input type='text' name='repName' value='".stripslashes($info["repname"])."'><br>\n"; |
244 | $display .= "Описание репозитория:<br> <textarea name='repInfo'>".stripslashes($info["repdescribe"])."</textarea><br>\n"; |
244 | $display .= "Описание репозитория:<br> <textarea name='repInfo'>".stripslashes($info["repdescribe"])."</textarea><br>\n"; |
Строка 249... | Строка 249... | ||
249 | break; |
249 | break; |
250 | case '4': |
250 | case '4': |
251 | // Удаление репозитория
|
251 | // Удаление репозитория
|
252 | $rep =& $db->query("SELECT * FROM repository WHERE rep_id='$uid'"); |
252 | $rep =& $db->query("SELECT * FROM repository WHERE rep_id='$uid'"); |
253 | $rep->fetchInto($info, DB_FETCHMODE_ASSOC); |
253 | $rep->fetchInto($info, DB_FETCHMODE_ASSOC); |
254 | $display = "<h3>Удаление репозитория ".$info["repname"]." для <em>".$dist_name."</em></h3>"; |
254 | $display = "<h3>Удаление репозитория ".$info["repname"]." для <em>".$dist_vname."</em></h3>"; |
255 | $display .= "<form action='./process.php' method='POST'>\n"; |
255 | $display .= "<form action='./process.php' method='POST'>\n"; |
256 | $display .= "<input type='hidden' name='mode' value='9'>\n"; |
256 | $display .= "<input type='hidden' name='mode' value='9'>\n"; |
257 | $display .= "<input type='hidden' name='rep' value='$uid'>\n"; |
257 | $display .= "<input type='hidden' name='rep' value='$uid'>\n"; |
258 | $display .= "<input type='submit' value='Удалить'></form>\n"; |
258 | $display .= "<input type='submit' value='Удалить'></form>\n"; |
259 | 259 |