require('../../config.php'); require($CONF['fs_languages'] . $_SESSION['lng'] . '/' . basename($_SERVER['PHP_SELF'])); require($CONF['fs_languages'] . $_SESSION['lng'] . '/' . $CONF['pg_iframe']); require($CONF['fs_languages'] . $_SESSION['lng'] . '/' . $CONF['fs_lng_search'] . basename($_SERVER['PHP_SELF'])); $COMPANY = new company(); //------------------------------------------------------------------------------------- // ORDENAR POR if ( isset($_GET['ord']) && !empty($_GET['ord']) ) $ORDER = check_page_order($_GET['ord']); $PAGE = check_num_of_page($_GET['page']); //------------------------------------------------------------------------------------- // GENERAR PAGINA $buttons = array(); $buttons[] = array( 'href' => '#" onclick="addReg();', 'title' => $LNG['set_company'], 'img' => 'boton_asignar_empresa_peq.gif', 'status' => true ); $button_actions = array(); $button_actions[0] = array( 'status' => false ); $button_actions[1] = array( 'status' => false ); $js_vars = array( 'JS_SECTION_NAME' => 'company', 'JS_LIST_VALUES' => '"1"', 'JS_DIR_IMAGES' => $CONF['sys_http_server'] . $CONF['ws_images'] ); $HTML = new html(); $HTML->generateHeader(array($CONF['css_iframe'], $CONF['css_forms'], $CONF['css_campos']), array($CONF['js_general'], $CONF['js_lists'], $CONF['js_search'], $CONF['js_forms']), $js_vars, 'onLoad="init();"' ); $HTML->generateFormButtons($buttons, $button_actions); echo '
' . "\n"; $HTML->generateFiltersDiv($COMPANY, $CONF['pg_search_companies']); echo ' | ' . "\n"; echo '
' . "\n"; $HTML->generateListBody($CONF['pg_search_companies'], $COMPANY); echo ' | ' . "\n"; echo '