Changeset 30295
- Timestamp:
- 10/02/14 15:49:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r30206 r30295 1330 1330 } 1331 1331 1332 ostrcatbig(&buf, "<tr class=channelname><td colspan=4 align=center><h4 style=\"margin:2px 0px\">", &maxlen, &pos); 1333 ostrcatbig(&buf, chnode->name, &maxlen, &pos); 1334 ostrcatbig(&buf, "</h4></td></tr>", &maxlen, &pos); 1335 ostrcatbig(&buf, "<tr class=tabledesc><td width=70px align=center>Datum</td><td width=70px align=center>Uhrzeit</td><td align=left>Beschreibung</td><td width=50px align=center>Timer</td></tr>", &maxlen, &pos); 1336 1332 1337 while(epgnode != NULL) 1333 1338 { … … 1345 1350 } 1346 1351 1347 ostrcatbig(&buf, "<td nowrap><a target=main class=link href=query?getepg&", &maxlen, &pos); 1352 loctime = olocaltime(&epgnode->starttime); 1353 if(loctime != NULL) 1354 { 1355 strftime(buf1, MINMALLOC, "%d.%m", loctime); 1356 strftime(buf2, MINMALLOC, "%H.%H", loctime); 1357 } 1358 free(loctime); loctime = NULL; 1359 1360 ostrcatbig(&buf, "<td nowrap class=coldate>", &maxlen, &pos); 1361 ostrcatbig(&buf, buf1, &maxlen, &pos); 1362 ostrcatbig(&buf, "</td><td nowrap class=coltime>", &maxlen, &pos); 1363 ostrcatbig(&buf, buf2, &maxlen, &pos); 1364 free(buf1); buf1 = NULL; 1365 free(buf2); buf2 = NULL; 1366 1367 ostrcatbig(&buf, "</td><td nowrap><a target=main class=link href=query?getepg&", &maxlen, &pos); 1348 1368 tmpstr = oitoa(chnode->serviceid); 1349 1369 ostrcatbig(&buf, tmpstr, &maxlen, &pos); 1350 buf2 = ostrcat("<td nowrap ><a target=main class=link href=query?addrectimer&", tmpstr, 0, 0);1370 buf2 = ostrcat("<td nowrap class=linkimage><a target=main class=link href=query?addrectimer&", tmpstr, 0, 0); 1351 1371 buf2 = ostrcat(buf2, "&", 0, 0); 1352 1372 free(tmpstr); tmpstr = NULL; … … 1365 1385 ostrcatbig(&buf, ">", &maxlen, &pos); 1366 1386 1367 loctime = olocaltime(&epgnode->starttime);1368 if(loctime != NULL)1369 strftime(buf1, MINMALLOC, "%d.%m - %H:%M : ", loctime);1370 //strftime(buf1, MINMALLOC, "%H:%M -", loctime);1371 free(loctime); loctime = NULL;1372 //loctime = olocaltime(&epgnode->endtime);1373 //if(loctime != NULL)1374 // strftime(&buf1[7], MINMALLOC - 8, " %H:%M ", loctime);1375 //free(loctime); loctime = NULL;1376 ostrcatbig(&buf, buf1, &maxlen, &pos);1377 ostrcatbig(&buf, " ", &maxlen, &pos);1378 1387 ostrcatbig(&buf, epgnode->title, &maxlen, &pos); 1379 1388 if(epgnode->subtitle != NULL) … … 1386 1395 ostrcatbig(&buf, "</a></td>", &maxlen, &pos); 1387 1396 ostrcatbig(&buf, buf2, &maxlen, &pos); 1397 1388 1398 ostrcatbig(&buf, "<img border=0 width=16 height=16 src=img/timer.png alt=\"set timer\"/>", &maxlen, &pos); 1389 1399 ostrcatbig(&buf, "</a></td></tr>", &maxlen, &pos); 1400 free(buf2); buf2 = NULL; 1390 1401 } 1391 1402 else … … 1406 1417 free(tmpstr); tmpstr = NULL; 1407 1418 } 1408 1419 buf = ostrcat(buf, "#", 1, 0); 1409 1420 buf = ostrcat(buf, oitoa(epgnode->eventid), 1, 1); 1410 1421 buf = ostrcat(buf, "\n", 1, 0); … … 1412 1423 1413 1424 epgnode = epgnode->next; 1414 free(buf2); buf2 = NULL;1415 1425 } 1416 1426 … … 1420 1430 buf = ostrcat("no data", NULL, 0, 0); 1421 1431 1422 free(buf1);1423 1432 return buf; 1424 1433 }
Note: See TracChangeset
for help on using the changeset viewer.