Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33172 tejus.loha 1
<style>
2
    .table-striped > tbody > tr:nth-child(odd) > td {
3
        background: white;
4
        background-color: white;
5
    }
6
 
7
    .table-striped > tbody > tr:nth-child(even) > td {
8
        background: white;
9
        background-color: white;
10
    }
11
 
12
    .table-striped > tbody > tr:hover > td,
13
    .table-striped > tbody > tr:hover {
14
        background-color: #e98c8f;
15
        color: white;
16
    }
17
 
18
    .btn:hover {
19
        color: #2b669a;
20
        text-decoration: none;
21
    }
22
 
23
    .btn-primary:hover {
24
        color: #2b669a;
25
        text-decoration: none;
26
    }
27
 
28
 
29
</style>
30
 
31
<section class="wrapper">
32
 
33
    <div id="upload-table">
34
        <div class="row">
35
            <div class="col-lg-12">
36
                <form class="form-horizontal">
37
                    <label class="control-label col-sm-2" for="excelfile">Add Order CSV File:</label>
38
                    <div class="col-lg-3">
39
                        <div class="input-group">
40
                            <input class="form-control" type="file" id="entityupload" name="uploadfile"
41
                                   value="Upload Images">
42
                            <span class="input-group-btn">
43
				    		<button class="btn btn-default entityfileupload">
44
							    Upload
45
							</button>
46
						</span>
47
                        </div>
48
                    </div>
49
 
50
                </form>
51
            </div>
52
        </div>
53
 
54
    </div>
55
 
56
</section>
57
<script type="text/javascript">
58
    $(document).ready(function () {
59
        $('button.entityfileupload').on('click', function () {
60
            var fileSelector = $('#entityupload')[0];
61
            if (fileSelector != undefined && fileSelector.files[0] != undefined) {
62
                if (confirm("Confirm Upload?")) {
63
                    doAjaxUploadRequestHandler("${rc.contextPath}/bulkOrder/upload", "POST", fileSelector.files[0], function (response) {
64
                        if (response) {
65
                            alert("Content updated successfully");
66
                        }
67
                    });
68
                }
69
            } else {
70
                alert("Please upload file!");
71
            }
72
            return false;
73
        });
74
    });
75
 
76
 
77
</script>
78