phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: wcm/templates/default site_form.tpl,1.6,1.7


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: wcm/templates/default site_form.tpl,1.6,1.7
Date: Sat, 23 Feb 2002 23:21:19 -0500

Update of /cvsroot/phpgroupware/wcm/templates/default
In directory subversions:/tmp/cvs-serv21260/templates/default

Modified Files:
        site_form.tpl 
Log Message:
add site preview link to site edit page



Index: site_form.tpl
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/templates/default/site_form.tpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** site_form.tpl       17 Feb 2002 17:56:23 -0000      1.6
--- site_form.tpl       24 Feb 2002 04:21:16 -0000      1.7
***************
*** 1,3 ****
--- 1,22 ----
  <!-- BEGIN form -->
+ <script language="JavaScript" TYPE="text/javascript">
+   var phpgwwcm;
+   function openwindow(url,w,h)
+   {
+     if (phpgwwcm)
+     {
+       if (phpgwwcm.closed)
+       {
+         phpgwwcm.stop;
+         phpgwwcm.close;
+       }
+     }
+     phpgwwcm = window.open(url, 
"phpgwwcm","width="+w+",height="+h+",location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status=no");
+     if (phpgwwcm.opener == null)
+     {
+       phpgwwcm.opener = window;
+     }
+   }
+ </script>
   <center>
    <table border="0" width="80%" cellspacing="2" cellpadding="2">
***************
*** 105,108 ****
--- 124,130 ----
       <form method="POST" action="{doneurl}">
       <input type="submit" name="done" value="{lang_done}"></form></td>
+    </tr>
+    <tr>
+     <td colspan="3" align="center"><a 
href="javascript:openwindow('{view}',800,600)">{lang_preview}</a></td>
     </tr>
    </table>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]