Ejemplo n.º 1
0
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with GLPI; along with Order. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
 @package   order
 @author    the order plugin team
 @copyright Copyright (c) 2010-2011 Order plugin team
 @license   GPLv2+
            http://www.gnu.org/licenses/gpl.txt
 @link      https://forge.indepnet.net/projects/order
 @link      http://www.glpi-project.org/
 @since     2009
 ---------------------------------------------------------------------- */
include "../../../inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
if (!defined('GLPI_ROOT')) {
    die("Can not acces directly to this file");
}
if (isset($_POST["action"])) {
    switch ($_POST["action"]) {
        case "bill":
            echo "&nbsp;<input type='hidden' name='plugin_order_orders_id' " . "  value='" . $_POST["plugin_order_orders_id"] . "'>";
            PluginOrderBill::Dropdown(array('condition' => "`plugin_order_orders_id`='" . $_POST['plugin_order_orders_id'] . "'"));
            break;
    }
    PluginOrderBillState::Dropdown(array('comments' => true));
    echo "&nbsp;<input type='submit' name='action' class='submit' " . "   value='" . __("Post") . "'>";
}