<?php
include_once("c_client_cars_upload_from_post.php");
class c_page_cab_client_cars_upload_from_post_demo extends c_page_cab_client_cars_upload_from_post
{
    public $h1='Загрузка списка автомобилей - проверка работы шлюза' ;

    function block_main()
    { $this->page_title() ;
      $cont=file_get_contents(_DIR_EXT.'/aspmo_client/docs/demo_cars.xml') ;
      ?><div id="check_cars_export"><form>
          <table>
              <tr><td>URL шлюза сервера:</td><td><input type="text" name="server_url" class="server_url" value="<?echo _MAIN_PROTOCOL._MAIN_DOMAIN?>/XML/?ext=client&mode=upload_cars&client_id=<?echo MEMBER()->id?>&pass=<?echo MEMBER()->info['access_pass']?>"></td></tr>
              <tr><td>XML data:</td><td><textarea class="xml_data" name="cont"><?echo $cont?></textarea></td></tr>
              <tr><td></td><td><input type="submit" class=v2 cmd=aspmo_client/send_post_data value="Отправить" value="form"></td></tr>
          </table>

          </form>
        </div><div id="panel_debug"></div>
        <style type="text/css">
          div#check_cars_export{}
          div#check_cars_export input.server_url{width:700px;font-size:12px;}
          div#check_cars_export textarea.xml_data{width:700px;height:300px;font-size:12px;}
        </style>
      <?
    }
}

?>