Published using Google Docs
r_radioboss.php
Updated automatically every 5 minutes

<?php

if( ! defined( 'DATALIFEENGINE' ) ) {

        die( "Hacking attempt!" );

}

require_once ('r_radiobutton.php');

        $r_ref = $_SERVER['REQUEST_URI'] ;

if($member_id['user_group'] == 1) {

?>        

        

        <div id='r_actions'>

                <div class="r_info"><?php echo radioboss::INFO_BLOCK ?></div>

                <div class="r_form">

                        <form method="POST" action="/engine/modules/r_radioactions.php" name="comandir">

                                <div class="r_label">

                                        <lable>

                                                <select name="r_cmd">

<?php

                                                foreach($r_actions as $key=>$val) {

                                                echo "<option value=$key>$val</option>\n";

                                }

?>

                                                </select>

                                        </label>

                                </div>

                                <div class="r_label">

                                        <label>

                                                <input type="text" name="r_value" value="" />

                                        </label>

                                        <input type="hidden" name="command" value="command">

                                        <input type="hidden" name="ref" value="<?php echo $r_ref ?>">

                                        <input class ="r_submit" type="submit" value="Отправить" />

                                </div>

                        </form>

                </div>

                <div class="r_result">

<?php

        $r_result = $_GET['result'];

        if($r_result != "") {

                echo urldecode($r_result);

        } else {

                echo $r_ref;

                echo "Ну что будем отправлять?<br /><span style='color:red;'></span>";        

        }

}

?>

                </div>

        </div>