[freeside-commits] freeside/httemplate/view cust_main.cgi, 1.104, 1.105

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Oct 3 15:44:30 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv13462/httemplate/view

Modified Files:
	cust_main.cgi 
Log Message:
Enhanced customer notes

Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main.cgi,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- cust_main.cgi	23 Aug 2006 22:25:38 -0000	1.104
+++ cust_main.cgi	3 Oct 2006 22:44:28 -0000	1.105
@@ -116,6 +116,34 @@
 </TR>
 </TABLE></TABLE>
 % } 
+<BR><BR>
+% my $notecount = scalar($cust_main->notes());
+% if ($conf->exists('cust_main-use_notes') || $notecount) {
+
+<A NAME="cust_main_note"><FONT SIZE="+2">Notes</FONT></A><BR>
+%   if ( $curuser->access_right('Add customer note') &&
+%        $conf->exists('cust_main-use_notes')
+%      ) {
+
+  <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('<% $p %>edit/cust_main_note.cgi?custnum=<% $cust_main->custnum %>', 616, 386, 'cust_main_note_popup' ), CAPTION, 'Enter customer note', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;">Add customer note</A>
+
+%   }
+
+<BR>
+
+%   if ($notecount) {
+
+<iframe src="<% $p %>view/cust_main/notes.html?custnum=<% $cust_main->custnum %>" height="186" width="616" name="cust_main_notes" frameborder="0" marginborder="0" marginheight="0" scrolling="auto">
+  <div><br>[iframe not supported]<br><br></div>
+</iframe>
+
+%   } else {
+
+<BR>
+%   }
+% }
+
+
 % if ( $conf->config('ticket_system') ) { 
 
   <BR>



More information about the freeside-commits mailing list