dlt_barcode_labels/ 0000700 0000036 0000010 00000000000 11205053506 013564 5 ustar wwwrun www dlt_barcode_labels/!README.txt 0000600 0000036 0000010 00000000041 11171056340 015321 0 ustar wwwrun www please refer to the file help.php dlt_barcode_labels/help.php 0000600 0000036 0000010 00000004731 11204755427 015246 0 ustar wwwrun www
How to add/modify label templates: |
Create one or more template files with any filename (no blanks !) and a "*.conf" extension (the template links are sorted by filename so naming like 01_xxxxx.conf, 02_yyyy.conf helps sorting) and put it in the /templates directory. |
The files should have the following contents: menuitem=template3 label01 = aaaaa label02 = bbbbb . . . label42 = yyyyy (menuitem .... this is the link text that is shown in the template list on the menu, note that this list is sorted by filename!) See the examples in /templates! |
You can use substitions for week, month, year, quarter %WEEK% %MONTH% %YEAR% (... like 2006) %YEAR_SHORT% (... like 06) %QUARTER% A label like "F-%WEEK%-01" would substitute %WEEK% with the currently set week - e.g. F-21-01 for the first full tape of week 21. See the examples in /templates! |
How to set a default printer |
Create a textfile with the following name "!printer.conf" and put it in the /templates dir. |
Add a line "printer=xxxxx" where xxxxx is the unix name of a valid printer on the webserver - preferably one close to where you handle your tapes ;-) |
... powered by Linux + Apache + PHP
... requires GNU Barcode
RT
dlt_barcode_labels/includes/ 0000700 0000036 0000010 00000000000 11204576724 015405 5 ustar wwwrun www dlt_barcode_labels/includes/functions.inc 0000600 0000036 0000010 00000005277 11204576710 020120 0 ustar wwwrun www Jan 1st is $JanuaryDayOffset days from the preceding Sunday!"; // Add January offset in days to current date (norm the date into 7-day week): $timestamp = $timestamp+(86400 * $JanuaryDayOffset); // Calculate number of the day: $doy = date("z", $timestamp); // Modulo division by 7 gets week number: $week = (int)($doy / 7); // Error occurs sometimes (e.g. for '2002-12-30'): if ( $week > 51 ) $week = 0; return ($week+1); } //-------------------------------------------- //-------------------------------------------- //-------------------------------------------- function listFilesInDir($start_dir) { /* returns an array of files (*.conf) in $start_dir (not recursive) */ $files = array(); $dir = opendir($start_dir); while(($myfile = readdir($dir)) !== false) { if($myfile != '.' && $myfile != '..' && eregi('.conf',$myfile) ) { $files[] = $myfile; } } closedir($dir); sort ($files); return $files; } //-------------------------------------------- //-------------------------------------------- //-------------------------------------------- function draw_printerlistbox () { // draw a box with valid printers global $default_printer; // get printerlist from the system $cmd = "lpstat -a | cut -f1 -d\" \""; $dummy = exec($cmd,$arr_printer, $return_value); sort ($arr_printer); echo " "; } //----------------------------------- ?> dlt_barcode_labels/includes/globals.inc 0000600 0000036 0000010 00000000047 11204576723 017525 0 ustar wwwrun www dlt_barcode_labels/index.php 0000600 0000036 0000010 00000000677 11204746555 015434 0 ustar wwwrun www
You can modify individual labels according to your needs.... |
| ||
\n"; echo " | $menuitem | \n"; echo "