@@ -96,10 +96,9 @@ function printDiv(divID) {
96
96
</div>
97
97
98
98
<style>
99
- .trsss:nth-child(2n+1){
100
-
101
- background-color:#CCC;}
102
- .trsss:hover{background-color:#D5DEFF;
99
+ .trsss{
100
+ background-color:#FFCC99;}
101
+ .trsss:hover{background-color:#F90;
103
102
104
103
</style>
105
104
<div class="hed" id="printablediv">
@@ -116,76 +115,6 @@ function printDiv(divID) {
116
115
117
116
<?php }else {}
118
117
?>
119
- <table width="360" border="0" align="center">
120
- <tr>
121
- <td align="center" style="font-size:20px; font-weight:bold;font-family:Arial, 'Arial Black', 'Arial Narrow';">St. Mary's Academy of San Nicolas</td>
122
-
123
- </tr>
124
- <tr>
125
- <td style="font-size:17px; font-weight:bold; font-family:Arial, 'Arial Black', 'Arial Narrow';" align="center">T. Abella St., Cebu City</td>
126
- </tr>
127
- <tr>
128
- <td height="50" align="center" style="font-size:22px; font-family:Arial, 'Arial Black', 'Arial Narrow';">List of Unreturned Books</td>
129
-
130
- </table>
131
-
132
-
133
- <table width="95%" bordercolor="#999999" a class="web" border="0" cellspacing="1" style=" margin-bottom:50px; margin-left:22px;font-size:12px;font-family:Verdana, Geneva, sans-serif; margin-top:20px;">
134
- <thead>
135
- <tr style="font-weight:bold; font-size:15px;" height="30">
136
-
137
- <td class="web" width="100" align="center">Acc No</td>
138
- <td class="web" width="400" align="center">Boook Title</td>
139
- <td class="web" width="240" align="center">Borrowers Name</td>
140
- <td class="web" width="240" align="center">Date of Lend</td>
141
- </tr>
142
- <tr>
143
- <td colspan="4" style="border-bottom:1px #000 solid;">
144
-
145
- </td>
146
- </tr>
147
- <?php include ('config.php ' );
148
- $ printcount =0 ;
149
- for ($ i =0 ;$ i <count ($ _POST ['checkbox ' ]);$ i ++){
150
- $ printcount ++;
151
- $ borrowid = $ _POST ['checkbox ' ][$ i ];
152
-
153
- $ sql =mysql_query ("SELECT * FROM tblborrow WHERE borrowid=' $ borrowid' " );
154
-
155
-
156
- while ($ row =mysql_fetch_array ($ sql )){
157
-
158
- ?>
159
-
160
- <tr align="center" height="30">
161
- <td><?php echo $ row ['accNo ' ]; ?> </td>
162
- <td>
163
- <?php
164
- $ qsa =mysql_query ("select * from books where accNo= $ row [accNo]" );
165
- while ($ acc =mysql_fetch_array ($ qsa )){
166
- echo $ acc ['booktitle ' ]; }?>
167
- </td>
168
- <td>
169
- <?php
170
- $ qs =mysql_query ("select * from tblborrower where studentid= $ row [studentid]" );
171
- while ($ title =mysql_fetch_array ($ qs )){
172
- echo $ title ['fname ' ]." " .$ title ['lname ' ]; }?>
173
-
174
- </td>
175
- <td><?php echo date_format (date_create ($ row ['dateborrow ' ]), 'F d, Y ' ); ?> </td>
176
- </tr>
177
-
178
-
179
-
180
- <!--end of printing -->
181
- <?php }
182
- }
183
-
184
- ?>
185
- </thead>
186
-
187
-
188
- </table>
189
118
<?php
190
119
}
191
120
else {
@@ -194,16 +123,11 @@ function printDiv(divID) {
194
123
<?php
195
124
include ('config.php ' );
196
125
197
- $ qss ="SELECT * FROM tblborrow where status='Unsigned' " ;
198
- $ rss =mysql_query ($ qss );
199
-
200
- //
201
126
?>
202
127
<form action="" method="post">
203
128
204
129
<table border="0" style="margin-top:20px; margin-left:0;">
205
130
<tr>
206
- <td rowspan="3"><img src="icons/phone_book_edit.png" height="50"></td>
207
131
<tr>
208
132
<td style="font-size:18px;font-family:Verdana, Geneva, sans-serif; border-bottom:#666 solid 1px; ">List of Unreturned Books</td>
209
133
</tr>
@@ -215,14 +139,13 @@ function printDiv(divID) {
215
139
</table>
216
140
217
141
218
- <table width="100%"bordercolor="#999999" class="web" border="0" cellspacing="1" style="border:#666 solid 1px; margin-bottom:20px; margin-left:0px;font-size:12px;font-family:Verdana, Geneva, sans-serif; margin-top:20px;">
142
+ <table width="100%" bordercolor="#999999" class="web" border="0" cellspacing="1" style="border:#666 solid 1px; margin-bottom:20px; margin-left:0px;font-size:12px;font-family:Verdana, Geneva, sans-serif; margin-top:20px;">
219
143
<thead>
220
- <tr bgcolor="#3B5998" height="30" style="color:white; font-weight:bold; text-align:left;">
221
- <td><input type="checkbox" id="selectall"/></td>
144
+ <tr bgcolor="#F90" height="30" style="color:white; font-weight:bold; text-align:left;">
222
145
<td>No.</td>
223
- <td class="web" width="100" align="center">Acc No</td>
224
- <td class="web" width="400" align="center">Boook Title</td>
225
- <td class="web" width="240" align="center">Borrowers Name</td>
146
+ <td class="web" width="100" align="center">Card No. </td>
147
+ <td class="web" width="400" align="center">Book Title</td>
148
+ <td class="web" width="240" align="center">Borrower's Name</td>
226
149
<td class="web" width="240" align="center">Date of Lend</td>
227
150
228
151
@@ -243,14 +166,11 @@ function printDiv(divID) {
243
166
244
167
245
168
<tr class="trsss" align="center" height="25">
246
- <td>
247
-
248
- <input name="checkbox[]" class="name" type="checkbox" value="<?php echo $ row ['borrowid ' ]; ?> "></td>
249
169
<td><?php echo $ count ; ?> </td>
250
170
<td bgcolor="" width="100">
251
171
<?php
252
172
253
- echo $ row ['accNo ' ]; ?>
173
+ echo $ row ['card_no ' ]; ?>
254
174
</td>
255
175
<td width="400"><?php
256
176
$ qs = mysql_query ("SELECT * from book where book_id= {$ row ['book_id ' ]}" );
@@ -278,42 +198,14 @@ function printDiv(divID) {
278
198
279
199
<!--footer-->
280
200
281
- <script>
282
- /* function OpenPopUp(borrowid, pageURL, title,w,h) {
283
- //alert("Pardeep")
284
- var left = (screen.width/2)-(w/2);
285
- var top = (screen.height/2)-(h/2);
286
- var targetWin = window.open('http://localhost/lib/unreturn_check.php?borrowid=' + borrowid, 'name', 'location=no,menubar=no,wiscrollbars=no,resizable=no,fullscreen=no,width='+w+', height='+h+', top='+top+', left='+left);
287
- return false;
288
- }*/
289
-
290
-
291
- </script>
292
201
<div class="footer">
293
202
<div class="leftfoot"></div>
294
203
<div class="bodyfoot">
295
204
<table border="0" style="margin-top:20px; font-family:Verdana, Geneva, sans-serif; font-size:10px;">
296
205
<tr>
297
- <?php
298
- if (isset ($ _POST ['print ' ])){ ?>
299
- <td>Print Record(s)</td>
300
- <td><input type="text" value="<?php echo $ printcount ; ?> " style="padding:2px; width:60px;" readonly="readonly"></td>
301
-
302
- <?php }else {?>
303
206
<td>Count of Unreturn Books</td>
304
207
<td><input type="text" value="<?php echo $ num ; ?> " style="padding:2px; width:60px;" readonly="readonly"></td>
305
- <?php } ?>
306
-
307
- <td>
308
- <?php
309
- if (isset ($ _POST ['print ' ])){ ?>
310
- <img src="icons/print.png" height="20" style="cursor:pointer;" title="Print" onClick="javascript:printDiv('printablediv')"/>
311
- <?php }else {?>
312
- <input type="submit" value="Print Report" name="print">
313
-
314
208
315
- <?php } ?>
316
- </td>
317
209
</tr>
318
210
</table>
319
211
0 commit comments