@section('page_title') OSAA - Upload Wrestling Entries @stop @section('page_sub_title') Upload Wrestling Entries @stop @section('scripts') @parent @stop @section('jquery_init') $('.tooltip').tooltip(); $('.button').button().css('font-size', '9pt'); $('input[type="submit"]').click(function (event) { if ($('input[type="file"]').val() == '') { return; } event.preventDefault(); var form = $(this).parents('form'); $('
').appendTo('body') .html('
Are you sure you want to upload this file?
This will drop all wrestling participants from the database and import this file\'s entries. The file will be uploaded to:

app/storage/data/wre_entries.csv
') .dialog( { autoOpen: true, draggable: false, resizable: false, height: 275, width: 400, title: 'Confirm File Upload', modal: true, buttons: [ { text : "Yes", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { $('
').addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .css('width', '225px') .css('height', '170px') .css('text-align', 'center') .css('padding', '0.5em') .position({my : "center center", at : "center center", of : window}) .addClass('ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-dialog-buttons') .html('
Working...

Please wait, this may take a while to process and update the database.
'); $(form).submit(); $(this).dialog( "close"); $(this).remove(); } }, { text : "No", 'class' : "float_right", icons : { primary : 'ui-icon-cancel'}, click : function() { $(this).dialog( "close");; $(this).remove(); } } ], open : function () { $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '10pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); //$('.ui-dialog-titlebar').addClass('ui-state-highlight'); } }); }); @stop @section('page_functions') @stop @section('main_content')
@if (isset($info['status']))
@if (Helpers::strEqual($info['status'], 'success'))

@else

@endif {{ $info['status'] }}

{{ $info['message'] }}

@if (isset($info['bad_entries']) and count($info['bad_entries']) > 0) @if (count($info['bad_entries']) == 1)

Encountered {{ count($info['bad_entries']) }} Bad Entry

@else

Encountered {{ count($info['bad_entries']) }} Bad Entries

@endif
@foreach ($info['bad_entries'] as $bad_entry) Line {{ $bad_entry['line'] }}: @foreach ($bad_entry['raw'] as $field => $value)
Fatal error: Class 'Helpers' not found in /home/osaa/web_app/dev/app/views/brackets/upload_wre_entries.blade.php on line 160