Ejemplo n.º 1
0
 function get_solutions_type()
 {
     $sol_id = sql_getValue("SELECT solution_id FROM products WHERE id=" . $_GET['id']);
     if ($sol_id) {
         $this->script .= "\n    \t\t\t{literal}\n    \t\t\t\tvar handler = window.onload;\n\t\t\t        window.onload = function(){\n\t\t\t        \thandler();\n\t\t\t        \thideRow('tr_fld[product_type_id]');\n\t\t\t        \thideRow('tr_fld[manufacturer_id]');\n\t\t\t        \thideRow('tr_fld[price]');\n\t\t\t        \thideRow('tr_fld[weight]');\n\t\t\t        }\n    \t\t\t{/literal}\n    \t\t\t";
     }
     $rows = sql_GetRows("SELECT id, name FROM solutions_types ORDER BY priority, name", true);
     return array('0' => 'не указан') + $rows;
 }
Ejemplo n.º 2
0
 function get_metro()
 {
     $sql = 'SELECT id, name FROM obj_locat_metrostations ORDER BY name';
     return sql_GetRows($sql, true);
 }