Burger King, Taco Bell, and Taco John’s experienced slower speed of service when pre-sell menuboards were in place, while the other benchmark brands were slower when the boards were not in place.
array( 'sort_dir' => 'asc', 'indicator' => '', 'label' => 'Chain', ), 'with_presell' => array( 'sort_dir' => 'asc', 'indicator' => '', 'label' => 'With Pre-Sell', ), 'wo_presell' => array( 'sort_dir' => 'asc', 'indicator' => '', 'label' => 'Without Pre-Sell', ), ); if ( in_array( $_GET['sort'], array_keys( $headers ) ) ) { $sort_field = $_GET['sort']; } else { $sort_field = 'chain'; } if ( in_array( $_GET['dir'], array( 'asc', 'desc' ) ) ) { $sort_dir = $_GET['dir']; } else { $sort_dir = 'asc'; } $opposite_dir = ( $sort_dir == 'asc' ) ? 'desc' : 'asc'; $headers[$sort_field]['sort_dir'] = $opposite_dir; $headers[$sort_field]['indicator'] = theme_tablesort_indicator( array( 'style' => $sort_dir ) ); $header_cols = array(); foreach ( $headers as $field => $field_data ) { $header_cols[] = array( 'data' => l( $field_data['label'], $_GET['q'], array( 'query' => array( 'sort' => $field, 'dir' => $field_data['sort_dir']), 'html' => TRUE ) ) . $field_data['indicator'], 'class' => 'header' ); } $table_rows = array(); $table_rows[] = $header_cols; /* begin of function area */ $sorted_data = array(); $values = array(); foreach ( $the_data as $id => $value ) { $values[$id] = $value->$sort_field; } if ( $sort_dir == 'asc' ) { asort( $values ); } else { arsort( $values ); } foreach ( $values as $key => $value ) { $data_cells = array(); foreach ( $headers as $field => $field_data ) { $cell_data = $the_data[$key]->$field; $classes = $field; if ( $field == $sort_field ) { $classes .= ' sorted'; } $data_cells[] = array( 'data' => $cell_data, 'class' => $classes ); } $sorted_data[] = $data_cells; } /* end of functional area */ foreach ( $sorted_data as $data_row ) { $table_rows[] = $data_row; } // summary $table_rows[] = array( array('data' => 'Summary','class' => 'total-row',), array('data' => '181.64','class' => 'total-row',), array('data' => '179.68','class' => 'total-row',), ); print theme( 'table', array( 'header' => NULL, 'rows' => $table_rows, 'attributes' => array( 'id' => 'datatable' ) ) ); ?>