1
Changeset 636 – MultiMag

Changeset 636


Ignore:
Timestamp:
Feb 26, 2014, 9:18:03 PM (5 years ago)
Author:
blacklight
Message:
  • Корректировки перед релизом
Location:
trunk
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/core.cli.inc.php

    r602 r636  
    22//      MultiMag v0.2 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/cli/db_check_struct.php

    r635 r636  
    2626require_once($CONFIG['cli']['location']."/core.cli.inc.php");
    2727
    28 $struct_str = 'a:91:{s:8:"articles";a:8:{s:4:"type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"autor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"changed";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"changeautor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"img_ext";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:19:"async_workers_tasks";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"task";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"description";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"needrun";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"textstatus";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:11:"attachments";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:17:"original_filename";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:13:"class_country";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"full_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"number_code";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:5:"alfa2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"2";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:5:"alfa3";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"3";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:7:"visible";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:10:"class_unit";a:11:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"number_code";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:9:"rus_name1";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"eng_name1";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"rus_name2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"eng_name2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:19:"class_unit_group_id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:18:"class_unit_type_id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"visible";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"class_unit_group";a:2:{s:2:"id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}}s:15:"class_unit_type";a:2:{s:2:"id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"comments";a:13:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"object_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"object_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"autor_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"autor_email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"autor_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"rate";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"user_agent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"response";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"512";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"responser";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:7:"counter";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"30";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:5:"agent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"refer";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"512";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"file";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:5:"query";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"currency";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"10";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:5:"coeff";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:10:"db_version";a:1:{s:7:"version";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}}s:16:"delivery_regions";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:13:"delivery_type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"price";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"description";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:14:"delivery_types";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"min_price";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"service_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"description";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:9:"doc_agent";a:33:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"fullname";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"200";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"tel";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"sms_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"fax_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"alt_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"adres";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"300";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"gruzopol";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"300";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"inn";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"24";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"dir_fio";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"dir_fio_r";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"pfio";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"pdol";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"okevd";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"okpo";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"10";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"rs";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"22";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"bank";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"ks";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"bik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"12";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"group";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"pasp_num";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"12";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"pasp_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"pasp_kem";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"60";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"no_mail";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"responsible";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"data_sverki";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"dishonest";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"p_agent";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"bonus";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:13:"doc_agent_dov";a:11:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"ag_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"name2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"surname";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"range";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"pasp_ser";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"pasp_num";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"10";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"pasp_kem";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"pasp_data";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"15";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"mark_del";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:15:"doc_agent_group";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"pid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"desc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"doc_base";a:25:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"group";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:2:"vc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:7:"country";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"stock";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"proizv";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:6:"likvid";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"cost_date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"pos_type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"hidden";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"no_export_yml";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"unit";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"warranty";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:13:"warranty_type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:16:"meta_description";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"meta_keywords";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"title_tag";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"create_time";a:5:{s:1:"t";s:9:"timestamp";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"buy_time";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"transit_cnt";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"mult";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"bulkcnt";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:20:"doc_base_attachments";a:2:{s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:13:"attachment_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}}s:12:"doc_base_cnt";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"sklad";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"cnt";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"mesto";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"mincnt";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:13:"doc_base_cost";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"cost_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"value";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"accuracy";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"direction";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"rrp_firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:12:"doc_base_dop";a:10:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"d_int";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"d_ext";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"size";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"mass";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"analog";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"koncost";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"strana";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"ntd";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:17:"doc_base_dop_type";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"70";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"doc_base_gparams";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:12:"doc_base_img";a:3:{s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"img_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"default";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:14:"doc_base_kompl";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"kompl_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"cnt";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:15:"doc_base_params";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"param";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"pgroup_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"system";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"ym_assign";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:26:"doc_base_pcollections_list";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}}s:25:"doc_base_pcollections_set";a:2:{s:13:"collection_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"param_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}}s:15:"doc_base_values";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"param_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"value";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"intval";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"doubleval";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"strval";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"512";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:8:"doc_cost";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"25";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"value";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"vid";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"accuracy";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"direction";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"doc_dopdata";a:3:{s:3:"doc";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"param";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:5:"value";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"150";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:9:"doc_group";a:10:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:4:"desc";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"pid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"hidelevel";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"no_export_yml";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"printname";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:16:"meta_description";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"meta_keywords";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"title_tag";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:14:"doc_group_cost";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"group_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"cost_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"value";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"accuracy";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"direction";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:16:"doc_group_params";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"group_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"param_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:14:"show_in_filter";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:7:"doc_img";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:9:"doc_kassa";a:8:{s:3:"ids";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"PRI";}s:3:"num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"ballance";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"bik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"rs";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"ks";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:8:"doc_list";a:20:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"agent";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"created";a:5:{s:1:"t";s:9:"timestamp";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ok";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"sklad";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"kassa";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"bank";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"user";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"altnum";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"subtype";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"sum";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"nds";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"p_doc";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"mark_del";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"err_flag";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"contract";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:12:"doc_list_pos";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"doc";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"tovar";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"cnt";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"gtd";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"comm";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"page";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:11:"doc_list_sn";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"num";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:13:"prix_list_pos";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"rasx_list_pos";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:7:"doc_log";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"user";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"object_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"motion";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"500";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"time";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:11:"doc_rasxodi";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"adm";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:10:"doc_sklady";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"dnc";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:9:"doc_types";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"doc_vars";a:20:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"firm_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"150";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"firm_director";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:15:"firm_director_r";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"firm_manager";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:14:"firm_buhgalter";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:15:"firm_kladovshik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"firm_bank";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:15:"firm_bank_kor_s";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"25";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"firm_bik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"15";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"firm_schet";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"25";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"firm_inn";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"25";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"firm_adres";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"150";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:14:"firm_realadres";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"150";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:14:"firm_gruzootpr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"300";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"firm_telefon";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"60";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"firm_okpo";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"10";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"param_nds";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:18:"firm_kladovshik_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:21:"firm_kladovshik_doljn";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"errorlog";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"page";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"referer";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"agent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"18";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"msg";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:15:"fabric_builders";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:6:"active";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"fabric_data";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"sklad_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"builder_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"cnt";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:9:"firm_info";a:11:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"num_name";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"num_cost";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"num_art";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"num_nal";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"signature";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"200";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"currency";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"coeff";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"last_update";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"rrp";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:16:"firm_info_struct";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"table_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"art";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"nal";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:17:"log_call_requests";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"request_date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"call_date";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:7:"loginfo";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"page";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:5:"query";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:4:"mode";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"30";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:4:"user";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"500";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}}s:4:"news";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"title";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"autor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"ex_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"img_ext";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:5:"notes";a:9:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"user";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"sender";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"head";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}s:3:"msg";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}s:8:"senddate";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"enddate";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ok";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}}s:12:"parsed_price";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"firm";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"pos";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"nal";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"10";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"from";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"selected";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"photogalery";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:5:"price";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"200";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"cost";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"firm";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"art";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"nal";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"seeked";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:15:"prices_replaces";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:10:"search_str";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:11:"replace_str";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:10:"ps_counter";a:4:{s:4:"date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"query";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:2:"ps";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"counter";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:9:"ps_parser";a:2:{s:8:"parametr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"data";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"ps_query";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"query";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:11:"ps_settings";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"icon";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"3";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"15";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"template";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"150";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"template_like";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"prioritet";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:8:"seekdata";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"200";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"sql";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"200";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"regex";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"200";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"group";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"regex_neg";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:6:"survey";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"start_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"end_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"start_text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"end_text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:13:"survey_answer";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:12:"question_num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"answer_txt";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"answer_int";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"ip_address";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:9:"survey_ok";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"result";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:19:"survey_quest_option";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"question_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"option_num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:15:"survey_question";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:12:"question_num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:14:"sys_cli_status";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"script";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"status";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:7:"tickets";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"autor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"priority";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"theme";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"to_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"state";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"tickets_log";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"ticket";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"tickets_priority";a:4:{s:2:"id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"color";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"6";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"200";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:20:"tickets_responsibles";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"ticket_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:13:"tickets_state";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:14:"traffic_denyip";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"20";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"UNI";}s:4:"host";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}}s:4:"ulog";a:42:{s:2:"id";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"raw_mac";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"80";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"oob_time_sec";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"oob_time_usec";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"oob_prefix";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"oob_mark";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"oob_in";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"oob_out";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"ip_saddr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"15";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"ip_daddr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"15";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:11:"ip_protocol";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"ip_tos";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"ip_ttl";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"ip_totlen";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"ip_ihl";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"ip_csum";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"ip_id";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"ip_fragoff";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"tcp_sport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"tcp_dport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_seq";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"tcp_ackseq";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"tcp_window";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_urg";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"tcp_urgp";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_ack";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_psh";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_rst";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_syn";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_fin";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"udp_sport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"udp_dport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"udp_len";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"icmp_type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"icmp_code";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"icmp_echoid";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"icmp_echoseq";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"icmp_gateway";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"icmp_fragmtu";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"pwsniff_user";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"pwsniff_pass";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"ahesp_spi";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:5:"users";a:22:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"pass";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"192";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"pass_type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"pass_change";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:12:"pass_expired";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:16:"pass_date_change";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"reg_email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:17:"reg_email_confirm";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:19:"reg_email_subscribe";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"reg_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:19:"reg_phone_subscribe";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:17:"reg_phone_confirm";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"reg_date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"disabled";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:15:"disabled_reason";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"bifact_auth";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"real_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"real_address";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"jid";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"agent_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:9:"users_acl";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"action";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:14:"users_bad_auth";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"24";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:4:"time";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:10:"users_data";a:3:{s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"param";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"25";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:5:"value";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:15:"users_grouplist";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"users_groups_acl";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"gid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:6:"action";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}}s:14:"users_in_group";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"gid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:19:"users_login_history";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"useragent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:6:"method";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:13:"users_objects";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"actions";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:12:"users_openid";a:3:{s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:15:"openid_identify";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"192";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:11:"openid_type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:17:"users_worker_info";a:8:{s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"worker";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"worker_email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:12:"worker_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:10:"worker_jid";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:16:"worker_real_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:19:"worker_real_address";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:16:"worker_post_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:9:"variables";a:2:{s:9:"corrupted";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:13:"recalc_active";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:7:"votings";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"start_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"end_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:15:"votings_results";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"voting_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"variant_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"ip_addr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"date";a:5:{s:1:"t";s:9:"timestamp";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:12:"votings_vars";a:3:{s:9:"voting_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:10:"variant_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"text";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:9:"wikiphoto";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}}';
     28$struct_str = 'a:89:{s:8:"articles";a:8:{s:4:"type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"autor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"changed";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"changeautor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"img_ext";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:19:"async_workers_tasks";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"task";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"description";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"needrun";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"textstatus";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:11:"attachments";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:17:"original_filename";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:13:"class_country";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"full_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"number_code";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:5:"alfa2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"2";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:5:"alfa3";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"3";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:7:"visible";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:10:"class_unit";a:11:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"number_code";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:9:"rus_name1";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"eng_name1";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"rus_name2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"eng_name2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"50";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:19:"class_unit_group_id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:18:"class_unit_type_id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"visible";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"class_unit_group";a:2:{s:2:"id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}}s:15:"class_unit_type";a:2:{s:2:"id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"255";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"comments";a:13:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"object_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"object_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"autor_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"autor_email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"autor_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"rate";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"user_agent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"response";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"responser";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:7:"counter";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:5:"agent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"refer";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"512";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"file";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:5:"query";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"currency";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"10";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:5:"coeff";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:10:"db_version";a:1:{s:7:"version";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}}s:16:"delivery_regions";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:13:"delivery_type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"price";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"description";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:14:"delivery_types";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"min_price";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"service_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"description";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:9:"doc_agent";a:33:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"fullname";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"tel";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"sms_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"fax_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"alt_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"adres";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"gruzopol";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"512";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"inn";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"24";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"dir_fio";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"dir_fio_r";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"pfio";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"pdol";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"okevd";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"okpo";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"rs";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"bank";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"ks";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"bik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"group";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"pasp_num";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"pasp_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"pasp_kem";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"no_mail";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"responsible";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"data_sverki";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"dishonest";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"p_agent";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"bonus";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:13:"doc_agent_dov";a:11:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"ag_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"name2";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"surname";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"range";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"pasp_ser";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"pasp_num";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"pasp_kem";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:9:"pasp_data";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"mark_del";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:15:"doc_agent_group";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"pid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"doc_base";a:25:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"group";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:2:"vc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:7:"country";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"stock";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"proizv";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:6:"likvid";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"cost_date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"pos_type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"hidden";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"no_export_yml";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"unit";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"warranty";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:13:"warranty_type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:16:"meta_description";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"meta_keywords";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"title_tag";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"create_time";a:5:{s:1:"t";s:9:"timestamp";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"buy_time";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"transit_cnt";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"mult";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"bulkcnt";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:20:"doc_base_attachments";a:2:{s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:13:"attachment_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}}s:12:"doc_base_cnt";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"sklad";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"cnt";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"mesto";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"mincnt";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:13:"doc_base_cost";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"cost_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"5";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"value";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"accuracy";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"direction";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"rrp_firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:12:"doc_base_dop";a:9:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"d_int";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"d_ext";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"size";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"mass";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"analog";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"koncost";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"ntd";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:17:"doc_base_dop_type";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"doc_base_gparams";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:12:"doc_base_img";a:3:{s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"img_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"default";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:14:"doc_base_kompl";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"kompl_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"cnt";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:15:"doc_base_params";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"param";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"pgroup_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"system";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"ym_assign";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:26:"doc_base_pcollections_list";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}}s:25:"doc_base_pcollections_set";a:2:{s:13:"collection_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"param_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}}s:15:"doc_base_values";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"param_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"value";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"intval";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"doubleval";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"strval";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"512";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:8:"doc_cost";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"25";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"value";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"vid";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"accuracy";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"direction";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"doc_dopdata";a:3:{s:3:"doc";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"param";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:5:"value";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:9:"doc_group";a:10:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:4:"desc";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"pid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"hidelevel";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"no_export_yml";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"printname";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:16:"meta_description";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"meta_keywords";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"title_tag";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:14:"doc_group_cost";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"group_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"cost_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"value";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"accuracy";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"direction";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:16:"doc_group_params";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"group_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"param_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:14:"show_in_filter";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:7:"doc_img";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"UNI";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:9:"doc_kassa";a:8:{s:3:"ids";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"PRI";}s:3:"num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"ballance";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"bik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"rs";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"ks";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:8:"doc_list";a:20:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"agent";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"created";a:5:{s:1:"t";s:9:"timestamp";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ok";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"sklad";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"kassa";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"bank";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"user";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"altnum";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"subtype";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"sum";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"nds";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"p_doc";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"mark_del";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"err_flag";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"contract";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:12:"doc_list_pos";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"doc";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"tovar";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"cnt";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"gtd";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"comm";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"page";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:11:"doc_list_sn";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"num";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:13:"prix_list_pos";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"rasx_list_pos";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:7:"doc_log";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"user";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"object_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"motion";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"512";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"time";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:11:"doc_rasxodi";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"adm";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:10:"doc_sklady";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"dnc";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:9:"doc_types";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"doc_vars";a:19:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"firm_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"firm_director";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:15:"firm_director_r";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:14:"firm_buhgalter";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:15:"firm_kladovshik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"firm_bank";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:15:"firm_bank_kor_s";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"firm_bik";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"firm_schet";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"firm_inn";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"firm_adres";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:14:"firm_realadres";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:14:"firm_gruzootpr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"firm_telefon";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"firm_okpo";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"param_nds";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:18:"firm_kladovshik_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:21:"firm_kladovshik_doljn";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"errorlog";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"page";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:7:"referer";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"agent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"msg";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:15:"fabric_builders";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:6:"active";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"fabric_data";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:8:"sklad_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"builder_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"pos_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"cnt";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:9:"firm_info";a:11:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"num_name";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"num_cost";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"num_art";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"num_nal";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"signature";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"currency";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"coeff";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"last_update";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"rrp";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:15:"firm_info_group";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"group_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:16:"firm_info_struct";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"firm_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"table_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"art";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"nal";a:5:{s:1:"t";s:9:"mediumint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:17:"log_call_requests";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:5:"phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"request_date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"call_date";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:4:"news";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"title";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"autor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"ex_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"img_ext";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:12:"parsed_price";a:7:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"firm";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"pos";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"cost";a:5:{s:1:"t";s:7:"decimal";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:3:"nal";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"from";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"selected";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"photogalery";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:5:"price";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"cost";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"firm";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"art";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"nal";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"seeked";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:15:"prices_replaces";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:10:"search_str";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:11:"replace_str";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:10:"ps_counter";a:4:{s:4:"date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"query";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:2:"ps";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"counter";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:9:"ps_parser";a:2:{s:8:"parametr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"data";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:8:"ps_query";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"query";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:11:"ps_settings";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"icon";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"template";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:13:"template_like";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"prioritet";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:8:"seekdata";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:3:"sql";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"regex";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"group";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"regex_neg";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:6:"survey";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"start_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"end_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"start_text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"end_text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:13:"survey_answer";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:12:"question_num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"answer_txt";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"answer_int";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"ip_address";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:9:"survey_ok";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"result";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:19:"survey_quest_option";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:11:"question_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"option_num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:15:"survey_question";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"survey_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:12:"question_num";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:4:"type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:7:"tickets";a:8:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"autor";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:8:"priority";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"theme";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"to_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:5:"state";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:11:"tickets_log";a:5:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"ticket";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"text";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"tickets_priority";a:4:{s:2:"id";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:5:"color";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:20:"tickets_responsibles";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"ticket_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:13:"tickets_state";a:2:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:14:"traffic_denyip";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"UNI";}s:4:"host";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}}s:4:"ulog";a:42:{s:2:"id";a:5:{s:1:"t";s:6:"bigint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"raw_mac";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"80";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"oob_time_sec";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:13:"oob_time_usec";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"oob_prefix";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"oob_mark";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"oob_in";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"oob_out";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"ip_saddr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"15";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"ip_daddr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"15";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:11:"ip_protocol";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"ip_tos";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"ip_ttl";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"ip_totlen";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:6:"ip_ihl";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"ip_csum";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:5:"ip_id";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"ip_fragoff";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"tcp_sport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"tcp_dport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_seq";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"tcp_ackseq";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:10:"tcp_window";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_urg";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"tcp_urgp";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_ack";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_psh";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_rst";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_syn";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"tcp_fin";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"udp_sport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"udp_dport";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"udp_len";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"icmp_type";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"icmp_code";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:11:"icmp_echoid";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"icmp_echoseq";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"icmp_gateway";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"icmp_fragmtu";a:5:{s:1:"t";s:8:"smallint";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"pwsniff_user";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"pwsniff_pass";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:3:"YES";s:2:"cl";s:2:"30";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"ahesp_spi";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:5:"users";a:22:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"pass";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"pass_type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"pass_change";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:12:"pass_expired";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:16:"pass_date_change";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"reg_email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:17:"reg_email_confirm";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:19:"reg_email_subscribe";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:9:"reg_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:19:"reg_phone_subscribe";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:17:"reg_phone_confirm";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:8:"reg_date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"disabled";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:15:"disabled_reason";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:11:"bifact_auth";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:9:"real_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:12:"real_address";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:3:"jid";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"type";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"4";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:8:"agent_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:9:"users_acl";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:6:"action";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:14:"users_bad_auth";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"24";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:4:"time";a:5:{s:1:"t";s:6:"double";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:10:"users_data";a:3:{s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:5:"param";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"25";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:5:"value";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"100";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:15:"users_grouplist";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"50";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:7:"comment";a:5:{s:1:"t";s:4:"text";s:4:"null";s:2:"NO";s:2:"cl";s:5:"65535";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:16:"users_groups_acl";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"gid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:6:"latin1";s:1:"k";s:3:"MUL";}s:6:"action";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:6:"latin1";s:1:"k";s:0:"";}}s:14:"users_in_group";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:3:"gid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}}s:19:"users_login_history";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:4:"date";a:5:{s:1:"t";s:8:"datetime";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:2:"ip";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:9:"useragent";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:6:"method";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:1:"8";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:13:"users_objects";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"object";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"desc";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:7:"actions";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:12:"users_openid";a:3:{s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:15:"openid_identify";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"192";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"PRI";}s:11:"openid_type";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:17:"users_worker_info";a:8:{s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:6:"worker";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:12:"worker_email";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:12:"worker_phone";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"16";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:10:"worker_jid";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:16:"worker_real_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:19:"worker_real_address";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"256";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:16:"worker_post_name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}s:9:"variables";a:2:{s:9:"corrupted";a:5:{s:1:"t";s:7:"tinyint";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:13:"recalc_active";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:7:"votings";a:4:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"name";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}s:10:"start_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:8:"end_date";a:5:{s:1:"t";s:4:"date";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:15:"votings_results";a:6:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:9:"voting_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:10:"variant_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"user_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:3:"YES";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"MUL";}s:7:"ip_addr";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"32";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}s:4:"date";a:5:{s:1:"t";s:9:"timestamp";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}}s:12:"votings_vars";a:3:{s:9:"voting_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:10:"variant_id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:4:"text";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:3:"128";s:2:"cs";s:4:"utf8";s:1:"k";s:3:"MUL";}}s:9:"wikiphoto";a:3:{s:2:"id";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:3:"PRI";}s:3:"uid";a:5:{s:1:"t";s:3:"int";s:4:"null";s:2:"NO";s:2:"cl";N;s:2:"cs";N;s:1:"k";s:0:"";}s:7:"comment";a:5:{s:1:"t";s:7:"varchar";s:4:"null";s:2:"NO";s:2:"cl";s:2:"64";s:2:"cs";s:4:"utf8";s:1:"k";s:0:"";}}}';
    2929
    3030$export = 0;
  • trunk/cli/dolg_info.php

    r593 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/cli/price_an.php

    r593 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/cli/ps_parser.php

    r593 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2012, Sl_An, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, Sl_An, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/cli/resp_clear.php

    r593 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/common/async/dbcheck.php

    r602 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/common/async/psparser.php

    r607 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/common/asyncworker.php

    r607 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/common/bank1c.php

    r616 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/common/core.common.php

    r633 r636  
    22//      MultiMag v0.2 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
     
    1919
    2020define("MULTIMAG_REV", "634");
    21 define("MULTIMAG_VERSION", "0.2rc1.".MULTIMAG_REV);
     21define("MULTIMAG_VERSION", "0.2.".MULTIMAG_REV);
    2222
    2323/// Файл содержит код, используемый как web, так и cli скриптами
  • trunk/common/priceloader.ods.php

    r555 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/common/priceloader.php

    r607 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/common/priceloader.xls.php

    r309 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/db_struct.sql

    r464 r636  
     1SET FOREIGN_KEY_CHECKS=0;
    12SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    2 
     3SET time_zone = "+00:00";
    34
    45/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
     
    78/*!40101 SET NAMES utf8 */;
    89
    9 --
    10 -- База данных: `multimag`
    11 --
    12 
    13 -- --------------------------------------------------------
    14 
    15 --
    16 -- Структура таблицы `articles`
    17 --
    1810
    1911CREATE TABLE IF NOT EXISTS `articles` (
     
    3325) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    3426
    35 -- --------------------------------------------------------
    36 
    37 --
    38 -- Структура таблицы `async_workers_tasks`
    39 --
    40 
    4127CREATE TABLE IF NOT EXISTS `async_workers_tasks` (
    4228  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    4935) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    5036
    51 -- --------------------------------------------------------
    52 
    53 --
    54 -- Структура таблицы `attachments`
    55 --
    56 
    5737CREATE TABLE IF NOT EXISTS `attachments` (
    5838  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    6040  `comment` varchar(256) NOT NULL,
    6141  PRIMARY KEY (`id`)
    62 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Вложения' AUTO_INCREMENT=1 ;
    63 
    64 -- --------------------------------------------------------
    65 
    66 --
    67 -- Структура таблицы `class_country`
    68 --
     42) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='' AUTO_INCREMENT=1 ;
    6943
    7044CREATE TABLE IF NOT EXISTS `class_country` (
     
    8357) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Общероссийский классификатор стран мира ОКСМ' AUTO_INCREMENT=249 ;
    8458
    85 --
    86 -- Дамп данных таблицы `class_country`
    87 --
    88 
    89 INSERT INTO `class_country` (`id`, `name`, `full_name`, `number_code`, `alfa2`, `alfa3`, `visible`, `comment`) VALUES
     59INSERT IGNORE INTO `class_country` (`id`, `name`, `full_name`, `number_code`, `alfa2`, `alfa3`, `visible`, `comment`) VALUES
    9060(1, 'АФГАНИСТАН', 'Переходное Исламское Государство Афганистан', '004', 'AF', 'AFG', 1, NULL),
    9161(2, 'АЛБАНИЯ', 'Республика Албания', '008', 'AL', 'ALB', 1, NULL),
     
    337307(248, 'ЮЖНАЯ ОСЕТИЯ', 'Республика Южная Осетия', '896', 'OS', 'OST', 1, NULL);
    338308
    339 -- --------------------------------------------------------
    340 
    341 --
    342 -- Структура таблицы `class_unit`
    343 --
    344 
    345309CREATE TABLE IF NOT EXISTS `class_unit` (
    346310  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'pk',
     
    361325) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Общероссийский классификатор единиц измерения ОКЕИ' AUTO_INCREMENT=431 ;
    362326
    363 --
    364 -- Дамп данных таблицы `class_unit`
    365 --
    366 
    367 INSERT INTO `class_unit` (`id`, `name`, `number_code`, `rus_name1`, `eng_name1`, `rus_name2`, `eng_name2`, `class_unit_group_id`, `class_unit_type_id`, `visible`, `comment`) VALUES
     327INSERT IGNORE INTO `class_unit` (`id`, `name`, `number_code`, `rus_name1`, `eng_name1`, `rus_name2`, `eng_name2`, `class_unit_group_id`, `class_unit_type_id`, `visible`, `comment`) VALUES
    368328(1, 'Миллиметр', '003', 'мм', 'mm', 'ММ', 'MMT', 1, 1, 1, NULL),
    369329(2, 'Сантиметр', '004', 'см', 'cm', 'СМ', 'CMT', 1, 1, 1, NULL),
     
    395355(430, 'Стандарт', '152', NULL, '-', NULL, 'WSD', 3, 3, 1, NULL);
    396356
    397 -- --------------------------------------------------------
    398 
    399 --
    400 -- Структура таблицы `class_unit_group`
    401 --
    402 
    403357CREATE TABLE IF NOT EXISTS `class_unit_group` (
    404358  `id` tinyint(4) NOT NULL AUTO_INCREMENT COMMENT 'pk',
     
    408362) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Группы единиц измерения' AUTO_INCREMENT=8 ;
    409363
    410 --
    411 -- Дамп данных таблицы `class_unit_group`
    412 --
    413 
    414 INSERT INTO `class_unit_group` (`id`, `name`) VALUES
     364INSERT IGNORE INTO `class_unit_group` (`id`, `name`) VALUES
    415365(6, 'Единицы времени'),
    416366(1, 'Единицы длины'),
     
    421371(7, 'Экономические единицы');
    422372
    423 -- --------------------------------------------------------
    424 
    425 --
    426 -- Структура таблицы `class_unit_type`
    427 --
    428 
    429373CREATE TABLE IF NOT EXISTS `class_unit_type` (
    430374  `id` tinyint(4) NOT NULL AUTO_INCREMENT COMMENT 'pk',
     
    433377) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Разделы/приложения, в которые включены единицы измерения' AUTO_INCREMENT=4 ;
    434378
    435 --
    436 -- Дамп данных таблицы `class_unit_type`
    437 --
    438 
    439 INSERT INTO `class_unit_type` (`id`, `name`) VALUES
     379INSERT IGNORE INTO `class_unit_type` (`id`, `name`) VALUES
    440380(1, 'Международные единицы измерения, включенные в ЕСКК'),
    441381(2, 'Национальные единицы измерения, включенные в ЕСКК'),
    442382(3, 'Международные единицы измерения, не включенные в ЕСКК');
    443 
    444 -- --------------------------------------------------------
    445 
    446 --
    447 -- Структура таблицы `comments`
    448 --
    449383
    450384CREATE TABLE IF NOT EXISTS `comments` (
     
    460394  `ip` varchar(16) NOT NULL,
    461395  `user_agent` varchar(128) NOT NULL,
    462   `response` varchar(512) NOT NULL COMMENT 'Ответ администрации',
     396  `response` text NOT NULL COMMENT 'Ответ администрации',
    463397  `responser` int(11) NOT NULL COMMENT 'Автор ответа',
    464398  PRIMARY KEY (`id`),
     
    469403) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Коментарии к товарам, новостям, статьям и пр.' AUTO_INCREMENT=1 ;
    470404
    471 -- --------------------------------------------------------
    472 
    473 --
    474 -- Структура таблицы `counter`
    475 --
    476 
    477405CREATE TABLE IF NOT EXISTS `counter` (
    478406  `id` int(11) NOT NULL AUTO_INCREMENT,
    479407  `date` bigint(20) NOT NULL DEFAULT '0',
    480   `ip` varchar(30) CHARACTER SET latin1 NOT NULL DEFAULT '',
     408  `ip` varchar(32) CHARACTER SET latin1 NOT NULL DEFAULT '',
    481409  `agent` varchar(128) NOT NULL DEFAULT '',
    482410  `refer` varchar(512) NOT NULL DEFAULT '',
    483   `file` varchar(20) CHARACTER SET latin1 NOT NULL DEFAULT '',
     411  `file` varchar(32) CHARACTER SET latin1 NOT NULL DEFAULT '',
    484412  `query` varchar(128) NOT NULL DEFAULT '',
    485413  UNIQUE KEY `id` (`id`),
     
    491419) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    492420
    493 -- --------------------------------------------------------
    494 
    495 --
    496 -- Структура таблицы `currency`
    497 --
    498 
    499421CREATE TABLE IF NOT EXISTS `currency` (
    500422  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    503425  UNIQUE KEY `id` (`id`),
    504426  UNIQUE KEY `name` (`name`)
    505 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
    506 
    507 --
    508 -- Дамп данных таблицы `currency`
    509 --
    510 
    511 INSERT INTO `currency` (`id`, `name`, `coeff`) VALUES
    512 (1, 'RUR', 1.0000),
    513 (2, 'USD', 30.7194);
    514 
    515 -- --------------------------------------------------------
    516 
    517 --
    518 -- Структура таблицы `db_version`
    519 --
     427) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    520428
    521429CREATE TABLE IF NOT EXISTS `db_version` (
     
    524432) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    525433
    526 --
    527 -- Дамп данных таблицы `db_version`
    528 --
    529 
    530 INSERT INTO `db_version` (`version`) VALUES
    531 (456);
    532 
    533 -- --------------------------------------------------------
    534 
    535 --
    536 -- Структура таблицы `doc_agent`
    537 --
     434INSERT IGNORE INTO `db_version` (`version`) VALUES
     435(634);
     436
     437CREATE TABLE IF NOT EXISTS `delivery_regions` (
     438  `id` int(11) NOT NULL AUTO_INCREMENT,
     439  `delivery_type` int(11) NOT NULL,
     440  `name` varchar(128) NOT NULL,
     441  `price` int(11) NOT NULL,
     442  `description` text NOT NULL,
     443  PRIMARY KEY (`id`)
     444) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
     445
     446CREATE TABLE IF NOT EXISTS `delivery_types` (
     447  `id` int(11) NOT NULL AUTO_INCREMENT,
     448  `name` varchar(128) NOT NULL,
     449  `min_price` int(11) NOT NULL,
     450  `service_id` int(11) NOT NULL,
     451  `description` text NOT NULL,
     452  PRIMARY KEY (`id`)
     453) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    538454
    539455CREATE TABLE IF NOT EXISTS `doc_agent` (
    540456  `id` int(11) NOT NULL AUTO_INCREMENT,
    541   `name` varchar(100) NOT NULL,
    542   `fullname` varchar(200) NOT NULL,
     457  `name` varchar(64) NOT NULL,
     458  `fullname` varchar(256) NOT NULL,
    543459  `tel` varchar(64) NOT NULL,
    544460  `sms_phone` varchar(16) NOT NULL,
    545461  `fax_phone` varchar(16) NOT NULL,
    546462  `alt_phone` varchar(16) NOT NULL,
    547   `adres` varchar(300) NOT NULL,
    548   `gruzopol` varchar(300) NOT NULL,
     463  `adres` varchar(256) NOT NULL,
     464  `gruzopol` varchar(512) NOT NULL,
    549465  `inn` varchar(24) NOT NULL,
    550466  `dir_fio` varchar(128) NOT NULL,
     
    552468  `pfio` text NOT NULL,
    553469  `pdol` text NOT NULL,
    554   `okevd` varchar(5) NOT NULL,
    555   `okpo` varchar(10) NOT NULL,
    556   `rs` varchar(22) NOT NULL,
    557   `bank` varchar(50) NOT NULL,
    558   `ks` varchar(50) NOT NULL,
    559   `bik` varchar(12) NOT NULL,
     470  `okevd` varchar(8) NOT NULL,
     471  `okpo` varchar(16) NOT NULL,
     472  `rs` varchar(32) NOT NULL,
     473  `bank` varchar(64) NOT NULL,
     474  `ks` varchar(32) NOT NULL,
     475  `bik` varchar(16) NOT NULL,
    560476  `group` int(11) NOT NULL,
    561   `email` varchar(50) NOT NULL,
     477  `email` varchar(64) NOT NULL,
    562478  `type` tinyint(4) NOT NULL DEFAULT '1',
    563   `pasp_num` varchar(12) NOT NULL,
     479  `pasp_num` varchar(16) NOT NULL,
    564480  `pasp_date` date NOT NULL,
    565   `pasp_kem` varchar(60) NOT NULL,
     481  `pasp_kem` varchar(64) NOT NULL,
    566482  `comment` text NOT NULL,
    567483  `no_mail` tinyint(4) NOT NULL,
    568   `responsible` int(11) NOT NULL,
     484  `responsible` int(11) DEFAULT NULL,
    569485  `data_sverki` date NOT NULL,
    570486  `dishonest` tinyint(4) NOT NULL,
    571487  `p_agent` int(11) DEFAULT NULL COMMENT 'Подчинение другому агенту',
     488  `bonus` decimal(10,2) NOT NULL,
    572489  UNIQUE KEY `id` (`id`),
    573490  KEY `name` (`name`),
    574   KEY `fullname` (`fullname`),
     491  KEY `fullname` (`fullname`(255)),
    575492  KEY `tel` (`tel`),
    576493  KEY `inn` (`inn`),
     
    580497) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='pcomment - printable comment' AUTO_INCREMENT=2 ;
    581498
    582 --
    583 -- Дамп данных таблицы `doc_agent`
    584 --
    585 
    586 INSERT INTO `doc_agent` (`id`, `name`, `fullname`, `tel`, `sms_phone`, `fax_phone`, `alt_phone`, `adres`, `gruzopol`, `inn`, `dir_fio`, `dir_fio_r`, `pfio`, `pdol`, `okevd`, `okpo`, `rs`, `bank`, `ks`, `bik`, `group`, `email`, `type`, `pasp_num`, `pasp_date`, `pasp_kem`, `comment`, `no_mail`, `responsible`, `data_sverki`, `dishonest`, `p_agent`) VALUES
    587 (1, 'Частное лицо', 'Частное лицо', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 1, '', 1, '', '0000-00-00', '', '', 1, 0, '0000-00-00', 0, NULL);
    588 
    589 -- --------------------------------------------------------
    590 
    591 --
    592 -- Структура таблицы `doc_agent_dov`
    593 --
     499INSERT IGNORE INTO `doc_agent` (`id`, `name`, `fullname`, `tel`, `sms_phone`, `fax_phone`, `alt_phone`, `adres`, `gruzopol`, `inn`, `dir_fio`, `dir_fio_r`, `pfio`, `pdol`, `okevd`, `okpo`, `rs`, `bank`, `ks`, `bik`, `group`, `email`, `type`, `pasp_num`, `pasp_date`, `pasp_kem`, `comment`, `no_mail`, `responsible`, `data_sverki`, `dishonest`, `p_agent`, `bonus`) VALUES
     500(1, 'Первый агент', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', 1, '', '0000-00-00', '', '', 0, NULL, '0000-00-00', 0, NULL, 0.00);
    594501
    595502CREATE TABLE IF NOT EXISTS `doc_agent_dov` (
    596503  `id` int(11) NOT NULL AUTO_INCREMENT,
    597504  `ag_id` int(11) NOT NULL,
    598   `name` varchar(50) NOT NULL,
    599   `name2` varchar(50) NOT NULL,
    600   `surname` varchar(50) NOT NULL,
    601   `range` varchar(50) NOT NULL,
    602   `pasp_ser` varchar(5) NOT NULL,
    603   `pasp_num` varchar(10) NOT NULL,
    604   `pasp_kem` varchar(100) NOT NULL,
    605   `pasp_data` varchar(15) NOT NULL,
    606   `mark_del` bigint(20) NOT NULL,
     505  `name` varchar(64) NOT NULL,
     506  `name2` varchar(64) NOT NULL,
     507  `surname` varchar(64) NOT NULL,
     508  `range` varchar(64) NOT NULL,
     509  `pasp_ser` varchar(8) NOT NULL,
     510  `pasp_num` varchar(16) NOT NULL,
     511  `pasp_kem` varchar(128) NOT NULL,
     512  `pasp_data` varchar(16) NOT NULL,
     513  `mark_del` tinyint(4) NOT NULL,
    607514  UNIQUE KEY `id` (`id`),
    608515  KEY `ag_id` (`ag_id`),
     
    616523  KEY `pasp_data` (`pasp_data`),
    617524  KEY `mark_del` (`mark_del`)
    618 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
    619 
    620 --
    621 -- Дамп данных таблицы `doc_agent_dov`
    622 --
    623 
    624 INSERT INTO `doc_agent_dov` (`id`, `ag_id`, `name`, `name2`, `surname`, `range`, `pasp_ser`, `pasp_num`, `pasp_kem`, `pasp_data`, `mark_del`) VALUES
    625 (1, 1, 'Тест', 'Тестович', 'Тестов', '', '', '', '', '', 0);
    626 
    627 -- --------------------------------------------------------
    628 
    629 --
    630 -- Структура таблицы `doc_agent_group`
    631 --
     525) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    632526
    633527CREATE TABLE IF NOT EXISTS `doc_agent_group` (
    634528  `id` int(11) NOT NULL AUTO_INCREMENT,
    635   `name` varchar(50) NOT NULL,
     529  `name` varchar(32) NOT NULL,
    636530  `pid` int(11) NOT NULL,
    637   `desc` varchar(100) NOT NULL,
    638   UNIQUE KEY `id` (`id`)
    639 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
    640 
    641 --
    642 -- Дамп данных таблицы `doc_agent_group`
    643 --
    644 
    645 INSERT INTO `doc_agent_group` (`id`, `name`, `pid`, `desc`) VALUES
    646 (1, 'Покупатели', 0, '');
    647 
    648 -- --------------------------------------------------------
    649 
    650 --
    651 -- Структура таблицы `doc_base`
    652 --
     531  `desc` varchar(128) NOT NULL,
     532  UNIQUE KEY `id` (`id`),
     533  KEY `pid` (`pid`)
     534) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    653535
    654536CREATE TABLE IF NOT EXISTS `doc_base` (
    655537  `id` int(11) NOT NULL AUTO_INCREMENT,
    656538  `group` int(11) NOT NULL DEFAULT '0',
    657   `name` varchar(100) NOT NULL,
     539  `name` varchar(128) NOT NULL,
    658540  `vc` varchar(32) NOT NULL COMMENT 'Код производителя',
    659541  `country` int(11) DEFAULT NULL,
     
    661543  `cost` double(10,2) NOT NULL DEFAULT '0.00',
    662544  `stock` tinyint(1) NOT NULL,
    663   `proizv` varchar(20) NOT NULL,
     545  `proizv` varchar(32) NOT NULL,
    664546  `likvid` decimal(10,2) NOT NULL DEFAULT '0.00',
    665547  `cost_date` datetime NOT NULL,
     
    675557  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    676558  `buy_time` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
     559  `transit_cnt` int(11) NOT NULL DEFAULT '0',
     560  `mult` int(11) NOT NULL COMMENT 'Кратность',
     561  `bulkcnt` int(11) NOT NULL COMMENT 'Количество оптом',
    677562  UNIQUE KEY `id` (`id`),
    678563  UNIQUE KEY `uniq` (`group`,`name`),
     564  UNIQUE KEY `vc` (`vc`),
    679565  KEY `group` (`group`),
    680566  KEY `name` (`name`),
     
    686572  KEY `country` (`country`),
    687573  KEY `create_time` (`create_time`),
    688   KEY `buy_time` (`buy_time`)
    689 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=3 ;
    690 
    691 --
    692 -- Дамп данных таблицы `doc_base`
    693 --
    694 
    695 INSERT INTO `doc_base` (`id`, `group`, `name`, `vc`, `country`, `desc`, `cost`, `stock`, `proizv`, `likvid`, `cost_date`, `pos_type`, `hidden`, `no_export_yml`, `unit`, `warranty`, `warranty_type`, `meta_description`, `meta_keywords`, `title_tag`, `create_time`, `buy_time`) VALUES
    696 (1, 1, 'Первый товар', '', 1, '', 0.00, 0, '', 0.00, '0000-00-00 00:00:00', 0, 0, 0, 260, 0, 0, '', '', '', '2012-12-23 23:51:33', '1970-01-01 00:00:00'),
    697 (2, 2, 'Первая услуга', '', 1, '', 12.00, 0, '', 0.00, '0000-00-00 00:00:00', 1, 0, 0, 285, 0, 0, '', '', '', '2012-12-23 23:52:31', '1970-01-01 00:00:00');
    698 
    699 -- --------------------------------------------------------
    700 
    701 --
    702 -- Структура таблицы `doc_base_attachments`
    703 --
     574  KEY `buy_time` (`buy_time`),
     575  KEY `transit_cnt` (`transit_cnt`)
     576) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=4 ;
     577
     578INSERT IGNORE INTO `doc_base` (`id`, `group`, `name`, `vc`, `country`, `desc`, `cost`, `stock`, `proizv`, `likvid`, `cost_date`, `pos_type`, `hidden`, `no_export_yml`, `unit`, `warranty`, `warranty_type`, `meta_description`, `meta_keywords`, `title_tag`, `create_time`, `buy_time`, `transit_cnt`, `mult`, `bulkcnt`) VALUES
     579(3, 1, 'Первый товар', '', NULL, '', 0.00, 0, '', 0.00, '0000-00-00 00:00:00', 0, 0, 0, 1, 0, 0, '', '', '', '2014-02-26 14:08:36', '1970-01-01 00:00:00', 0, 0, 0);
    704580
    705581CREATE TABLE IF NOT EXISTS `doc_base_attachments` (
     
    708584  UNIQUE KEY `uni` (`pos_id`,`attachment_id`),
    709585  KEY `attachment_id` (`attachment_id`)
    710 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Присоединённые файлы';
    711 
    712 -- --------------------------------------------------------
    713 
    714 --
    715 -- Структура таблицы `doc_base_cnt`
    716 --
     586) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    717587
    718588CREATE TABLE IF NOT EXISTS `doc_base_cnt` (
     
    728598) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    729599
    730 -- --------------------------------------------------------
    731 
    732 --
    733 -- Структура таблицы `doc_base_cost`
    734 --
    735 
    736600CREATE TABLE IF NOT EXISTS `doc_base_cost` (
    737601  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    742606  `accuracy` tinyint(4) NOT NULL,
    743607  `direction` tinyint(4) NOT NULL,
     608  `rrp_firm_id` int(11) DEFAULT NULL,
    744609  UNIQUE KEY `id` (`id`),
    745610  UNIQUE KEY `uniq` (`pos_id`,`cost_id`),
     
    750615) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    751616
    752 -- --------------------------------------------------------
    753 
    754 --
    755 -- Структура таблицы `doc_base_dop`
    756 --
    757 
    758617CREATE TABLE IF NOT EXISTS `doc_base_dop` (
    759618  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    763622  `size` double NOT NULL DEFAULT '0',
    764623  `mass` double NOT NULL DEFAULT '0',
    765   `analog` varchar(20) NOT NULL,
     624  `analog` varchar(32) NOT NULL,
    766625  `koncost` double NOT NULL DEFAULT '0',
    767   `strana` varchar(20) NOT NULL,
    768   `tranzit` tinyint(4) NOT NULL,
    769626  `ntd` varchar(32) NOT NULL,
    770627  UNIQUE KEY `id` (`id`),
     
    778635) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    779636
    780 -- --------------------------------------------------------
    781 
    782 --
    783 -- Структура таблицы `doc_base_dop_type`
    784 --
    785 
    786637CREATE TABLE IF NOT EXISTS `doc_base_dop_type` (
    787   `id` int(11) NOT NULL,
    788   `name` varchar(70) NOT NULL,
     638  `id` int(11) NOT NULL AUTO_INCREMENT,
     639  `name` varchar(64) NOT NULL,
    789640  `desc` text NOT NULL,
    790641  UNIQUE KEY `id` (`id`),
    791642  KEY `name` (`name`)
    792 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    793 
    794 -- --------------------------------------------------------
    795 
    796 --
    797 -- Структура таблицы `doc_base_gparams`
    798 --
     643) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    799644
    800645CREATE TABLE IF NOT EXISTS `doc_base_gparams` (
     
    802647  `name` varchar(64) DEFAULT NULL,
    803648  PRIMARY KEY (`id`)
    804 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    805 
    806 -- --------------------------------------------------------
    807 
    808 --
    809 -- Структура таблицы `doc_base_img`
    810 --
     649) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
     650
     651INSERT IGNORE INTO `doc_base_gparams` (`id`, `name`) VALUES
     652(1, 'Основные');
    811653
    812654CREATE TABLE IF NOT EXISTS `doc_base_img` (
     
    818660) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    819661
    820 -- --------------------------------------------------------
    821 
    822 --
    823 -- Структура таблицы `doc_base_kompl`
    824 --
    825 
    826662CREATE TABLE IF NOT EXISTS `doc_base_kompl` (
    827663  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    834670  KEY `pos_id` (`pos_id`)
    835671) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Комплектующие - из чего состоит эта позиция' AUTO_INCREMENT=1 ;
    836 
    837 -- --------------------------------------------------------
    838 
    839 --
    840 -- Структура таблицы `doc_base_params`
    841 --
    842672
    843673CREATE TABLE IF NOT EXISTS `doc_base_params` (
     
    854684) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    855685
    856 -- --------------------------------------------------------
    857 
    858 --
    859 -- Структура таблицы `doc_base_pcollections_list`
    860 --
    861 
    862686CREATE TABLE IF NOT EXISTS `doc_base_pcollections_list` (
    863687  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    866690  UNIQUE KEY `name` (`name`)
    867691) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Наборы свойств складской номенклатуры' AUTO_INCREMENT=1 ;
    868 
    869 -- --------------------------------------------------------
    870 
    871 --
    872 -- Структура таблицы `doc_base_pcollections_set`
    873 --
    874692
    875693CREATE TABLE IF NOT EXISTS `doc_base_pcollections_set` (
     
    880698  KEY `param_id` (`param_id`)
    881699) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Список параметров в наборе';
    882 
    883 -- --------------------------------------------------------
    884 
    885 --
    886 -- Структура таблицы `doc_base_values`
    887 --
    888700
    889701CREATE TABLE IF NOT EXISTS `doc_base_values` (
     
    903715) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    904716
    905 -- --------------------------------------------------------
    906 
    907 --
    908 -- Структура таблицы `doc_cost`
    909 --
    910 
    911717CREATE TABLE IF NOT EXISTS `doc_cost` (
    912718  `id` int(11) NOT NULL AUTO_INCREMENT,
    913719  `name` varchar(25) NOT NULL,
    914   `type` varchar(5) NOT NULL,
     720  `type` varchar(4) NOT NULL,
    915721  `value` decimal(8,2) NOT NULL COMMENT 'Значение цены',
    916722  `vid` tinyint(4) NOT NULL COMMENT 'Вид цены определяет места её использования',
     
    920726) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
    921727
    922 --
    923 -- Дамп данных таблицы `doc_cost`
    924 --
    925 
    926 INSERT INTO `doc_cost` (`id`, `name`, `type`, `value`, `vid`, `accuracy`, `direction`) VALUES
    927 (1, 'Для зарегистрированных', 'pp', 0.00, -1, 2, 0),
    928 (2, 'По умолчанию', 'pp', 0.00, 1, 2, 0);
    929 
    930 -- --------------------------------------------------------
    931 
    932 --
    933 -- Структура таблицы `doc_dopdata`
    934 --
     728INSERT IGNORE INTO `doc_cost` (`id`, `name`, `type`, `value`, `vid`, `accuracy`, `direction`) VALUES
     729(1, 'Розничная', 'pp', 0.00, 1, 2, 0),
     730(2, 'Мелкий опт', 'pp', -3.00, -1, 2, 0),
     731(3, 'Средний опт', 'pp', -5.00, -2, 2, 0);
    935732
    936733CREATE TABLE IF NOT EXISTS `doc_dopdata` (
    937734  `doc` int(11) NOT NULL,
    938   `param` varchar(20) NOT NULL,
    939   `value` varchar(150) NOT NULL,
     735  `param` varchar(32) NOT NULL,
     736  `value` varchar(128) NOT NULL,
    940737  UNIQUE KEY `doc` (`doc`,`param`),
    941738  KEY `value` (`value`)
    942739) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    943 
    944 -- --------------------------------------------------------
    945 
    946 --
    947 -- Структура таблицы `doc_group`
    948 --
    949740
    950741CREATE TABLE IF NOT EXISTS `doc_group` (
     
    963754  KEY `pid` (`pid`),
    964755  KEY `hidelevel` (`hidelevel`)
    965 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
    966 
    967 --
    968 -- Дамп данных таблицы `doc_group`
    969 --
    970 
    971 INSERT INTO `doc_group` (`id`, `name`, `desc`, `pid`, `hidelevel`, `no_export_yml`, `printname`, `meta_description`, `meta_keywords`, `title_tag`) VALUES
    972 (1, 'Товары', '', 0, 0, 0, '', '', '', ''),
    973 (2, 'Услуги', '', 0, 0, 0, '', '', '', '');
    974 
    975 -- --------------------------------------------------------
    976 
    977 --
    978 -- Структура таблицы `doc_group_cost`
    979 --
     756) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
     757
     758INSERT IGNORE INTO `doc_group` (`id`, `name`, `desc`, `pid`, `hidelevel`, `no_export_yml`, `printname`, `meta_description`, `meta_keywords`, `title_tag`) VALUES
     759(1, 'товары', '', 0, 0, 0, '', '', '', '');
    980760
    981761CREATE TABLE IF NOT EXISTS `doc_group_cost` (
     
    983763  `group_id` int(11) NOT NULL,
    984764  `cost_id` int(11) NOT NULL,
    985   `type` varchar(5) NOT NULL,
     765  `type` varchar(4) NOT NULL,
    986766  `value` decimal(8,2) NOT NULL,
    987767  `accuracy` tinyint(4) NOT NULL,
     
    994774  KEY `type` (`type`)
    995775) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    996 
    997 -- --------------------------------------------------------
    998 
    999 --
    1000 -- Структура таблицы `doc_group_params`
    1001 --
    1002776
    1003777CREATE TABLE IF NOT EXISTS `doc_group_params` (
     
    1012786) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1013787
    1014 -- --------------------------------------------------------
    1015 
    1016 --
    1017 -- Структура таблицы `doc_img`
    1018 --
    1019 
    1020788CREATE TABLE IF NOT EXISTS `doc_img` (
    1021789  `id` int(11) NOT NULL AUTO_INCREMENT,
    1022   `name` varchar(100) NOT NULL,
     790  `name` varchar(64) NOT NULL,
    1023791  `type` varchar(4) NOT NULL,
    1024792  UNIQUE KEY `id` (`id`),
     
    1026794) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1027795
    1028 -- --------------------------------------------------------
    1029 
    1030 --
    1031 -- Структура таблицы `doc_kassa`
    1032 --
    1033 
    1034796CREATE TABLE IF NOT EXISTS `doc_kassa` (
    1035   `ids` varchar(50) CHARACTER SET latin1 NOT NULL,
     797  `ids` varchar(8) CHARACTER SET latin1 NOT NULL,
    1036798  `num` int(11) NOT NULL,
    1037   `name` varchar(50) NOT NULL,
     799  `name` varchar(64) NOT NULL,
    1038800  `ballance` decimal(10,2) NOT NULL,
    1039   `bik` varchar(20) NOT NULL,
    1040   `rs` varchar(30) NOT NULL,
    1041   `ks` varchar(30) NOT NULL,
     801  `bik` varchar(16) NOT NULL,
     802  `rs` varchar(32) NOT NULL,
     803  `ks` varchar(32) NOT NULL,
    1042804  `firm_id` int(11) NOT NULL,
    1043805  UNIQUE KEY `ids` (`ids`,`num`)
    1044806) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    1045807
    1046 --
    1047 -- Дамп данных таблицы `doc_kassa`
    1048 --
    1049 
    1050 INSERT INTO `doc_kassa` (`ids`, `num`, `name`, `ballance`, `bik`, `rs`, `ks`, `firm_id`) VALUES
    1051 ('bank', 1, 'Основной банк', 0.00, '000000000', '00000000000000000000', '00000000000000000000', 0),
    1052 ('kassa', 1, 'Основная касса', 0.00, '', '', '', 0);
    1053 
    1054 -- --------------------------------------------------------
    1055 
    1056 --
    1057 -- Структура таблицы `doc_list`
    1058 --
     808INSERT IGNORE INTO `doc_kassa` (`ids`, `num`, `name`, `ballance`, `bik`, `rs`, `ks`, `firm_id`) VALUES
     809('bank', 1, 'Первый банк', 0.00, '000000000', '00000000000000000000', '00000000000000000000', 0),
     810('kassa', 1, 'Основная касса', 0.00, '', '', '', 0),
     811('kassa', 2, 'Сейф', 0.00, '', '', '', 0);
    1059812
    1060813CREATE TABLE IF NOT EXISTS `doc_list` (
     
    1071824  `user` int(11) NOT NULL DEFAULT '0',
    1072825  `altnum` int(11) NOT NULL,
    1073   `subtype` varchar(5) NOT NULL,
     826  `subtype` varchar(4) NOT NULL,
    1074827  `sum` decimal(10,2) NOT NULL DEFAULT '0.00',
    1075828  `nds` int(11) NOT NULL DEFAULT '0',
     
    1096849) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1097850
    1098 -- --------------------------------------------------------
    1099 
    1100 --
    1101 -- Структура таблицы `doc_list_pos`
    1102 --
    1103 
    1104851CREATE TABLE IF NOT EXISTS `doc_list_pos` (
    1105852  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    1118865) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1119866
    1120 -- --------------------------------------------------------
    1121 
    1122 --
    1123 -- Структура таблицы `doc_log`
    1124 --
     867CREATE TABLE IF NOT EXISTS `doc_list_sn` (
     868  `id` int(11) NOT NULL AUTO_INCREMENT,
     869  `pos_id` int(11) NOT NULL COMMENT 'ID товара',
     870  `num` varchar(64) NOT NULL COMMENT 'Серийный номер',
     871  `prix_list_pos` int(11) NOT NULL COMMENT 'Строка поступления',
     872  `rasx_list_pos` int(11) DEFAULT NULL COMMENT 'Строка реализации',
     873  UNIQUE KEY `id` (`id`),
     874  KEY `pos_id` (`pos_id`),
     875  KEY `num` (`num`),
     876  KEY `prix_list_pos` (`prix_list_pos`),
     877  KEY `rasx_list_pos` (`rasx_list_pos`)
     878) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Серийные номера' AUTO_INCREMENT=1 ;
    1125879
    1126880CREATE TABLE IF NOT EXISTS `doc_log` (
    1127881  `id` int(11) NOT NULL AUTO_INCREMENT,
    1128882  `user` int(11) NOT NULL,
    1129   `ip` varchar(20) NOT NULL,
    1130   `object` varchar(20) NOT NULL,
     883  `ip` varchar(32) NOT NULL,
     884  `object` varchar(32) NOT NULL,
    1131885  `object_id` int(11) NOT NULL,
    1132   `motion` varchar(100) NOT NULL,
    1133   `desc` varchar(500) NOT NULL,
     886  `motion` varchar(128) NOT NULL,
     887  `desc` varchar(512) NOT NULL,
    1134888  `time` datetime NOT NULL,
    1135889  UNIQUE KEY `id` (`id`),
     
    1141895) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1142896
    1143 -- --------------------------------------------------------
    1144 
    1145 --
    1146 -- Структура таблицы `doc_rasxodi`
    1147 --
    1148 
    1149897CREATE TABLE IF NOT EXISTS `doc_rasxodi` (
    1150898  `id` int(11) NOT NULL AUTO_INCREMENT,
    1151   `name` varchar(50) NOT NULL,
     899  `name` varchar(64) NOT NULL,
    1152900  `adm` tinyint(4) NOT NULL,
    1153901  UNIQUE KEY `id` (`id`),
    1154902  KEY `name` (`name`),
    1155903  KEY `adm` (`adm`)
    1156 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Статьи расходов' AUTO_INCREMENT=15 ;
    1157 
    1158 --
    1159 -- Дамп данных таблицы `doc_rasxodi`
    1160 --
    1161 
    1162 INSERT INTO `doc_rasxodi` (`id`, `name`, `adm`) VALUES
     904) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Статьи расходов' AUTO_INCREMENT=12 ;
     905
     906INSERT IGNORE INTO `doc_rasxodi` (`id`, `name`, `adm`) VALUES
    1163907(0, 'Прочие расходы', 1),
    1164908(1, 'Аренда офиса, склада', 1),
    1165 (2, 'Средства под отчёт', 1),
     909(2, 'Зарплата', 0),
    1166910(3, 'Канцелярские товары, хозяйственные материалы', 1),
    1167 (4, 'Зарплата, премии (офис)', 1),
     911(4, 'Расходы на рекламу', 1),
    1168912(5, 'Расчетно кассовое обслуживание', 1),
    1169913(6, 'Закупка товара на склад', 0),
     
    1171915(8, 'Расходы Склада', 1),
    1172916(9, 'Расходы на связь', 1),
    1173 (10, 'Расходы на автотранспорт (бензин, запчасти)', 1),
    1174 (11, 'Налоги и сборы', 1),
    1175 (12, 'Кредиты', 1),
    1176 (13, 'Непредвиденные расходы', 0),
    1177 (14, 'Премии по итогам квартала и года', 1);
    1178 
    1179 -- --------------------------------------------------------
    1180 
    1181 --
    1182 -- Структура таблицы `doc_sklady`
    1183 --
     917(10, 'Расходы на автотранспорт', 1),
     918(11, 'Налоги и сборы', 1);
    1184919
    1185920CREATE TABLE IF NOT EXISTS `doc_sklady` (
     
    1191926) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
    1192927
    1193 --
    1194 -- Дамп данных таблицы `doc_sklady`
    1195 --
    1196 
    1197 INSERT INTO `doc_sklady` (`id`, `name`, `dnc`) VALUES
     928INSERT IGNORE INTO `doc_sklady` (`id`, `name`, `dnc`) VALUES
    1198929(1, 'Основной склад', 0);
    1199930
    1200 -- --------------------------------------------------------
    1201 
    1202 --
    1203 -- Структура таблицы `doc_types`
    1204 --
    1205 
    1206931CREATE TABLE IF NOT EXISTS `doc_types` (
    1207932  `id` int(11) NOT NULL AUTO_INCREMENT,
    1208   `name` varchar(30) NOT NULL,
     933  `name` varchar(32) NOT NULL,
    1209934  KEY `id` (`id`)
    1210 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ;
    1211 
    1212 --
    1213 -- Дамп данных таблицы `doc_types`
    1214 --
    1215 
    1216 INSERT INTO `doc_types` (`id`, `name`) VALUES
     935) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;
     936
     937INSERT IGNORE INTO `doc_types` (`id`, `name`) VALUES
    1217938(1, 'Поступление'),
    1218939(2, 'Реализация'),
     
    1232953(16, 'Спецификация'),
    1233954(17, 'Сборка'),
    1234 (18, 'Корректировка долга');
    1235 
    1236 -- --------------------------------------------------------
    1237 
    1238 --
    1239 -- Структура таблицы `doc_vars`
    1240 --
     955(18, 'Корректировка долга'),
     956(19, 'Корректировка бонусов'),
     957(20, 'Реализация за бонусы'),
     958(21, 'Заявка на производство');
    1241959
    1242960CREATE TABLE IF NOT EXISTS `doc_vars` (
    1243961  `id` int(11) NOT NULL AUTO_INCREMENT,
    1244   `firm_name` varchar(150) NOT NULL,
    1245   `firm_director` varchar(100) NOT NULL,
    1246   `firm_manager` varchar(100) NOT NULL,
    1247   `firm_buhgalter` varchar(100) NOT NULL,
    1248   `firm_kladovshik` varchar(100) NOT NULL,
    1249   `firm_bank` varchar(100) NOT NULL,
    1250   `firm_bank_kor_s` varchar(25) NOT NULL,
    1251   `firm_bik` varchar(15) NOT NULL,
    1252   `firm_schet` varchar(25) NOT NULL,
    1253   `firm_inn` varchar(25) NOT NULL,
    1254   `firm_adres` varchar(150) NOT NULL,
    1255   `firm_realadres` varchar(150) NOT NULL,
    1256   `firm_gruzootpr` varchar(300) NOT NULL,
    1257   `firm_telefon` varchar(60) NOT NULL,
    1258   `firm_okpo` varchar(10) NOT NULL,
     962  `firm_name` varchar(128) NOT NULL,
     963  `firm_director` varchar(64) NOT NULL,
     964  `firm_director_r` varchar(64) NOT NULL,
     965  `firm_buhgalter` varchar(64) NOT NULL,
     966  `firm_kladovshik` varchar(64) NOT NULL,
     967  `firm_bank` varchar(128) NOT NULL,
     968  `firm_bank_kor_s` varchar(32) NOT NULL,
     969  `firm_bik` varchar(16) NOT NULL,
     970  `firm_schet` varchar(32) NOT NULL,
     971  `firm_inn` varchar(32) NOT NULL,
     972  `firm_adres` varchar(256) NOT NULL,
     973  `firm_realadres` varchar(256) NOT NULL,
     974  `firm_gruzootpr` varchar(256) NOT NULL,
     975  `firm_telefon` varchar(64) NOT NULL,
     976  `firm_okpo` varchar(16) NOT NULL,
    1259977  `param_nds` double NOT NULL DEFAULT '0',
     978  `firm_kladovshik_id` int(11) NOT NULL,
     979  `firm_kladovshik_doljn` varchar(64) NOT NULL,
    1260980  UNIQUE KEY `id` (`id`)
    1261981) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
    1262982
    1263 --
    1264 -- Дамп данных таблицы `doc_vars`
    1265 --
    1266 
    1267 INSERT INTO `doc_vars` (`id`, `firm_name`, `firm_director`, `firm_manager`, `firm_buhgalter`, `firm_kladovshik`, `firm_bank`, `firm_bank_kor_s`, `firm_bik`, `firm_schet`, `firm_inn`, `firm_adres`, `firm_realadres`, `firm_gruzootpr`, `firm_telefon`, `firm_okpo`, `param_nds`) VALUES
    1268 (1, 'ООО Первая Фирма', 'Аноним И.О.', 'Аноним И.О.', 'Аноним И.О.', 'Аноним И.О.', '', '', '', '', '', '', '', '', '', '', 18);
    1269 
    1270 -- --------------------------------------------------------
    1271 
    1272 --
    1273 -- Структура таблицы `errorlog`
    1274 --
     983INSERT IGNORE INTO `doc_vars` (`id`, `firm_name`, `firm_director`, `firm_director_r`, `firm_buhgalter`, `firm_kladovshik`, `firm_bank`, `firm_bank_kor_s`, `firm_bik`, `firm_schet`, `firm_inn`, `firm_adres`, `firm_realadres`, `firm_gruzootpr`, `firm_telefon`, `firm_okpo`, `param_nds`, `firm_kladovshik_id`, `firm_kladovshik_doljn`) VALUES
     984(1, 'OOO "РиК"', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '');
    1275985
    1276986CREATE TABLE IF NOT EXISTS `errorlog` (
     
    1279989  `referer` varchar(128) NOT NULL,
    1280990  `agent` varchar(128) NOT NULL,
    1281   `ip` varchar(18) NOT NULL,
     991  `ip` varchar(16) NOT NULL,
    1282992  `msg` text NOT NULL,
    1283993  `date` datetime NOT NULL,
     
    12901000) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    12911001
    1292 -- --------------------------------------------------------
    1293 
    1294 --
    1295 -- Структура таблицы `fabric_builders`
    1296 --
    1297 
    12981002CREATE TABLE IF NOT EXISTS `fabric_builders` (
    12991003  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    13021006  UNIQUE KEY `id` (`id`)
    13031007) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1304 
    1305 -- --------------------------------------------------------
    1306 
    1307 --
    1308 -- Структура таблицы `fabric_data`
    1309 --
    13101008
    13111009CREATE TABLE IF NOT EXISTS `fabric_data` (
     
    13201018) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    13211019
    1322 -- --------------------------------------------------------
    1323 
    1324 --
    1325 -- Структура таблицы `firm_info`
    1326 --
    1327 
    13281020CREATE TABLE IF NOT EXISTS `firm_info` (
    13291021  `id` int(11) NOT NULL AUTO_INCREMENT,
    1330   `name` varchar(100) NOT NULL DEFAULT '',
     1022  `name` varchar(128) NOT NULL DEFAULT '',
    13311023  `num_name` int(11) NOT NULL DEFAULT '0' COMMENT 'Номер колонки с наименованиями в прайсе',
    13321024  `num_cost` int(11) NOT NULL DEFAULT '0',
    13331025  `num_art` int(11) NOT NULL DEFAULT '0',
    13341026  `num_nal` tinyint(4) NOT NULL,
    1335   `signature` varchar(200) NOT NULL DEFAULT '' COMMENT 'Сигнатура для определения принадлежности прайса',
     1027  `signature` varchar(256) NOT NULL DEFAULT '' COMMENT 'Сигнатура для определения принадлежности прайса',
    13361028  `currency` tinyint(4) NOT NULL,
    13371029  `coeff` decimal(10,3) NOT NULL,
    13381030  `last_update` datetime NOT NULL,
    1339   `delivery_info` int(11) NOT NULL,
     1031  `rrp` int(11) NOT NULL DEFAULT '0',
    13401032  PRIMARY KEY (`id`),
    13411033  KEY `name` (`name`),
     
    13431035) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
    13441036
    1345 --
    1346 -- Дамп данных таблицы `firm_info`
    1347 --
    1348 
    1349 INSERT INTO `firm_info` (`id`, `name`, `num_name`, `num_cost`, `num_art`, `num_nal`, `signature`, `currency`, `coeff`, `last_update`, `delivery_info`) VALUES
     1037INSERT IGNORE INTO `firm_info` (`id`, `name`, `num_name`, `num_cost`, `num_art`, `num_nal`, `signature`, `currency`, `coeff`, `last_update`, `rrp`) VALUES
    13501038(1, 'test', 1, 2, 3, 4, 'test@example.com', 0, 0.000, '0000-00-00 00:00:00', 0);
    13511039
    1352 -- --------------------------------------------------------
    1353 
    1354 --
    1355 -- Структура таблицы `firm_info_struct`
    1356 --
     1040CREATE TABLE IF NOT EXISTS `firm_info_group` (
     1041  `id` int(11) NOT NULL AUTO_INCREMENT,
     1042  `firm_id` int(11) NOT NULL,
     1043  `group_id` int(11) NOT NULL,
     1044  UNIQUE KEY `id` (`id`),
     1045  KEY `firm_id` (`firm_id`),
     1046  KEY `group_id` (`group_id`)
     1047) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    13571048
    13581049CREATE TABLE IF NOT EXISTS `firm_info_struct` (
    13591050  `id` int(11) NOT NULL AUTO_INCREMENT,
    13601051  `firm_id` int(11) NOT NULL COMMENT 'Номер фирмы',
    1361   `table_name` varchar(50) NOT NULL COMMENT 'Название листа прайса',
     1052  `table_name` varchar(64) NOT NULL COMMENT 'Название листа прайса',
    13621053  `name` mediumint(9) NOT NULL COMMENT 'N колонки наименований',
    13631054  `cost` mediumint(9) NOT NULL,
     
    13691060) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
    13701061
    1371 --
    1372 -- Дамп данных таблицы `firm_info_struct`
    1373 --
    1374 
    1375 INSERT INTO `firm_info_struct` (`id`, `firm_id`, `table_name`, `name`, `cost`, `art`, `nal`) VALUES
     1062INSERT IGNORE INTO `firm_info_struct` (`id`, `firm_id`, `table_name`, `name`, `cost`, `art`, `nal`) VALUES
    13761063(1, 1, 'test', 2, 3, 1, 4);
    13771064
    1378 -- --------------------------------------------------------
    1379 
    1380 --
    1381 -- Структура таблицы `loginfo`
    1382 --
    1383 
    1384 CREATE TABLE IF NOT EXISTS `loginfo` (
    1385   `id` int(11) NOT NULL AUTO_INCREMENT,
    1386   `date` datetime NOT NULL,
    1387   `page` varchar(100) CHARACTER SET latin1 NOT NULL,
    1388   `query` varchar(100) CHARACTER SET latin1 NOT NULL,
    1389   `mode` varchar(20) CHARACTER SET latin1 NOT NULL,
    1390   `ip` varchar(30) CHARACTER SET latin1 NOT NULL,
    1391   `user` int(11) NOT NULL,
    1392   `text` varchar(500) CHARACTER SET latin1 NOT NULL,
    1393   UNIQUE KEY `id` (`id`),
    1394   KEY `date` (`date`),
    1395   KEY `page` (`page`),
    1396   KEY `query` (`query`),
    1397   KEY `mode` (`mode`),
    1398   KEY `ip` (`ip`),
    1399   KEY `user` (`user`)
     1065CREATE TABLE IF NOT EXISTS `log_call_requests` (
     1066  `id` int(11) NOT NULL AUTO_INCREMENT,
     1067  `name` varchar(64) NOT NULL,
     1068  `phone` varchar(32) NOT NULL,
     1069  `request_date` datetime NOT NULL,
     1070  `call_date` varchar(32) NOT NULL,
     1071  `ip` varchar(32) NOT NULL,
     1072  PRIMARY KEY (`id`)
    14001073) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1401 
    1402 -- --------------------------------------------------------
    1403 
    1404 --
    1405 -- Структура таблицы `news`
    1406 --
    14071074
    14081075CREATE TABLE IF NOT EXISTS `news` (
     
    14201087) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    14211088
    1422 -- --------------------------------------------------------
    1423 
    1424 --
    1425 -- Структура таблицы `notes`
    1426 --
    1427 
    1428 CREATE TABLE IF NOT EXISTS `notes` (
    1429   `id` int(11) NOT NULL AUTO_INCREMENT,
    1430   `user` int(11) NOT NULL,
    1431   `sender` int(11) NOT NULL,
    1432   `head` varchar(50) NOT NULL,
    1433   `msg` text NOT NULL,
    1434   `senddate` datetime NOT NULL,
    1435   `enddate` datetime NOT NULL,
    1436   `ok` tinyint(4) NOT NULL,
    1437   `comment` text NOT NULL,
    1438   UNIQUE KEY `id` (`id`),
    1439   KEY `user` (`user`),
    1440   KEY `sender` (`sender`),
    1441   KEY `senddate` (`senddate`),
    1442   KEY `enddate` (`enddate`)
    1443 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    1444 
    1445 -- --------------------------------------------------------
    1446 
    1447 --
    1448 -- Структура таблицы `parsed_price`
    1449 --
    1450 
    14511089CREATE TABLE IF NOT EXISTS `parsed_price` (
    14521090  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    14541092  `pos` int(11) NOT NULL,
    14551093  `cost` decimal(10,2) NOT NULL,
    1456   `nal` varchar(10) NOT NULL,
     1094  `nal` varchar(16) NOT NULL,
    14571095  `from` int(11) NOT NULL,
    14581096  `selected` tinyint(4) DEFAULT NULL,
     
    14601098) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    14611099
    1462 -- --------------------------------------------------------
    1463 
    1464 --
    1465 -- Структура таблицы `photogalery`
    1466 --
    1467 
    14681100CREATE TABLE IF NOT EXISTS `photogalery` (
    14691101  `id` int(11) NOT NULL AUTO_INCREMENT,
    14701102  `uid` int(11) NOT NULL DEFAULT '0',
    1471   `comment` varchar(50) NOT NULL,
     1103  `comment` varchar(64) NOT NULL,
    14721104  UNIQUE KEY `id` (`id`)
    14731105) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    14741106
    1475 -- --------------------------------------------------------
    1476 
    1477 --
    1478 -- Структура таблицы `price`
    1479 --
    1480 
    14811107CREATE TABLE IF NOT EXISTS `price` (
    14821108  `id` int(11) NOT NULL AUTO_INCREMENT,
    1483   `name` varchar(200) NOT NULL DEFAULT '',
     1109  `name` varchar(256) NOT NULL DEFAULT '',
    14841110  `cost` double NOT NULL DEFAULT '0',
    14851111  `firm` int(11) NOT NULL DEFAULT '0',
    1486   `art` varchar(20) NOT NULL DEFAULT '',
    1487   `nal` varchar(20) NOT NULL,
     1112  `art` varchar(32) NOT NULL DEFAULT '',
     1113  `nal` varchar(32) NOT NULL,
    14881114  `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    14891115  `seeked` int(11) NOT NULL,
     
    14961122) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    14971123
    1498 -- --------------------------------------------------------
    1499 
    1500 --
    1501 -- Структура таблицы `prices_replaces`
    1502 --
    1503 
    15041124CREATE TABLE IF NOT EXISTS `prices_replaces` (
    15051125  `id` int(11) NOT NULL AUTO_INCREMENT,
    15061126  `search_str` varchar(16) NOT NULL,
    15071127  `replace_str` varchar(256) NOT NULL,
    1508   PRIMARY KEY (`id`),
    15091128  UNIQUE KEY `id` (`id`),
    15101129  KEY `search_str` (`search_str`)
    15111130) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Список замен для регулярных выражений анализатора прайсов' AUTO_INCREMENT=1 ;
    1512 
    1513 -- --------------------------------------------------------
    1514 
    1515 --
    1516 -- Структура таблицы `ps_counter`
    1517 --
    15181131
    15191132CREATE TABLE IF NOT EXISTS `ps_counter` (
     
    15251138) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    15261139
    1527 -- --------------------------------------------------------
    1528 
    1529 --
    1530 -- Структура таблицы `ps_parser`
    1531 --
    1532 
    15331140CREATE TABLE IF NOT EXISTS `ps_parser` (
    1534   `parametr` varchar(20) NOT NULL,
    1535   `data` varchar(50) NOT NULL DEFAULT '0'
     1141  `parametr` varchar(32) NOT NULL,
     1142  `data` varchar(64) NOT NULL DEFAULT '0'
    15361143) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    15371144
    1538 --
    1539 -- Дамп данных таблицы `ps_parser`
    1540 --
    1541 
    1542 INSERT INTO `ps_parser` (`parametr`, `data`) VALUES
     1145INSERT IGNORE INTO `ps_parser` (`parametr`, `data`) VALUES
    15431146('last_time_counter', '0');
    1544 
    1545 -- --------------------------------------------------------
    1546 
    1547 --
    1548 -- Структура таблицы `ps_query`
    1549 --
    15501147
    15511148CREATE TABLE IF NOT EXISTS `ps_query` (
     
    15551152) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    15561153
    1557 -- --------------------------------------------------------
    1558 
    1559 --
    1560 -- Структура таблицы `ps_settings`
    1561 --
    1562 
    15631154CREATE TABLE IF NOT EXISTS `ps_settings` (
    15641155  `id` int(10) NOT NULL AUTO_INCREMENT,
    1565   `icon` varchar(3) NOT NULL,
    1566   `name` varchar(15) NOT NULL,
    1567   `template` varchar(150) NOT NULL,
    1568   `template_like` varchar(50) NOT NULL,
     1156  `icon` varchar(4) NOT NULL,
     1157  `name` varchar(16) NOT NULL,
     1158  `template` varchar(256) NOT NULL,
     1159  `template_like` varchar(64) NOT NULL,
    15691160  `prioritet` tinyint(4) NOT NULL DEFAULT '1',
    15701161  PRIMARY KEY (`id`)
    15711162) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
    15721163
    1573 --
    1574 -- Дамп данных таблицы `ps_settings`
    1575 --
    1576 
    1577 INSERT INTO `ps_settings` (`id`, `icon`, `name`, `template`, `template_like`, `prioritet`) VALUES
     1164INSERT IGNORE INTO `ps_settings` (`id`, `icon`, `name`, `template`, `template_like`, `prioritet`) VALUES
    15781165(1, 'Y', 'yandex', '/.*?yandex.*?text=[\\.\\s]*([-a-zа-я0-9"''_!?()\\/\\\\:;]+[-a-zа-я0-9.\\s,"''_!?()\\/\\\\:;]*).*[\\.\\s]*($|&.*)/ui', '%yandex%text=%', 1),
    15791166(2, 'G', 'google', '/.*?google.*?q=[\\.\\s]*([-a-zа-я0-9"''_!?()\\/\\\\:;]+[-a-zа-я0-9.\\s,"''_!?()\\/\\\\:;]*).*[\\.\\s]*($|&.*)/ui', '%google%q=%', 2),
     
    15841171(7, 'N', 'ngs', '/.*?ngs.*?q=[\\.\\s]*([-a-zа-я0-9"''_!?()\\/\\\\:;]+[-a-zа-я0-9.\\s,"''_!?()\\/\\\\:;]*).*[\\.\\s]*($|&.*)/ui', '%ngs%q=%', 7);
    15851172
    1586 -- --------------------------------------------------------
    1587 
    1588 --
    1589 -- Структура таблицы `questions`
    1590 --
    1591 
    1592 CREATE TABLE IF NOT EXISTS `questions` (
    1593   `id` int(11) NOT NULL AUTO_INCREMENT,
    1594   `text` varchar(200) NOT NULL,
    1595   `mode` int(11) NOT NULL,
    1596   UNIQUE KEY `id` (`id`)
    1597 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1598 
    1599 -- --------------------------------------------------------
    1600 
    1601 --
    1602 -- Структура таблицы `question_answ`
    1603 --
    1604 
    1605 CREATE TABLE IF NOT EXISTS `question_answ` (
    1606   `id` int(11) NOT NULL AUTO_INCREMENT,
    1607   `q_id` int(11) NOT NULL,
    1608   `answer` varchar(500) NOT NULL,
    1609   `uid` int(11) NOT NULL,
    1610   `ip` varchar(15) NOT NULL,
    1611   UNIQUE KEY `id` (`id`),
    1612   KEY `q_id` (`q_id`),
    1613   KEY `uid` (`uid`),
    1614   KEY `ip` (`ip`)
    1615 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1616 
    1617 -- --------------------------------------------------------
    1618 
    1619 --
    1620 -- Структура таблицы `question_ip`
    1621 --
    1622 
    1623 CREATE TABLE IF NOT EXISTS `question_ip` (
    1624   `ip` varchar(15) NOT NULL,
    1625   `result` int(11) NOT NULL,
    1626   UNIQUE KEY `ip_2` (`ip`)
    1627 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    1628 
    1629 -- --------------------------------------------------------
    1630 
    1631 --
    1632 -- Структура таблицы `question_vars`
    1633 --
    1634 
    1635 CREATE TABLE IF NOT EXISTS `question_vars` (
    1636   `id` int(11) NOT NULL AUTO_INCREMENT,
    1637   `q_id` int(11) NOT NULL,
    1638   `var_id` int(11) NOT NULL,
    1639   `text` varchar(500) NOT NULL,
    1640   UNIQUE KEY `id` (`id`),
    1641   KEY `q_id` (`q_id`,`var_id`)
    1642 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1643 
    1644 -- --------------------------------------------------------
    1645 
    1646 --
    1647 -- Структура таблицы `seekdata`
    1648 --
    1649 
    16501173CREATE TABLE IF NOT EXISTS `seekdata` (
    16511174  `id` int(11) NOT NULL AUTO_INCREMENT,
    1652   `name` varchar(200) NOT NULL,
    1653   `sql` varchar(200) NOT NULL,
    1654   `regex` varchar(200) NOT NULL,
     1175  `name` varchar(256) NOT NULL,
     1176  `sql` varchar(256) NOT NULL,
     1177  `regex` varchar(256) NOT NULL,
    16551178  `group` int(11) NOT NULL,
    16561179  `regex_neg` varchar(256) NOT NULL,
     
    16611184) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    16621185
    1663 -- --------------------------------------------------------
    1664 
    1665 --
    1666 -- Структура таблицы `sys_cli_status`
    1667 --
    1668 
    1669 CREATE TABLE IF NOT EXISTS `sys_cli_status` (
    1670   `id` int(11) NOT NULL AUTO_INCREMENT,
    1671   `script` varchar(64) NOT NULL,
    1672   `status` text NOT NULL,
    1673   UNIQUE KEY `id` (`id`),
    1674   KEY `script` (`script`)
    1675 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1676 
    1677 -- --------------------------------------------------------
    1678 
    1679 --
    1680 -- Структура таблицы `tickets`
    1681 --
     1186CREATE TABLE IF NOT EXISTS `survey` (
     1187  `id` int(11) NOT NULL AUTO_INCREMENT,
     1188  `name` varchar(128) NOT NULL,
     1189  `start_date` date NOT NULL,
     1190  `end_date` date NOT NULL,
     1191  `start_text` text NOT NULL,
     1192  `end_text` text NOT NULL,
     1193  PRIMARY KEY (`id`),
     1194  KEY `start_date` (`start_date`),
     1195  KEY `end_date` (`end_date`)
     1196) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
     1197
     1198INSERT IGNORE INTO `survey` (`id`, `name`, `start_date`, `end_date`, `start_text`, `end_text`) VALUES
     1199(1, 'Опрос 1', '2013-03-08', '2013-03-08', 'Это самый первый опрос', 'Спасибо за участие в опросе!');
     1200
     1201CREATE TABLE IF NOT EXISTS `survey_answer` (
     1202  `id` int(11) NOT NULL AUTO_INCREMENT,
     1203  `survey_id` int(11) NOT NULL,
     1204  `question_num` int(11) NOT NULL,
     1205  `answer_txt` varchar(64) NOT NULL,
     1206  `answer_int` int(11) NOT NULL,
     1207  `comment` varchar(256) NOT NULL,
     1208  `uid` int(11) DEFAULT NULL,
     1209  `ip_address` varchar(32) NOT NULL,
     1210  PRIMARY KEY (`id`),
     1211  UNIQUE KEY `uniq` (`survey_id`,`question_num`,`uid`,`ip_address`),
     1212  KEY `survey_id` (`survey_id`),
     1213  KEY `question_id` (`question_num`),
     1214  KEY `uid` (`uid`),
     1215  KEY `ip_addres` (`ip_address`)
     1216) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
     1217
     1218CREATE TABLE IF NOT EXISTS `survey_ok` (
     1219  `id` int(11) NOT NULL AUTO_INCREMENT,
     1220  `survey_id` int(11) NOT NULL,
     1221  `uid` int(11) DEFAULT NULL,
     1222  `ip` varchar(32) NOT NULL,
     1223  `result` int(11) NOT NULL,
     1224  PRIMARY KEY (`id`),
     1225  KEY `survey_id` (`survey_id`),
     1226  KEY `uid` (`uid`),
     1227  KEY `ip` (`ip`)
     1228) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
     1229
     1230CREATE TABLE IF NOT EXISTS `survey_question` (
     1231  `id` int(11) NOT NULL AUTO_INCREMENT,
     1232  `survey_id` int(11) NOT NULL,
     1233  `question_num` int(11) NOT NULL,
     1234  `text` varchar(256) NOT NULL,
     1235  `type` tinyint(4) NOT NULL,
     1236  PRIMARY KEY (`id`),
     1237  KEY `survey_id` (`survey_id`),
     1238  KEY `question_num` (`question_num`)
     1239) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
     1240
     1241CREATE TABLE IF NOT EXISTS `survey_quest_option` (
     1242  `id` int(11) NOT NULL AUTO_INCREMENT,
     1243  `survey_id` int(11) NOT NULL,
     1244  `question_id` int(11) NOT NULL,
     1245  `option_num` int(11) NOT NULL,
     1246  `text` varchar(128) NOT NULL,
     1247  PRIMARY KEY (`id`),
     1248  UNIQUE KEY `uniq` (`survey_id`,`question_id`,`option_num`),
     1249  KEY `survey_id` (`survey_id`),
     1250  KEY `question_id` (`question_id`),
     1251  KEY `num` (`option_num`)
     1252) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    16821253
    16831254CREATE TABLE IF NOT EXISTS `tickets` (
     
    16861257  `autor` int(11) NOT NULL,
    16871258  `priority` tinyint(4) NOT NULL,
    1688   `theme` varchar(100) NOT NULL,
     1259  `theme` varchar(128) NOT NULL,
    16891260  `text` text NOT NULL,
    1690   `to_uid` int(11) NOT NULL,
    16911261  `to_date` date NOT NULL,
    16921262  `state` tinyint(4) NOT NULL,
     
    16951265  KEY `autor` (`autor`),
    16961266  KEY `theme` (`theme`),
    1697   KEY `to_uid` (`to_uid`),
    16981267  KEY `to_date` (`to_date`)
    16991268) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1700 
    1701 -- --------------------------------------------------------
    1702 
    1703 --
    1704 -- Структура таблицы `tickets_log`
    1705 --
    17061269
    17071270CREATE TABLE IF NOT EXISTS `tickets_log` (
     
    17151278) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    17161279
    1717 -- --------------------------------------------------------
    1718 
    1719 --
    1720 -- Структура таблицы `tickets_priority`
    1721 --
    1722 
    17231280CREATE TABLE IF NOT EXISTS `tickets_priority` (
    17241281  `id` tinyint(4) NOT NULL,
    1725   `name` varchar(50) NOT NULL,
    1726   `color` varchar(6) NOT NULL,
    1727   `comment` varchar(200) NOT NULL,
     1282  `name` varchar(64) NOT NULL,
     1283  `color` varchar(8) NOT NULL,
     1284  `comment` text NOT NULL,
    17281285  UNIQUE KEY `id` (`id`),
    17291286  KEY `name` (`name`)
    17301287) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    17311288
    1732 -- --------------------------------------------------------
    1733 
    1734 --
    1735 -- Структура таблицы `tickets_state`
    1736 --
     1289INSERT IGNORE INTO `tickets_priority` (`id`, `name`, `color`, `comment`) VALUES
     1290(1, 'Важно', '', '');
     1291
     1292CREATE TABLE IF NOT EXISTS `tickets_responsibles` (
     1293  `id` int(11) NOT NULL AUTO_INCREMENT,
     1294  `ticket_id` int(11) NOT NULL,
     1295  `user_id` int(11) NOT NULL,
     1296  PRIMARY KEY (`id`),
     1297  UNIQUE KEY `uni` (`ticket_id`,`user_id`)
     1298) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    17371299
    17381300CREATE TABLE IF NOT EXISTS `tickets_state` (
    17391301  `id` int(11) NOT NULL,
    1740   `name` varchar(30) NOT NULL,
     1302  `name` varchar(32) NOT NULL,
    17411303  UNIQUE KEY `id` (`id`)
    17421304) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    17431305
    1744 -- --------------------------------------------------------
    1745 
    1746 --
    1747 -- Структура таблицы `traffic_denyip`
    1748 --
    1749 
    17501306CREATE TABLE IF NOT EXISTS `traffic_denyip` (
    17511307  `id` int(11) NOT NULL AUTO_INCREMENT,
    1752   `ip` varchar(20) NOT NULL,
    1753   `host` varchar(50) NOT NULL,
     1308  `ip` varchar(16) NOT NULL,
     1309  `host` varchar(64) NOT NULL,
    17541310  UNIQUE KEY `id_2` (`id`),
    17551311  UNIQUE KEY `ip` (`ip`)
    17561312) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Zapreshennie IP' AUTO_INCREMENT=1 ;
    1757 
    1758 -- --------------------------------------------------------
    1759 
    1760 --
    1761 -- Структура таблицы `ulog`
    1762 --
    17631313
    17641314CREATE TABLE IF NOT EXISTS `ulog` (
     
    18111361) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    18121362
    1813 -- --------------------------------------------------------
    1814 
    1815 --
    1816 -- Структура таблицы `users`
    1817 --
    1818 
    18191363CREATE TABLE IF NOT EXISTS `users` (
    18201364  `id` int(11) NOT NULL AUTO_INCREMENT,
    18211365  `name` varchar(32) NOT NULL,
    1822   `pass` varchar(192) NOT NULL,
     1366  `pass` varchar(256) NOT NULL,
    18231367  `pass_type` varchar(8) NOT NULL COMMENT 'тип хэша',
    18241368  `pass_change` varchar(64) NOT NULL,
     
    18561400) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Spisok pol''zovatelei' AUTO_INCREMENT=2 ;
    18571401
    1858 --
    1859 -- Дамп данных таблицы `users`
    1860 --
    1861 
    1862 INSERT INTO `users` (`id`, `name`, `pass`, `pass_type`, `pass_change`, `pass_expired`, `pass_date_change`, `reg_email`, `reg_email_confirm`, `reg_email_subscribe`, `reg_phone`, `reg_phone_subscribe`, `reg_phone_confirm`, `reg_date`, `disabled`, `disabled_reason`, `bifact_auth`, `real_name`, `real_address`, `jid`, `type`, `agent_id`) VALUES
    1863 (0, 'anonymous', '--not-valid--', '', '', 0, '0000-00-00 00:00:00', '', '', 0, '', 0, '', '0000-00-00 00:00:00', 0, '', 0, '', '', '', '', 1),
    1864 (1, 'root', 'enter_md5_password', '', '', 0, '0000-00-00 00:00:00', '', '', 0, '', 0, '', '0000-00-00 00:00:00', 0, '', 0, '', '', '', '', NULL);
    1865 
    1866 -- --------------------------------------------------------
    1867 
    1868 --
    1869 -- Структура таблицы `users_acl`
    1870 --
     1402INSERT IGNORE INTO `users` (`id`, `name`, `pass`, `pass_type`, `pass_change`, `pass_expired`, `pass_date_change`, `reg_email`, `reg_email_confirm`, `reg_email_subscribe`, `reg_phone`, `reg_phone_subscribe`, `reg_phone_confirm`, `reg_date`, `disabled`, `disabled_reason`, `bifact_auth`, `real_name`, `real_address`, `jid`, `type`, `agent_id`) VALUES
     1403(0, 'anonymous', '', '', '', 0, '0000-00-00 00:00:00', '', '', 0, '', 0, '', '0000-00-00 00:00:00', 0, '', 0, '', '', '', '', NULL),
     1404(1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', '', 0, '0000-00-00 00:00:00', 'test@example.com', '1', 0, '', 0, '', '0000-00-00 00:00:00', 0, '', 0, '', '', '', '', NULL);
    18711405
    18721406CREATE TABLE IF NOT EXISTS `users_acl` (
     
    18811415) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    18821416
    1883 -- --------------------------------------------------------
    1884 
    1885 --
    1886 -- Структура таблицы `users_bad_auth`
    1887 --
    1888 
    18891417CREATE TABLE IF NOT EXISTS `users_bad_auth` (
    18901418  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    18951423  KEY `date` (`time`)
    18961424) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    1897 
    1898 -- --------------------------------------------------------
    1899 
    1900 --
    1901 -- Структура таблицы `users_data`
    1902 --
    19031425
    19041426CREATE TABLE IF NOT EXISTS `users_data` (
     
    19101432) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    19111433
    1912 -- --------------------------------------------------------
    1913 
    1914 --
    1915 -- Структура таблицы `users_grouplist`
    1916 --
    1917 
    19181434CREATE TABLE IF NOT EXISTS `users_grouplist` (
    19191435  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    19241440) ENGINE=MyISAM  DEFAULT CHARSET=latin1 PACK_KEYS=0 COMMENT='Spisok grupp' AUTO_INCREMENT=6 ;
    19251441
    1926 --
    1927 -- Дамп данных таблицы `users_grouplist`
    1928 --
    1929 
    1930 INSERT INTO `users_grouplist` (`id`, `name`, `comment`) VALUES
     1442INSERT IGNORE INTO `users_grouplist` (`id`, `name`, `comment`) VALUES
    19311443(0, 'anonymous', 'Гости'),
    19321444(1, 'root', 'Администраторы'),
     
    19361448(5, 'buhgalter', 'Бухгалтерия');
    19371449
    1938 -- --------------------------------------------------------
    1939 
    1940 --
    1941 -- Структура таблицы `users_groups_acl`
    1942 --
    1943 
    19441450CREATE TABLE IF NOT EXISTS `users_groups_acl` (
    19451451  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    19521458) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Привилегии групп' AUTO_INCREMENT=1 ;
    19531459
    1954 -- --------------------------------------------------------
    1955 
    1956 --
    1957 -- Структура таблицы `users_in_group`
    1958 --
    1959 
    19601460CREATE TABLE IF NOT EXISTS `users_in_group` (
    19611461  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    19661466  KEY `gid` (`gid`)
    19671467) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Соответствие групп и пользователей' AUTO_INCREMENT=1 ;
    1968 
    1969 -- --------------------------------------------------------
    1970 
    1971 --
    1972 -- Структура таблицы `users_login_history`
    1973 --
    19741468
    19751469CREATE TABLE IF NOT EXISTS `users_login_history` (
     
    19831477) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    19841478
    1985 -- --------------------------------------------------------
    1986 
    1987 --
    1988 -- Структура таблицы `users_objects`
    1989 --
    1990 
    19911479CREATE TABLE IF NOT EXISTS `users_objects` (
    19921480  `id` int(11) NOT NULL AUTO_INCREMENT,
     
    19961484  UNIQUE KEY `id` (`id`),
    19971485  KEY `object` (`object`)
    1998 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=74 ;
    1999 
    2000 --
    2001 -- Дамп данных таблицы `users_objects`
    2002 --
    2003 
    2004 INSERT INTO `users_objects` (`id`, `object`, `desc`, `actions`) VALUES
     1486) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=83 ;
     1487
     1488INSERT IGNORE INTO `users_objects` (`id`, `object`, `desc`, `actions`) VALUES
    20051489(1, 'doc', 'Документы', ''),
    20061490(2, 'doc_list', 'Журнал документов', 'view,delete'),
     
    20731557(71, 'report_mincnt', 'Отчёт по минимальному количеству', 'view'),
    20741558(72, 'report_pos_komplekt', 'Отчёт по остаткам комплектующих', 'view'),
    2075 (73, 'report_ved_agentov', 'Ведомость по агентам', 'view');
    2076 
    2077 -- --------------------------------------------------------
    2078 
    2079 --
    2080 -- Структура таблицы `users_openid`
    2081 --
     1559(73, 'report_ved_agentov', 'Ведомость по агентам', 'view'),
     1560(74, 'admin_comments', 'Администрирование комментариев', 'view,delete'),
     1561(75, 'doc_korbonus', 'Корректировка бонусного баланса', 'view,edit,create,apply,cancel,forcecancel,delete,today_cancel'),
     1562(76, 'doc_realiz_bonus', 'Реализация за бонусы', 'view,edit,create,apply,cancel,forcecancel,delete,today_cancel'),
     1563(77, 'log_call_request', 'Журнал запрошенных звонков', 'view,edit'),
     1564(78, 'report_outlay_items', 'Отчёт по статьям расходов', 'view'),
     1565(79, 'doc_agent_ext', 'Доступ к административным полям агентов', 'view,edit'),
     1566(80, 'doc_zsbor', 'Заявка на сборку', 'view,edit,create,apply,cancel,forcecancel,delete,today_cancel'),
     1567(81, 'generic_tickets', 'Задачи', 'view,create,edit'),
     1568(82, 'report_liquidity', 'Отчет по ликвидности', 'view');
    20821569
    20831570CREATE TABLE IF NOT EXISTS `users_openid` (
     
    20881575  KEY `user_id` (`user_id`)
    20891576) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Привязка к openid';
    2090 
    2091 -- --------------------------------------------------------
    2092 
    2093 --
    2094 -- Структура таблицы `users_worker_info`
    2095 --
    20961577
    20971578CREATE TABLE IF NOT EXISTS `users_worker_info` (
     
    21031584  `worker_real_name` varchar(64) NOT NULL,
    21041585  `worker_real_address` varchar(256) NOT NULL,
     1586  `worker_post_name` varchar(64) NOT NULL COMMENT 'Должность',
    21051587  UNIQUE KEY `user_id` (`user_id`),
    21061588  KEY `worker_email` (`worker_email`),
     
    21091591) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    21101592
    2111 -- --------------------------------------------------------
    2112 
    2113 --
    2114 -- Структура таблицы `variables`
    2115 --
    2116 
    21171593CREATE TABLE IF NOT EXISTS `variables` (
    21181594  `corrupted` tinyint(4) NOT NULL COMMENT 'Признак нарушения целостности',
     
    21201596) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    21211597
    2122 --
    2123 -- Дамп данных таблицы `variables`
    2124 --
    2125 
    2126 INSERT INTO `variables` (`corrupted`, `recalc_active`) VALUES
     1598INSERT IGNORE INTO `variables` (`corrupted`, `recalc_active`) VALUES
    21271599(0, 0);
    21281600
    2129 -- --------------------------------------------------------
    2130 
    2131 --
    2132 -- Структура таблицы `wikiphoto`
    2133 --
     1601CREATE TABLE IF NOT EXISTS `votings` (
     1602  `id` int(11) NOT NULL AUTO_INCREMENT,
     1603  `name` varchar(128) NOT NULL,
     1604  `start_date` date NOT NULL,
     1605  `end_date` date NOT NULL,
     1606  PRIMARY KEY (`id`)
     1607) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Голосования' AUTO_INCREMENT=1 ;
     1608
     1609CREATE TABLE IF NOT EXISTS `votings_results` (
     1610  `id` int(11) NOT NULL AUTO_INCREMENT,
     1611  `voting_id` int(11) NOT NULL,
     1612  `variant_id` int(11) NOT NULL,
     1613  `user_id` int(11) DEFAULT NULL,
     1614  `ip_addr` varchar(32) NOT NULL,
     1615  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
     1616  PRIMARY KEY (`id`),
     1617  UNIQUE KEY `uniq` (`voting_id`,`variant_id`,`user_id`,`ip_addr`),
     1618  KEY `voting_id` (`voting_id`),
     1619  KEY `vars_id` (`variant_id`),
     1620  KEY `user_id` (`user_id`),
     1621  KEY `ip_addr` (`ip_addr`)
     1622) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Голоса' AUTO_INCREMENT=1 ;
     1623
     1624CREATE TABLE IF NOT EXISTS `votings_vars` (
     1625  `voting_id` int(11) NOT NULL,
     1626  `variant_id` int(11) NOT NULL,
     1627  `text` varchar(128) NOT NULL,
     1628  UNIQUE KEY `uni` (`voting_id`,`variant_id`),
     1629  KEY `voting_id` (`voting_id`),
     1630  KEY `variant_id` (`variant_id`),
     1631  KEY `text` (`text`)
     1632) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    21341633
    21351634CREATE TABLE IF NOT EXISTS `wikiphoto` (
    21361635  `id` int(11) NOT NULL AUTO_INCREMENT,
    21371636  `uid` int(11) NOT NULL DEFAULT '0',
    2138   `comment` varchar(50) NOT NULL,
     1637  `comment` varchar(64) NOT NULL,
    21391638  UNIQUE KEY `id` (`id`)
    21401639) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    21411640
    2142 --
    2143 -- Ограничения внешнего ключа сохраненных таблиц
    2144 --
    2145 
    2146 --
    2147 -- Ограничения внешнего ключа таблицы `articles`
    2148 --
     1641
    21491642ALTER TABLE `articles`
    21501643  ADD CONSTRAINT `articles_ibfk_1` FOREIGN KEY (`autor`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    21511644  ADD CONSTRAINT `articles_ibfk_2` FOREIGN KEY (`changeautor`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    21521645
    2153 --
    2154 -- Ограничения внешнего ключа таблицы `class_unit`
    2155 --
    21561646ALTER TABLE `class_unit`
    21571647  ADD CONSTRAINT `class_unit_ibfk_1` FOREIGN KEY (`class_unit_group_id`) REFERENCES `class_unit_group` (`id`),
    21581648  ADD CONSTRAINT `class_unit_ibfk_2` FOREIGN KEY (`class_unit_type_id`) REFERENCES `class_unit_type` (`id`);
    21591649
    2160 --
    2161 -- Ограничения внешнего ключа таблицы `doc_base`
    2162 --
    21631650ALTER TABLE `doc_base`
    21641651  ADD CONSTRAINT `doc_base_ibfk_1` FOREIGN KEY (`group`) REFERENCES `doc_group` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
     
    21661653  ADD CONSTRAINT `doc_base_ibfk_3` FOREIGN KEY (`country`) REFERENCES `class_country` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    21671654
    2168 --
    2169 -- Ограничения внешнего ключа таблицы `doc_base_attachments`
    2170 --
    21711655ALTER TABLE `doc_base_attachments`
    21721656  ADD CONSTRAINT `doc_base_attachments_ibfk_1` FOREIGN KEY (`pos_id`) REFERENCES `doc_base` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    21731657  ADD CONSTRAINT `doc_base_attachments_ibfk_2` FOREIGN KEY (`attachment_id`) REFERENCES `attachments` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    21741658
    2175 --
    2176 -- Ограничения внешнего ключа таблицы `doc_base_cost`
    2177 --
    21781659ALTER TABLE `doc_base_cost`
    21791660  ADD CONSTRAINT `doc_base_cost_ibfk_1` FOREIGN KEY (`pos_id`) REFERENCES `doc_base` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    21801661  ADD CONSTRAINT `doc_base_cost_ibfk_2` FOREIGN KEY (`cost_id`) REFERENCES `doc_cost` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    21811662
    2182 --
    2183 -- Ограничения внешнего ключа таблицы `doc_base_kompl`
    2184 --
    21851663ALTER TABLE `doc_base_kompl`
    21861664  ADD CONSTRAINT `doc_base_kompl_ibfk_1` FOREIGN KEY (`pos_id`) REFERENCES `doc_base` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    21871665  ADD CONSTRAINT `doc_base_kompl_ibfk_2` FOREIGN KEY (`kompl_id`) REFERENCES `doc_base` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    21881666
    2189 --
    2190 -- Ограничения внешнего ключа таблицы `doc_base_pcollections_set`
    2191 --
    21921667ALTER TABLE `doc_base_pcollections_set`
    21931668  ADD CONSTRAINT `doc_base_pcollections_set_ibfk_1` FOREIGN KEY (`collection_id`) REFERENCES `doc_base_pcollections_list` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    21941669  ADD CONSTRAINT `doc_base_pcollections_set_ibfk_2` FOREIGN KEY (`param_id`) REFERENCES `doc_base_params` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    21951670
    2196 --
    2197 -- Ограничения внешнего ключа таблицы `doc_base_values`
    2198 --
    21991671ALTER TABLE `doc_base_values`
    22001672  ADD CONSTRAINT `doc_base_values_ibfk_1` FOREIGN KEY (`id`) REFERENCES `doc_base` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    22011673  ADD CONSTRAINT `doc_base_values_ibfk_2` FOREIGN KEY (`param_id`) REFERENCES `doc_base_params` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    22021674
    2203 --
    2204 -- Ограничения внешнего ключа таблицы `doc_group_cost`
    2205 --
     1675ALTER TABLE `doc_dopdata`
     1676  ADD CONSTRAINT `doc_dopdata_ibfk_1` FOREIGN KEY (`doc`) REFERENCES `doc_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
     1677
    22061678ALTER TABLE `doc_group_cost`
    22071679  ADD CONSTRAINT `doc_group_cost_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `doc_group` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    22081680  ADD CONSTRAINT `doc_group_cost_ibfk_2` FOREIGN KEY (`cost_id`) REFERENCES `doc_cost` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    22091681
    2210 --
    2211 -- Ограничения внешнего ключа таблицы `doc_group_params`
    2212 --
    22131682ALTER TABLE `doc_group_params`
    22141683  ADD CONSTRAINT `fk_doc_group_params_doc_base_params1` FOREIGN KEY (`param_id`) REFERENCES `doc_base_params` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    22151684  ADD CONSTRAINT `fk_doc_group_params_doc_group1` FOREIGN KEY (`group_id`) REFERENCES `doc_group` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    22161685
    2217 --
    2218 -- Ограничения внешнего ключа таблицы `doc_list_pos`
    2219 --
    22201686ALTER TABLE `doc_list_pos`
    22211687  ADD CONSTRAINT `doc_list_pos_ibfk_2` FOREIGN KEY (`tovar`) REFERENCES `doc_base` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    22221688  ADD CONSTRAINT `doc_list_pos_ibfk_3` FOREIGN KEY (`doc`) REFERENCES `doc_list` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    22231689
    2224 --
    2225 -- Ограничения внешнего ключа таблицы `users`
    2226 --
     1690ALTER TABLE `doc_list_sn`
     1691  ADD CONSTRAINT `doc_list_sn_ibfk_3` FOREIGN KEY (`rasx_list_pos`) REFERENCES `doc_list_pos` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
     1692  ADD CONSTRAINT `doc_list_sn_ibfk_1` FOREIGN KEY (`pos_id`) REFERENCES `doc_base` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
     1693  ADD CONSTRAINT `doc_list_sn_ibfk_2` FOREIGN KEY (`prix_list_pos`) REFERENCES `doc_list_pos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
     1694
     1695ALTER TABLE `survey_answer`
     1696  ADD CONSTRAINT `survey_answer_ibfk_1` FOREIGN KEY (`survey_id`) REFERENCES `survey` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
     1697  ADD CONSTRAINT `survey_answer_ibfk_3` FOREIGN KEY (`uid`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
     1698  ADD CONSTRAINT `survey_answer_ibfk_4` FOREIGN KEY (`question_num`) REFERENCES `survey_question` (`question_num`) ON DELETE CASCADE ON UPDATE CASCADE;
     1699
     1700ALTER TABLE `survey_ok`
     1701  ADD CONSTRAINT `survey_ok_ibfk_1` FOREIGN KEY (`survey_id`) REFERENCES `survey` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
     1702  ADD CONSTRAINT `survey_ok_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL;
     1703
     1704ALTER TABLE `survey_question`
     1705  ADD CONSTRAINT `survey_question_ibfk_1` FOREIGN KEY (`survey_id`) REFERENCES `survey` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
     1706
     1707ALTER TABLE `survey_quest_option`
     1708  ADD CONSTRAINT `survey_quest_option_ibfk_1` FOREIGN KEY (`survey_id`) REFERENCES `survey` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
     1709  ADD CONSTRAINT `survey_quest_option_ibfk_2` FOREIGN KEY (`question_id`) REFERENCES `survey_question` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
     1710
    22271711ALTER TABLE `users`
    22281712  ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`agent_id`) REFERENCES `doc_agent` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    22291713
    2230 --
    2231 -- Ограничения внешнего ключа таблицы `users_data`
    2232 --
    22331714ALTER TABLE `users_data`
    22341715  ADD CONSTRAINT `users_data_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
    22351716
    2236 --
    2237 -- Ограничения внешнего ключа таблицы `users_openid`
    2238 --
    22391717ALTER TABLE `users_openid`
    22401718  ADD CONSTRAINT `users_openid_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
    22411719
    2242 --
    2243 -- Ограничения внешнего ключа таблицы `users_worker_info`
    2244 --
    22451720ALTER TABLE `users_worker_info`
    22461721  ADD CONSTRAINT `users_worker_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
     1722
     1723ALTER TABLE `votings_results`
     1724  ADD CONSTRAINT `votings_results_ibfk_1` FOREIGN KEY (`voting_id`) REFERENCES `votings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
     1725  ADD CONSTRAINT `votings_results_ibfk_3` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
     1726  ADD CONSTRAINT `votings_results_ibfk_4` FOREIGN KEY (`variant_id`) REFERENCES `votings_vars` (`variant_id`) ON DELETE CASCADE ON UPDATE CASCADE;
     1727
     1728ALTER TABLE `votings_vars`
     1729  ADD CONSTRAINT `votings_vars_ibfk_1` FOREIGN KEY (`voting_id`) REFERENCES `votings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
     1730SET FOREIGN_KEY_CHECKS=1;
     1731
     1732/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
     1733/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
     1734/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  • trunk/web/attachments.php

    r607 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/c_img.php

    r1 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/web/docj.php

    r633 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/web/fabric.php

    r607 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/web/get_yml.php

    r607 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
     
    7474                LEFT JOIN `firm_info` ON `firm_info`.`id`=`parsed_price`.`firm`";
    7575        }
    76         $res=$db->query("SELECT `doc_base`.`id`, `doc_base`.`name`, `doc_base`.`group`, `doc_base`.`vc`, `doc_base`.`proizv`, `doc_img`.`id`  AS `img_id`, `doc_base`.`desc`, `doc_base_dop`.`strana`, ( SELECT SUM(`doc_base_cnt`.`cnt`) FROM `doc_base_cnt` WHERE `doc_base_cnt`.`id`=`doc_base`.`id`) AS `sklad_nal`, `doc_base`.`cost`, `doc_base`.`warranty_type`, `doc_img`.`type` AS `img_type` $cols_add
     76        $res=$db->query("SELECT `doc_base`.`id`, `doc_base`.`name`, `doc_base`.`group`, `doc_base`.`vc`, `doc_base`.`proizv`, `doc_img`.`id`  AS `img_id`, `doc_base`.`desc`, `class_country`.`full_name` AS `strana`, ( SELECT SUM(`doc_base_cnt`.`cnt`) FROM `doc_base_cnt` WHERE `doc_base_cnt`.`id`=`doc_base`.`id`) AS `sklad_nal`, `doc_base`.`cost`, `doc_base`.`warranty_type`, `doc_img`.`type` AS `img_type` $cols_add
    7777        FROM `doc_base`
    7878        INNER JOIN `doc_group` ON `doc_group`.`id`=`doc_base`.`group`
     79        LEFT JOIN `class_country` ON `doc_base`.`country` = `class_country`.`id`
    7980        LEFT JOIN `doc_base_img` ON `doc_base_img`.`pos_id`=`doc_base`.`id` AND `doc_base_img`.`default`='1'
    8081        LEFT JOIN `doc_img` ON `doc_img`.`id`=`doc_base_img`.`img_id`
  • trunk/web/include/doc.pbank.php

    r602 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
  • trunk/web/include/doc_scripts/zp_s_prodaj_conn.php

    r607 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/include/imgresizer.php

    r593 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/js/calendar.js

    r624 r636  
    11//      MultiMag v0.1 - Complex sales system
    22//
    3 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     3//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    44//
    55//      This program is free software: you can redistribute it and/or modify
  • trunk/web/js/formvalid.js

    r471 r636  
    11//      MultiMag v0.1 - Complex sales system
    22//
    3 //      Copyright (C) 2005-2012, BlackLight, TND Team, http://tndproject.org
     3//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    44//
    55//      This program is free software: you can redistribute it and/or modify
  • trunk/web/login.php

    r633 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/login_oid.php

    r607 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/quest_stat.php

    r607 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/sitemap.php

    r607 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/statistics.php

    r607 r636  
    33//      MultiMag v0.1 - Complex sales system
    44//
    5 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     5//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    66//
    77//      This program is free software: you can redistribute it and/or modify
  • trunk/web/wikiphoto.php

    r626 r636  
    22//      MultiMag v0.1 - Complex sales system
    33//
    4 //      Copyright (C) 2005-2010, BlackLight, TND Team, http://tndproject.org
     4//      Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org
    55//
    66//      This program is free software: you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.