|
|
@@ -66,12 +66,12 @@ if ($dopost == 'add') { |
|
|
|
$randcode = mt_rand(10000, 99999); |
|
|
|
$safecode = substr(md5($cfg_cookie_encode.$randcode), 0, 24); |
|
|
|
$typeOptions = ''; |
|
|
|
$dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid=0 AND (ispart=0 OR ispart=1) "); |
|
|
|
$dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid=0 AND (ispart=0 OR ispart=1)"); |
|
|
|
$dsql->Execute('op'); |
|
|
|
while ($row = $dsql->GetObject('op')) { |
|
|
|
$topc = $row->id; |
|
|
|
$typeOptions .= "<option value='{$row->id}'>{$row->typename}</option>\r\n"; |
|
|
|
$dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid={$row->id} AND (ispart=0 OR ispart=1) "); |
|
|
|
$dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid={$row->id} AND (ispart=0 OR ispart=1)"); |
|
|
|
$dsql->Execute('s'); |
|
|
|
while ($row = $dsql->GetObject('s')) { |
|
|
|
$typeOptions .= "<option value='{$row->id}'>└─ {$row->typename}</option>\r\n"; |
|
|
|