customize web gui for a high school

bse bse at chalmers.se
Fri Mar 12 03:31:47 PST 2010


> We've had some success. We created a proof of concept on a mac ... but now I'm trying to find the php cups extension for a debian/ubuntu system. Anybody know where to look? We originally wrote the code with the phpcups.so module, but then couldn't find that file in the Debian repositories, so we looked at the phpprintipp package. We haven't had much luck. Are we on the right track? Most importantly we need the Release-Job and Get-Job operations. Any links to similar projects would be greatly appreciated.
> -peter

Any progress on this? I am very interested in implementing this on my university.

//Bse

>
> > Thanks Michael. I really didn't want to have to write something from scratch, but I'll try this direction. I'm going to buy one of my php coder friends dinner to see how much he can teach me.
> > -peter
> >
> > >
> > > --Apple-Mail-5-391263519
> > > Content-Transfer-Encoding: 7bit
> > > Content-Type: text/plain;
> > > 	charset=us-ascii;
> > > 	format=flowed;
> > > 	delsp=yes
> > >
> > > Probably the easiest thing to do would be to write a small PHP script
> > > that used the cups_get_jobs function from the php_cups extension to
> > > list the pending jobs and present them to the users.  You'll need to
> > > run the "lp -i jobid -U user -H nohold" command from the PHP script
> > > (via the system function...) since there is no PHP function for that
> > > (yet).
> > >
> > > On May 20, 2009, at 9:42 AM, peter wrote:
> > >
> > > > Hi, I'm using the cups web gui as a print-release-station in a high
> > > > school. I have thin clients next to each printer and the browser is
> > > > showing: localhost:631/jobs.
> > > >
> > > > It works really well, but students don't know which printer they
> > > > printed to and they repeatedly go to the wrong release-station and
> > > > release their jobs to the opposite printer.
> > > >
> > > > I wish I could customize the jobs.tmpl file (or some other file) so
> > > > that I could set the browser to only show the relevant print jobs.
> > > > My idea was to copy jobs.tmpl file to printer2jobs.tmpl and edit
> > > > that file to only show printer2 print jobs on Printer 2's release
> > > > station.
> > > >
> > > > This was further complicated by the <pre><meta http-equiv="refresh"
> > > > content="2 ;url=/jobs/?FIRST=0&ORDER=dec"></pre>
> > > > line I put at the beginning of jobs.tmpl to refresh the list of
> > > > print jobs every 2 seconds and sort them in descending order.
> > > >
> > > > Any suggestions?
> > > >
> > > > Oh, and I can reconsider this, but I've been sending multiple
> > > > queue's to the same printer so I'll need to filter for multiple
> > > > queues.
> > > >
> > > > -thanks
> > > > peter
> > > > _______________________________________________
> > > > cups-dev mailing list
> > > > cups-dev at easysw.com
> > > > http://lists.easysw.com/mailman/listinfo/cups-dev
> > >
> > > ________________________________________
> > > Michael R Sweet, Senior Printing System Engineer
> > >
> > >
> > > --Apple-Mail-5-391263519
> > > Content-Transfer-Encoding: quoted-printable
> > > Content-Type: text/html;
> > > 	charset=us-ascii
> > >
> > > <html><head></head><body style=3D"word-wrap: break-word; =
> > > -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
> > > ">Probably the easiest thing to do would be to write a small PHP script =
> > > that used the cups_get_jobs function from the php_cups extension to list =
> > > the pending jobs and present them to the users. &nbsp;You'll need to run =
> > > the "lp -i jobid -U user -H nohold" command from the PHP script (via the =
> > > system function...) since there is no PHP function for that =
> > > (yet).<div><div><div><br><div><div>On May 20, 2009, at 9:42 AM, peter =
> > > wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
> > > type=3D"cite"><div>Hi, I'm using the cups web gui as a =
> > > print-release-station in a high school. I have thin clients next to each =
> > > printer and the browser is showing: localhost:631/jobs.<br><br>It works =
> > > really well, but students don't know which printer they printed to and =
> > > they repeatedly go to the wrong release-station and release their jobs =
> > > to the opposite printer.<br><br>I wish I could customize the jobs.tmpl =
> > > file (or some other file) so that I could set the browser to only show =
> > > the relevant print jobs. My idea was to copy jobs.tmpl file to =
> > > printer2jobs.tmpl and edit that file to only show printer2 print jobs on =
> > > Printer 2's release station.<br><br>This was further complicated by the =
> > > &lt;pre&gt;&lt;meta http-equiv=3D"refresh" content=3D"2 =
> > > ;url=3D/jobs/?FIRST=3D0&amp;ORDER=3Ddec"&gt;&lt;/pre&gt;<br>line I put =
> > > at the beginning of jobs.tmpl to refresh the list of print jobs every 2 =
> > > seconds and sort them in descending order.<br><br>Any =
> > > suggestions?<br><br>Oh, and I can reconsider this, but I've been sending =
> > > multiple queue's to the same printer so I'll need to filter for multiple =
> > > queues.<br><br>-thanks<br>peter<br>_______________________________________=
> > > ________<br>cups-dev mailing list<br><a =
> > > href=3D"mailto:cups-dev at easysw.com">cups-dev at easysw.com</a><br>http://list=
> > > s.easysw.com/mailman/listinfo/cups-dev<br></div></blockquote></div><br><di=
> > > v>
> > > <span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
> > > color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: =
> > > normal; font-variant: normal; font-weight: normal; letter-spacing: =
> > > normal; line-height: normal; orphans: 2; text-align: auto; text-indent: =
> > > 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: =
> > > 0px; -webkit-border-horizontal-spacing: 0px; =
> > > -webkit-border-vertical-spacing: 0px; =
> > > -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
> > > auto; -webkit-text-stroke-width: 0px; "><span class=3D"Apple-style-span" =
> > > style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
> > > Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
> > > font-weight: normal; letter-spacing: normal; line-height: normal; =
> > > orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
> > > widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
> > > -webkit-border-vertical-spacing: 0px; =
> > > -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
> > > auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
> > > break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
> > > after-white-space; =
> > > "><div><div>________________________________________</div><div>Michael R =
> > > Sweet, Senior Printing System Engineer</div></div></div></span></span>
> > > </div>
> > > <br></div></div></div></body></html>=
> > >
> > > --Apple-Mail-5-391263519--
> > >
> >
>





More information about the cups-devel mailing list