del useless code
This commit is contained in:
parent
1388352355
commit
bc4a44894b
|
@ -2,15 +2,6 @@
|
||||||
require_once(__DIR__."/functions.php");
|
require_once(__DIR__."/functions.php");
|
||||||
|
|
||||||
$bots=get_Bots_Array('connectFou');
|
$bots=get_Bots_Array('connectFou');
|
||||||
$postParams=get_Post_Params(count($bots));
|
|
||||||
|
|
||||||
if(!$postParams){
|
|
||||||
$bot1="";
|
|
||||||
$bot2="";
|
|
||||||
}else{
|
|
||||||
$bot1=$postParams['bot1'];
|
|
||||||
$bot2=$postParams['bot2'];
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<article>
|
<article>
|
||||||
|
@ -19,12 +10,7 @@ if(!$postParams){
|
||||||
<select name="bot1" id="bot1">
|
<select name="bot1" id="bot1">
|
||||||
<?php
|
<?php
|
||||||
for($i=0;$i<count($bots);$i++){
|
for($i=0;$i<count($bots);$i++){
|
||||||
if($i==$bot1)
|
echo '<option value="'.$i.'">'.$bots[$i]['name'].'</option>';
|
||||||
$selected='selected="selected"';
|
|
||||||
else
|
|
||||||
$selected='';
|
|
||||||
|
|
||||||
echo '<option value="'.$i.'" '.$selected.'>'.$bots[$i]['name'].'</option>';
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
@ -32,11 +18,7 @@ if(!$postParams){
|
||||||
<select name="bot2" id="bot2">
|
<select name="bot2" id="bot2">
|
||||||
<?php
|
<?php
|
||||||
for($i=0;$i<count($bots);$i++){
|
for($i=0;$i<count($bots);$i++){
|
||||||
if($i==$bot2)
|
echo '<option value="'.$i.'">'.$bots[$i]['name'].'</option>';
|
||||||
$selected='selected="selected"';
|
|
||||||
else
|
|
||||||
$selected='';
|
|
||||||
echo '<option value="'.$i.'" '.$selected.'>'.$bots[$i]['name'].'</option>';
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user