Subversion Repositories SmartDukaan

Rev

Rev 32658 | Rev 33412 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32658 Rev 32674
Line 4... Line 4...
4
			itemCatalogId = selectedEntity.catalogId_i;
4
			itemCatalogId = selectedEntity.catalogId_i;
5
		});
5
		});
6
	});
6
	});
7
</script>
7
</script>
8
 
8
 
9
## <script>
-
 
10
##   $(document).ready(function () {
-
 
11
##      var dtable = $('#focusModal').DataTable({
-
 
12
##                "scrollX": true,
-
 
13
##                "bPaginate": true,
-
 
14
##                "bLengthChange": true,
-
 
15
##                "bFilter": true,
-
 
16
##                "bInfo": false,
-
 
17
##                "bAutoWidth": false,
-
 
18
##                "pageLength": 50,
-
 
19
##                  "lengthMenu": [
-
 
20
##                    [25, 50, 100], // Corrected format
-
 
21
##                    ["25", "50", "100"],
-
 
22
##                ]
-
 
23
##       });
-
 
24
##
9
 
25
##    });
10
 
26
## </script>
-
 
27
 
11
 
28
<section class="wrapper">
12
<section class="wrapper">
29
	<div class="row">
13
	<div class="row">
30
		<div class="col-lg-12">
14
		<div class="col-lg-12">
31
			<h3 class="page-header"><i class="icon_document_alt"></i>FOCUSED MODEL</h3>
15
			<h3 class="page-header"><i class="icon_document_alt"></i>FOCUSED MODEL</h3>
Line 106... Line 90...
106
 
90
 
107
			</div>
91
			</div>
108
		</div>
92
		</div>
109
		</form>
93
		</form>
110
 
94
 
-
 
95
   <div class="col-lg-12 form-group">
-
 
96
	  <input type="text" id="searchInput" placeholder="Search..." class="form-control pull-right" style="width:150px;">
-
 
97
	</div>
111
	<div id="focused-model-table">
98
	<div id="focused-model-table">
112
		<div class="row">
99
		<div class="row">
113
	    	<div class="col-lg-12">
100
	    	<div class="col-lg-12">
114
				<table class="table table-striped table-advance table-hover">
101
				<table class="table table-striped table-advance table-hover" id="myTable" >
115
                    <thead>
102
                    <thead>
116
                        <tr>
103
                        <tr>
117
							<th>Item Name</th>
104
							<th>Item Name</th>
118
                            <th>Recommended Quantity </th>
105
                            <th>Recommended Quantity </th>
119
                            <th>Minimum Quantity</th>
106
                            <th>Minimum Quantity</th>
Line 179... Line 166...
179
    </div>
166
    </div>
180
</section>
167
</section>
181
 
168
 
182
<div id="focused-model-container" style="background:white;background-color:white;">
169
<div id="focused-model-container" style="background:white;background-color:white;">
183
</div>
170
</div>
-
 
171
<script>
-
 
172
    // Function to perform the table row filtering
-
 
173
    function filterTable() {
-
 
174
        var input, filter, table, tr, td, i, txtValue;
-
 
175
        input = document.getElementById("searchInput");
-
 
176
        filter = input.value.toUpperCase();
-
 
177
        table = document.getElementById("myTable");
-
 
178
        tr = table.getElementsByTagName("tr");
-
 
179
 
-
 
180
        for (i = 0; i < tr.length; i++) {
-
 
181
            td = tr[i].getElementsByTagName("td")[0]; // Change index based on the column you want to search
-
 
182
            if (td) {
-
 
183
                txtValue = td.textContent || td.innerText;
-
 
184
                if (txtValue.toUpperCase().indexOf(filter) > -1) {
-
 
185
                    tr[i].style.display = "";
-
 
186
                } else {
-
 
187
                    tr[i].style.display = "none";
-
 
188
                }
-
 
189
            }
-
 
190
        }
-
 
191
    }
-
 
192
 
-
 
193
    // Attach an event listener to the search input
-
 
194
    document.getElementById("searchInput").addEventListener("input", filterTable);
-
 
195
</script>
184
 
196
 
185
 
197