| @@ -528,7 +528,8 @@ else if ($dopost == 'quickEdit') { | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE adminrank<='$urank' ORDER BY `rank` ASC"); | $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE adminrank<='$urank' ORDER BY `rank` ASC"); | ||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||||
| $selected = $row->rank == 0 ? ' selected' : ''; | |||||
| echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>"; | |||||
| } | } | ||||
| ?> | ?> | ||||
| </select> | </select> | ||||
| @@ -331,7 +331,8 @@ | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||||
| $selected = $row->rank == 0 ? ' selected' : ''; | |||||
| echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>"; | |||||
| } | } | ||||
| ?> | ?> | ||||
| </select> | </select> | ||||
| @@ -266,7 +266,8 @@ | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||||
| $selected = $row->rank == 0 ? ' selected' : ''; | |||||
| echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>"; | |||||
| } | } | ||||
| ?> | ?> | ||||
| </select> | </select> | ||||
| @@ -113,7 +113,8 @@ | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||||
| $selected = $row->rank == 0 ? ' selected' : ''; | |||||
| echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>"; | |||||
| } | } | ||||
| ?> | ?> | ||||
| </select> | </select> | ||||
| @@ -275,7 +275,8 @@ | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||||
| $selected = $row->rank == 0 ? ' selected' : ''; | |||||
| echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>"; | |||||
| } | } | ||||
| ?> | ?> | ||||
| </select> | </select> | ||||